/* ============================================================
   VARIABLES Y ESTILOS BASE
   ============================================================ */

:root {
    --os-gold: #B08D57;
    --os-dark: #0c1e34;
    --os-light-gray: #f1f5f9;
    --os-border: #f0f0f0;
    --os-text: #334155;
    --os-text-dark: #1a365d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--os-text);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background-color: #f9fafb;
    position: relative;
}

/* ============================================================
   CONTENEDOR Y GRID
   ============================================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================================
   NAVEGACIÓN
   ============================================================ */

.site-nav {
    background-color: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid var(--os-border);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--os-text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--os-gold);
}

.nav-links a.primary {
    background-color: var(--os-dark);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.nav-links a.primary:hover {
    background-color: #0a1520;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content-left {
    padding: 80px 0;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    max-width: 500px;
}

/* ============================================================
   HERO SUB
   ============================================================ */

.hero-sub {
    background-color: var(--os-light-gray);
    padding: 30px 0;
    text-align: center;
    color: var(--os-text);
    font-size: 1rem;
}

/* ============================================================
   SECCIONES Y CARDS
   ============================================================ */

.section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Fondo ligeramente gris para la primera sección de tarjetas (Who/What) */
main > .section:first-of-type {
    background-color: #f1f5f9;
}

/* Sistema de 3 Capas: card-grid blanco -> cards grises -> párrafos blancos */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin: 0;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
}

.card {
    background-color: #f1f5f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 20px;
}

.who-content p {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 15px;
    line-height: 1.7;
    background-color: #ffffff;
    padding: 15px 18px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* ============================================================
   TARJETAS "WHAT WE DO" (Manteniendo tu versión de Chrome) */
.list-svg {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.list-svg li {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #e3e7ee !important; /* borde gris claro sutil */
    border-radius: 6px !important;
    padding: 14px 18px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    width: 100% !important;
    max-width: 100% !important;
}

.svg-icon {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    margin-right: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.svg-icon img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain !important;
    filter: brightness(0) saturate(100%) invert(61%) sepia(20%) saturate(778%) hue-rotate(358deg) brightness(92%) contrast(88%);
}

.list-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--os-text-dark) !important;
    text-align: left !important;
    line-height: 1.5 !important;
}

/* 2. SECCIÓN "WHY" (Manteniendo tu versión de Chrome) */
.why-band {
    background-color: var(--os-light-gray) !important;
    padding: 80px 0 !important;
    text-align: center !important;
}

.why-band h3 {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--os-text-dark) !important;
    margin-bottom: 10px !important;
}

.why-sep {
    width: 50px !important;
    border-top: 3px solid var(--os-gold) !important;
    margin: 15px auto 40px !important;
    border: none;
    background-color: var(--os-gold) !important;
    height: 2px !important;
}

.why-grid-center {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.why-list-col {
    display: inline-block !important;
    text-align: left !important;
    max-width: 450px !important;
}

.why-item {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 18px !important;
    font-size: 1.05rem !important;
    color: var(--os-text) !important;
    font-weight: 500 !important;
}

.dot-gold {
    width: 8px !important;
    height: 8px !important;
    background-color: var(--os-gold) !important;
    border-radius: 50% !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
}

/* ============================================================
   BOTONES
   ============================================================ */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--os-dark);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: #0a1520;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--os-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.site-footer strong {
    font-weight: 700;
}

.site-footer small {
    opacity: 0.7;
    font-size: 0.85rem;
}

/* ============================================================
   ABOUT PAGE - Sección de contenido con imagen
   ============================================================ */

.about-section {
    padding: 60px 0;
    background-color: #f8fafc;
}

.about-content-with-image {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 50px;
    align-items: center;
    margin-bottom: 0;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 0;
}

.about-text h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1rem;
    color: #334155;
    margin-bottom: 15px;
    line-height: 1.8;
}
    line-height: 1.7;
}

.about-image {
    max-width: 100%;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    object-fit: contain;
}

/* ============================================================
   ICON SECTION (About & Other Pages)
   ============================================================ */

.icon-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.icon-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

.icon-item {
    background-color: #f1f5f9;
    padding: 40px;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.icon-item:nth-child(even) {
    background-color: #ffffff;
}

.icon-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.icon-circle {
    background-color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.icon-circle img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(61%) sepia(20%) saturate(778%) hue-rotate(358deg) brightness(92%) contrast(88%);
}

.icon-item h3 {
    font-size: 1.28rem;
    font-weight: 700;
    color: #1a365d;
    margin: 0;
}

.icon-item p {
    color: #334155;
    line-height: 1.8;
    font-size: 0.98rem;
}
    font-size: 0.94rem;
    color: var(--os-text);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   CTA BAND (Call to Action)
   ============================================================ */

.cta-band {
    background-color: var(--os-light-gray);
    padding: 80px 0;
    text-align: center;
    margin-top: 40px;
}

.cta-band .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cta-band h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--os-text-dark);
    margin-bottom: 10px;
}

.cta-band p {
    font-size: 1.1rem;
    color: var(--os-text);
    margin-bottom: 30px;
}

/* ============================================================
   COMPLIANCE PAGE - Tarjetas de cumplimiento
   ============================================================ */

.card-grid-compliance {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.card-grid-compliance .card {
    background-color: #f1f5f9;
}

.card-grid-compliance .card-full {
    grid-column: 1 / -1;
    background-color: #f1f5f9;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.card-icon {
    background-color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(61%) sepia(20%) saturate(778%) hue-rotate(358deg) brightness(92%) contrast(88%);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--os-text-dark);
    margin: 0;
}

/* ============================================================
   CONTACT PAGE - Formulario y dos columnas
   ============================================================ */

/* Contenedor principal con 2 columnas */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Columna derecha: contenedor de información de contacto */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Tarjeta de información de contacto (fondo gris claro) */
.contact-card {
    padding: 35px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 20px;
}

.contact-card p {
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 12px;
    line-height: 1.6;
}

.contact-card p:last-of-type {
    margin-bottom: 0;
}

.contact-card a {
    color: #B08D57;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #8b6d42;
    text-decoration: underline;
}

/* Columna izquierda: formulario */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    color: #1a365d;
    font-size: 0.95rem;
}

/* Inputs con fondo blanco y bordes grises */
.input {
    margin-top: 8px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #334155;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Focus state: borde dorado */
.input:focus {
    outline: none;
    border-color: #B08D57;
    box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.1);
}

textarea.input {
    resize: vertical;
    min-height: 120px;
}

select.input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a365d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Botón de envío con azul oscuro */
.form-row .btn {
    align-self: flex-start;
    margin-top: 10px;
    background-color: #1a365d;
    color: #ffffff;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-row .btn:hover {
    background-color: #0f1f3d;
}

/* Texto de disclaimer */
.disclaimer-text {
    font-size: 0.85rem;
    color: #667085;
    line-height: 1.6;
    font-style: italic;
}
}

/* ============================================================
   SUPPLY PAGE - Secciones alternadas con contenido e imagen
   ============================================================ */

.supply-section {
    padding: 60px 0 0 0;
    background-color: #f8fafc;
}

.supply-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 0;
}

.supply-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 0;
    padding: 40px;
    background-color: #e8ecf1;
    border-bottom: none;
}

.supply-item:last-child {
    margin-bottom: 0;
}

.supply-item:nth-child(2) {
    background-color: transparent;
}

.supply-item:nth-child(3) {
    background-color: #e8ecf1;
}

.supply-item:nth-child(even) {
    direction: rtl;
}

.supply-item:nth-child(even) > * {
    direction: ltr;
}

.supply-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 15px;
}

.supply-content p {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 20px;
    line-height: 1.7;
}

.supply-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.supply-content li {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 10px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.supply-content li:before {
    content: "•";
    color: #B08D57;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.supply-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ============================================================
   INDUSTRIES PAGE - Grid de industrias
   ============================================================ */

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px auto;
    max-width: 1200px;
    padding: 0 20px;
}

/* ============================================================
   PARCHE EXCLUSIVO PARA EDGE (NO AFECTA A CHROME)
   ============================================================ */
@supports (-ms-ime-align:auto) {
    /* Fuerza el centrado en Edge si se desalinea */
    .why-grid-center {
        display: -ms-flexbox !important;
        -ms-flex-pack: center !important;
    }
    /* Evita que las tarjetas se estiren infinito en Edge */
    .list-svg li {
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ============================================================
   AJUSTES PARA MÓVILES Y TABLETS (IPHONE, ANDROID, IPAD)
   ============================================================ */

@media (max-width: 768px) {
    /* 1. Ajuste de las tarjetas principales */
    .card-grid {
        grid-template-columns: 1fr !important;
        padding: 0 !important;
    }

    .card {
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    /* 2. Navegación móvil */
    .nav-links {
        gap: 15px !important;
        flex-wrap: wrap !important;
    }

    .nav-links a {
        font-size: 0.85rem !important;
    }

    /* 3. Hero en móvil */
    .hero h1 {
        font-size: 2rem !important;
    }

    .hero p {
        font-size: 0.95rem !important;
    }

    /* 4. Sección "Why" en móvil */
    .why-band {
        padding: 40px 15px !important;
    }

    .why-item {
        font-size: 0.95rem !important;
    }
}

/* ============================================================
   AJUSTES PARA MÓVILES Y TABLETS (IPHONE, ANDROID, IPAD)
   ============================================================ */

@media (max-width: 768px) {
    /* NAVEGACIÓN FIJA Y COMPACTA EN MÓVIL */
    .site-nav {
        padding: 10px 0 !important;
        min-height: auto !important;
    }

    .site-nav .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0 15px !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .site-nav .logo {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        order: 1 !important;
        margin-bottom: 5px !important;
    }

    .site-nav .logo img {
        height: 56px !important;
        display: block !important;
        margin: 0 auto !important;
    }

    .nav-links {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
        justify-content: center !important;
        order: 2 !important;
    }

    /* 1. Ajuste de las tarjetas principales */
    .card-grid {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
        gap: 20px !important;
    }

    .card {
        margin-bottom: 20px !important;
        width: 100% !important;
        padding: 20px !important;
    }

    /* 2. Navegación móvil - Enlaces individuales */
    .nav-links a {
        font-size: 0.78rem !important;
        padding: 7px 8px !important;
        text-align: center !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }

    .nav-links a.primary {
        padding: 7px 8px !important;
        font-size: 0.78rem !important;
    }

    /* 3. Hero en móvil */
    .hero {
        min-height: 300px !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 0.95rem !important;
    }

    .hero-content-left {
        padding: 40px 0 !important;
    }

    /* 4. Sección "Why" en móvil */
    .why-band {
        padding: 40px 20px !important;
    }

    .why-band h2 {
        font-size: 1.5rem !important;
    }

    .why-item {
        font-size: 0.95rem !important;
    }

    /* 5. About page en móvil */
    .about-content-with-image {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        padding: 20px !important;
    }

    .about-text {
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    .about-text p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }

    .about-image {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .about-image img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .icon-section {
        grid-template-columns: 1fr !important;
    }

    .icon-item {
        padding: 30px 20px !important;
    }

    /* 6. Compliance grid en móvil */
    .card-grid-compliance {
        grid-template-columns: 1fr !important;
    }

    .card-grid-compliance .card-full {
        grid-column: 1 !important;
    }

    /* 7. Contact form en móvil */
    .two-col {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* 8. Supply items en móvil */
    .supply-item {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 40px 20px !important;
    }

    .supply-item:nth-child(even) {
        direction: ltr !important;
    }

    /* 9. Industries grid en móvil */
    .industries-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }

    /* 10. CTA band en móvil */
    .cta-band {
        padding: 40px 20px !important;
    }

    .cta-band h2 {
        font-size: 1.5rem !important;
    }

    /* 11. Contenedor general móvil */
    .container {
        padding: 0 20px !important;
    }

    .section {
        padding: 40px 0 !important;
    }
}

/* Ajuste extra para teléfonos muy pequeños (iPhone SE / Android antiguos) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem !important;
    }

    .hero-content-left {
        padding: 40px 0 !important;
    }
    
    .site-nav .logo img {
        height: 49px !important;
    }
    
    .nav-links {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        justify-content: center !important;
    }

    .nav-links a {
        font-size: 0.715rem !important;
        padding: 6px 7px !important;
        flex: 0 0 auto !important;
    }

    .nav-links a.primary {
        font-size: 0.715rem !important;
        padding: 6px 7px !important;
    }

    .container {
        padding: 0 15px !important;
    }

    .about-text h3,
    .supply-content h3 {
        font-size: 1.3rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    .about-text p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }

    .about-section {
        padding: 30px 0 !important;
    }

    .about-content-with-image {
        padding: 15px !important;
        gap: 20px !important;
    }

    .input {
        font-size: 16px !important;
    }
}