/*
 * ═══════════════════════════════════════════════════════════
 *  Theme Name : Torices Guard
 *  Author     : Saul
 *  Version    : 3.1  (Optimized — sin cambios de diseño)
 *  Optimized  : Eliminación de duplicados, mobile padding
 *               corregido, CSS consolidado y documentado.
 * ═══════════════════════════════════════════════════════════
 *
 *  ÍNDICE
 *  ──────────────────────────────────────────────────────────
 *  1.  Variables & Design Tokens
 *  2.  Reset / Base
 *  3.  Tipografía Global
 *  4.  Hero
 *  5.  Services
 *  6.  Flotilla
 *  7.  Incluye
 *  8.  Protocolo
 *  9.  Noticias
 *  10. CTA
 *  11. FAQ
 *  12. Responsive — 1100px
 *  13. Responsive — 1024px / 900px
 *  14. Responsive — 768px  (Mobile)
 *  15. Responsive — 480px  (Small Mobile)
 * ═══════════════════════════════════════════════════════════
 */

@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');


/* ─────────────────────────────────────────────
   1. VARIABLES & DESIGN TOKENS
   ─ colores,tipografías, transiciones y espaciados.
───────────────────────────────────────────── */
:root {
    --white:          #ffffff;
    --tg-black:       #121212;
    --tg-dark-grey:   #1a1a1a;
    --tg-blue:        #113a8c;
    --tg-blue-hover:  #295bcc;
    --tg-white-10:    rgba(255, 255, 255, 0.10);
    --tg-white-50:    rgba(255, 255, 255, 0.50);
    --tg-white-70:    rgba(255, 255, 255, 0.70);

    /*
     * --tg-pad controla el padding horizontal de todas
     * las secciones. En mobile se sobreescribe a 20px
     * (ver §14) para eliminar espacios innecesarios.
     */
    --tg-pad:         clamp(20px, 8vw, 170px);

    /* Curva de animación compartida */
    --tg-tr:          all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}


/* ─────────────────────────────────────────────
   2. RESET / BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--tg-black) !important;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--white);
    overscroll-behavior-y: none;
}

/* Fuerza el fondo negro en estructuras de WordPress */
#page, #content, .site-content, .wp-site-blocks {
    background-color: var(--tg-black) !important;
}


/* ─────────────────────────────────────────────
   3. TIPOGRAFÍA GLOBAL
   ─ Reglas base que se aplican a todos los h2
     y a los selectores específicos del tema.
     Cada sección puede añadir overrides mínimos.
───────────────────────────────────────────── */

/* H2 global → 70px Light Blanco */
h2,
.flotilla__title,
.incluye__title,
.tguard-proto-title,
.Preguntas-frecuentes,
.ltimas-noticias {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 70px !important;
    font-weight: 300 !important;
    line-height: 1.07 !important;
    letter-spacing: -0.7px !important;
    color: var(--white) !important;
    margin: 0 0 24px !important;
}

/* Palabra en negrita dentro de los h2 */
h2 strong,
.flotilla__title strong,
.incluye__title strong,
.Preguntas-frecuentes .text-style-1,
.ltimas-noticias .text-style-1 {
    font-weight: 500 !important;
    color: var(--white) !important;
}

/* Párrafos globales → 25px Light */
p {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--white);
    margin: 0;
}


/* §4 HERO — migrated to Tailwind. See app.css (@theme tokens,
   .btn component) and template-parts/Sections/homepage.php (markup). */


/* ─────────────────────────────────────────────
   5. SERVICES
───────────────────────────────────────────── */
.services {
    padding: 48px var(--tg-pad);
    background-color: var(--tg-black);
}

.services__row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.services__col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.services__icon {
    width: 48px;
    height: 48px;
    filter: brightness(0) invert(1);
}

.services__text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
    line-height: 1.3;
    color: var(--white);
}

.services__divider {
    width: 100%;
    height: 1px;
    background: var(--tg-white-10);
}

/* Los dots solo son visibles en mobile (§14) */
.services__dots { display: none; }


/* ─────────────────────────────────────────────
   6. FLOTILLA
───────────────────────────────────────────── */
.flotilla {
    padding: 60px var(--tg-pad);
}

.flotilla__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
    align-items: end;
}

.flotilla__title strong { display: block; }

.flotilla__desc {
    font-size: 25px;
    font-weight: 300;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}

.flotilla__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.flotilla__card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 777 / 643;
    margin-bottom: 0;
}

.flotilla__card--right { margin-top: 60px; }

.flotilla__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.flotilla__card:hover .flotilla__card-img { transform: scale(1.04); }

.flotilla__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0), rgba(18, 18, 18, 0.86));
    z-index: 1;
}

.flotilla__card-content {
    position: absolute;
    bottom: 48px;
    left: 48px;
    z-index: 2;
}

/* Títulos dentro de las cards de flotilla → 46px Michroma */
.flotilla__card-title {
    font-family: 'Michroma', sans-serif;
    font-size: 46px;
    font-weight: normal;
    line-height: 1.4;
    color: var(--white);
    -webkit-text-stroke: 2px var(--white);
    text-transform: uppercase;
    max-width: 588px;
    margin: 0 0 16px;
}

.flotilla__card-link {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-weight: 300;
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 6px;
    transition: var(--tg-tr);
}
.flotilla__card-link:hover { color: rgba(255, 255, 255, 0.7); }


/* ─────────────────────────────────────────────
   7. INCLUYE
───────────────────────────────────────────── */
.incluye {
    padding: 60px var(--tg-pad);
    background-color: var(--tg-black) !important;
    position: relative;
    z-index: 1;
}

.incluye__header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.incluye__desc {
    font-size: 25px;
    font-weight: 300;
    line-height: 1.4;
    color: var(--tg-white-70);
    align-self: center;
}

.incluye__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.incluye__card {
    position: relative;
    height: 560px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--tg-dark-grey);
}

.incluye__card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: var(--tg-tr);
}
.incluye__card:hover .incluye__card-img { transform: scale(1.06); }

.incluye__card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    z-index: 1;
}

.incluye__card-content {
    position: relative;
    z-index: 2;
    padding: 28px;
}

/* Títulos cards incluye → 26px Michroma */
.incluye__card-title {
    font-family: 'Michroma', sans-serif;
    font-size: 26px;
    font-weight: normal;
    line-height: 1.3;
    color: var(--white);
}

/* Navegación carrusel incluye — oculta en desktop (§ final) */
.incluye__nav { display: none; }


/* ─────────────────────────────────────────────
   8. PROTOCOLO
───────────────────────────────────────────── */
.tguard-proto-section {
    padding: 60px var(--tg-pad);
    background-color: var(--tg-black);
}

.tguard-proto-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: flex-start;
}

.tguard-proto-header { position: sticky; top: 40px; }

/*
 * Nota: .tguard-proto-title está en §3 como parte del
 * h2 global (70 px / weight 300). Los overrides de
 * tamaño específicos del diseño de Zeplin se aplican aquí,
 * usando !important para ganar sobre el global.
 */
.tguard-proto-title {
    width: 370px;
    height: auto;
    margin: 65.8px 0 40px 0 !important;
    font-size: 40px !important;
    font-weight: 500 !important;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.13 !important;
    letter-spacing: -0.4px !important;
    text-align: left;
    color: var(--white) !important;
}

/* Palabra semitransparente "No improvisamos" */
.tguard-proto-light {
    display: block;
    font-weight: 300 !important;
    color: var(--tg-white-50) !important;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Línea vertical del timeline */
.tguard-proto-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tguard-proto-line {
    position: absolute;
    left: 24px;
    top: 40px;
    bottom: 40px;
    width: 1px;
    background: var(--tg-white-10);
}

.tguard-proto-item {
    display: flex;
    gap: 24px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Número circular del paso */
.tguard-proto-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--tg-black);
    border: 1px solid var(--tg-white-10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: var(--tg-white-50);
    transition: var(--tg-tr);
}

/* Card del paso */
.tguard-proto-card {
    flex: 1;
    padding: 28px 32px;
    background: var(--tg-dark-grey);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    opacity: 0.4;
    transition: var(--tg-tr);
}

.tguard-proto-card h3 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--white);
    margin: 0 0 6px;
}

.tguard-proto-card p {
    font-size: 16px;
    color: var(--tg-white-50);
}

/* Estado hover / activo del paso */
.tguard-proto-item:hover .tguard-proto-card,
.tguard-proto-item.active .tguard-proto-card {
    opacity: 1;
    background: #222;
    transform: translateX(8px);
}
.tguard-proto-item:hover .tguard-proto-number,
.tguard-proto-item.active .tguard-proto-number {
    background: var(--white);
    color: var(--tg-black);
}

/* Dots del carrusel de protocolo — solo visibles en mobile (§14) */
.tguard-proto-dots-wrapper { display: none; }


/* ─────────────────────────────────────────────
   9. NOTICIAS
───────────────────────────────────────────── */
.noticias-section {
    padding: 60px var(--tg-pad);
    background-color: var(--tg-black);
}

/* Grid principal: 2 columnas con desfase artístico */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.noticia-card {
    display: flex;
    flex-direction: column;
}

/* Desfase hacia abajo en la primera tarjeta */
.noticia-card:first-child { margin-top: 80px; }

.noticia-card__img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    margin-bottom: 24px;
}

/* Título de noticia — estado normal */
.noticia-card__title {
    font-family: 'Michroma', sans-serif;
    font-size: 35px;
    font-weight: normal;
    line-height: 1.29;
    color: var(--white);
    -webkit-text-stroke: 0px transparent;
    margin: 0 0 16px;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
}

/* Título de noticia — hover con azul y stroke */
.noticia-card__title:hover,
.noticia-card:hover .noticia-card__title {
    color: #295bcc;
    -webkit-text-stroke: 2px #295bcc;
}

/* Descripción de noticia */
.noticia-card__text {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--tg-white-70);
}


/* ─────────────────────────────────────────────
   10. CTA
───────────────────────────────────────────── */
.cta-section {
    padding: 120px var(--tg-pad);
    background-color: var(--tg-black);
}

.cta-inner {
    max-width: 838px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 65px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    letter-spacing: -0.85px !important;
    text-align: center !important;
    color: var(--white) !important;
    margin: 0 0 46px !important;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 231px;
    height: 60px;
    padding: 19px 36px 18px 35px;
    border-radius: 30px;
    background-color: var(--tg-blue);
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    transition: var(--tg-tr);
    white-space: nowrap;
}
.cta-button:hover {
    background: var(--tg-blue-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}


/* ─────────────────────────────────────────────
   11. FAQ
   ─ Nota: .faq-section y .faq-container estaban
     duplicados en el original. Se consolidan aquí
     con los valores correctos y únicos.
───────────────────────────────────────────── */
.faq-section {
    padding: 80px var(--tg-pad);
    background-color: var(--tg-black);
}

.faq-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 80px;
    align-items: flex-start;
}

/* Columna izquierda — título pegajoso en scroll */
.faq-left {
    flex: 0 0 auto;
    width: 380px;
    position: sticky;
    top: 60px;
}

/*
 * .Preguntas-frecuentes hereda el h2 global (§3).
 * Aquí solo se resetea el width para que no choque
 * con la columna flex, y se confirma el sticky.
 */
.Preguntas-frecuentes {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 70px !important;
    font-weight: 300 !important;
    line-height: 1.07 !important;
    letter-spacing: -0.7px !important;
    color: var(--white) !important;
    margin: 0 !important;
    width: auto !important;
}

.Preguntas-frecuentes .text-style-1 {
    font-weight: 500 !important;
    color: var(--white) !important;
}

/* Columna derecha — acordeón */
.faq-right {
    flex: 1;
    min-width: 0; /* Previene overflow en flex */
}

/* Separador entre items */
.Lnea-48 {
    width: 100%;
    height: 1px;
    background-color: var(--white);
    opacity: 0.15;
}

/* Fila clickeable del acordeón */
.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    cursor: pointer;
    user-select: none;
}

/* Texto de la pregunta → 30px Medium */
.Qu-niveles-de-blindaje-manejan {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.17;
    color: var(--white);
    flex: 1;
    transition: color 0.3s ease;
}

/* Hover — atenúa el texto */
.faq-header:hover .Qu-niveles-de-blindaje-manejan {
    color: rgba(255, 255, 255, 0.5);
}

/* Hover en item ya abierto — mantiene azul */
.faq-item.active .faq-header:hover .Qu-niveles-de-blindaje-manejan {
    color: #3b82f6;
}

/* Flecha del acordeón */
.Trazado-399 {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg); /* ↓ cerrado */
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
                border-color 0.3s ease;
}

/* Flecha cuando está abierto — azul y apunta hacia arriba */
.faq-item.active .Trazado-399 {
    transform: rotate(-135deg);
    border-color: #3b82f6;
}

/* Cuerpo colapsable */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.faq-item.active .faq-body { max-height: 600px; }

/* Texto de la respuesta → 22px Light */
.Trabajamos-con-dos-niveles-de-blindaje-Nivel-III-Plus-proteccin-ideal-para-operacin-urbana-y-tr {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 300 !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.65) !important;
    margin: 0 !important;
    padding-bottom: 32px !important;
}

/* strong dentro de la respuesta — blanco completo */
.Trabajamos-con-dos-niveles-de-blindaje-Nivel-III-Plus-proteccin-ideal-para-operacin-urbana-y-tr strong {
    font-weight: 500;
    color: var(--white);
}

/* Pregunta activa — texto azul */
.faq-item.active .Qu-niveles-de-blindaje-manejan { color: #3b82f6; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ─ Ordenados de mayor a menor, sin duplicados.
   ─ Cada breakpoint solo toca lo estrictamente necesario.
═══════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────
   12. RESPONSIVE — 1100px
   ─ Pantallas medianas: collapse de columnas y
     reducción proporcional de tipografías.
───────────────────────────────────────────── */
@media (max-width: 1100px) {

    /* Tipografías globales — escalado fluido */
    h2,
    .flotilla__title,
    .incluye__title,
    .Preguntas-frecuentes,
    .ltimas-noticias {
        font-size: clamp(36px, 5vw, 70px) !important;
    }

    .cta-title { font-size: clamp(40px, 5vw, 85px) !important; }

    /* Layouts de columnas — se colapsan a 1fr (.hero__text migrado a Tailwind) */
    .flotilla__header,
    .incluye__header,
    .tguard-proto-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* El sticky del protocolo no funciona bien en 1 columna */
    .tguard-proto-header { position: static; }

    /* Reducción de columnas */
    .services__row  { grid-template-columns: repeat(2, 1fr); }
    .incluye__grid  { grid-template-columns: repeat(2, 1fr); }

    /* Elimina el margen de desfase en flotilla */
    .flotilla__card--right { margin-top: 0; }

    /* Reduce el gap en noticias */
    .noticias-grid { gap: 20px; }

    /* FAQ — ajuste de ancho de columna izquierda */
    .faq-left { width: 300px; }
    .Qu-niveles-de-blindaje-manejan { font-size: 24px; }
}


/* ─────────────────────────────────────────────
   13. RESPONSIVE — 1024px / 900px
   ─ FAQ y noticias: ajustes puntuales.
───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .noticia-card__title { font-size: 26px; }
}

@media (max-width: 900px) {
    /* FAQ — apila columnas verticalmente */
    .faq-container {
        flex-direction: column;
        gap: 40px;
    }
    .faq-left {
        width: 100%;
        position: static; /* Quita sticky en pantallas pequeñas */
    }
    .Preguntas-frecuentes {
        font-size: clamp(32px, 8vw, 56px) !important;
    }
}


/* ─────────────────────────────────────────────
   14. RESPONSIVE — 768px (MOBILE)
   ─ Cambios estructurales para móvil:
     - Padding global reducido a 20px
     - Carruseles horizontales para Services,
       Incluye y Protocolo
     - Hero reorganizado en grid vertical
     - Noticias en columna única sin desfase
   ─ NINGÚN valor de color o tipografía cambia
     con respecto al diseño original.
───────────────────────────────────────────── */
@media (max-width: 768px) {

    /* ── Padding global mobile ──────────────────
     * Se sobreescribe --tg-pad a 20px para que
     * todas las secciones que usan var(--tg-pad)
     * reduzcan su sangría automáticamente.
     * Esto reemplaza los padding-left/right
     * individuales por sección que estaban
     * dispersos en el original.
    ─────────────────────────────────────────── */
    :root { --tg-pad: 20px; }

    /* ── HERO ─ migrado a Tailwind (ver app.css + homepage.php) */


    /* ── SERVICES (Carrusel horizontal) ─────── */
    /*
     * Fondo explícito + padding reducido.
     * Los dots van encima del carrusel, no debajo,
     * así que el order visual es: dots → carrusel.
     */
    .services {
        background-color: var(--tg-black) !important;
        padding-top: 32px;
        padding-bottom: 32px;
    }
    .services__row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0;
        margin-bottom: 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .services__row::-webkit-scrollbar { display: none; }

    .services__col {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: start;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .services__icon { width: 56px; height: 56px; }
    .services__text { font-size: 22px !important; max-width: 300px; }

    /* Dots de paginación del carrusel services */
    .services__dots {
        display: flex !important;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        margin: 0 0 20px;
    }

    .dot {
        width: 10px;
        height: 10px;
        background: var(--white);
        border-radius: 50%;
        opacity: 0.3;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .dot.active {
        background: var(--tg-blue);
        opacity: 1;
        transform: scale(1.2);
    }


    /* ── FLOTILLA ───────────────────────────── */
    /*
     * Fondo explícito: evita que el background del tema
     * WordPress se filtre en los laterales. Padding
     * vertical reducido para no generar hueco innecesario.
     */
    .flotilla {
        background-color: var(--tg-black) !important;
        padding-top: 40px;
        padding-bottom: 24px;
    }

    .flotilla__grid { grid-template-columns: 1fr; }

    .flotilla__card {
        aspect-ratio: 4/3;
        margin-top: 0 !important; /* Elimina el desfase artístico de desktop */
        margin-bottom: 16px;
    }

    .flotilla__card-content { bottom: 28px; left: 20px; }
    .flotilla__card-title {
        font-size: 26px;
        -webkit-text-stroke: 1.5px var(--white);
    }


    /* ── INCLUYE (Carrusel horizontal) ──────── */
    .incluye__header { grid-template-columns: 1fr; }

    /*
     * Fondo explícito para cubrir cualquier fondo
     * del tema padre (WordPress) que se filtre.
     * El padding vertical se reduce para no generar
     * espacio innecesario entre secciones.
     */
    .incluye {
        background-color: var(--tg-black) !important;
        padding-top: 40px;
        padding-bottom: 0; /* El grid ya tiene padding-bottom propio */
    }

    /*
     * El wrapper sangra hasta los bordes del viewport
     * con márgenes negativos compensados por padding.
     */
    .incluye__carousel-wrapper {
        margin: 0 -20px;
        padding: 0 20px;
    }

    .incluye__grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        /* padding-bottom mínimo — solo para que el scroll
           no corte la sombra inferior de las cards */
        padding-bottom: 4px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .incluye__grid::-webkit-scrollbar { display: none; }

    /* Cada card ocupa 85% — deja ver el inicio de la siguiente */
    .incluye__card {
        flex: 0 0 85%;
        min-width: 85%;
        scroll-snap-align: center;
        height: 480px;
    }

    /* Flechas de navegación del carrusel incluye */
    .incluye__nav {
        display: flex;
        justify-content: center;
        gap: 40px;
        /* Margen reducido: el espacio visual ya lo da
           el padding-top de la sección siguiente */
        margin-top: 16px;
        margin-bottom: 0;
    }

    .incluye__nav-btn {
        background: none;
        border: none;
        color: var(--white);
        width: 40px;
        height: 40px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: opacity 0.3s;
        padding: 0;
    }
    .incluye__nav-btn svg    { width: 32px; height: 32px; }
    .incluye__nav-btn:active { opacity: 0.5; }


    /* ── PROTOCOLO (Carrusel horizontal) ─────── */
    .tguard-proto-section {
        /* Fondo explícito y padding vertical ajustado */
        background-color: var(--tg-black) !important;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .tguard-proto-container { grid-template-columns: 1fr; gap: 24px; }
    .tguard-proto-header    { position: static; }

    /*
     * Resetea el margin de Zeplin (65.8px arriba) que
     * en mobile genera un espacio enorme antes del título.
     */
    .tguard-proto-title {
        width: 100% !important;
        max-width: 370px;
        margin: 0 0 16px 0 !important; /* Limpio, sin el 65.8px de desktop */
    }

    .tguard-proto-steps {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 0;
        padding: 0;
        width: 100%; /* Usa el ancho del contenedor, no 100vw */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .tguard-proto-steps::-webkit-scrollbar { display: none; }

    /* La línea vertical del timeline no aplica en carrusel */
    .tguard-proto-line { display: none; }

    .tguard-proto-item {
        flex: 0 0 100%;
        min-width: 100%;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .tguard-proto-card {
        width: 100%;
        max-width: 330px;
        background: #2a2a2a;
        padding: 32px 24px;
        border-radius: 12px;
        /* Resetea transform y opacity de desktop */
        transform: none !important;
        opacity: 1 !important;
    }

    /* Dots de paginación del carrusel protocolo */
    .tguard-proto-dots-wrapper {
        display: flex;
        justify-content: center;
        /* Margen contenido — no genera espacio extra */
        margin-top: 24px;
        margin-bottom: 0;
    }

    .proto-dots {
        display: flex;
        gap: 12px;
    }

    .proto-dot {
        width: 8px;
        height: 8px;
        background: var(--white);
        border-radius: 50%;
        opacity: 0.3;
        transition: all 0.3s ease;
    }
    .proto-dot.active {
        background: var(--tg-blue);
        opacity: 1;
        transform: scale(1.2);
    }


    /* ── NOTICIAS ───────────────────────────── */
    /*
     * Fondo explícito + padding reducido.
     * El margin-top del gap del grid ya da
     * suficiente respiración entre imagen y texto.
     */
    .noticias-section {
        background-color: var(--tg-black) !important;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .noticias-grid       { grid-template-columns: 1fr; gap: 24px; }
    /* Elimina el desfase artístico (no funciona en 1 columna) */
    .noticia-card:first-child { margin-top: 0; }
    .noticia-card__img   { margin-bottom: 16px; } /* Reducido de 24px */
    .noticia-card__title { font-size: 24px; }
    .noticia-card__text  { font-size: 16px; }


    /* ── CTA ────────────────────────────────── */
    .cta-section {
        background-color: var(--tg-black) !important;
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .cta-title  { font-size: clamp(22px, 8vw, 40px) !important; margin-bottom: 32px !important; }
    .cta-button { width: min(280px, 90vw); font-size: 16px; }


    /* ── FAQ ────────────────────────────────── */
    /*
     * Fondo explícito para que el tema WP no filtre
     * su color de fondo entre secciones.
     */
    .faq-section {
        background-color: var(--tg-black) !important;
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .Qu-niveles-de-blindaje-manejan { font-size: 20px; }
    .faq-header { padding: 20px 0; }
    .Trabajamos-con-dos-niveles-de-blindaje-Nivel-III-Plus-proteccin-ideal-para-operacin-urbana-y-tr {
        font-size: 16px !important;
    }
}


/* ─────────────────────────────────────────────
   15. RESPONSIVE — 480px (Small Mobile)
   ─ Ajustes mínimos para pantallas muy pequeñas.
     Solo tipografías que necesitan ser aún menores.
     Los paddings de sección ya están definidos en §14.
───────────────────────────────────────────── */
@media (max-width: 480px) {
    h2,
    .flotilla__title,
    .incluye__title,
    .Preguntas-frecuentes,
    .ltimas-noticias {
        font-size: clamp(28px, 8vw, 48px) !important;
    }

    p { font-size: 18px; }

    .flotilla__card-title  { font-size: 20px; }
    .incluye__card-title   { font-size: 18px; }
    .noticia-card__title   { font-size: 20px; }
}


/* ═══════════════════════════════════════════════════════════════
   3. FOOTER
   ═══════════════════════════════════════════════════════════════ */
#tguard-footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 70px 170px 40px;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Michroma', sans-serif;
    font-size: 48px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex: 0 0 auto;
    margin-right: auto;
}

.footer-col {
    flex: 0 0 auto;
    min-width: 120px;
}

.footer-col-title {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 25px;
}

.footer-copy {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

.footer-aviso a {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════════
   8. FOOTER
   ═══════════════════════════════════════════════════════════════ */
#tguard-footer {
    background-color: #0a0a0a;
    color: #fff;
    padding: 70px 170px 40px;
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: 'Michroma', sans-serif;
    font-size: 48px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    flex: 0 0 auto;
    margin-right: auto;
}

.footer-col {
    flex: 0 0 auto;
    min-width: 120px;
}

.footer-col-title {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 25px;
}

.footer-copy {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

.footer-aviso a {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER — MOBILE (≤768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    #tguard-footer {
        padding: 48px 24px 32px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 48px;
        margin-bottom: 48px;
    }

    .footer-logo {
        font-size: 13vw;
        letter-spacing: 1px;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 8px;
        text-align: center;
        flex: 0 0 auto;
    }

    .footer-col {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .footer-col-title {
        text-align: center;
        margin-bottom: 28px;
    }

    .footer-col ul {
        align-items: center;
        gap: 16px;
        padding: 0;
        margin: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        border-top: none;
        padding-top: 0;
        text-align: center;
    }

    .footer-aviso {
        order: -1;
    }

    .footer-copy {
        text-align: center;
    }
}
