@font-face {
    font-family: 'Conthrax';
    src: url('fonts/conthrax.otf') format('truetype'); /* Ruta a tu archivo */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Conthrax-Heavy';
    src: url('fonts/conthrax-heavy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
:root {
    --color-orange: #FF9700; 
    --color-blue: #005FDB;
    --color-dark: #111111;
    --color-white: #ffffff;
    --nav-height: 80px;
    --font-main: 'Nunito Sans', sans-serif;
}

html {
    /* Activa el desplazamiento suave en toda la web */
    scroll-behavior: smooth;
}

/* Ajuste para que el menú fijo no tape el título al llegar a la sección */
section[id] {
    scroll-margin-top: 90px; /* Un poco más que la altura del header (80px) */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--color-white); background: var(--color-dark); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.icon { width: 24px; height: 24px; }
.icon--burger { width: 32px; height: 32px; } /* Burger un poco más grande */

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    /* text-transform: uppercase; */
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}
.btn--primary-orange { background: var(--color-orange); color: white; }
.btn--primary-blue { background: var(--color-blue); color: white; }
.btn--sm { padding: 8px 24px; font-size: 0.8rem; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
    padding: 15px 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
}

.header.scrolled {
    background: rgba(17, 17, 17, 0.95); /* Color sólido al bajar */
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__list { display: flex; gap: 30px; }
.nav__link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    opacity: 0.9;
    transition: opacity 0.3s;
}
.nav__link:hover { opacity: 1; color: var(--color-orange); }

.header__burger { display: none; background: none; border: none; color: white; cursor: pointer; }
.nav__close { display: none; }
.mobile-only-btn { display: none; }

/* --- HERO --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    /* Alineación vertical corregida: El contenido está abajo, no al centro exacto */
    flex-direction: column;
    justify-content: flex-end; 
    align-items: center;
    overflow: hidden;
    padding-bottom: 120px; /* Espacio para el carrusel de logos */
}

.hero__bg-wrapper {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2); /* Oscurecimiento general leve para el video */
}

/* --- CONTENIDO HERO (CORREGIDO FIGMA) --- */
.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    margin-bottom: 40px; /* Separación de los logos */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* Espacio entre título y botón */
}

.hero__title {
    /* CORRECCIÓN: Tamaño más pequeño y peso visual medio */
    font-size: 1.5rem; 
    line-height: 1.3;
    font-weight: 600; /* Semi-bold, no black */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    max-width: 700px; /* Evita que se estire demasiado a los lados */
}

/* --- CARRUSEL INFINITO (Scroll Derecha) --- */
.hero__clients {
    position: absolute;
    bottom: 30px; /* Pegado abajo */
    left: 0;
    width: 100%;
    z-index: 2;
    /* Sin fondo degradado negro para respetar la limpieza del Figma, 
       o muy sutil si se pierde legibilidad */
}

.infinite-scroll {
    display: flex;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.infinite-scroll__track {
    display: flex;
    align-items: center;
    gap: 50px;
    width: max-content;
    /* Animación hacia la derecha */
    animation: scrollRight 60s linear infinite;
}

.client-logo {
    height: 35px; /* Tamaño controlado */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Logos blancos */
    opacity: 0.9;
}

/* CORRECCIÓN: Keyframes para ir a la derecha */
/* Empieza desplazado a la izquierda (-50%) y va hacia 0 */
@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* --- RESPONSIVE HERO --- */
@media (max-width: 900px) {
    .header__burger { display: block; }
    .desktop-only-btn { display: none; }
    
    .nav {
        position: fixed;
        top: 0; right: -100%; /* Oculto a la derecha */
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background: #000000;
        padding: 80px 30px;
        transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav.active { right: 0; }
    
    .nav__list { 
        flex-direction: column; 
        gap: 25px; 
        width: 100%;
        margin-bottom: 40px;
    }
    
    .nav__link { 
        font-size: 1.2rem; 
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 10px;
    }
    
    .nav__close {
        display: block;
        position: absolute;
        top: 25px; right: 25px;
        background: none; border: none; color: white;
        cursor: pointer;
    }
    
    .mobile-only-btn { display: inline-block; width: 100%; }

    /* Ajustes Hero Mobile */
    .hero__title {
        font-size: 1.2rem; /* Más pequeño en móvil */
        padding: 0 10px;   /* Evitar bordes */
    }
    
    .hero__content {
        margin-bottom: 80px; /* Subir un poco el contenido para dejar espacio a logos */
    }

    .client-logo { height: 25px; gap: 30px; }
}


/* --- SECCIÓN NOSOTROS (V3 - Final) --- */

.about {
    background: linear-gradient(61.5deg, #545454 25.19%, #2D2D2D 76.94%);
    /* CORRECCIÓN: Reduje el padding superior/inferior a la mitad */
    padding: 50px 0; 
    text-align: center;
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about__container {
    width: 100%;
    max-width: 1280px; 
    padding: 0 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TÍTULO */
.section-title {
    font-family: 'Conthrax', sans-serif; /* Prioridad a Conthrax */
    font-size: 3rem; 
    font-weight: 400; /* Conthrax suele ser bold por defecto, ajustamos */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* "SOMOS" usa la Conthrax normal */
.about__header .section-title {
    font-family: 'Conthrax', sans-serif;
    font-weight: 400; 
}

/* "TORO" usa el archivo Heavy real */
.about__header .section-title .text-orange {
    font-family: 'Conthrax-Heavy', sans-serif; /* <--- AQUÍ CAMBIA */
    font-weight: normal; /* Ya no necesitamos 900, la fuente es gruesa de por sí */
}

.text-orange { color: var(--color-orange); }

/* ISOTIPO TORO */
.about__iso {
    display: block;
    width: 120px; 
    height: auto;
    margin: 0 auto 30px auto; 
}

.about__description {
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px auto; /* Reduje un poco el margen inferior */
    font-weight: 400;
}

/* --- TARJETAS (Geometría Figma) --- */
.about__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    width: 100%;
}

/* --- TARJETAS CON FOTO DE FONDO (Zoom Fix para bordes) --- */

.card-gradient {
    position: relative;
    overflow: hidden; /* Corta lo que sobresale de la imagen agrandada */
    padding: 50px 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.35;
    min-height: 260px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    z-index: 1;
    background: none !important; /* Quitamos background del padre */
}

.card-gradient:hover { 
    transform: translateY(-5px); 
}

/* PSEUDO-ELEMENTO PARA LA IMAGEN (Aquí aplicamos el zoom) */
.card-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    z-index: -1; /* Se coloca detrás del texto */
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* EL FIX: Escalamos la imagen al 105% para empujar los bordes blancos fuera de la vista */
    transform: scale(1.05); 
    transition: transform 0.5s ease;
}

/* Efecto extra: Un poquito más de zoom al pasar el mouse */
.card-gradient:hover::before {
    transform: scale(1.10);
}

/* TEXTO */
.card-gradient p {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
}

/* --- IMÁGENES DE FONDO (Aplicadas al ::before) --- */

/* Tarjeta Naranja */
.card-gradient--orange::before {
    background-image: url('https://res.cloudinary.com/dt01y5pb7/image/upload/v1768514010/experiencias_que_conectan_m2pz3w.jpg');
}

/* Tarjeta Azul */
.card-gradient--blue::before {
    background-image: url('https://res.cloudinary.com/dt01y5pb7/image/upload/v1768514010/nuestro_compromiso_qw6ewl.jpg');
    
    /* Reseteamos propiedades antiguas de la "ola" por seguridad */
    width: 100%; height: 100%;
    border-radius: 0;
    background-color: transparent;
    left: 0; bottom: 0;
}

/* RESPONSIVE NOSOTROS */
@media (max-width: 850px) {
    .about__cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .card-gradient {
        padding: 40px 25px; /* Menos relleno a los lados */
        font-size: 1.15rem; /* Letra un poco más chica para que entre cómoda */
        min-height: 220px;
    }

    .card-gradient::before {
        width: 100% !important;
        height: 100% !important;
        left: 0 !important;
        bottom: 0 !important;
        border-radius: 12px; /* Aseguramos que mantenga las curvas */
    }
}

/* --- BOTÓN CTA (Restaurado) --- */
.btn--gradient {
    background: linear-gradient(79.23deg, #FF9700 38.9%, #EB5D0C 62.05%);
    color: white;
    padding: 16px 45px; /* Más cuerpo */
    border-radius: 50px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(255, 151, 0, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn--gradient:hover {
    box-shadow: 0 6px 25px rgba(255, 151, 0, 0.6);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 850px) {
    .about__cards {
        grid-template-columns: 1fr;
        max-width: 500px; 
        margin-left: auto;
        margin-right: auto;
    }
    .section-title { font-size: 2.2rem; }
    .about__iso { width: 90px; }
}

/* --- SECCIÓN SERVICIOS --- */
.services {
    background-color: var(--color-white); /* Fondo blanco según Figma (o asumo blanco por el contraste) */
    padding: 80px 0;
    text-align: center;
}

.services__title {
    color: var(--color-dark); /* Título negro sobre blanco */
    margin-bottom: 50px;
    letter-spacing: 4px; /* Separación amplia típica de Conthrax */
}

/* GRILLA BENTO */
.services__grid {
    display: grid;
    /* 2 Columnas base */
    grid-template-columns: repeat(2, 1fr);
    /* Altura de filas automática, pero con mínimo para consistencia */
    grid-auto-rows: 250px; 
    gap: 20px;
    max-width: 1240px;
    margin: 0 auto;
}

/* TARJETA DE SERVICIO BASE */
.service-card {
    position: relative;
    border-radius: 4px; /* Curva sutil */
    overflow: hidden;
    cursor: pointer;
    /* Sombra interna para el texto */
}

/* La imagen ocupa todo el espacio */
.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen sin deformar */
    transition: transform 0.5s ease;
}

/* Overlay oscuro para legibilidad (Gradiente sutil desde abajo) */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    transition: background 0.3s ease;
}

/* CONTENIDO (TEXTO) */
.service-card__content {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    display: flex;
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    padding: 20px;
}

.service-card h3 {
    color: white;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1.5px;
    text-align: center;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* MODIFICADORES DE GRILLA */

/* Tarjetas Altas (Ocupan 2 filas) - Activaciones / Eventos Corp */
.service-card--tall {
    grid-row: span 2;
}

/* Tarjetas Anchas (Ocupan 2 columnas) - Integraciones */
.service-card--full {
    grid-column: span 2;
}

/* INTERACCIONES */
.service-card:hover img {
    transform: scale(1.05); /* Zoom sutil al hover */
}

.service-card:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%); /* Oscurece un poco más */
}

/* --- RESPONSIVE SERVICIOS --- */
@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: 1fr; /* 1 sola columna en móvil */
        grid-auto-rows: 200px; /* Altura fija para todas en móvil */
    }

    /* En móvil, anulamos los spans para que todo sea secuencial */
    .service-card--tall, 
    .service-card--full {
        grid-column: auto;
        grid-row: auto;
    }
}

/* --- ANIMACIONES GLOBALES (REVEAL SYSTEM) --- */

/* Clase base para elementos ocultos */
.reveal-up {
    opacity: 0;
    transform: translateY(40px); /* Se desplaza un poco hacia abajo */
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform; /* Optimización de rendimiento para el navegador */
}

/* Clase activa cuando el elemento entra en pantalla */
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos para efecto cascada (Staggering) sin usar JS complejo */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* --- ANIMACIONES DE ENTRADA (SCROLL REVEAL) --- */

/* Estado inicial: Invisible y desplazado hacia abajo */
.service-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    /* Mantenemos las transiciones de hover que ya tenías */
}

/* Estado final: Visible y en su sitio (JS agregará esta clase) */
.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Transición para la imagen interna (Zoom hover) */
.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease; /* Suavizamos también el zoom */
}

/* --- BANNER CTA (CONTACTO) --- */
.cta-banner {
    /* Degradado exacto del Figma */
    background: linear-gradient(70.74deg, #005FDB 31.99%, #27348B 69.56%);
    /* padding: 0px 0; */
    overflow: hidden;
    position: relative;
}

.cta-banner__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* TEXTOS */
.cta-banner__content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.cta-banner__title {
    font-family: 'Conthrax', sans-serif;
    font-size: 3rem;
    line-height: 1.1;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cta-banner__subtitle {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.25rem;
    color: white;
    font-weight: 600;
    margin-bottom: 35px;
}

/* Botón específico CTA */
.btn--cta {
    background-color: var(--color-orange);
    color: white;
    padding: 16px 50px;
    border-radius: 50px;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: inline-block;
    transition: all 0.3s ease;
}
.btn--cta:hover {
    background-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* --- VISUALES (CARRUSEL VERTICAL) --- */
.cta-banner__visuals {
    flex: 1;
    display: flex;
    gap: 20px;
    height: 400px; /* Altura de la ventana */
    max-width: 500px;
    /* Máscara para suavizar bordes */
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    /* Inclinación sutil opcional para darle estilo, quitar si se prefiere recto */
    /* transform: rotate(-5deg); */
}

.marquee-vertical {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.marquee-vertical__track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    /* Por defecto sube */
    animation: marqueeUp 25s linear infinite;
}

/* MODIFICADOR COLUMNA 2: BAJA */
.marquee-vertical--col2 .marquee-vertical__track {
    animation-duration: 28s; /* Distinta velocidad para que no se vean parejos */
    animation-direction: reverse; /* ESTO HACE QUE BAJE */
}

.marquee-item {
    border-radius: 12px;
    overflow: hidden;
    height: 180px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.marquee-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* KEYFRAMES */
@keyframes marqueeUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Se desplaza medio track (el set duplicado) */
}

/* --- RESPONSIVE BANNER --- */
@media (max-width: 900px) {
    .cta-banner {
        padding: 60px 0;
    }

    .cta-banner__container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .cta-banner__content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .cta-banner__title {
        font-size: 2rem;
    }
    
    .cta-banner__visuals {
        width: 100%;
        height: 350px;
        mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
        /* Quitamos rotación en móvil si existiera */
        transform: rotate(0); 
    }
}

/* --- SECCIÓN PROYECTOS --- */
.projects {
    background: linear-gradient(66.46deg, #545454 29.07%, #2D2D2D 72.72%);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

/* Header contenido en el ancho máximo */
.projects__header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.projects__header .section-title {
    margin-bottom: 0;
    color: white;
}

.projects__arrow {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 10px;
    z-index: 10;
}

.projects__arrow:hover {
    transform: translateX(10px);
    opacity: 0.8;
}

/* Wrapper para el Slider "Full Width" */
.projects__slider-wrapper {
    width: 100%;
    /* Truco: Padding izquierdo dinámico para alinear el primer card con el container de 1280px */
    /* padding-left: max(20px, calc((100% - 1280px) / 2 + 20px)); */
    /* padding-right: 0; Sin margen derecho para que salga de la pantalla */
}

.projects__slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    /* Importante para el scroll suave de la flecha */
    scroll-behavior: smooth; 
}

.projects__slider::-webkit-scrollbar { display: none; }
.projects__slider:active { cursor: grabbing; }

/* Tarjetas */
.project-card {
    flex: 0 0 320px; /* Ancho fijo */
    height: 480px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #333;
    transition: transform 0.3s ease;
    user-select: none;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay de Texto (CORREGIDO) */
.project-card__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    
    display: flex;
    /* Alineación ARRIBA */
    align-items: flex-start;     
    justify-content: center;
    
    /* Espacio desde arriba */
    padding: 40px 30px; 
    text-align: center;
}

.project-card__overlay p {
    color: white;
    font-family: 'Nunito Sans', sans-serif;
    
    /* Fuente más delgada y minúsculas (Sentence case) */
    font-size: 1.1rem;
    font-weight: 400; /* Regular/Thin */
    line-height: 1.4;
    text-transform: none; /* Quitamos mayúsculas forzadas */
    
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .projects__slider-wrapper {
        padding-left: 20px; /* En móvil solo 20px */
    }
    .project-card {
        flex: 0 0 280px;
        height: 400px;
    }
}

/* --- BOTÓN PLAY EN TARJETAS --- */
.project-card, .service-card {
    cursor: default;
}

/* Solo las tarjetas con video tienen cursor de mano */
.video-trigger {
    cursor: pointer !important;
}

/* Estilo unificado para el botón de play en ambos tipos de tarjeta */
.project-card__play, 
.service-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 151, 0, 0.9); /* Naranja Toro */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5; /* Encima del overlay */
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.27), background-color 0.3s;
    opacity: 0; 
    pointer-events: none; /* Evita que el click se quede en el icono */
}

/* El icono SVG */
.project-card__play svg, 
.service-card__play svg {
    width: 30px;
    height: 30px;
    color: white;
    margin-left: 2px;
}

/* Hover Effects */
.video-trigger:hover .project-card__play,
.video-trigger:hover .service-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-trigger:hover .project-card__play:hover,
.video-trigger:hover .service-card__play:hover {
    background-color: #ffaa33;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Comportamiento: Mostrar al hacer hover en la tarjeta */
.project-card.video-trigger:hover .project-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.project-card.video-trigger:hover .project-card__play:hover {
    background-color: #ffaa33; /* Un poco más claro al tocar el botón */
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- MODAL DE VIDEO Y POSTS SOCIALES --- */
.video-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: all;
}

.video-modal__overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Fondo oscuro */
    backdrop-filter: blur(5px);
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 10;
    /* Centrado visual */
    display: flex;
    justify-content: center;
}

/* 1. ESTILO POR DEFECTO (VIDEOS YOUTUBE/FACEBOOK HORIZONTAL) */
.video-modal__iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.video-modal__iframe-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* 2. ESTILO PARA POSTS (FACEBOOK TEXTO/FOTO Y LINKEDIN) - TIPO VENTANA */
.video-modal__iframe-container.social-post {
    padding-bottom: 0; /* Quitamos el ratio de video */
    height: 85vh; /* Altura fija casi del tamaño de la pantalla */
    max-width: 600px; /* Ancho lectura cómodo */
    background: #ffffff; /* FONDO BLANCO IMPORTANTE */
    overflow-y: auto; /* PERMITE EL SCROLL */
    -webkit-overflow-scrolling: touch;
}

.video-modal__iframe-container.social-post iframe {
    position: static; /* Ya no es absoluto */
    width: 100%;
    min-height: 100%; /* Asegura que llene el alto */
    height: auto;
}

/* 3. ESTILO PARA REELS (VERTICALES) */
.video-modal__iframe-container.vertical {
    padding-bottom: 0; /* Quitamos el cálculo por porcentaje que causaba el error */
    height: 85vh; /* Altura fija: 85% del alto de la pantalla */
    width: 100%;
    max-width: 480px; /* Ancho máximo similar a un celular grande */
    background: #000; /* Fondo negro */
    margin: 0 auto; /* Centrado horizontal */
    /* Centramos el contenido verticalmente */
    display: flex; 
    align-items: center;
    justify-content: center;
}

.video-modal__iframe-container.vertical iframe {
    position: relative; /* Anulamos el 'absolute' global */
    width: 100%;
    height: 100%; /* Que llene exactamente el contenedor de 85vh */
    top: auto;
    left: auto;
}

/* Botón de cerrar */
.video-modal__close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    z-index: 20;
}

.video-modal__close-btn:hover {
    color: var(--color-orange);
}

/* --- SECCIÓN TESTIMONIOS --- */
.testimonials {
    position: relative;
    padding: 100px 0;
    /* Fondo Imagen + Gradiente Azulado encima */
    background: 
        linear-gradient(65.32deg, rgba(0, 95, 219, 0.9) 18.51%, rgba(0, 51, 117, 0.92) 81.49%),
        url('https://res.cloudinary.com/dt01y5pb7/image/upload/v1766718330/fondo_testimonios_y1dbxz.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    overflow: hidden;
}

.testimonials__container {
    max-width: 1400px; /* Ancho amplio para que entren 3 cards cómodas */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonials__title {
    font-family: 'Conthrax', sans-serif;
    margin-bottom: 60px;
    color: white;
    text-align: center;
}

/* Wrapper principal para alinear flechas y slider */
.testimonials__wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 20px;
}

/* Flechas */
.testimonials__arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-shrink: 0;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials__arrow:hover {
    opacity: 0.8;
}

.testimonials__arrow--prev:hover { transform: translateX(-5px); }
.testimonials__arrow--next:hover { transform: translateX(5px); }

/* Slider Track */
.testimonials__slider {
    display: flex;
    overflow-x: auto;
    gap: 40px; /* Espacio entre testimonios */
    scroll-behavior: smooth;
    scrollbar-width: none; /* Ocultar scrollbar Firefox */
    width: 100%;
    cursor: grab;
    padding: 10px 0; /* Espacio para sombras si las hubiera */
}

.testimonials__slider::-webkit-scrollbar { display: none; }
.testimonials__slider:active { cursor: grabbing; }

/* Tarjeta Testimonio */
.testim-card {
    /* Calculo para mostrar 3 tarjetas aprox en pantallas grandes */
    flex: 0 0 300px; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

/* Logo Empresa */
.testim-card__logo-wrapper {
    height: 50px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testim-card__logo {
    max-height: 100%;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    /* TRUCO: Volver cualquier logo PNG a BLANCO puro para el diseño */
    filter: brightness(0) invert(1); 
}

/* Texto del Testimonio */
.testim-card__text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Autor */
.testim-card__author {
    margin-top: auto; /* Empuja al fondo si hay diferencias de altura */
    border-left: 3px solid var(--color-orange); /* Detalle visual opcional */
    padding-left: 15px;
}

.testim-card__author strong {
    display: block;
    font-size: 1rem;
    color: white;
    margin-bottom: 4px;
}

.testim-card__author span {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* Puntos / Dots */
.testimonials__dots {
    display: flex;
    gap: 15px;
    margin-top: 50px;
    justify-content: center;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #FF9700; /* Color secundario (inactivo) por defecto */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* El activo será Naranja Oscuro */
.dot.active {
    background-color: #EB5D0C; 
    transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .testim-card { flex: 0 0 40%; } /* 2 columnas en tablet */
}

@media (max-width: 768px) {
    .testimonials { padding: 60px 0; }
    
    .testimonials__wrapper {
        position: relative;
    }
    
    /* En móvil las flechas pueden estorbar, a veces se ocultan, 
       pero las dejaremos pequeñas o flotantes */
    .testimonials__arrow svg {
        width: 40px; 
    }
    
    .testim-card { 
        flex: 0 0 85%; /* 1 columna en móvil con un poco de la siguiente visible */
    }
}

/* --- SECCIÓN CONTACTO --- */
.contact {
    position: relative;
    padding: 100px 0;
    background-image: url('https://res.cloudinary.com/dt01y5pb7/image/upload/v1768514336/fondo_contacto_ev13td.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 800px;
    display: flex;
    align-items: center;
}

.contact__overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* Un poco más oscuro para resaltar los modales */
    z-index: 0;
}

.contact__container {
    position: relative;
    z-index: 1;
    display: flex;
    /* CENTRADO PERFECTO */
    justify-content: center; 
    align-items: stretch; /* Estirar altura si es posible, aunque los contenidos mandan */
    gap: 50px; /* Separación entre las dos cajas */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto; /* Asegura centrado horizontal */
}

/* --- COLUMNA IZQUIERDA: INFO --- */
.contact__info {
    flex: 0 0 500px; /* Ancho fijo para consistencia */
}

.contact__info-box {
    background: linear-gradient(46.1deg, #2D2D2D 15.93%, #545454 86.99%);
    border-radius: 20px;
    padding: 50px 40px;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    height: 100%; /* Intentar igualar altura */
}

.contact__title {
    font-family: 'Conthrax', sans-serif;
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    line-height: 1.2;
}

.contact__description {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* --- MÉTRICAS (Ajuste Figma) --- */
.contact__metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.metric-card {
    background: linear-gradient(65.33deg, #27348B 28.14%, #005FDB 73.73%);
    border-radius: 12px;
    padding: 25px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

/* Contenedor flex para alinear Símbolo (+) y Número */
.metric-row {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-bottom: 5px;
    gap: 2px; /* Espacio mínimo entre el + y el número */
}
.metric-card:hover { transform: translateY(-5px); }

.metric-number {
    font-family: 'Conthrax', sans-serif;
    font-size: 2.2rem; /* Tamaño grande como Figma */
    font-weight: bold;
    color: white;
}

.metric-symbol {
    font-family: 'Conthrax', sans-serif;
    font-size: 2.2rem; /* Mismo tamaño que el número */
    font-weight: bold;
    color: white;
}

.metric-label {
    font-size: 0.9rem;
    font-weight: 300;
    color: #e0e0e0;
    line-height: 1.2;
}

/* --- COLUMNA DERECHA: FORMULARIO --- */
.contact__form-wrapper {
    flex: 0 0 500px; /* Mismo ancho que la info */
}

.contact__form-box {
    background: linear-gradient(46.3deg, rgba(255, 151, 0, 0.95) 15.82%, rgba(235, 93, 12, 0.95) 87.11%);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrar contenido verticalmente */
}

.contact__title--form {
    color: white;
    margin-bottom: 10px;
}

.contact__form-desc {
    text-align: center;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Inputs apilados (1 por fila) */
.contact__form {
    display: flex;
    flex-direction: column;
    /* gap: 15px; Lo manejamos con margin-bottom en group-full */
}

/* --- VALIDACIÓN DE FORMULARIO (Estilos de Error Corregidos) --- */

.form-group-full {
    width: 100%;
    margin-bottom: 20px; /* Un poco más de espacio base */
    position: relative;
    display: flex;
    flex-direction: column; /* Asegura que input y error se apilen verticalmente */
}

/* Estado de Error del Input */
.form-input.error {
    border: 2px solid #DC3545; /* Rojo estándar de error */
    background-color: #fff8f8; /* Fondo ligeramente rojizo */
}

.form-input.success {
    border: 2px solid #28a745; /* Verde éxito */
}

/* Mensaje de Error (Bloque sólido, no flotante) */
.error-msg {
    display: none; /* Oculto por defecto */
    background-color: #DC3545; /* Fondo rojo sólido para legibilidad total */
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 8px; /* Espacio entre el input y el mensaje */
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative; /* Para poder usar la flechita */
    
    /* Animación de entrada */
    animation: slideDown 0.3s ease forwards;
}

/* Flechita decorativa apuntando al input */
.error-msg::before {
    content: '';
    position: absolute;
    top: -6px; /* Sube la flecha */
    left: 15px;
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #DC3545; /* Mismo color que el fondo */
}

/* Mostrar mensaje cuando el input anterior tiene la clase .error */
.form-input.error + .error-msg {
    display: block;
}

/* Animación simple */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajuste responsive para métricas en móviles muy pequeños */
@media (max-width: 400px) {
    .metric-number, .metric-symbol { font-size: 1.8rem; }
}

.form-input {
    width: 100%;
    padding: 16px 20px; /* Inputs más altos y cómodos */
    border-radius: 8px;
    border: none;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    background-color: #f9f9f9;
    color: #333;
    outline: none;
    transition: box-shadow 0.3s;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 95, 219, 0.3);
}

.form-textarea { resize: none; }

.form-select {
    cursor: pointer;
    /* Icono de flecha custom */
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
    appearance: none; -webkit-appearance: none;
}

.btn--full {
    width: 100%;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    background-color: #005FDB; 
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px;
    border-radius: 8px; /* Coincidir con inputs */
}

.btn--full:hover { background-color: #004bb0; }

.btn-link {
    background: none; border: none; color: white;
    text-decoration: underline; cursor: pointer;
    font-size: 0.9rem; margin-right: 15px;
}

/* --- BOTÓN OUTLINE (Para "Atrás") --- */
.btn--outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 14px 25px;
    border-radius: 8px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px; /* Espacio con el botón Enviar */
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn--outline:hover {
    background: white;
    color: #EB5D0C; /* Texto naranja al hover para contraste */
    border-color: white;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
}

/* Asegurar que el botón ENVIAR ocupe el espacio restante */
.form-actions .btn--full {
    margin-top: 0; /* Quitamos margen superior para alinear con Atrás */
}

.form-step { display: none; animation: fadeIn 0.5s ease; }
.form-step.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .contact__container {
        flex-direction: column;
        align-items: center;
    }
    .contact__info, .contact__form-wrapper { flex: 0 0 100%; width: 100%; max-width: 600px; }
}

/* --- RESPONSIVE MÉTRICAS (Móvil) --- */
@media (max-width: 600px) {
    /* 1. Reducimos el padding interno de la caja gris para que el contenido tenga más espacio */
    .contact__info-box {
        padding: 40px 20px; /* Antes era 50px 40px */
    }

    /* 2. Ajustamos la grilla de métricas */
    .contact__metrics {
        gap: 10px; /* Reducimos el hueco entre tarjetas (antes 20px) */
    }

    /* 3. Ajustamos el tamaño de los números y símbolos para que entren en una línea */
    .metric-number, .metric-symbol {
        font-size: 1.5rem; /* Antes 2.2rem */
    }
    
    /* 4. Ajustamos el padding interno de cada tarjetita */
    .metric-card {
        padding: 15px 5px; /* Menos relleno para que el número quepa mejor */
    }
    
    /* Ajuste extra para el texto descriptivo debajo del número */
    .metric-label {
        font-size: 0.8rem;
    }
}

/* --- FOOTER (Versión Final Corregida) --- */
.footer {
    background: linear-gradient(69.99deg, #545454 31.29%, #2D2D2D 70.31%);
    padding: 100px 0 80px; 
    color: white;
    font-family: 'Nunito Sans', sans-serif;
    position: relative;
    overflow: hidden;
}

.footer__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Columna Mascota (Agrandada) */
.footer__col--mascot {
    flex: 0 0 200px; /* Más espacio para la mascota */
    display: flex;
    align-items: flex-end;
}

.footer__mascot-img {
    width: 200px;
    height: auto;
    display: block;
    transform: translateY(15px); /* Ajuste para posar */
}

/* Títulos */
.footer__title {
    font-family: 'Conthrax', sans-serif;
    font-size: 1.3rem; /* Un poco más grande */
    margin-bottom: 35px; /* Más separación del título al contenido */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Columna Contacto */
.footer__col--contact {
    flex: 1;
    min-width: 320px;
}

/* Bloques de info separados */
.footer__info-item {
    margin-bottom: 25px; /* Espacio generoso entre bloques */
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.footer__info-item strong {
    font-family: 'Conthrax', sans-serif;
    font-weight: 400;
    margin-right: 8px;
    text-transform: uppercase;
}

/* Enlaces "limpios" (para teléfono y wsp) */
.footer__link-clean {
    color: white;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s;
}

.footer__link-clean:hover {
    color: var(--color-orange);
}

/* Enlace con subrayado (para correo) */
.footer__link-underline {
    color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
}

.footer__link-underline:hover {
    color: var(--color-orange);
}

/* Columna Menú */
.footer__col--menu {
    flex: 0 0 150px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Más separación entre items del menú */
}

.footer__nav a {
    font-family: 'Conthrax', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    transition: color 0.3s;
    text-decoration: none;
}

.footer__nav a:hover {
    color: var(--color-orange);
}

/* Columna Brand (Redes + Logo) */
.footer__col--brand {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Redes Sociales */
.footer__socials {
    display: flex;
    gap: 20px; /* Más espacio entre iconos */
    margin-bottom: 40px; /* Más espacio antes del logo */
}

.footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, opacity 0.3s;
}

.footer__socials a:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}

/* Logo Grande */
.footer__logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.footer__logo {
    width: 180px; /* Logo un poco más grande */
    height: auto;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .footer__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 60px;
    }

    .footer__col--brand, .footer__logo-wrapper {
        align-items: center;
        justify-content: center;
    }
    
    .footer__mascot-img {
        max-width: 150px;
    }
}

/* --- NOTIFICACIONES (TOAST) --- */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e1e1e; /* Fondo oscuro */
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 10000;
    
    /* Estado inicial oculto */
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    border-left: 5px solid transparent;
}

.toast.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.toast__message {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

/* Tipos de Toast */
.toast.success {
    border-left-color: var(--color-orange); /* Naranja Toro */
}
.toast.success .toast__icon::before {
    content: '✓';
    color: var(--color-orange);
    font-weight: 800;
    font-size: 1.2rem;
}

.toast.error {
    border-left-color: #DC3545; /* Rojo error */
}
.toast.error .toast__icon::before {
    content: '!';
    color: #DC3545;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Ocultar Badge de reCAPTCHA */
.grecaptcha-badge { 
    visibility: hidden;
    opacity: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .toast {
        left: 20px; right: 20px; bottom: 20px;
        justify-content: center;
    }
}

/* --- AVISO LEGAL FORMULARIO (reCAPTCHA) --- */
.form-legal-notice {
    font-size: 0.75rem; /* Aprox 12px, pequeño pero legible */
    color: #ffffff; /* Gris suave */
    text-align: center;
    margin-top: 1rem; /* Separación del botón */
    line-height: 1.4;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.form-legal-notice a {
    color: inherit; /* Hereda el color gris */
    text-decoration: underline; /* Subrayado para indicar que es link */
    transition: color 0.3s ease;
}

.form-legal-notice a:hover {
    color: var(--color-blue); /* Color azul al pasar el mouse */
}