/* Importar definiciones de fuentes */
@import url('../fonts/font-definitions.css');

:root {
    /* Colors */
    --white: #ffffff;
    --black: #000000;
    --blue: #16407a; /* Nuevo Azul Corporativo */
    --gold: #c89c3d; /* Dorado Corporativo */
    --titles: #16407a; /* Actualizado al nuevo azul */
    --light-gray: rgba(204, 204, 204, 0.4); 
    --gray: #808080; /* Gris Medio */
    --dark-gray: #333333; /* Gris Oscuro */
    --green-whatsapp: #2db921;
    --header-bg-alpha: 0;

    /* Sizes */
    --headerHeight: 6rem;

    /* Font theme variable */
    --seravek: 'Seravek', sans-serif;
    --unna: 'Unna', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Lato", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--white);
    transition: background-color 0.35s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Lato", sans-serif;
    margin: 0;
}

.image {
    position: absolute;
    object-fit: cover;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.image_container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    left: 0;
}

.image_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title {
    color: var(--titles);
}

.subtitle {
    font-size: 1.5rem !important;
    color: var(--titles);
}

.button {
    padding: 0.8rem 2.5rem; /* Proporción más alargada y elegante */
    border: none;
    border-radius: 50px; /* Bordes completamente redondeados (estilo píldora) */
    background-color: var(--gold);
    color: var(--white);
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease; /* Transición más limpia */
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px; /* Separación de letras moderna */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.button--reverse {
    background-color: var(--white);
    color: var(--blue);
    border: solid 1px var(--blue);
}

.button:hover {
    background-color: #A6802E;
    box-shadow: 0 8px 20px rgba(200, 156, 61, 0.4); /* Sombra difuminada con el color dorado corporativo */
    transform: translateY(-3px);
}

.button:active {
    background-color: #8F6B24;
}

.row {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}

.col {
    width: 50%;
    min-width: 300px;
}

@media screen and (max-width: 768px) {
    .col {
        width: 100%;
    }

    .row-mb--reverse {
        flex-direction: column-reverse;
    }

    .button {
        text-align: center;
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .button--whatsapp {
        display: block;
        font-size: 1.2rem;
    }
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    font-family: var(--seravek);
    align-items: center;
}

.form-group {
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    width: 100%;
}

.form-group input, select {
    padding: 0.7rem 0.7rem;
    border: solid 1px var(--blue);
    border-radius: 10px;
    font-size: 1.2rem;
    font-family: var(--seravek);
    width: 100%;
}

.form-group input::placeholder {
    font-size: 1.2rem;
    font-family: var(--seravek);
}

.form__button {
    margin-top: 1rem;
    width: fit-content;
}

.section--padding {
    padding: 3rem 0;
}

.section--blue {
    background-color: var(--blue);
    color: var(--white);
    background-image:
        /* Halo dorado muy suave en la esquina superior izquierda */
            radial-gradient(900px 480px at 12% 0%,
            rgba(200, 156, 61, 0.12) 0%,
            rgba(200, 156, 61, 0.06) 20%,
            rgba(200, 156, 61, 0.00) 60%),
                /* Veta de luz diagonal ligera */
            linear-gradient(135deg,
            rgba(255, 255, 255, 0.10) 0%,
            rgba(255, 255, 255, 0.00) 38%),
                /* Sombra suave superior para profundidad */
            linear-gradient(180deg,
            rgba(0, 0, 0, 0.10) 0%,
            rgba(0, 0, 0, 0.00) 46%);
}

.video-section {
    margin: 0 auto;
}

.video-section__wrapper {
    height: 0;
    cursor: pointer;
}

.image-section__wrapper {
    position: relative;
    height: 0;
}

/* Imagen de portada */
.video-section__cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Botón “play” overlay */
.video-section__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('../img/play-icon.svg') no-repeat center;
    background-color: var(--black);
    opacity: 0.5;
    background-size: 5rem;
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 4rem;
}

/* Iframe (se inyecta vía JS) */
.video-section__iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-section__iframe {
    width: 100%;
}

.url-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Fullscreen Loader */
.no-scroll {
    overflow: hidden !important;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fondo claro coherente con la marca */
    background-image: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.94) 100%
    );
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.site-loader__logo {
    width: 160px;
    max-width: 45vw;
    height: auto;
    object-fit: contain;
    filter: saturate(1.05);
}

.site-loader__spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid var(--gold);   /* aro dorado */
    border-top-color: var(--blue);   /* acento azul */
    animation: site-spin 0.9s linear infinite;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.02) inset;
}

@keyframes site-spin {
    to { transform: rotate(360deg); }
}

/* Reduce motion: respeta preferencias del usuario */
@media (prefers-reduced-motion: reduce) {
    .site-loader__spinner {
        animation: none;
    }
}

/* Transiciones suaves para entrada/salida de secciones */
section {
    backface-visibility: hidden;
}

/* Overlay azul global que se hace visible con el scroll */
#page-bg-overlay {
    position: fixed;
    inset: 0;
    background: var(--blue);
    opacity: 0;                 /* controlado por JS */
    pointer-events: none;
    z-index: -1;                /* detrás del contenido */
    transition: opacity 0.15s linear;
    will-change: opacity;
}

/* Overlay azul que se muestra progresivamente con el scroll */
#page-bg-overlay {
    position: fixed;
    inset: 0;
    background: var(--blue);
    opacity: 0;                 /* se controla por JS */
    pointer-events: none;
    z-index: -1;                /* detrás del contenido */
    transition: opacity 0.15s linear;
    will-change: opacity;
}

.gold {
    color: var(--gold);
}

.blue {
    color: var(--blue);
}

.white {
    color: var(--white);
}

.bg-light-gray {
    background-color: var(--light-gray);
}

.bg-blue {
    background-color: var(--blue);
}

.bg-white {
    background-color: var(--white);
}

/* =========================================
   AJUSTES ESTÉTICOS: CARGA INICIAL
========================================= */
/* Matar la línea blanca superior */
.home-slider {
    padding-top: 0 !important; /* Quitamos el colchón heredado */
    margin-top: 0 !important;
}

.image_container {
    top: 0 !important; /* Forzamos anclaje absoluto al techo */
}