/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-body: #050505;
    --bg-card: #121212;
    --bg-card-hover: #1a1a1a;
    --primary: #9e1b32;
    --primary-hover: #c42340;
    --accent: #d4af37;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1100px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-main);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: var(--border-radius); }

/* =========================================
   2. COMPONENTES GLOBALES
   ========================================= */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: block;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-header h2 {
    font-size: 3rem;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6b0f1e);
    color: white;
    box-shadow: 0 4px 15px rgba(158, 27, 50, 0.4);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(158, 27, 50, 0.6);
}
.btn-secondary {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
}
.btn-secondary:hover {
    background: var(--accent);
    color: var(--bg-body);
}

/* =========================================
   3. HEADER & NAV
   ========================================= */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-symbol { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); font-weight: 700; }
.logo-text { font-size: 0.9rem; line-height: 1.1; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.nav a:hover { color: var(--accent); }

/* Botón Iniciar Sesión en el nav */
.nav .btn-sm {
    padding: 7px 22px;
    font-size: 0.85rem;
    line-height: 1.4;
    border-radius: 50px;
    color: var(--accent);
    border-color: var(--accent);
    white-space: nowrap;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}
.nav .btn-sm:hover {
    background: var(--accent);
    color: var(--bg-body);
}
/* Estado logueado — clase añadida por JS */
.nav .btn-sm.btn-jugar {
    background: var(--accent);
    color: #000 !important;
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(212,175,55,0.3);
}
.nav .btn-sm.btn-jugar:hover {
    box-shadow: 0 0 24px rgba(212,175,55,0.5);
    transform: translateY(-1px);
}

/* btn-sm general (para formulario) */
.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 30px;
    background-color: var(--bg-body);
}

/* Título centrado arriba */
.hero-top {
    text-align: center;
    margin-bottom: 60px;
}
.hero h1 { font-size: 4.5rem; margin-bottom: 10px; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.5rem; font-family: var(--font-heading); color: var(--accent); font-style: italic; }

/* Layout dos columnas debajo del título */
.hero-bottom {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 40px;
    align-items: center;
    text-align: left;
}

/* Columna izquierda: checkmarks */
.hero-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.hero-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.hero-feature-item i {
    color: var(--accent);
    font-size: 1.3rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.hero-feature-item strong {
    color: var(--text-main);
}

/* Columna derecha: triángulos */
.hero-triangle-wrapper {
    max-width: 100%;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.1));
}
.triangle-triforce { width: 100%; height: auto; }
.tri-role { stroke-width: 2; transition: var(--transition); }
.tri-amigos { fill: rgba(168, 218, 220, 0.15); stroke: #a8dadc; }
.tri-socios { fill: rgba(212, 175, 55, 0.15); stroke: var(--accent); }
.tri-amantes { fill: rgba(158, 27, 50, 0.15); stroke: var(--primary); }
.tri-label {
    fill: #fff;
    font-size: 14px;
    font-weight: 700;
    text-anchor: middle;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-feature-item { justify-content: center; text-align: left; }
    .hero h1 { font-size: 2.8rem; }
}

/* =========================================
   5. DEMO SECTION (GIF CENTRADO AQUÍ)
   ========================================= */
.demo-section { padding: 100px 0; background-color: var(--bg-body); }

.demo-gif-container { 
    max-width: 600px; 
    margin: 0 auto 50px;
    text-align: center; 
}

.demo-gif {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 15px; 
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.3); 
    transition: var(--transition);
}
.demo-gif:hover { transform: scale(1.02); box-shadow: 0 15px 50px rgba(212, 175, 55, 0.3); }

.demo-card {
    background: var(--bg-card); padding: 50px; border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05); text-align: center; max-width: 800px; margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.demo-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 40px; }
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.feature-item i { font-size: 2rem; color: var(--primary); opacity: 0.8; }
.feature-item h4 { font-size: 1.2rem; margin-bottom: 5px; }
.feature-item p { font-size: 0.9rem; color: var(--text-muted); }

/* =========================================
   6. CÓMO FUNCIONA
   ========================================= */
.how-it-works { padding: 100px 0; background-color: #080808; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.step-card {
    background: var(--bg-card);
    padding: 28px 24px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.06);
}
.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.08);
}
.step-number {
    font-size: 4.5rem;
    font-family: var(--font-heading);
    color: rgba(212, 175, 55, 0.25);
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}
.step-card-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.step-card h3 {
    font-size: 1.1rem;
    color: var(--accent);
    line-height: 1.3;
    margin: 0;
}
.step-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   7. VERSIÓN COMPLETA (Triángulo)
   ========================================= */
.full-version {
    padding: 100px 0;
    background: linear-gradient(to bottom, #0a0a0a, #110505);
}
.full-version-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.love-triangle-led { width: 100%; max-width: 750px; height: auto; overflow: visible; }
.led-gold { fill: #fffbe6; text-shadow: 0 0 15px #d4af37; }
.led-red { fill: #ffe6e6; text-shadow: 0 0 15px #c42340; }

/* =========================================
   8. PARA QUÉ SIRVE
   ========================================= */
.purpose-section { padding: 100px 0; }
.purpose-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
    align-items: center; 
}
.purpose-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(120%);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}
.purpose-image img:hover { filter: grayscale(50%) contrast(110%); }
.purpose-list li { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.purpose-list li i { color: var(--primary); }

/* =========================================
   9. UBICACIÓN & VIDEO
   ========================================= */
.location-card {
    background: var(--bg-card); padding: 40px; border-radius: var(--border-radius);
    max-width: 900px; margin: 0 auto;
}
.location-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.video-wrapper-vertical { position: relative; width: 100%; padding-bottom: 177.77%; height: 0; }
.video-wrapper-vertical iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* =========================================
   10. FAQ & AUTOR
   ========================================= */
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.1); margin-bottom: 20px; }
.faq-item summary { padding: 20px 0; cursor: pointer; font-family: var(--font-heading); font-size: 1.3rem; display: flex; justify-content: space-between; }

.about-section { padding-top: 80px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 60px; }

.about-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}
.about-link-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid transparent;
    transition: var(--transition);
}
.about-link-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
}
.about-link-card i {
    font-size: 2rem;
    color: var(--text-muted);
}
.about-link-card:hover i { color: var(--accent); }
.about-link-card h4 { font-size: 1.1rem; margin-bottom: 6px; }
.about-link-card p { font-size: 0.9rem; color: var(--text-muted); }

.author-link-highlight {
    color: var(--accent);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding-bottom: 1px;
    transition: var(--transition);
}
.author-link-highlight:hover {
    color: #f0d060;
    border-bottom-color: #f0d060;
}
.about-main-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; margin-bottom: 60px; }
.about-photo img { border-radius: 12px; border: 3px solid var(--accent); box-shadow: 0 10px 40px rgba(212, 175, 55, 0.3); }

/* =========================================
   FOOTER & WHATSAPP
   ========================================= */
.footer { padding: 60px 0 30px; text-align: center; background-color: black; color: #555; }
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 32px; z-index: 999;
}

/* =========================================
   RESPONSIVE TABLET (max 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .hero-bottom { grid-template-columns: 1fr 1fr; gap: 40px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .about-main-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .container { padding: 0 24px; }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {

    /* HEADER */
    .header { padding: 8px 0 !important; }
    .header-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
    }
    .logo-text { display: none !important; }
    .logo-symbol { font-size: 1.8rem; }
    .nav {
        flex-direction: row !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    .nav a { font-size: 0.7rem !important; }
    .nav .btn-sm {
        font-size: 0.65rem !important;
        padding: 5px 12px !important;
    }

    /* HERO */
    .hero { padding-top: 70px !important; padding-bottom: 30px !important; }
    .hero-top { margin-bottom: 24px; }
    .hero h1 { font-size: 2rem !important; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; }
    .hero-bottom {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        text-align: left !important;
    }
    .hero-features { gap: 16px !important; }
    .hero-feature-item { font-size: 0.9rem; align-items: flex-start; }
    .hero-triangle-wrapper { 
        max-width: 100%; 
        width: 100% !important;
        margin: 0 auto; 
    }
    .triangle-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* STEPS */
    .steps-grid { grid-template-columns: 1fr !important; }

    /* DEMO */
    .demo-features { grid-template-columns: 1fr !important; }
    .demo-card { padding: 24px 16px !important; }

    /* BENEFICIOS */
    .purpose-section { padding: 60px 0 !important; }
    .purpose-grid {
        display: block !important;
        width: 100% !important;
    }
    .purpose-image {
        display: block !important;
        width: 100% !important;
        margin-bottom: 24px !important;
    }
    .purpose-image img {
        display: block !important;
        width: 100% !important;
        height: 220px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        filter: none !important;
    }
    .purpose-text {
        display: block !important;
        width: 100% !important;
    }
    .purpose-text h2 { font-size: 1.8rem; }

    /* UBICACIÓN */
    .location-grid { grid-template-columns: 1fr !important; }

    /* AUTOR */
    .about-main-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        text-align: center !important;
    }
    .about-photo { order: -1 !important; }
    .about-photo img { max-width: 200px !important; margin: 0 auto !important; }
    .about-links { grid-template-columns: 1fr !important; }

    /* SECTION HEADERS */
    .section-header h2 { font-size: 1.9rem !important; }
    .section-tag { font-size: 0.8rem; letter-spacing: 2px; }
}
