@font-face {
  font-family: 'Times';
  src: url('/fonts/times.ttf') format('truetype');
  font-weight: normal; 
  font-style: normal;  
}

@font-face {
  font-family: 'Third Time Lucky';
  src: url('/fonts/Third Time Lucky DEMO.Otf') format('truetype');
  font-weight: normal; 
  font-style: normal;  
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000; 
    font-family: sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: white;
    overflow: hidden; 
}

/* --- LOADER CON PARALLAX ASIMÉTRICO Y EFECTO CRISTAL (GLASSMORPHISM) --- */

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    overflow: hidden;
}

/* El fondo: Transición líquida de beige claro a marrón chocolate */
.loader-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Degradado premium de arriba (Beige luminoso) a abajo (Marrón chocolate suave translúcido) */
    background: linear-gradient(
        to bottom, 
        rgba(245, 240, 228, 0.6) 0%,   /* Beige claro y luminoso arriba */
        rgba(210, 195, 175, 0.6) 50%,  /* Transición cremosa intermedia */
        rgba(54, 38, 27, 0.6) 100%     /* Marrón chocolate profundo abajo */
    );
    
    /* EL MOSAICO: Líneas blanco lino ultra atenuadas (0.05) para dar textura de seda, no de tablero */
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    
    /* El esmerilado de cristal líquido que difumina la web trasera al subir */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    
    /* El borde inferior: un sutil destello que acompaña la subida del panel */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    
    will-change: transform;
    /* Subida rápida (1.2s) hacia el techo */
    animation: bg-slide-up 1.2s cubic-bezier(0.76, 0, 0.24, 1) 2.5s forwards;
}

/* Contenedor del contenido (Texto/Logo) */
.loader-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* El bloque de texto: Cae pesado hacia el suelo */
.animate-down {
    will-change: transform, opacity;
    animation: text-slide-down 2.2s cubic-bezier(0.76, 0, 0.24, 1) 2.5s forwards;
    
    /* Un micro-relieve translúcido para asegurar que el oro brille en cualquier punto del degradado */
    filter: drop-shadow(0px 3px 10px rgba(40, 25, 15, 0.2));
}

/* --- ANIMACIONES ASIMÉTRICAS --- */

/* El cristal se va al techo rápido */
@keyframes bg-slide-up {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100vh);
    }
}

/* Los textos caen despacio y se evaporan con clase */
@keyframes text-slide-down {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    85% {
        opacity: 0;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.main-container {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.content {
    text-align: center;
    max-width: 800px;
}

.logo-container {
    margin: 1.5rem auto 2.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo-img {
    max-width: 380px;  
    width: 100%;       
    height: auto;     
    display: block;
}

.sub-header-gold {
    font-family: 'Third Time Lucky';
    color: #f8c981; 
    font-weight: 300;
    letter-spacing: 0.25em;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.middle-text-gold {
    font-family:'Third Time Lucky';
    color: #f8c981;
    font-weight: 300;
    letter-spacing: 0.25em;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.gold-divider {
    border: 0;
    height: 1px;
    background-color: #f8c981;
    width: 28%;
    margin: 0 auto 2.5rem auto;
}

/*segundo template fijo*/
main {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    position: relative;
    z-index: 1;
}

main::before {
    content: "";
    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.1) 100%);
    z-index: -1; 
    pointer-events: none; 
}

.navbar {
    width: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    position: absolute;
    top: 0;
    left: 0;
    padding: 10px 25px; 
    z-index: 5;
    box-sizing: border-box; 
}

.nav-logo img {
    height: 60px; 
    width: auto;
    display: block;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

.btn-resena {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
}

/* --- botones --- */
.contenedor-acciones {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-auto-flow: row; 
    gap: 18px; 
    width: 85%; 
    max-width: 340px; 
    margin: auto; 
    margin-bottom: 110px;
    z-index: 2;
}

.btn-accion {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px 10px; 
    color: #ffffff; 
    border: 1.5px solid rgba(222, 200, 182, 0.4);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-family: 'Third Time Lucky';
    font-size: 0.9rem; 
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.completo {
    grid-column: span 2; 
    height: 55px;
}

.button {
    width: 20px;
    height: 20px;
        margin-left: 20px;

}

/* Botones cuadrados centrales */
.mitad {
    grid-column: span 1; 
    aspect-ratio: 1 / 1; 
    height: auto; 
    flex-direction: column; 
    padding: 10px;
}

/* --- HOVERS E INTERACCIÓN --- */
.btn-accion.destacada {
    border-color: rgba(222, 200, 182, 0.7);
    background: rgba(255, 255, 255, 0.12);
}

.btn-accion:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
}

/* --- Banner inferior con movimiento infinito--- */
.banner-inferior {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background-color: #000000; 
    color: #ffffff;            
    padding: 15px 0;           
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;          
    z-index: 10;               
}

.texto-infinito {
    display: flex;
    width: max-content;        
    white-space: nowrap;       
    animation: marquee 25s linear infinite; 
}

.texto-infinito span {
    padding-right: 20px;      
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/*carrousel de fotos del background*/
.slider-container {
  display: block;
  width: 100vw;
  height: 100vh; 
  position: fixed; 
  top: 0;
  left: 0;
  z-index: 0;      
  overflow: hidden;
}

#slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0; 
  transition: opacity 1s ease-in-out; 
}

/* --- CICLOS DE ANIMACIÓN PARA CADA DIAPOSITIVA (20s en total) --- */
.slider-container .slide:nth-child(1) {
    animation: aparecerDesaparecer 20s infinite 0s;
}

.slider-container .slide:nth-child(2) {
    animation: aparecerDesaparecer 20s infinite 4s;
}

.slider-container .slide:nth-child(3) {
    animation: aparecerDesaparecer 20s infinite 8s;
}

.slider-container .slide:nth-child(4) {
    animation: aparecerDesaparecer 20s infinite 12s;
}

.slider-container .slide:nth-child(5) {
    animation: aparecerDesaparecer 20s infinite 16s;
}

/* Control óptimo de opacidad cruzada */
@keyframes aparecerDesaparecer {
    0% { opacity: 0; }
    5% { opacity: 1; }   /* Se desvanece hacia visible rápido */
    20% { opacity: 1; }  /* Se mantiene estática y visible durante 4 segundos */
    25% { opacity: 0; }  /* Desaparece suavemente mientras entra la siguiente */
    100% { opacity: 0; }
}
