/* --- HERO SECTION TECNOLOGÍA (Corregido) --- */
.tech-hero {
    position: relative;
    height: 50vh; 
    min-height: 450px; 
    width: 100%;
    
    /* CAMBIO CLAVE 1: Centramos la caja contenedora */
    display: flex;
    align-items: center;
    justify-content: center; /* Antes era flex-start */
    
    /* Quitamos el padding lateral para que el 80% sea real y centrado */
    padding: 0; 
    margin-top: 0; 

    /* Fallback y fondo */
    background-image: url('../img/tech-banner-bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-color: #15233A; 
    overflow: hidden;
}

/* Video de Fondo (Sin cambios) */
.tech-video-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay (Sin cambios) */
.tech-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(21,35,58,0.95) 0%, rgba(21,35,58,0.7) 80%);
    z-index: 1;
}

/* CAMBIO CLAVE 2: La caja de contenido usa el 80% */
.tech-hero-content {
    position: relative;
    z-index: 2;
    
    /* Aquí definimos el ancho exacto */
    width: 80%;       /* Ocupa el 80% de la pantalla */
    max-width: 1200px; /* Tope máximo para pantallas gigantes */
    
    /* El texto sigue alineado a la izquierda DENTRO de la caja */
    text-align: left; 
}

.tech-text-box {
    max-width: 800px; /* Limita el ancho del texto para que no sea eterno */
}

.tech-text-box h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.tech-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 300;
    max-width: 700px;
}

/* Responsive */
@media (max-width: 768px) {
    .tech-hero {
        height: auto;
        padding: 6rem 0;
    }
    
    .tech-hero-content {
        width: 90%; /* En móvil usamos un poco más de espacio (90%) */
        text-align: center; /* En móvil centramos el texto */
    }

    .tech-text-box h1 {
        font-size: 2.2rem;
    }
}

/* --- SECCIÓN DETALLES TECNOLÓGICOS --- */
.detailed-tech-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

/* Reutilizamos las clases del Switch (.switch-capsule, .switch-btn) del CSS anterior.
   Asegúrate de copiar esas clases base aquí si no se cargan desde index.css 
   (Como cargamos ambos CSS en el header, deberían funcionar).
*/

/* --- MODIFICACIÓN: Layout Invertido (Imagen Izq - Texto Der) --- */
.panel-grid.reverse-layout {
    display: grid;
    /* Columna 1 (Imagen) más angosta, Columna 2 (Texto) más ancha */
    grid-template-columns: 0.9fr 1.1fr; 
    gap: 3rem;
    align-items: center;
}

/* En el CSS base, el grid normal era "Texto - Imagen". 
   Aquí forzamos el orden visual sin cambiar mucho HTML */
.panel-grid.reverse-layout .panel-images-grid {
    order: 1; /* Primero la imagen */
}
.panel-grid.reverse-layout .panel-text-card {
    order: 2; /* Segundo el texto */
}

/* Estilo de Tarjeta de Texto (Específico de Tecnología) */
.panel-text-card {
    background-color: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 2.5rem;
}

.panel-text-card h3 {
    color: #15233A;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.panel-desc {
    color: #64748B;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* --- NUEVO: Lista a 2 Columnas (Para Guardian) --- */
.feature-list-check.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 1rem 2rem; /* Espacio vertical y horizontal */
}

.feature-list-check li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
}

/* Responsive */
@media (max-width: 900px) {
    .panel-grid.reverse-layout {
        grid-template-columns: 1fr; /* Columna única en móvil */
    }
    
    .panel-grid.reverse-layout .panel-images-grid {
        order: -1; /* Imagen arriba en móvil también */
        margin-bottom: 2rem;
    }

    .feature-list-check.two-columns {
        grid-template-columns: 1fr; /* Una sola columna en móvil para leer bien */
    }
}

/* Lista a 2 columnas (Exclusiva para Guardian) */
.feature-list-check.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem; /* Espacio vertical pequeño, horizontal amplio */
}

/* Ajuste para que las listas se vean limpias */
.feature-list-check li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #334155;
    line-height: 1.4;
}

/* --- SECCIÓN CUALIDADES (GRID 2x2) --- */
.tech-qualities-section {
    padding: 6rem 0;
    background-color: #F1F5F9; /* Gris azulado muy tenue (Estilo referencia) */
}

/* Grid Layout */
.qualities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columnas */
    gap: 4rem 3rem; /* 4rem vertical, 3rem horizontal */
    max-width: 1100px;
    margin: 3rem auto 0 auto;
}

/* Item Individual */
.quality-item {
    display: flex;
    align-items: flex-start; /* Alinear arriba */
    gap: 1.5rem;
}

/* Icono */
.quality-icon {
    flex-shrink: 0; /* Que no se aplaste */
    width: 50px;
    height: 50px;
    color: #187495; /* Azul Cian Corporativo */
    background-color: #ffffff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* Sombra suave en icono */
}

.quality-icon svg {
    width: 100%;
    height: 100%;
}

/* Texto */
.quality-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #15233A;
    margin-bottom: 0.8rem;
    margin-top: 0;
}

.quality-text p {
    font-size: 1rem;
    color: #5B5A63;
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .qualities-grid {
        grid-template-columns: 1fr; /* 1 Columna en móvil */
        gap: 3rem;
    }
    
    .quality-item {
        /* Opcional: Centrar en móvil si prefieres */
        /* flex-direction: column; text-align: center; align-items: center; */
    }
}

/* --- SECCIÓN PERFILES (TARJETAS) --- */
.tech-profiles-section {
    padding: 6rem 0;
    background-color: #ffffff; /* Fondo blanco solicitado */
}

.profiles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 Columnas iguales */
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch; /* Misma altura */
}

/* Estilo Base de Tarjeta */
.profile-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
    position: relative; /* Para posicionar el badge */
}

/* HEADER DE TARJETA */
.card-header h3 {
    font-size: 2rem;
    color: #15233A;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.card-subtitle {
    display: block;
    font-size: 1.1rem;
    color: #187495; /* Azul Cian */
    font-weight: 600;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 1.5rem;
}

/* CUERPO */
.card-desc {
    color: #5B5A63;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.detail-block {
    margin-bottom: 1.5rem;
}

.detail-block strong {
    display: block;
    color: #15233A;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.detail-block p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
}

/* --- ESTILOS ESPECÍFICOS --- */

/* TARJETA 1: ESTÁNDAR (Guardian) */
.profile-card.standard {
    border: 1px solid #E2E8F0; /* Borde gris suave */
}

/* TARJETA 2: DESTACADA (B-IA) - Más peso visual */
.profile-card.highlight {
    border: 2px solid #187495; /* Borde Azul Cian Fuerte */
    box-shadow: 0 10px 30px rgba(24, 116, 149, 0.15); /* Sombra azulada */
    transform: scale(1.02); /* Ligeramente más grande */
    z-index: 1; /* Encima de la otra si se solaparan */
}

/* Badge Superior (Solo para B-IA) */
.badge-top {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #187495; /* Naranja o Azul según prefieras, puse Azul para marca */
    color: #ffffff;
    padding: 5px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* BOTONES */
.btn-profile-outline, .btn-profile-filled {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

/* Botón Outline (Guardian) */
.btn-profile-outline {
    border: 2px solid #15233A;
    color: #15233A;
    background: transparent;
}
.btn-profile-outline:hover {
    background-color: #f1f5f9;
}

/* Botón Filled (B-IA - Peso Fuerte) */
.btn-profile-filled {
    background-color: #15233A; /* Azul Oscuro */
    color: #ffffff;
    border: 2px solid #15233A;
}
.btn-profile-filled:hover {
    background-color: #187495; /* Hover a Azul Cian */
    border-color: #187495;
}

/* Responsive */
@media (max-width: 768px) {
    .profiles-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .profile-card.highlight {
        transform: scale(1); /* Quitar escala en móvil */
        order: -1; /* Poner la destacada primero en móvil? O dejar normal? */
    }
}

/* --- SECCIÓN FAQ --- */
.faq-section {
    padding: 6rem 0;
    background-color: #F8FAFC; /* Fondo tenue para contrastar las tarjetas blancas */
}

.faq-container {
    max-width: 900px; /* Ancho cómodo para lectura */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Espacio entre preguntas */
}

/* Tarjeta de Pregunta */
.faq-item {
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #cbd5e1; /* Borde un poco más oscuro al pasar mouse */
}

/* El botón de la pregunta */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between; /* Texto izq, Flecha der */
    align-items: center;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: #15233A; /* Azul Oscuro */
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #187495; /* Azul Cian al hover */
}

/* Icono (Flecha) */
.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #187495; /* Azul Cian */
    transition: transform 0.3s ease;
}

/* Rotar flecha cuando está activo */
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Área de Respuesta (Oculta por defecto) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* Animación suave */
    background-color: #ffffff;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem; /* Padding interno */
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5B5A63;
}

/* --- REUTILIZACIÓN DE ESTILOS CTA & MODAL --- */

/* 1. Sección Blanca con Botón Bordeado */
.cta-section {
    background-color: #ffffff;
    padding: 6rem 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: #15233A;
}

.btn-cta-white {
    background-color: transparent;
    color: #15233A;
    padding: 1rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid #15233A;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cta-white:hover {
    background-color: #15233A;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(21, 35, 58, 0.15);
}

/* 2. Estilos del Modal (Copia exacta del Index) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: #ffffff;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #5B5A63;
    cursor: pointer;
    z-index: 10;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.modal-info {
    background-color: #15233A;
    color: #ffffff;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #38bdf8;
}

.modal-info p {
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.info-item .icon { font-size: 1.5rem; }
.info-item strong { display: block; font-size: 0.9rem; color: #fff; }
.info-item p { margin: 0; font-size: 0.9rem; }

.modal-form-wrapper { padding: 3rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #334155; font-size: 0.9rem; }

.modal-form input, .modal-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
}

.modal-form input:focus, .modal-form select:focus {
    border-color: #187495;
    outline: none;
}

.btn-submit {
    width: 100%;
    background-color: #187495;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}
.btn-submit:hover { background-color: #135d78; }

/* Responsive */
@media (max-width: 768px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-info { padding: 2rem; text-align: center; }
    .info-item { justify-content: center; text-align: left; }
    .modal-form-wrapper { padding: 2rem; }
}

/* --- HERO SECTION para la versión movil --- */
/* --- HERO SECTION para la versión movil --- */

/* =========================================
   CORRECCIÓN FINAL HERO TECNOLOGÍA
   Anchos: 80%/90% + Salto de línea FORZADO
   ========================================= */

/* 1. GLOBAL: Ocultar el salto en escritorio (PC) */
.br-mobile {
    display: none;
}

/* 2. AJUSTES TABLET (< 1024px) */
@media (max-width: 1024px) {

    /* CONTENEDOR PADRE: Lo centramos */
    .tech-hero {
        justify-content: center !important; 
        padding-left: 0 !important;
        padding-right: 0 !important;
        height: auto !important;
        min-height: 400px !important;
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    /* CONTENEDOR DE CONTENIDO (TABLET = 80%) */
    .tech-hero-content {
        width: 80% !important; 
        text-align: left !important;
        margin: 0 auto !important; 
    }

    /* TÍTULO AJUSTADO */
    .tech-text-box h1 {
        font-size: 1.8rem !important; 
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    /* SUBTÍTULO */
    .tech-subtitle {
        font-size: 1rem !important;
        line-height: 1.5 !important;
    }

    /* --- AQUÍ ESTÁ EL ARREGLO --- */
    /* Reactivamos el salto de línea para cortar después de "en" */
    .br-mobile {
        display: block !important;
    }
}

/* 3. AJUSTES MÓVIL (< 600px) */
@media (max-width: 600px) {
    /* CONTENEDOR DE CONTENIDO (MÓVIL = 90%) */
    .tech-hero-content {
        width: 90% !important; 
    }
}


/* --- TECHNOLOGY SECTION para la versión movil --- */
/* --- TECHNOLOGY SECTION para la versión movil --- */

/* =========================================
   CORRECCIÓN SECCIÓN "PLATAFORMAS DE CONTROL"
   Orden Móvil: Texto Arriba / Imagen Abajo
   ========================================= */

@media (max-width: 1024px) {

    /* 1. CONTENEDOR GRID: Convertimos a Flex Vertical */
    .panel-grid.reverse-layout {
        display: flex !important;
        flex-direction: column !important; /* Apilar elementos */
        gap: 2rem !important;
    }

    /* 2. TEXTO PRIMERO (Arriba) */
    .panel-grid.reverse-layout .panel-text-card {
        order: 1 !important; /* Prioridad 1: Arriba */
        width: 100% !important;
        padding: 2rem 1.5rem !important; /* Ajuste de padding para móvil */
    }

    /* 3. IMAGEN SEGUNDO (Abajo) */
    .panel-grid.reverse-layout .panel-images-grid {
        order: 2 !important; /* Prioridad 2: Abajo */
        width: 100% !important;
        margin-bottom: 0 !important;
        margin-top: 1rem !important;
    }

    /* 4. AJUSTE DE LISTA DE CHECKS (Guardian) */
    /* En móvil, 2 columnas se ven muy apretadas, mejor 1 columna */
    .feature-list-check.two-columns {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
}



/* --- ICONS SECTION para la versión movil --- */
/* --- ICONS SECTION para la versión movil --- */
/* =========================================
   CORRECCIÓN SECCIÓN "POTENCIA OPERATIVA"
   Tablet: 2x2 | Móvil: Lista Vertical
   ========================================= */

/* 1. AJUSTE PARA TABLET (Entre 600px y 1024px) */
/* Aquí aseguramos que las tabletas vean 2 columnas */
@media (max-width: 1024px) {
    .qualities-grid {
        /* Mantenemos 2 columnas (1fr 1fr) */
        grid-template-columns: 1fr 1fr !important; 
        
        /* Reducimos un poco el hueco para que quepa bien en pantalla mediana */
        gap: 2.5rem 1.5rem !important; 
        
        /* Ajustamos márgenes laterales */
        padding: 0 2rem;
    }

    /* Ajuste de tamaño de fuente para que no se vea amontonado en tablet */
    .quality-text h3 {
        font-size: 1.1rem !important;
    }
    .quality-text p {
        font-size: 0.95rem !important;
    }
}

/* 2. AJUSTE EXCLUSIVO PARA MÓVIL (Menos de 600px) */
/* Aquí sí forzamos la lista de 1 sola columna */
@media (max-width: 600px) {
    .qualities-grid {
        grid-template-columns: 1fr !important; /* Una sola columna */
        gap: 3rem !important; /* Buen espacio entre elementos */
        padding: 0 1rem;
    }

    /* Opcional: En móvil apilamos icono arriba y texto abajo para centrar mejor */
    /* Si prefieres icono al lado, borra las siguientes 3 líneas */
    .quality-item {
        flex-direction: column !important; /* Icono arriba, texto abajo */
        align-items: center !important;    /* Centrado */
        text-align: center !important;     /* Texto centrado */
    }
}



/* --- PRODUCT SECTION para la versión movil --- */
/* --- PRODUCT SECTION para la versión movil --- */


/* =========================================
   CORRECCIÓN FINAL: TARJETA B-IA Y BADGE
   ========================================= */

/* 1. BADGE "FLOTAS PROPIAS" (Forzar una sola línea) */
.badge-top {
    white-space: nowrap !important; /* Prohibido romper renglón */
    min-width: max-content !important; /* El ancho que necesite el texto */
    padding-left: 20px !important;
    padding-right: 20px !important;
    font-weight: 600 !important; /* Peso visual balanceado */
}

/* 2. TARJETA B-IA (Quitar hueco superior y ajustar fuentes) */
.profile-card.highlight, 
.profile-card.card-bia {
    /* Volvemos al padding estándar (igual que Guardian) */
    padding-top: 2.5rem !important; 
    
    /* Aseguramos fuente normal (no negrita) para todo el cuerpo */
    font-weight: 400 !important;
    color: #5B5A63 !important;
}

/* 3. ESPACIO ABAJO DEL TEXTO (Lo que pediste) */
/* Añadimos margen extra debajo de la descripción para empujar lo demás */
.profile-card.highlight .card-desc,
.profile-card.card-bia .card-desc {
    margin-bottom: 4rem !important; /* Aumenta este número si quieres más espacio */
    font-weight: 400 !important; /* Aseguramos que este texto sea fino */
}

/* 4. REGLAS DE FUENTE SEGURAS */
/* Restauramos negritas solo en los títulos pequeños */
.profile-card.highlight strong,
.profile-card.card-bia strong {
    font-weight: 700 !important;
    color: #15233A !important;
}

.profile-card.highlight p,
.profile-card.card-bia p {
    font-weight: 400 !important;
}

/* =========================================
   CORRECCIÓN FINAL: DISTRIBUCIÓN DE TARJETAS
   Tableta: 2 Columnas | Móvil: 1 Columna
   ========================================= */

/* 1. TABLETA (De 601px a 1024px) -> FORZAR 2 COLUMNAS */
@media (min-width: 601px) and (max-width: 1024px) {
    .profiles-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Aquí está la magia: 2 columnas */
        gap: 1.5rem !important;
        align-items: stretch !important; /* Misma altura */
        padding: 0 2rem !important;
    }
}

/* 2. MÓVIL (Menos de 600px) -> FORZAR 1 COLUMNA */
@media (max-width: 600px) {
    .profiles-grid {
        grid-template-columns: 1fr !important; /* Una debajo de otra */
        gap: 3rem !important;
        padding: 0 1rem !important;
    }
}

/* =========================================
   HERO SERVICIOS (CON VIDEO DE FONDO)
   ========================================= */

.services-hero {
    position: relative;
    height: 60vh;        /* Altura ideal para video */
    min-height: 500px;   /* Evita que se haga muy chico en pantallas bajitas */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center; /* Centramos el contenido */
    overflow: hidden;    /* IMPORTANTE: Corta el video si sobra */
    background-color: #15233A; /* Fondo de seguridad por si el video tarda */
}

/* El Video de Fondo */
.services-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* LA CLAVE: Hace que el video llene el espacio sin estirarse */
    z-index: 0;
}

/* La Capa Oscura (Overlay) */
.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente azul oscuro semi-transparente para que el texto resalte */
    background: linear-gradient(180deg, rgba(21,35,58,0.7) 0%, rgba(21,35,58,0.9) 100%);
    z-index: 1;
}

/* El Contenedor del Texto */
.services-hero-content {
    position: relative;
    z-index: 2;          /* Encima del video y la capa oscura */
    width: 90%;
    max-width: 1000px;
    text-align: center;  /* Centramos el texto */
    color: #ffffff;
}

.services-text-box-center h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;   /* Grande en escritorio */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Sombra para separar del video */
}

.services-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    color: #e2e8f0;
    max-width: 800px;
    margin: 0 auto;      /* Centrar el bloque de texto */
}

/* =========================================
   RESPONSIVE (SOLUCIÓN TABLET Y MÓVIL)
   ========================================= */

/* 1. TABLET (iPad vertical, laptops pequeñas) */
@media (max-width: 1024px) {
    .services-hero {
        height: 50vh;    /* Un poco más bajo */
        min-height: 450px;
    }

    .services-text-box-center h1 {
        font-size: 2.8rem; /* Reducimos título */
    }
}

/* 2. MÓVIL (Celulares) */
@media (max-width: 600px) {
    .services-hero {
        height: auto;       /* Altura automática */
        min-height: 400px;  /* Pero con un mínimo */
        padding: 4rem 0;    /* Padding arriba/abajo para que respire */
    }

    .services-hero-content {
        width: 90%;         /* Margen lateral seguro */
        text-align: left;   /* EN MÓVIL: A veces se lee mejor a la izquierda (Opcional) */
    }
    
    /* Si prefieres centrado en móvil también, borra la línea "text-align: left" de arriba */

    .services-text-box-center h1 {
        font-size: 2rem;    /* MUCHO más pequeño para que quepa */
        line-height: 1.2;
    }

    .services-subtitle {
        font-size: 1rem;    /* Texto de lectura cómodo */
        line-height: 1.5;
    }
}