/* ==========================================================================
   FUENTES LOCALES (Plus Jakarta Sans)
   ========================================================================== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fuentes/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fuentes/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fuentes/plus-jakarta-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
:root {
    --principal: #005eb2;
    --secundario: #e0035a;
    --oscuro: #00112d;
    --navH: #02a5ff;
    --parrafo: #353535;
    --blanco: #ffffff;
    --gris: #f5f5f5;
    --cta: #bb044b;
    --ctaH: #f40261;
    --fondo-exito: #e1f5fe; /* Azul muy clarito */

    /* Paneles */
    --panel-bg: var(--blanco);
    --panel-radius: 20px;
    --panel-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --panel-shadowH: 0 30px 20px rgba(0, 0, 0, 0.09);

    /* Duraciones de tiempo */
    --duracion-rapida: 0.2s;
    --duracion-suave: 0.4s;
}

/* ===============================================================
   1. RESET & BASE (Lo que toca todo)
   ============================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
html {font-size: 100%;}
body { 
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    font-size: 1.125rem;    /* 18px: Legibilidad superior para todo público */
    line-height: 1.7;       /* Un line-height más amplio ayuda a no perder el hilo */
    color: var(--parrafo);
    background-color: var(--gris); 
    overflow-x: hidden; 
}
/* ===============================================================
   2. TYPOGRAPHY (H1, H2, P, Links)
   ============================================================== */

p {
    font-size: 1.125rem;       /* 18px por defecto */
    line-height: 1.7;      
    color: var(--parrafo); 
    margin-bottom: 1.2rem; /* Espaciado estándar entre párrafos */
    font-weight: 400;      /* Peso normal */
}

.section-header {
    text-align: center;
    padding: 40px 10px 30px 10px;
}
.seccion-intro p, 
.lead-text {
    font-size: 1.25rem;   
    line-height: 1.6;
    color: var(--oscuro);   
    text-align: center;      
    margin-bottom: 1.5rem;   
    max-width: 800px;      
    margin-left: auto;
    margin-right: auto;   
}

h2 {
    font-size: 2.5rem;          /* Tamaño grande e impactante */
    font-weight: 700;           /* Peso fuerte para autoridad */
    color: var(--oscuro);       /* Usando tu variable de color */
    text-align: center;         /* Alineación estándar para secciones */
    margin-top: 0;              /* Reset */
    margin-bottom: 1.2rem;      /* Espacio vital para que no se sienta apretado */
    line-height: 1.2;           /* Ajustado para títulos */
    text-transform: none;       /* Legibilidad superior */
    letter-spacing: -1px;       /* Un toque de elegancia moderna */
}

h3 {
    font-size: 1.75rem;     /* Los servicios se ven potentes pero no compiten con el h2 */
    margin-bottom: 1rem;
    line-height: 2.5rem;
}
/* Ajuste para dispositivos móviles (evita que el h2 sea demasiado grande y optimiza legibilidad) */
@media (max-width: 768px) {
    body {
        font-size: 1.0625rem; /* ~17px en móvil: lectura clara y cómoda */
        line-height: 1.65;
    }
    p {
        font-size: 1.0625rem;
        line-height: 1.65;
    }
    h2 {
        font-size: 1.85rem;
        line-height: 1.25;
    }
    .seccion-intro p,
    .lead-text {
        font-size: 1.15rem;
        line-height: 1.6;
    }
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}


/* ==========================================================================
TARJETAS DE SERVICIOS
============================================================================*/

.contenedor-servicios-offset {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.servicio-image-col img {
    width: 100%;
    border-radius: 12px;
    filter: brightness(110%) saturate(110%);
    transition: transform 0.45s ease, filter 0.45s ease;
}

@media (max-width: 768px) {
    .servicio-offset-item {
        flex-direction: column !important;
        margin-bottom: 45px;
    }
    .servicio-image-col {
        margin-top: 20px;
    }
}

/* ==========================================================================
   PRUEBA SOCIAL
   ========================================================================== */
.global-presence { padding: 0; background: #fafafa; }

/* Grid de Logos - Elegante */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
    align-items: center;
}

.logo-item img {
    width: 100%;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s ease;
}

.logo-item img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Pilares de Valor */
.global-value-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 40px;
}

.pillar h3 { font-size: 1.1rem; color: var(--navH); margin-bottom: 10px; }

/* CTA Final */
.global-cta { text-align: center; margin-top: 50px; }
.btn-cta { 
    background: var(--cta); color: #fff; padding: 15px 30px; 
    text-decoration: none; font-weight: bold; transition: background 0.3s;
    border-radius: 4px;
    display: inline-block;
}
.btn-cta:hover { background: var(--ctaH); }

@media (max-width: 768px) {
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .global-value-pillars { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECCIÓN 1: INTRODUCCIÓN CORPORATIVA
   ========================================================================== */
.home-intro-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555555;
}

/* --------------------------------------------------------------------------
   SECCIÓN 2: CATÁLOGO DE PRODUCTOS (GRILLA)
   -------------------------------------------------------------------------- */
.home-catalog-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(5, 13, 46, 0.08);
}

.card-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #ffffff;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card-item:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-content-wrapper {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-item-title {
    font-size: 1.3rem;
    color: #050D2E;
    margin-bottom: 12px;
    font-weight: 700;
    text-align: center;
}

.card-item-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
}

/* Botón de Contenido Estándar (.btn-saber-mas / .btn-contenido) */
.btn-contenido,
.btn-saber-mas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 28px;
    border: 1.5px solid var(--cta);
    color: var(--cta);
    background: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(187, 4, 75, 0.05);
    margin-top: 20px;
}

.btn-contenido:hover,
.btn-saber-mas:hover {
    background-color: var(--cta);
    color: #ffffff;
    border-color: var(--cta);
    box-shadow: 0 6px 18px rgba(187, 4, 75, 0.35);
    cursor: pointer;
    text-decoration: none;
}

.btn-contenido .btn-arrow,
.btn-saber-mas .btn-arrow {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 700;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-contenido:hover .btn-arrow,
.btn-saber-mas:hover .btn-arrow {
    transform: translateX(6px);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   SECCIÓN 3: PILARES CORPORATIVOS (3 COLUMNAS)
   -------------------------------------------------------------------------- */
.home-pillars-section {
    padding: 90px 0;
    background-color: #ffffff;
}

.pillars-three-column-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
}

@media (min-width: 768px) {
    .pillars-three-column-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar-card {
    text-align: center;
    padding: 20px;
}

.pillar-icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.pillar-title {
    font-size: 1.4rem;
    color: #050D2E;
    font-weight: 700;
    margin-bottom: 15px;
}

.pillar-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
}

/* --------------------------------------------------------------------------
   SECCIÓN 4: CALL TO ACTION (CTA)
   -------------------------------------------------------------------------- */
.home-cta-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.cta-inner-box {
    background: linear-gradient(135deg, #050D2E 0%, #032169 100%);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(5, 13, 46, 0.15);
}

.cta-title {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    max-width: 700px;
    margin: 0 auto 20px auto;
    line-height: 1.3;
}

.cta-description {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
}

.btn-cta-contact {
    display: inline-block;
    background-color: #0584EB;
    color: #ffffff !important;
    padding: 16px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(5, 132, 235, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-contact:hover {
    background-color: #046ec4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 132, 235, 0.4);
}

.btn-cta-contact:active {
    transform: translateY(0);
}

/* ==========================================================================
    EFECTOS DINÁMICOS DE SCROLL
   ========================================================================== */
.main-header--scrolled {
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* ==========================================================================
   FORMULARIO DINÁMICO OPTIMIZADO (GRID SYSTEM)
   ========================================================================== */

.form-container { max-width: 800px; margin: 50px auto 70px auto; padding: 40px 20px; position: relative; }
.titulo-formulario-contacto {
    margin: 60px 0 50px 0;
    font-size: 1.8rem;
    color: var(--oscuro);
    text-align: center;
    width: 100%;
}

#campo-dinamico select:focus, 
#campo-dinamico input:focus {
    border-color: var(--principal);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 94, 178, 0.2);
}

#campo-dinamico {
    margin-bottom: 20px;
    width: 100%;
}

#campo-dinamico:empty,
#campo-dinamico[style*="display: none"],
#campo-dinamico[style*="display:none"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#campo-dinamico div label {
    font-weight: 600;
    font-size: 14px;
    color: var(--parrafo);
}

#contacto-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    position: relative !important;
}

/* Capa de carga (Overlay) */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    border-radius: 8px;
    pointer-events: none;
}

#contacto-form.is-loading .form-overlay {
    display: flex !important;
}

/* Spinner Grande */
.spinner-grande {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top: 6px solid var(--navH) !important;
    border-bottom: 6px solid var(--principal) !important;
    border-left: 6px solid var(--navH) !important;
    border-right: 6px solid var(--principal) !important;
    animation: shadowspin .6s linear infinite;
    -webkit-animation: shadowspin .6s linear infinite;
}

@keyframes shadowspin {
   0% { transform:rotate(0deg); box-shadow:inset 0px 0px 15px var(--principal); }
   55% { box-shadow:inset 0px 0px 35px var(--oscuro); }
   100% { transform:rotate(360deg); box-shadow:inset 0px 0px 15px var(--principal); }
}

.input-group-half { grid-column: span 1; }
.input-group-full { grid-column: span 2; }

#contacto-form select,
#contacto-form input[type="text"],
#contacto-form input[type="url"],
#contacto-form input[type="email"],
#contacto-form input[type="tel"],
#contacto-form textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    font-size: 17px;
    color: var(--principal);
    outline: none;
    border: none;
    border-bottom: 2px solid #ccc;
    transition: all 0.3s ease;
}

#contacto-form textarea { border: 2px solid #ccc; padding: 12px; border-radius: 4px; line-height: 22px;}

#contacto-form input:valid:not(:placeholder-shown) { background-color: var(--fondo-exito); }
#contacto-form input:invalid:not(:placeholder-shown),
#contacto-form textarea:invalid:not(:placeholder-shown) { border-color: var(--secundario); }

/* Toggle Switch Politicas */
.checkbox-group { display: flex; align-items: center; gap: 15px; }
.switch { position: relative; display: inline-block; width: 50px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--navH); }
input:checked + .slider:before { transform: translateX(26px); }

/* Botón de envío */
#btn-envio {
    padding: 15px 30px;
    background-color: var(--cta);
    color: white;
    border: none;
    cursor: pointer;
    min-width: 220px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s ease;
}
#btn-envio:disabled { background-color: #a0a0a0 !important; cursor: not-allowed; opacity: 0.8;}
#btn-envio:hover:not(:disabled) { background-color: var(--ctaH); }

@media (max-width: 600px) {
    #contacto-form { grid-template-columns: 1fr; }
    .input-group-half, .input-group-full { grid-column: span 1; }
}

footer { background-color: var(--oscuro); color: #fff; padding: 30px 20px; font-size: 0.9rem; margin-top: auto; border-top: 3px solid var(--principal); }

a[aria-label="Facebook"]:hover {background: var(--principal) !important;}
a[aria-label="Instagram"]:hover {background: #c92357 !important;}
a[aria-label="YouTube"]:hover {background: red !important;}








