/* ==========================================================================
   SECCIÓN HERO - REDES CONTRA INCENDIO (INGEFULLER)
   Ajustado para Header de 100px | Sin Scroll Horizontal | Botón Corregido
   ========================================================================== */

/* 1. Reset de seguridad para evitar scroll lateral */
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 2. Contenedor Principal Hero */
#hero-scanner.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #050505;
    /* Suma de altura de header (100px) + respiro visual */
    padding-top: 140px !important; 
    padding-bottom: 80px;
    overflow: hidden; 
    box-sizing: border-box;
}

/* 3. Grid de Contenido (Asegura separación de los bordes) */
.hero__grid {
    width: 100% !important;
    max-width: 1400px !important; /* Ancho máximo para pantallas grandes */
    margin: 0 auto !important;
    padding-left: 5% !important;  /* Separa el texto del borde izquierdo */
    padding-right: 5% !important; /* Separa el contenido del borde derecho */
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.hero__content {
    max-width: 900px; /* Limita el largo de las líneas de texto */
    width: 100%;
}

/* 4. Capas del Escáner Técnico */
.hero__scanner-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero__layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero__layer--normal {
    background-image: url("../../assets/img/rcihero.webp");
    filter: brightness(0.3) grayscale(0.2);
}

.hero__layer--technical {
    filter: brightness(0.8) contrast(1.2) saturate(1.5);
    clip-path: circle(0px at center); 
    z-index: 2;
}

/* 5. Telemetría e Indicadores */
.hero__telemetry {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid #ff0012;
    width: fit-content;
    backdrop-filter: blur(5px);
}

.telemetry__label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #579DCC;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.telemetry__value {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
}

/* 6. Textos y Tipografía */
.hero__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    font-size: clamp(1.8rem, 4vw, 2.7rem) !important;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
}

.text-highlight {
    color: #ff0012;
    display: inline;
}

.hero__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.2rem) !important;
    color: #F8B628;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.4;
}

.hero__copy p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.hero__quote {
    font-weight: 700;
    border-left: 3px solid #ff0012;
    padding-left: 20px;
    margin: 30px 0 !important;
    font-style: italic;
    color: #ffffff;
}

/* 7. Botón Principal (Transformado de simple link) */
.btn--primary {
    display: inline-block;
    background-color: #ff0012 !important; /* Verde de seguridad */
    color: #ffffff !important;
    padding: 16px 32px !important;
    text-decoration: none !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(107, 0, 7);
    border: none;
    text-align: center;
}

.btn--primary:hover {
    background-color: #a8000b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(107, 0, 7);
}

/* 8. Indicador de Estado y Coordenadas */
.hero__actions {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.hero__status-indicator {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #00FF41;
    border-radius: 50%;
    box-shadow: 0 0 10px #00FF41;
    animation: pulseStatus 2s infinite;
}

@keyframes pulseStatus {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero__coordinates {
    position: absolute;
    bottom: 30px;
    right: 5%;
    text-align: right;
    font-family: monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.2);
    z-index: 5;
    white-space: nowrap;
    pointer-events: none;
}

/* 9. Media Queries */
@media (max-width: 768px) {
    #hero-scanner.hero {
        padding-top: 110px !important; /* Menos espacio superior */
        padding-bottom: 50px;
        min-height: auto; /* Dejamos que el contenido mande en móvil */
    }
    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .hero__telemetry {
        display: none !important; 
    }
    .hero__title {
        font-size: 1.6rem !important; /* Reducción de H1 */
        line-height: 1.2;
        margin-bottom: 1rem;
        margin-top: 35px !important; /* Añadimos un poco de aire arriba del título */
    }
    .hero__title br {
        display: none; /* Evitamos saltos de línea forzados en móvil */
    }
    .hero__subtitle {
        font-size: 0.95rem !important; /* Más legible, menos masivo */
        margin-bottom: 1.5rem;
        line-height: 1.4;
        margin-top: 35px !important; /* Añadimos un poco de aire arriba del título */
    }
    .hero__quote {
        font-size: 0.9rem;
        margin: 20px 0 !important;
        padding-left: 15px;
        margin-top: 35px !important; /* Añadimos un poco de aire arriba del título */
    }
    .btn--primary {
        width: 80%;
        padding: 18px 20px !important; /* Más padding vertical para "touch area" */
        font-size: 0.8rem !important;
        line-height: 1.3;
        white-space: normal; /* Permite que el texto baje si es muy largo */
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 99px; /* Bordes más modernos para móvil */
        margin-top: 35px !important; /* Añadimos un poco de aire arriba del título */
    }
    .hero__actions {
        margin-top: 1.5rem;
        gap: 20px;
    }
    .hero__status-indicator {
        font-size: 0.7rem;
        width: 100%;
        justify-content: center; /* Centramos el indicador debajo del botón */
    }
    .hero__coordinates {
        display: none; /* Ocultamos coordenadas en móvil para limpiar la visual */
    }
}


/* ==========================================================================
   SECCIÓN: AUDITORÍA DE REALIDAD (PROBLEM AWARENESS)
   Corrección de márgenes y escala de tarjetas
   ========================================================================== */

.problem-awareness {
    background-color: #0a0a0a; 
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Aseguramos que el padding de la sección no choque con el del contenedor */
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

/* --- Contenedor con alineación al Hero --- */
.problem-awareness .container {
    width: 100%;
    max-width: 1400px; /* Limita el ancho para que no se desparrame */
    margin: 0 auto;
    padding-left: 5% !important;  /* Margen idéntico al del Hero */
    padding-right: 5% !important; /* Margen idéntico al del Hero */
    box-sizing: border-box;
}

/* --- Encabezado de Sección --- */
.problem-header {
    max-width: 800px;
    margin-bottom: 4rem;
    text-align: left;
}

.section-tag {
    display: inline-block;
    color: #579DCC; 
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 1.2rem;
    border-left: 3px solid #ff0012;
    padding-left: 12px;
    margin-top: 1rem;
    align-self: flex-start;
}

.failure-title-block {
    text-align: center;
    width: 100%;
    max-width: 900px; /* Evita que el texto sea demasiado ancho */
    margin: 0 auto;   /* Centra el contenedor mismo */
}

.problem-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.text-red {
    color: #ff0012;
}

.problem-lead {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 700px;
}

/* --- Grid de Riesgos (3 Columnas Controladas) --- */
.risk-grid {
    display: grid;
    /* Forzamos 3 columnas iguales para que no ocupen todo el ancho vertical */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin-bottom: 4rem;
}

.risk-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Evita que las tarjetas se vean "enanas" o muy estiradas */
}

/* Efecto Glow al pasar el mouse (opcional, combina con tu botón rojo) */
.risk-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: #ff0012;
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(255, 0, 18, 0.1);
}

.risk-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.risk-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.07);
}

.risk-icon {
    font-size: 1.8rem;
    color: #ff0012;
}

.risk-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #ffffff;
    line-height: 1.3;
}

.risk-card__text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1; /* Empuja el meta hacia abajo */
}

.risk-card__meta {
    font-family: monospace;
    font-size: 0.7rem;
    color: #579DCC;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Footer de Sección --- */
.problem-footer {
    text-align: center;
    margin-top: 2rem;
}

.problem-footer p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
}

.technical-divider {
    width: 50px;
    height: 3px;
    background-color: #ff0012;
    margin: 0 auto;
}

/* --- Ajustes Responsivos --- */
@media (max-width: 1100px) {
    .risk-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en pantallas medianas */
    }
}

@media (max-width: 768px) {
    .risk-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
    
    .problem-awareness .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .problem-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   SECCIÓN 3: POR QUÉ FALLAN LAS REDES (CORREGIDO 10X)
   ========================================================================== */

.system-failure {
    background-color: #050505;
    overflow: hidden;
    width: 100%;
}

.system-failure .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 5% !important;
    padding-right: 5% !important;
    box-sizing: border-box;
}

/* --- Cabecera Centrada --- */
.failure-header {
    padding-top: 5rem; /* Más espacio superior */
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el bloque de texto */
}

.failure-title-block {
    text-align: center;
    width: 100%;
}

.failure-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 auto 1.5rem auto;
    display: block;
}

.failure-bridge-copy {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 auto;
    max-width: 550px;
    line-height: 1.6;
    margin-bottom: -20px;
}

/* --- Diagrama y Nodos (Ajuste de Ancho) --- */
.flow-diagram-wrapper {
    position: relative;
    padding: 3rem 0;
    margin: 0 auto;
    width: 100%;
    overflow: visible; /* Permitir que los resplandores se vean */
}

/* La tubería base (Alineada al centro de los círculos) */
.main-pipe-line {
    position: absolute;
    top: 80px; /* Ajustado para cruzar los círculos por el medio */
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff0012;
    z-index: 0;
}

.flow-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #ff0012;
    box-shadow: 0 0 15px #ff0012;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.failure-nodes-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1px; /* Espacio mínimo controlado */
    width: 100%;
    box-sizing: border-box;
}

.failure-node {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* El círculo del nodo - SIN PUNTO NEGRO */
.node-marker {
    width: 60px;/* Tamaño optimizado */
    height: 60px;
    background: #0a0a0a;
    border: 2px solid #ff0012; /* Asegura el borde rojo */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ff0012;            /* Asegura el número rojo */
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-shrink: 0;
}

/* Eliminamos el ::after (punto negro) */
.node-marker::after {
    display: none;
}

.node-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem; 
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.8rem;
    min-height: 2rem;
    line-height: 1.2;
    width: 100%;
}

.node-description {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem; 
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
    max-width: 160px; /* Evita que el texto choque con el vecino */
}

/* --- Estados Activos --- */
.failure-node.active .node-marker {
    border-color: #ff0012;
    box-shadow: 0 0 15px rgba(255, 0, 18, 0.3);
    background: #111;
}

/* El último nodo tiene pulso especial */
.node-critical.active .node-marker {
    background: #ff0012;
    color: #ffffff;
    border-color: #ff0012;
    animation: pulseCritical 1.5s infinite;
}

@keyframes pulseCritical {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 18, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 0, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 18, 0); }
}

/* --- Footer Insight --- */
.failure-insight-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    margin-bottom: 40px;
}

.insight-box {
    padding: 1.2rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 0, 18, 0.7);
    border-radius: 999px;
}

.insight-box p {
    font-family: monospace;
    font-size: 1rem;
    color: rgb(255, 255, 255);
    margin: 0;
}

.insight-box strong {
    color: rgba(255, 0, 18, 0.7);
}

/* --- Responsive Móvil --- */
@media (max-width: 992px) {
    .failure-nodes-container {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
        gap: 2.5rem;
    }
    
    .main-pipe-line {
        left: 52px;
        width: 1px;
        height: 100%;
        top: 10px;
    }

    .failure-node {
        flex-direction: row;
        text-align: left;
        gap: 1.5rem;
    }

    .node-marker {
        margin-bottom: 0;
    }
}


/* ==========================================================================
   SECCIÓN 4: ENFOQUE INGEFULLER (CERTEZA TÉCNICA)
   ========================================================================== */

.ingefuller-approach {
    background-color: #0a0a0a; /* Un tono ligeramente distinto para separar secciones */
    color: #ffffff;
    overflow: hidden;
}

.ingefuller-approach .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 5% !important;
    padding-right: 5% !important;
}

.approach-grid {
    display: grid;
    grid-template-columns: 45% 55%; /* El texto ocupa un poco menos del centro */
    gap: 0; 
    align-items: center;
    position: relative;
}

/* --- Columna de Texto --- */
.approach-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 2.5rem;
}

.approach-copy {
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.highlight-text {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Listado de Enfoque (Look Técnico) */
.focus-points {
    margin: 3rem 0;
}

.focus-intro {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ff0012;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.focus-list {
    list-style: none;
    padding: 0;
}

.focus-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.focus-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #ff0012;
    font-size: 0.9rem;
    margin-top: 3px;
}

.focus-text {
    font-size: 0.95rem;
    font-weight: 400;
}

/* Footer del Manifiesto */
.approach-footer {
    margin-top: 2rem;
    border-left: 3px solid #ff0012;
    padding-left: 1.5rem;
}

.no-fear {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.3rem;
    opacity: 0.6;
}

.certainty {
    font-size: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
}

/* --- Columna Visual (El Escáner) --- */
.approach-visual {
    position: relative;
    width: 120%; /* Lo hacemos más ancho para que sobresalga */
    height: 100%;
    margin-left: -10%; /* Lo empujamos hacia la derecha invadiendo un poco el centro */
    mask-image: linear-gradient(to right, transparent 0%, black 30%); /* Desvanece el borde izquierdo de la imagen */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

.visual-container {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.base-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0) contrast(1.2) brightness(0.4);
}

.certainty-layer {
    z-index: 2;
    clip-path: circle(0px at center);
    transition: clip-path 0.1s ease-out;
}

.approach-content {
    position: relative;
    z-index: 10; /* Siempre por encima de la imagen */
    padding-right: 2rem;
}

.certainty-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* UI Técnica sobre la imagen */
.tech-overlay {
    position: relative;
    width: 100%;
    height: 100%;
}

.tech-tag {
    position: absolute;
    background: rgba(255, 0, 18, 0.9);
    color: white;
    padding: 4px 10px;
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: bold;
    pointer-events: none;
    z-index: 3;
}

.tag-1 { top: 20%; left: 10%; }
.tag-2 { bottom: 30%; right: 15%; }
.tag-3 { top: 50%; left: 40%; }

/* --- Responsive --- */
@media (max-width: 992px) {
    .approach-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .approach-visual {
        order: -1; /* La imagen sube en móvil para dar contexto */
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   SECCIÓN 5: QUÉ EVALUAMOS - EXPERIENCIA CINEMÁTICA 3D (ESTILO BARBERÍA)
   ========================================================================== */

.ingefuller-evaluacion {
    background-color: #050505;
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

/* --- Encabezado y Texto de Guía --- */
.evaluacion-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
}

.services-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.evaluacion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.evaluacion-list ul {
    list-style: none;
    padding: 0;
}

.evaluacion-list li {
    color: #e0e0e0;
    font-size: 1.05rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.evaluacion-list li i {
    color: #ff0012;
    filter: drop-shadow(0 0 5px rgba(255, 0, 18, 0.5));
}

.evaluacion-footer-text {
    text-align: center;
    margin-top: 50px;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    display: flex; 
    flex-direction: row; /* Cambiamos a fila para que esté a la izquierda */
    justify-content: center;
    align-items: center; /* Esto centra el icono verticalmente con el bloque de texto */
    gap: 0; /* Quitamos el gap para controlarlo manualmente con el margin del icono */
}

.icon-fire {
    color: #ff0012;
    font-size: 2.5rem;
    margin-bottom: 10px;
    margin-right: 20px;
    position: relative;
    top: 23px; /* Si sientes que aún le falta bajar un poco, ajusta este valor */
    filter: drop-shadow(0 0 8px rgba(255, 0, 18, 0.6)); /* Efecto de calor/brillo */
    animation: flicker 1.5s infinite alternate; /* Opcional: animación de parpadeo */
}

/* Animación opcional para que el fuego "viva" */
@keyframes flicker {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.1); opacity: 1; }
}

.evaluacion-footer-text strong {
    display: inline-block; /* Permite que el padding y el border funcionen mejor */
    border-bottom: 3px solid #ff0012; /* Tu línea roja de 2px */
    padding-bottom: 2px; /* Espacio sutil entre el texto y la línea */
    font-weight: 700;
}

/* --- Contenedor Principal del Carrusel (Ajustado para flujo lineal) --- */
.barber-carousel-container {
    position: relative;
    width: 100%;
    height: 420px; /* reducido para imágenes más pequeñas */
    display: flex;
    align-items: center;
    overflow: hidden; /* Oculta lo que sale de pantalla */
    justify-content: center;
}

.barber-carousel-track {
    display: flex;
    gap: 36px; /* Espacio entre imágenes ligeramente reducido */
    padding: 16px 0;
    will-change: transform;
    /* El movimiento infinito se gestiona por JS para precisión total */
}

/* --- Estilo de las Tarjetas (Items) --- */
/* Forzamos que como máximo 3 imágenes estén visibles en escritorio usando min() para controlar el tamaño */
.barber-item {
    flex: 0 0 min(320px, calc((100% - 72px) / 3)); /* Máx 3 visibles, ancho tope 320px */
    max-width: 320px;
    min-width: 180px; /* Evita tamaños demasiado pequeños */
    height: 360px; /* altura reducida */
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    background: #111;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    filter: brightness(0.45) ;
    -webkit-box-reflect: below 12px linear-gradient(transparent, transparent, rgba(255,255,255,0.03));
}

.barber-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

/* Overlay de Texto */
.barber-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px 16px; /* padding reducido */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    opacity: 0;
    transition: 0.35s ease;
}

.overlay-text {
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- RESALTE CENTRAL (VÍA JS) --- */
/* Esta clase se aplica automáticamente a la imagen que cruza el centro */
.barber-item.highlight {
    filter: brightness(1) grayscale(0%);
    transform: scale(1.03); /* escala un poco menor para que no ocupe demasiado */
    border: 2px solid #ff0012;
    box-shadow: 0 18px 40px -10px rgba(255, 0, 18, 0.35);
    z-index: 10;
}

.barber-item.highlight .barber-overlay {
    opacity: 1;
}

/* --- HOVER CONTROLADO --- */
.barber-item:hover {
    transform: scale(1.08) translateY(-10px) !important;
    filter: brightness(1.1) grayscale(0%) !important;
    border: 2px solid #ff0012 !important;
    box-shadow: 0 30px 60px -15px rgba(255, 0, 18, 0.6) !important;
    z-index: 100 !important;
}

.barber-item:hover .barber-overlay {
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    /* En pantallas medianas mostrar 2 items como máximo */
    .barber-item { flex: 0 0 calc((100% - 40px) / 2); height: 380px; }
}

@media (max-width: 768px) {
    .barber-carousel-container { height: 450px; }
    /* En móvil mostramos aproximadamente 1 item completo */
    .barber-item { flex: 0 0 90%; height: 320px; }
    .evaluacion-footer-text { padding: 5px; font-size: 0.9rem; }
}

/* ==========================================================================
   SECCIÓN 6: RIESGOS - INFOGRAFÍA EN V (CLASES ÚNICAS: risk-zigzag)
   ========================================================================== */

/* Contenedor principal con ID y clase única */
#riesgos-incendio-zigzag.risk-zigzag-section {
    background-color: #050505;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

/* Fondo de Cuadrícula Técnica Independiente */
.risk-zigzag-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.risk-zigzag-header {
    text-align: center;
    margin-bottom: 90px;
    position: relative;
    z-index: 20;
}

/* Mejorar espaciado en encabezado de la sección 6 */
.risk-zigzag-header {
    padding-top: 6px; /* pequeño respiro superior */
}

.risk-zigzag-header .section-tag {
    display: inline-block;
    margin-bottom: 16px; /* separa tag del título */
}

.risk-zigzag-header .risk-main-title {
    line-height: 1.25; /* más aire entre líneas */
    margin-bottom: 18px; /* separación con el subtítulo */
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.risk-zigzag-header .risk-subtitle {
    margin-top: 6px;
    margin-bottom: 28px; /* separa subtítulo del mapa/cta */
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6; /* lectura más cómoda */
    font-size: 1.08rem;
}

/* --- Ajustes de color y CTA para la Sección 6 --- */
/* Título principal: blanco puro */
.risk-zigzag-header .risk-main-title {
    color: #ffffff;
    font-weight: 900;
    margin: 0 0 10px 0;
}

/* Subtítulo: blanco un poco más oscuro / tirando a gris */
.risk-zigzag-header .risk-subtitle {
    color: rgba(255, 255, 255, 0.78); /* ligeramente apagado */
    font-weight: 600;
    margin: 0 0 18px 0;
}

/* Botón CTA con técnicas FOMO: destacado, urgencia y badge */
.risk-zigzag-cta {
    display: inline-block;
    background: linear-gradient(90deg, #ff6246 0%, #ff0012 100%);
    color: #ffffff;
    padding: 16px 26px;
    border-radius: 10px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.6px;
    box-shadow: 0 12px 30px rgba(255, 0, 18, 0.22);
    border: 1px solid rgba(255,255,255,0.04);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
    position: relative;
    cursor: pointer;
    margin-top: -12px; /* eleva ligeramente el botón respecto al contenedor */
}

/* Quitar subrayado y asegurar que no se vea como link sino como botón */
.risk-zigzag-cta,
.risk-zigzag-cta * {
    text-decoration: none !important;
}

.risk-zigzag-cta {
    text-align: center;
}

.risk-zigzag-cta:focus {
    outline: 3px solid rgba(255, 0, 18, 0.18);
    outline-offset: 3px;
}

.risk-zigzag-cta:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(255, 0, 18, 0.32);
}

/* Badge FOMO (ej. "Cupos limitados" / "Inspección prioritaria") */
.risk-zigzag-cta::after {
    content: "Cupos limitados";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ffffff;
    color: #ff0012;
    font-size: 0.65rem;
    padding: 5px 8px;
    border-radius: 6px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transform-origin: center;
}

@keyframes _rz_fomoPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

/* Clase extra para activar pulso en badge si se quiere más urgencia */
.risk-zigzag-cta.fomo::after {
    animation: _rz_fomoPulse 2s ease-in-out infinite;
}

/* Pequeña nota/linea secundaria dentro del CTA (opcional) */
.risk-zigzag-cta .cta-note {
    display: block;
    font-size: 0.78rem;
    opacity: 0.95;
    margin-top: 8px;
    font-weight: 700;
}

/* Ajustes responsivos del header para móviles */
@media (max-width: 1100px) {
    .risk-zigzag-header { margin-bottom: 48px; }
    .risk-zigzag-header .risk-main-title { font-size: 1.45rem; line-height: 1.22; }
    .risk-zigzag-header .risk-subtitle { font-size: 0.98rem; margin-bottom: 22px; }
    .risk-zigzag-cta { padding: 14px 20px; }
}

/* --- Contenedor del Mapa en V --- */
.risk-zigzag-map-area {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    height: 750px; /* Espacio para el recorrido en V */
}

/* --- SVG de Conexión Exclusivo --- */
.risk-zigzag-svg-connector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.risk-zigzag-path-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 3;
}

.risk-zigzag-path-flow {
    fill: none;
    stroke: #ff0012;
    stroke-width: 4;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000; /* Se animará con JS */
    filter: drop-shadow(0 0 12px rgba(255, 0, 18, 0.9));
    transition: stroke-dashoffset 0.1s linear;
}

/* --- Nodos con Nomenclatura Única --- */
.risk-zigzag-item {
    position: absolute;
    width: 260px; /* Reducido ligeramente para mayor seguridad */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 15;
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.9); /* Centrado absoluto sobre el punto */
}

.risk-zigzag-item.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.risk-zigzag-icon-box {
    width: 70px;
    height: 70px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #444;
    margin-bottom: 20px;
    transition: all 0.5s ease;
    position: relative;
}

.risk-zigzag-item.is-active .risk-zigzag-icon-box {
    border-color: #ff0012;
    color: #ff0012;
    box-shadow: 0 0 25px rgba(255, 0, 18, 0.4);
    background: rgba(255, 0, 18, 0.05);
}

.risk-zigzag-info h3 {
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.risk-zigzag-info p {
    font-size: 0.95rem;
    color: #777;
    line-height: 1.5;
    transition: color 0.4s;
}

.risk-zigzag-item:hover .risk-zigzag-info p {
    color: #ccc;
}

/* Punto de anclaje visual para la línea */
.risk-zigzag-anchor {
    width: 14px;
    height: 14px;
    background: #222;
    border-radius: 50%;
    margin-top: 20px;
    border: 3px solid #050505;
    z-index: 10;
}

.risk-zigzag-item.is-active .risk-zigzag-anchor {
    background: #ff0012;
    box-shadow: 0 0 15px #ff0012;
}

/* --- Posicionamiento en V (Irrepetible) --- */
/* Nodo 1: Inicio (0, 50) */
.rz-pos-1 { top: 10%;   left: 5%; } 
.rz-pos-2 { top: 30%;  left: 23%; } 
.rz-pos-3 { top: 70%;  left: 35%; } 
.rz-pos-4 { top: 70%;  left: 65%; }
.rz-pos-5 { top: 30%;  left: 77%; } 
.rz-pos-6 { top: 10%;   left: 93%; }

/* Estilo especial para los nodos del fondo (Miedo psicológico) */
.risk-zigzag-item.critical-depth.is-active .risk-zigzag-icon-box {
    background: #ff0012;
    color: #fff;
    box-shadow: 0 0 40px rgba(255, 0, 18, 0.7);
}

.rz-pos-1 .risk-zigzag-info, 
.rz-pos-6 .risk-zigzag-info {
    width: 200px; 
}

.risk-zigzag-bottom-text {
    text-align: center;
    margin-top: 36px; /* reducido para acercar el CTA */
    padding: 28px 24px; /* menos padding para evitar sensación de distancia */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Reglas finales para asegurar centrado y espacio adecuado entre título y subtítulo */
.risk-zigzag-header .risk-main-title {
    margin-bottom: 26px !important; /* más separación visual */
}

.risk-zigzag-header .risk-subtitle {
    text-align: center !important; /* forzar centrado */
    margin-top: 10px !important;   /* espacio superior adicional */
    margin-bottom: 34px !important;/* espacio inferior para separar del mapa/CTA */
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Blindado --- */
@media (max-width: 1100px) {
    .risk-zigzag-map-area { height: auto; display: flex; flex-direction: column; gap: 60px; padding: 0 20px; }
    .risk-zigzag-item { position: relative !important; left: auto !important; top: auto !important; width: 100%; flex-direction: row; text-align: left; gap: 25px; opacity: 1; transform: none; }
    .risk-zigzag-svg-connector, .risk-zigzag-anchor { display: none; }
    .risk-zigzag-icon-box { flex-shrink: 0; margin-bottom: 0; }
}

/* ==========================================================================
   SECCIÓN 7: DIAGNÓSTICO PROFESIONAL (ESTÉTICA TÉCNICA 10X)
   ========================================================================== */

#diagnostico-profesional.diag-pro-section {
    background-color: #080808;
    position: relative;
    overflow: hidden;
}

#diagnostico-profesional .container {
    max-width: 1200px; /* Evita que se estire demasiado en pantallas gigantes */
    margin: 0 auto;
    padding: 0 40px;  /* Espacio de seguridad a los lados (Izquierdo y Derecho) */
    margin-bottom: 40px;
}

.diag-pro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

/* --- Bloque de Contenido --- */
.diag-pro-tag {
    color: #ff0012;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.diag-pro-title {
    font-size: 3rem;
    color: #a10e0e; /* Color base apagado */
    line-height: 1.1;
    margin-bottom: 30px;
}

.diag-pro-lead {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* --- Lista Técnica --- */
.diag-pro-list {
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
}

.diag-pro-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #fff;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.diag-pro-list li:hover {
    transform: translateX(10px);
}

.diag-pro-list-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 0, 18, 0.1);
    border: 1px solid #ff0012;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0012;
    font-size: 0.9rem;
}

/* --- El Sello de Confianza --- */
.diag-pro-disclaimer {
    position: relative;
    padding-top: 20px;
}

.sello-no-venta {
    display: inline-block;
    border: 3px solid #ff0012;
    color: #ff0012 !important;
    background: rgba(255, 0, 18, 0.05); /* Un fondo muy sutil para resaltarlo */
    padding: 5px 15px;
    font-weight: 900;
    font-size: 1.4rem;
    text-transform: uppercase;
    transform: rotate(-5deg);
    border-radius: 4px;
    margin-bottom: 15px;
    opacity: 0.8;
    filter: drop-shadow(0 0 5px rgba(255, 0, 18, 0.3));
    font-family: 'Courier New', monospace; /* Look de máquina de escribir/sello */
}

/* --- Visualización del Reporte (Tablet) --- */
.diag-report-frame {
    background: #1a1a1a;
    border: 10px solid #333;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 50px 80px rgba(0,0,0,0.5);
    position: relative;
    z-index: 5;
}

.diag-report-screen {
    background: #000;
    border-radius: 20px;
    height: 450px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #444;
}

.report-header {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    font-size: 0.8rem;
    color: #444;
}

.diag-pro-disclaimer p {
    color: #aaaaaa !important; /* Gris claro para que sea legible en el fondo negro */
    font-size: 1.1rem;
    margin-top: 5px;
    font-weight: 400;
}

.report-status { color: #ff0012; display: flex; align-items: center; gap: 8px; }
.pulse-dot {
    width: 8px; height: 8px; background: #ff0012; border-radius: 50%;
    animation: diag-pulse 1.5s infinite;
}

/* Gráfico de Radar Simulado */
.report-graph-area {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-chart {
    width: 150px; height: 150px;
    border: 1px solid #222;
    border-radius: 50%;
    position: relative;
}

.radar-line {
    position: absolute; top: 50%; left: 50%; width: 100%; height: 1px;
    background: #222; transform-origin: left;
}
.line-1 { transform: rotate(0deg); }
.line-2 { transform: rotate(120deg); }
.line-3 { transform: rotate(240deg); }

.radar-shape {
    position: absolute; inset: 20px;
    background: rgba(255, 0, 18, 0.2);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    animation: radar-rotate 10s linear infinite;
}

/* Barras de Datos */
.report-data-footer { margin-top: 20px; }
.data-item { font-size: 0.7rem; color: #666; margin-bottom: 8px; }
.data-bar { width: 100%; height: 4px; background: #111; margin-top: 4px; }
.data-bar .fill { height: 100%; background: #ff0012; box-shadow: 0 0 10px #ff0012; }

/* --- CTA AREA --- */
.diag-pro-cta-area {
    margin-top: 80px;
    text-align: center;
}

.diag-pro-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: #ff0012;
    color: #fff;
    padding: 22px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.4s;
    box-shadow: 0 15px 30px rgba(255, 0, 18, 0.3);
}

.diag-pro-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 0, 18, 0.5);
    background: #e60010;
}

.diag-pro-microcopy {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #dadada;
    font-size: 0.95rem;
}

/* --- Animaciones --- */
@keyframes diag-pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
@keyframes radar-rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 992px) {
    .diag-pro-grid { grid-template-columns: 1fr; }
    .diag-pro-visual { order: -1; }
    .diag-pro-title { font-size: 2.2rem; }
    .diag-pro-microcopy { flex-direction: column; gap: 10px; }
    #diagnostico-profesional .container { padding: 0 25px;}
    .diag-pro-btn { font-size: 0.9rem; gap: 10px; }
}

/* ==========================================================================
   SECCIÓN 8: CIERRE ESTRATÉGICO - VERSIÓN FINAL 10X (CUADRO MANIFIESTO)
   ========================================================================== */

.final-impact-section {
    background-color: #050505;
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid #1a1a1a;
    font-family: 'Poppins', sans-serif; /* Coherencia con tus fuentes de Google */
}

/* --- GRUPO 1: TÍTULOS (FUERA DEL CUADRO) --- */
.final-group-header {
    margin-bottom: 50px;
}

.final-impacto-title {
    font-size: 3rem;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.text-glow-red {
    color: #ff0012;
    text-shadow: 0 0 15px rgba(255, 0, 18, 0.4);
    display: block;
    margin-top: 10px;
    text-transform: uppercase;
}

.final-sub-warning {
    color: #888;
    font-size: 1.3rem;
    margin: 0;
}

.underline-red {
    color: #ffffff;
    border-bottom: 2px solid #ff0012;
    padding-bottom: 2px;
    font-weight: 700;
}

/* --- GRUPO 2: EL CUADRO (ESTILO FOTO) --- */
.final-manifesto-box {
    border: 1px solid #444;
    width: 50%; /* Ocupa casi todo el ancho disponible */
    max-width: 1100px; /* Aumentamos el máximo para que quepan las líneas largas */
    margin: 0 auto 50px;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.final-manifesto-box:hover {
    border-color: #be0000;
    background: rgba(255, 0, 18, 0.02);
}

.manifesto-top {
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 400;
    /* --- EVITAR SALTO --- */
    white-space: nowrap; 
    overflow: visible; /* Asegura que no se corte si el box es pequeño */
}

.manifesto-top strong {
    color: #ffffff;
    font-weight: 700;
}

.manifesto-main-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ocupa todo el ancho del box */
    flex-wrap: nowrap; /* Evita que los elementos del flex se bajen */
}

.icon-small {
    color: #ff0012;
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px rgba(255, 0, 18, 0.6));
    animation: flicker-light 2s infinite alternate;
}

.manifesto-highlight {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
    /* --- LÍNEA CLAVE PARA EVITAR EL SALTO --- */
    white-space: nowrap; 
    display: inline-block;
}

/* --- GRUPO 3: ACCIÓN (FUERA DEL CUADRO) --- */
.final-group-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.btn-final-impact {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #ff0012;
    color: #fff;
    padding: 22px 55px;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(255, 0, 18, 0.3);
}

.btn-final-impact:hover {
    background: #e60010;
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(255, 0, 18, 0.5);
}

.btn-final-impact i {
    font-size: 1.8rem;
}

.final-microcopy {
    color: #555;
    font-size: 0.95rem;
    font-style: italic;
    max-width: 450px;
}

/* Animación sutil de pulso para el fuego */
@keyframes flicker-light {
    from { opacity: 0.8; transform: scale(1); }
    to { opacity: 1; transform: scale(1.1); }
}

/* --- RESPONSIVE --- */
/* ==========================================
   OPTIMIZACIÓN MÓVIL: REDES CONTRA INCENDIO
   (Manifiesto, Título y Botones)
   ========================================== */

/* ==========================================
   OPTIMIZACIÓN FINAL: MANIFIESTO REDES
   ========================================== */

@media (max-width: 768px) {
    /* 1. SECCIÓN GENERAL */
    .manifesto-section {
        padding: 50px 0 !important;
        overflow: hidden; /* Evita cualquier fuga visual */
    }

    /* 2. TÍTULO PRINCIPAL (NO HAY SEGUNDAS...) */
    .manifesto-section {
        font-size: 5rem !important; /* Tamaño reducido para que no rompa */
        padding: 0 20px !important; /* Padding lateral para que no toque bordes */
        line-height: 1.1;
        margin-bottom: 25px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .final-impacto-title {
        font-size: 2rem !important; /* Tamaño reducido para que no rompa */
        padding: 0 20px !important; /* Padding lateral para que no toque bordes */
        line-height: 1.1;
        margin-bottom: 25px;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    /* 3. CAJA DEL MANIFIESTO (EL BOX CENTRAL) */
    .final-manifesto-box {
        width: 85% !important;
        max-width: 400px;
        margin: 0 auto 30px auto !important;
        padding: 30px 20px !important;
        box-sizing: border-box !important; /* Vital */
        overflow: hidden !important; /* Corta cualquier fuga */
        display: block !important;
    }

    .manifesto-highlight, 
    .final-manifesto-box p,
    .final-manifesto-box strong {
        font-size: 1.1rem !important; /* Tamaño controlado */
        line-height: 1.4 !important;
        text-align: center !important;
        
        /* Estas 4 líneas fuerzan al texto a quedarse dentro */
        display: block !important;
        width: 100% !important;
        white-space: normal !important; 
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
    }

    /* 5. SUB-WARNING (HABLEMOS ANTES DE QUE...) */
    .final-sub-warning {
        font-size: 1.1rem !important; /* Reducción de tamaño */
        padding: 0 25px !important;
        line-height: 1.4;
        margin-bottom: 25px;
        text-align: center;
    }

    /* 6. BOTÓN (HABLAR CON UN INGENIERO) */
    .btn-final-impact {
        width: 70% !important; /* No ocupa todo el ancho, se ve más estético */
        max-width: 280px;
        margin: 0 auto;
        padding: 14px 20px !important; /* Padding equilibrado */
        font-size: 0.85rem !important; /* Texto más pequeño y técnico */
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 99px;
        gap: 10px;
    }

    /* 7. INDICADORES DE CONFIANZA (LOS ICONOS DE ABAJO) */
    .trust-indicators-manifesto {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrados para coherencia */
        gap: 12px;
        margin-top: 30px;
        padding: 0 20px;
    }

    .trust-item-manifesto {
        font-size: 0.8rem !important; /* Letra pequeña de apoyo */
        opacity: 0.8;
    }
    .final-microcopy{
        font-size: 0.9rem;
        padding: 10px;
    }
}

/* ==========================================================================
   SECCIÓN #7: DIAGNÓSTICO (DARK MODE & ESTRATEGIA 10X)
   ========================================================================== */

.diagnosis-section-dark {
    background-color: #01050a; /* Negro Industrial Ingefuller */
    padding: 140px 0;
    color: #ffffff;
    overflow: hidden;
    padding: 120px; /* Crea 20px de espacio interno en todos los lados */
}

.diagnosis-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;

    /* Explicación del degradado: 
       - Empieza blanco.
       - Apenas al 10% empieza a transformarse.
       - Al 50% ya es rojo sólido (#ff0012) y se mantiene así hasta el final. 
    */
    background: linear-gradient(to right, 
        #ffffff 0%, 
        #ffffff 10%, 
        #ff0012 50%, 
        #880009 100%
    );
    
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    
    display: inline-block;
}

.diagnosis-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: start;
}

/* --- BLOQUE DE TEXTO Y BADGE --- */
.section-badge {
    display: inline-block;
    color: #ff0012;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    border: 1px solid #ff0012;
    padding: 5px 15px;
    border-radius: 50px;
    margin-bottom: 25px;
}

.diagnosis-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 45px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.diagnosis-lead {
    font-size: 19px;
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 50px;
}

/* --- GRID DE BENEFICIOS (CARDS) --- */
.benefits-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 30px;
    border-radius: 12px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ff0012;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-num {
    position: absolute;
    top: 20px;
    right: 25px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.2);
    font-weight: 700;
}

.benefit-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.benefit-card-header i {
    color: #ff0012;
    font-size: 22px;
}

.benefit-card-header h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
}

.benefit-card p {
    font-size: 17px;
    line-height: 1.5;
    color: #a0aec0;
}

/* --- FRASE DE AUTORIDAD (ESTILO CENTRADO DE IMPACTO) --- */
.authority-quote-dark {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
}

.authority-quote-dark p {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    font-style: italic;
    line-height: 1.3;
    margin: 20px 0;
}

.quote-line-top, .quote-line-bottom {
    width: 80px;
    height: 4px;
    background: #ff0012;
    margin: 0 auto;
}

/* --- TARJETA DE FORMULARIO (MODERN WHITE) --- */
.diagnosis-card-inner {
    background: #ffffff;
    padding: 60px;
    border-radius: 16px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    color: #01050a;
    position: relative;
    overflow: hidden;
}

.card-header-v2 h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.card-header-v2 p {
    color: #718096;
    font-size: 15px;
    margin-bottom: 40px;
}

/* --- FORMULARIO Y CAMPOS --- */
.form-group-v2 {
    margin-bottom: 25px;
}

.form-group-v2 label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #4a5568;
}

.form-group-v2 input, 
.form-group-v2 select {
    width: 100%;
    padding: 16px;
    border: 2px solid #edf2f7;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.form-group-v2 input:focus,
.form-group-v2 select:focus {
    border-color: #ff0012;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 0, 18, 0.1);
}

/* --- CAMPO CONDICIONAL (OTRO ESCENARIO) --- */
.conditional-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
}

.conditional-field.show {
    max-height: 200px;
    opacity: 1;
    margin-top: 15px;
    margin-bottom: 15px;
}

#detalle-otro {
    width: 100%;
    padding: 15px;
    border: 2px solid #edf2f7;
    border-radius: 8px;
    background: #f8fafc;
    font-family: inherit;
    resize: none;
    min-height: 100px;
    font-size: 1.1rem; /* Tamaño solicitado anteriormente */
    line-height: 1.5;
}

#detalle-otro::placeholder {
    font-size: 1.1rem;
    color: #a0aec0;
    font-weight: 400;
}

/* --- BOTÓN DE ENVÍO --- */
.btn-submit-v2 {
    width: 100%;
    background: #ff0012;
    color: #ffffff;
    border: none;
    padding: 22px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: uppercase;
}

.btn-submit-v2:hover {
    background: #01050a;
    transform: translateY(-3px);
}

.btn-loader-text {
    display: block;
    font-size: 10px;
    font-weight: 400;
    margin-top: 5px;
    opacity: 0.7;
}

/* --- TRUST BAR (DEBAJO DEL BOTÓN) --- */
.trust-bar-dark {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid #edf2f7;
    padding-top: 25px;
}

.trust-bar-dark span {
    font-size: 11px;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-bar-dark i {
    color: #38a169;
}

/* ==========================================================================
   SUCCESS OVERLAY Y ANIMACIONES
   ========================================================================== */

.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-icon {
    font-size: 70px;
    color: #38a169;
    margin-bottom: 25px;
}

.success-content h3 {
    font-size: 26px;
    font-weight: 900;
    color: #01050a;
    margin-bottom: 15px;
}

.success-content p {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

.success-highlight {
    font-weight: 700;
    color: #ff0012 !important;
    margin-top: 10px;
}

.success-loader {
    width: 60px;
    height: 4px;
    background: #edf2f7;
    margin: 30px auto 0;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.success-loader::after {
    content: '';
    position: absolute;
    left: -50%;
    width: 50%;
    height: 100%;
    background: #ff0012;
    animation: loadBar 2s infinite linear;
}

/* KEYFRAMES */
@keyframes flashPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; color: #f6e05e; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes loadBar {
    from { left: -50%; }
    to { left: 100%; }
}

.success-icon .fa-bolt {
    animation: flashPulse 1.5s infinite;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .diagnosis-grid { grid-template-columns: 1fr; gap: 70px; }
    .diagnosis-title { font-size: 38px; }
    .diagnosis-card-inner { padding: 40px; }
    .authority-quote-dark { margin: 40px auto; }
}

/* ==========================================================================
   OPTIMIZACIÓN MÓVIL: SECCIÓN DIAGNÓSTICO PROFESIONAL
   ========================================================================== */

@media (max-width: 768px) {
    /* 1. Ajuste General de la Sección */
    .diagnosis-section-dark {
        padding: 60px 20px !important; /* Respiro lateral de 20px en lugar de 120px */
        width: 100%;
        box-sizing: border-box;
    }

    /* 2. Títulos y Textos de Cabecera */
    .diagnosis-title {
        font-size: 1.8rem !important; /* Tamaño legible en móvil */
        line-height: 1.2;
        margin-bottom: 20px;
        padding: 0 10px; /* Padding interno para que el texto no toque bordes */
    }

    .diagnosis-lead {
        font-size: 1rem !important;
        padding: 0 10px;
        margin-bottom: 35px;
        line-height: 1.5;
    }

    /* 3. Grid de Beneficios (Cards) */
    .benefits-cards-grid {
        grid-template-columns: 1fr !important; /* Una sola columna en móvil */
        gap: 15px;
        padding: 0 5px;
    }

    .benefit-card {
        padding: 25px 20px !important; /* Padding equilibrado dentro de la card */
        border-radius: 10px;
    }

    .benefit-card p {
        font-size: 0.95rem !important;
        line-height: 1.4;
    }

    /* 4. Frase de Autoridad (Quote) */
    .authority-quote-dark {
        margin: 40px 15px !important;
        padding: 0 10px;
    }

    .authority-quote-dark p {
        font-size: 1.2rem !important; /* Reducción de la cita */
        padding: 15px 0;
    }

    .quote-line-top, 
    .quote-line-bottom {
        width: 60px !important; /* Líneas más cortas en móvil */
        height: 3px;
    }

    /* 5. Tarjeta de Formulario (Modern White) */
    .diagnosis-card-inner {
        padding: 40px 20px !important; /* Reducción del padding masivo de 60px */
        margin: 0 5px;
        border-radius: 12px;
    }

    .card-header-v2 h3 {
        font-size: 1.4rem !important;
        line-height: 1.2;
    }

    .card-header-v2 p {
        font-size: 0.9rem !important;
        margin-bottom: 30px;
    }

    /* 6. Formulario e Inputs */
    .diagnosis-form-v2 {
        padding: 0 !important; /* Evitamos paddings extra que achiquen los inputs */
    }

    .form-group-v2 {
        margin-bottom: 20px;
    }

    .form-group-v2 input, 
    .form-group-v2 select {
        padding: 14px !important; /* Inputs más cómodos para el dedo */
        font-size: 16px !important; /* Evita que iOS haga zoom automático al enfocar */
    }

    /* 7. Botones del Formulario */
    .btn-submit-v2 {
        padding: 18px !important;
        font-size: 13px !important;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .btn-secondary-v2 {
        width: 88% !important; /* Botón secundario al ancho total */
        padding: 15px !important;
        font-size: 13px !important;
    }
}

/* ================================
   BOTÓN SECUNDARIO ESTILO COHERENTE
================================ */

.btn-secondary-v2 {
    display: block;
    width: 87%;
    margin-top: 14px;
    padding: 16px 20px;

    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;

    border-radius: 8px;
    border: 2px solid #ff0f1f; /* mismo rojo del botón principal */
    
    background: transparent;
    color: #ff0f1f;

    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover */
.btn-secondary-v2:hover {
    background: #ff0f1f;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 15, 31, 0.35);
    transform: translateY(-2px);
}

/* Click */
.btn-secondary-v2:active {
    transform: scale(0.98);
}

/* Focus accesibilidad */
.btn-secondary-v2:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 15, 31, 0.3);
}


html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    /* Evita que cualquier elemento animado o desbordado cree scroll */
    overflow-x: hidden; 
    position: relative;
}