/* VARIABLES GLOBALES */
:root {
    --gold: #d4af37;
    --black: #0a0a0a;
    --gray: #161616;
    --white: #ffffff;
    --light-gray: #aaaaaa;
}

/* RESETEO Y ANTIDESCUADRES */
html, body {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; 
    background-color: var(--black);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    user-select: none;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* UTILIDADES Y SECCIONES ALTERNAS */
.text-center { text-align: center; }
.gold-text { color: var(--gold); }
.section-title { font-size: 2.5rem; margin-bottom: 20px; text-transform: uppercase; font-weight: 700;}
.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.seo-desc { max-width: 700px; margin: 0 auto 50px auto; font-size: 1.1rem; color: var(--light-gray); }

.section-dark { background-color: var(--black); }
.section-gray { background-color: var(--gray); border-top: 1px solid #222; border-bottom: 1px solid #222;}
.overflow-hidden { overflow: hidden; }

/* HEADER */
header {
    position: fixed; width: 100%; padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}
.nav-logo { width: 45px; height: 45px; border-radius: 50%; border: 2px solid var(--gold); margin-right: 10px; object-fit: cover;}
.logo-container { display: flex; align-items: center; }
.logo-text { font-weight: 700; color: var(--gold); letter-spacing: 2px; font-size: 1.5rem;}
nav a { color: var(--white); text-decoration: none; margin-left: 25px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; transition: 0.3s; }
nav a:hover { color: var(--gold); }
.menu-toggle { display: none; }

/* HERO */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; z-index: 1; overflow: hidden;}
.video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(10,10,10,0.9) 100%); z-index: 0; }
.hero-content { position: relative; z-index: 2; max-width: 900px; padding: 20px;}
.hero-content h1 { font-size: 4.5rem; text-transform: uppercase; margin-bottom: 20px; line-height: 1.1; text-shadow: 2px 2px 10px rgba(0,0,0,0.8);}
.hero-content p { font-size: 1.2rem; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; text-shadow: 1px 1px 5px rgba(0,0,0,0.8);}

/* BOTONES */
.btn-solid, .btn-outline {
    padding: 15px 35px; text-decoration: none; border-radius: 5px; font-weight: 700; display: inline-block; margin: 10px; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
}
.btn-solid { background: var(--gold); color: var(--black); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); border: 2px solid var(--gold);}
.btn-outline { border: 2px solid var(--gold); color: var(--gold); background: transparent; }
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6); background: transparent; color: var(--gold);}
.btn-outline:hover { background: var(--gold); color: var(--black); }
.btn-full { width: 100%; margin: 10px 0 0 0; }

/* TRAYECTORIA */
.about-grid { display: flex; gap: 60px; align-items: center; }
.about-text { flex: 1; }
.about-text .quote { font-size: 1.3rem; font-style: italic; color: var(--gold); margin-bottom: 20px;}
.about-text p { margin-bottom: 20px; font-size: 1.05rem; color: var(--light-gray); }
.about-image-collage {
    flex: 1;
    position: relative;
    height: 450px;
    width: 100%;
}
.about-image-collage img {
    position: absolute;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transition: 0.5s;
    object-fit: cover;
    object-position: top center;
}
.about-image-collage .img-top {
    width: 60%;
    height: 300px;
    top: 0;
    left: 0;
    z-index: 2;
}
.about-image-collage .img-bottom {
    width: 65%;
    height: 350px;
    bottom: 0;
    right: 0;
    z-index: 1;
}
.about-image-collage img:hover { transform: scale(1.05); z-index: 3; }
.stats-grid { display: flex; gap: 30px; margin-top: 30px; border-top: 1px solid #333; padding-top: 30px; }
.stat span { font-size: 2.2rem; font-weight: 700; display: block; line-height: 1; }
.stat p { font-size: 0.8rem; color: #aaa; margin-top: 5px; text-transform: uppercase; }

/* ROOMS */
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.room-card { position: relative; height: 400px; border-radius: 15px; overflow: hidden; border: 1px solid #333; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.room-video { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.room-card:hover .room-video { transform: scale(1.05); }
.room-info { position: absolute; bottom: 0; width: 100%; padding: 30px 20px 20px; background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); }
.room-info h3 { color: var(--gold); font-size: 1.4rem; margin-bottom: 5px; }

/* GALERÍA DE FOTOS */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.photo-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    aspect-ratio: 4/3;
}
.photo-item.wide {
    grid-column: 1 / -1;
    aspect-ratio: auto;
    height: 400px;
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: top center;
    transition: transform 0.5s ease;
}
.photo-item:hover img {
    transform: scale(1.1); 
}

/* VIDEOTECA (KAMUI TV) */
.video-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.vid-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    cursor: pointer;
    border: 1px solid #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.vid-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}
.vid-thumb:hover img {
    transform: scale(1.05);
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(212, 175, 55, 0.8);
    color: var(--black);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 5px; 
    transition: background 0.3s ease;
}
.vid-thumb:hover .play-btn {
    background: rgba(255, 255, 255, 0.9);
}

/* MODAL DE VIDEO */
.video-modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.video-modal video {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid var(--gold);
    border-radius: 10px;
    outline: none;
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
}
.close-modal:hover {
    color: var(--gold);
}

/* SECCIÓN DE PLATAFORMAS */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.platform-card {
    background: var(--gray);
    border: 1px solid #333;
    padding: 30px;
    border-radius: 12px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
}
.platform-card:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}
.platform-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}
.platform-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    margin-top: 10px;
}
.platform-card p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* VENTAJAS */
.perks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; }
.perk-item { background: var(--gray); padding: 40px 30px; border-radius: 15px; text-align: center; border: 1px solid #222; transition: 0.4s; }
.perk-item:hover { border-color: var(--gold); transform: translateY(-10px); }
.perk-icon-wrap img { width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--gold); margin-bottom: 20px; object-fit: cover; object-position: top;}
.perk-item h3 { color: var(--gold); margin-bottom: 15px; font-size: 1.2rem; }
.perk-item p { color: var(--light-gray); font-size: 0.95rem; }

/* TESTIMONIOS */
.testimo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px;}
.testimo-card { background: var(--black); padding: 40px; border-radius: 15px; border: 1px solid #333; position: relative;}
.quote-mark { font-size: 4rem; color: rgba(212, 175, 55, 0.2); position: absolute; top: 10px; left: 20px; font-family: serif; line-height: 1;}
.testimo-card p { font-size: 1rem; color: var(--light-gray); font-style: italic; position: relative; z-index: 2; margin-bottom: 20px;}
.testimo-author { display: flex; align-items: center; gap: 15px; border-top: 1px solid #222; padding-top: 20px;}
.testimo-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); object-position: top;}
.testimo-author h4 { color: var(--gold); font-size: 1.1rem;}

/* FAQ */
.faq-container { max-width: 800px; margin: 40px auto 0; }
.faq-item { background: var(--gray); margin-bottom: 15px; border-radius: 8px; border: 1px solid #333; overflow: hidden; }
.faq-item summary { padding: 20px; font-weight: 600; font-size: 1.1rem; cursor: pointer; color: var(--gold); list-style: none; outline: none; display: flex; justify-content: space-between;}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--white); transition: 0.3s;}
.faq-item[open] summary::after { content: '-'; color: var(--gold);}
.faq-content { padding: 0 20px 20px 20px; color: var(--light-gray); font-size: 0.95rem; border-top: 1px solid #222; margin-top: 10px; padding-top: 15px;}

/* CONTACTO */
.contact-grid { display: flex; gap: 50px; align-items: center; }
.contact-info { flex: 1; }
.contact-info p { color: var(--light-gray); margin-bottom: 30px; font-size: 1.1rem;}
.info-item { font-size: 1.1rem; margin-bottom: 15px; }
.contact-form-wrapper { flex: 1; background: var(--black); padding: 40px; border-radius: 15px; border: 1px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.5);}
.input-group { margin-bottom: 20px; }
.premium-form input, .premium-form select { width: 100%; padding: 15px; background: #1a1a1a; border: 1px solid #333; border-radius: 5px; color: var(--white); font-family: 'Montserrat', sans-serif; font-size: 1rem; transition: 0.3s; outline: none;}
.premium-form input:focus, .premium-form select:focus { border-color: var(--gold); background: #222;}
.checkbox-group { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.85rem; color: var(--light-gray); }
.checkbox-group input { width: auto; cursor: pointer; accent-color: var(--gold); }
.checkbox-group a { color: var(--gold); text-decoration: underline; }

/* FOOTER */
footer { background: #050505; padding: 40px 20px; text-align: center; border-top: 1px solid #222; }
.footer-logo { font-size: 1.5rem; color: var(--gold); font-weight: 700; letter-spacing: 2px; margin-bottom: 15px; }
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-icons a { transition: 0.3s; }
.social-icons a:hover { transform: scale(1.2); }
.footer-links p { color: #777; font-size: 0.9rem; margin-top: 10px; }
.footer-links a { color: var(--gold); text-decoration: none; font-size: 0.9rem;}

/* WHATSAPP EL ORIGINAL */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    transition: 0.3s;
    filter: drop-shadow(0 5px 15px rgba(37, 211, 102, 0.5));
    border-radius: 50%;
}
.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(-10deg);
}

/* ========================================================
   RESPONSIVE (¡AQUÍ ESTÁ EL ARREGLO NUCLEAR PARA MÓVILES!) 
   ======================================================== */
@media (max-width: 900px) {
    .about-grid, .contact-grid { flex-direction: column; text-align: center; }
    
    /* REGLA NUCLEAR PARA LA TRAYECTORIA: Fotos bloqueadas y apiladas */
    .about-image-collage { 
        height: auto !important; 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 20px !important; 
        margin-top: 40px !important; 
        min-height: 0 !important;
    }
    .about-image-collage img,
    .about-image-collage .img-top,
    .about-image-collage .img-bottom { 
        position: static !important; /* MATA CUALQUIER SUPERPOSICIÓN */
        width: 100% !important; 
        height: auto !important; 
        max-height: 350px !important;
        object-fit: cover !important;
        transform: none !important;
    }
    .stats-grid { justify-content: center; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    header { padding: 15px 20px; }
    nav { position: fixed; top: 70px; right: -100%; background: rgba(10,10,10,0.95); width: 250px; height: 100vh; display: flex; flex-direction: column; padding: 40px 20px; transition: 0.4s; border-left: 1px solid var(--gold); }
    nav.active { right: 0; }
    nav a { margin: 15px 0; font-size: 1.1rem; }
    .menu-toggle { display: block; font-size: 2rem; cursor: pointer; color: var(--gold); }
    
    /* REGLA NUCLEAR PARA LA GALERÍA: Ninguna foto se sale de la pantalla */
    .photo-grid { 
        grid-template-columns: 1fr; 
        width: 100%; 
        box-sizing: border-box;
    }
    .photo-item, .photo-item.wide { 
        width: 100% !important; 
        height: auto !important; 
        aspect-ratio: 4/3; 
        max-width: 100vw;
    }
    .photo-item.wide {
        aspect-ratio: 16/9;
    }
    
    /* WhatsApp achicado en móvil */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}