/* =========================================
   1. VARIABLES Y ESTILOS GENERALES
   ========================================= */
:root {
    --primary-green-dark: #1A2B18; 
    --primary-green-medium: #2E492A;
    --accent-lime: #A4D65E; /* Verde lima */
    --text-light: #ffffff;
    --bg-yellow-form: #14458F; /* Amarillo formulario */
    --bg-light: #f4f4f4;
    --border-radius-lg: 24px;
    --border-radius-sm: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-green-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   2. BOTONES
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #1F3A93;
    color: #FFFFFF;
    border: 1px solid #ffffff;
}

.btn-primary:hover {
    background-color: #6598FF;
    color: #ffffff;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: #008f39;
    color: white;
    width: 100%; 
    padding: 15px;
    font-size: 1rem;
    
}

.btn-secondary:hover {
    background-color: var(--primary-green-dark);
}

.btn-large {
    font-size: 1.1rem;
    padding: 15px 40px;
    width: 100%;
    max-width: 900px;
    
}

/* =========================================
   3. SECCIÓN HERO (PRINCIPAL)
   ========================================= */
.hero-section {
    background-image: url('img/fondo-hero.jpeg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 20px 0 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    padding: 20px 0;
}

.main-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.hero-content {
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 40px;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #14458F;
    
    line-height: 1.2;
}

/* --- ICONOS DE CARACTERÍSTICAS --- */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 80px;  
    height: 80px; 
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.feature-item i {
    font-size: 2.5rem; 
    color: #ffffff;
}

.feature-item span {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* =========================================
   4. SECCIÓN VIDEO Y TEXTO
   ========================================= */
.highlight-section {
    background-image: url('img/fondo-formulario.jpeg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

/* Esto hace que el texto dentro del span sea delgado */
.highlight-title span {
    font-weight: 300; /* Usamos 300 (Light) para un contraste elegante */
    display: block;   /* Opcional: Si quieres que baje a la siguiente línea */
}

/* --- VIDEO VERTICAL (LINK) --- */
.video-link-wrapper {
    display: block; /* Importante para que el link envuelva todo */
    text-decoration: none;
    width: 100%;
    display: flex;
    justify-content: center; /* Centra el video en su columna */
}

.video-container {
    width: 100%;
    /* AQUÍ HACEMOS QUE SEA VERTICAL Y MÁS ANGOSTO */
    max-width: 320px; /* Ancho típico de celular */
    aspect-ratio: 9 / 16; /* Fuerza la proporción vertical tipo TikTok */
    
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4); /* Sombra más fuerte para resaltar */
    border: 4px solid #14458F;
    background-color: #000;
    position: relative; /* Para el icono de play superpuesto si quisieras */
    transition: transform 0.3s ease;
}

/* Efecto al pasar el mouse por encima del video link */
.video-link-wrapper:hover .video-container {
    transform: scale(1.02); /* Se agranda un poquito */
    border-color: #fff;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que rellene todo el espacio sin bordes negros */
    display: block;
}

/* --- TARJETA TRANSLÚCIDA (AJUSTADA) --- */
.highlight-text-card {
    /* AQUÍ ESTÁ EL CAMBIO DE OPACIDAD: 0.4 es más transparente */
    background-color: #14458F; 
    backdrop-filter: blur(15px); /* Más desenfoque para que se lea bien el texto */
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255,255,255,0.2); /* Borde un poco más visible */
    
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.highlight-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* Sombra al texto para contraste */
}

/* LISTA */
.highlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.highlight-list li {
    background-color: #6598FF; /* Los botones se mantienen legibles */
    border: 1px solid rgba(255, 255, 255);
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.highlight-list li:hover {
    transform: translateX(5px);
    background-color: #6598FF;
}

.list-icon-wrapper {
    background-color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.list-icon-wrapper i {
    color: var(--primary-green-dark);
    font-size: 1rem;
}

.highlight-list span {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 400;
}

/* =========================================
   5. SECCIÓN CONTACTO
   ========================================= */
.contact-section {
    padding-top: 80px; 
    padding-bottom: 0; 
    position: relative;
    background-image: url('img/fondo-paisaje.jpeg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.contact-grid {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column; 
    gap: 40px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 1. TEXTO IZQUIERDA (MÓVIL) --- */
.contact-message-left {
    text-align: start; /* Centrado en móvil */
    width: 100%;
    padding-bottom: 80px;
}

.contact-message-left h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: rgb(255, 255, 255);
    margin-bottom: 0;
}

/* CHICA */
.contact-image-wrapper {
    display: none;
    width: 100%;
   
    justify-content: center;
    align-items: flex-end; 
    margin-bottom: -5px; 
    line-height: 0;
}

.person-image {
    width: 90%;
    max-width: 450px;
    height: auto;
    display: block;
}

/* FORMULARIO */
.contact-form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.form-card {
    background-color: var(--bg-yellow-form);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: var(--primary-green-dark);
    margin-bottom: 40px;
}

.form-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
}

.form-subtitle {
    margin-bottom: 0;
    font-weight: 600;
    color: white;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.9);
    font-family: 'Poppins', sans-serif;
}

/* FOOTER */
.footer {
    background-color: #14458F;
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}

.footer-left,
.footer-right {
  white-space: normal;
}

.footer a {
  color: #f4c10f; /* color del enlace */
  text-decoration: none; /* quitar subrayado */
  font-weight: 500;
}

/* color cuando pasas el mouse */
.footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* enlace visitado */
.footer a:visited {
  color: #f4c10f;
}

/* =========================================
   6. RESPONSIVE (PC / ESCRITORIO)
   ========================================= */
@media (min-width: 900px) {
    .hero-title { font-size: 3.5rem; }
    
    .icon-circle { width: 100px; height: 100px; }
    .feature-item i { font-size: 3rem; }
    .feature-item { width: 130px; }

    /* VIDEO Y TEXTO (PC) */
    .highlight-grid {
        /* Ajustamos las columnas para que el video vertical no ocupe tanto espacio */
        grid-template-columns: 40% 60%; 
    }

    .highlight-text-card {
        flex-direction: row; 
        align-items: center;
        justify-content: space-between;
        padding: 50px;
    }

    .highlight-title {
        width: 45%;
        font-size: 2.5rem;
        text-align: left;
    }

    .highlight-list {
        width: 50%;
    }

    /* CONTACTO (PC) */
    .contact-grid {
        display: grid;
        grid-template-columns: 0.6fr 1fr 1fr;
        align-items: end; 
        gap: 0;
    }

    .contact-image-wrapper {
        display: flex;
        justify-content: flex-end;
        margin-bottom: -5px;
    }

    .person-image {
        width: 100%;
        max-width: 550px;
    }

    .contact-form-wrapper {
        justify-content: flex-start;
        padding-bottom: 80px; 
    }
}





/* =========================================
   7. PÁGINA DE ÉXITO (Elegant Success)
   ========================================= */

.success-section {
    /* Ocupa toda la pantalla */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Mismo fondo que el Hero para continuidad */
    background-image: linear-gradient(rgba(26, 43, 24, 0.7), rgba(26, 43, 24, 0.8)), url('img/fondo-hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.success-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    border-radius: var(--border-radius-lg);
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    
    /* Pequeña animación de entrada */
    animation: slideUpFade 0.8s ease-out forwards;
}

/* Animación de entrada suave */
@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-icon-wrapper {
    margin-bottom: 25px;
}

.success-icon-wrapper i {
    font-size: 5rem;
    color: #008f39; /* Verde éxito */
    animation: pulseIcon 2s infinite;
}

/* Latido del corazón para el icono */
@keyframes pulseIcon {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 143, 57, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(0, 143, 57, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 143, 57, 0); }
}

.success-card h1 {
    color: var(--primary-green-dark);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.success-message {
    color: #555;
    font-size: 1rem;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Botones específicos de esta página */
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    font-size: 1rem;
    padding: 15px 30px;
    width: 100%;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
    color: white;
}

.btn-link-simple {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.btn-link-simple:hover {
    color: var(--primary-green-dark);
    text-decoration: underline;
}



.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-arrow i {
  transition: transform 0.2s ease;
}

.btn-arrow:hover i {
  transform: translate(2px, -2px);
}




/* =========================================
   ESTILOS DEL SLIDER DE VIDEO (MÓVIL)
   ========================================= */

/* Contenedor principal ajustado */
.video-slider-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.video-slides-container {
    width: 100%;
    display: flex;
    justify-content: center;
    /* En móvil, usamos flex pero ocultaremos los items no activos */
}

/* En móvil, por defecto ocultamos todos los videos */
.video-container {
    display: none; 
    /* Mantenemos tus estilos originales aquí */
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9 / 16;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 4px solid #14458F;
    background-color: #000;
    transition: transform 0.3s ease;
}

/* Solo mostramos el video que tenga la clase active-slide */
.video-container.active-slide {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0.5; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* --- BOTONES DE NAVEGACIÓN (FLECHAS) --- */
.slider-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* Copia y reemplaza esto en tu style.css */
.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* Fondo Azul translúcido */
    background-color: rgba(20, 69, 143, 0.1); 
    /* Borde Azul sólido de tu marca */
    border: 2px solid #14458F; 
    color: #14458F; /* Icono azul */
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: #14458F; /* Se llena de azul al pasar el mouse */
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(20, 69, 143, 0.4);
    transform: translateY(-2px);
}

/* =========================================
   AJUSTES PARA ESCRITORIO (PC)
   ========================================= */
@media (min-width: 900px) {
    
    /* En escritorio, el contenedor de videos se muestra lado a lado */
    .video-slides-container {
        flex-direction: row;
        gap: 20px; /* Espacio entre videos */
    }

    /* Forzamos que AMBOS videos se vean siempre en escritorio */
    .video-container {
        display: block !important; 
    }

    /* Ocultamos las flechas porque en PC se ven ambos videos */
    .slider-controls {
        display: none;
    }

    .contact-message-left h2 {
        font-size: 2.5rem; 
        
        /* AQUÍ LO ACTIVAMOS SOLO PARA PC */
        margin-bottom: 80px; 
    }
}


