/* Base Colors - High Contrast CrossFit Identity */
:root {
    --app-bg: #082b2e; /* Teal oscuro */
    --app-gold: #c39a45; /* Dorado original */
    --app-gold-light: #e0b455; /* Brighter gold */
    --app-text-main: #ffffff;
    --app-text-muted: #aaaaaa;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--app-bg);
    color: var(--app-text-main);
    line-height: 1.4;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Tipografías de Impacto */
.title-white {
    font-family: 'Anton', sans-serif;
    color: white;
    font-size: 8rem;
    line-height: 0.9;
    letter-spacing: 2px;
    margin: 0;
}
.title-gold {
    font-family: 'Oswald', sans-serif;
    color: var(--app-gold);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}
.title-gold-light {
    font-family: 'Oswald', sans-serif;
    color: var(--app-gold-light);
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 10px;
}
.gold-icon {
    color: var(--app-gold);
}

/* Video Backgrounds */
.section-with-video {
    position: relative;
    overflow: hidden;
}
.video-bg-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}
.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #000000;
    opacity: 0.70; /* Overlay moderado (70%) */
}
.bg-overlay-gold {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--app-gold);
    opacity: 0.85; /* Overlay dorado */
}
.relative-content {
    position: relative;
    z-index: 2;
}

/* HERO SECTION */
.hero-dopamine {
    position: relative;
    padding: 40px 0 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Gradient overlay using black (aprox 70% opacity) */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.70));
    z-index: 1;
}

/* 4 Pillars Top */
.top-pillars {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid rgba(195, 154, 69, 0.3);
    padding-bottom: 30px;
    margin-bottom: 50px;
}
.pillar {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    position: relative;
}
.pillar:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(195, 154, 69, 0.3);
}
.pillar i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}
.pillar-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    display: block;
    line-height: 1.2;
    margin-bottom: 5px;
}
.pillar-desc {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--app-text-muted);
    display: block;
    line-height: 1.2;
}

/* Interactive Pillars */
.interactive-pillar {
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    padding: 15px 10px;
    border-radius: 8px;
}
.interactive-pillar:hover {
    transform: translateY(-5px);
    background: rgba(195, 154, 69, 0.05);
}
.pillar-play {
    margin-top: 15px;
    font-family: 'Anton', sans-serif;
    color: var(--app-gold);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
}
.interactive-pillar:hover .pillar-play {
    opacity: 1;
    transform: translateY(0);
}
.pillar-play i {
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 0;
    margin-right: 5px;
}

/* Titles */
.massive-titles {
    margin-bottom: 60px;
}

/* Logo Hero */
.hero-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px; /* Separación con los pilares de abajo */
}
.main-logo {
    height: 120px;
    margin-bottom: 15px;
    border: 2px solid var(--app-gold);
    border-radius: 12px;
    overflow: hidden;
    object-fit: cover;
    box-sizing: border-box;
    transition: transform 0.3s;
}
.main-logo:hover {
    transform: scale(1.05);
}
.logo-text {
    text-align: center;
}
.logo-name {
    font-family: 'Playfair Display', serif;
    color: var(--app-gold);
    font-size: 2.2rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}
.logo-app {
    font-family: 'Inter', sans-serif;
    color: var(--app-text-muted);
    font-size: 0.8rem;
    letter-spacing: 5px;
}

/* IMPACT BANNER */
.impact-banner {
    background: rgba(0, 0, 0, 0.3); /* Ligeramente más oscuro que el fondo teal para contrastar */
    padding: 40px 0;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.impact-banner h2 {
    font-family: 'Anton', sans-serif;
    font-size: 5rem;
    margin: 0;
    line-height: 1;
}
.impact-banner h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 0;
    color: var(--app-text-muted);
}
.text-gold {
    color: var(--app-gold);
}

/* DOWNLOAD SECTION */
.download-section {
    padding: 60px 0;
    background: var(--app-bg);
}
.action-slogan {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.download-grid {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 30px;
}
.download-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.massive-download {
    font-family: 'Anton', sans-serif;
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
}
.store-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}
.store-badge {
    background: transparent;
    border: 1px solid var(--app-text-muted);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-center {
    display: flex;
    align-items: center;
}
.qr-box {
    background: var(--app-gold);
    padding: 10px;
    border-radius: 8px;
    display: flex;
}
.qr-box img {
    width: 140px;
    height: 140px;
}

.download-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-left: 20px;
}
.check-list {
    list-style: none;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}
.check-list i {
    font-size: 1.5rem;
    margin-top: 5px;
}
.check-list span {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    line-height: 1.2;
}
.badge-ribbon {
    background: var(--app-gold);
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 5px 20px;
    border-radius: 20px;
    display: inline-block;
    align-self: flex-start;
    margin-left: 35px;
    transform: rotate(-3deg);
}
.small-caps-text {
    font-family: 'Oswald', sans-serif;
    color: var(--app-text-muted);
    font-size: 0.9rem;
    margin-top: 15px;
    letter-spacing: 2px;
}

/* FEATURES SPLIT */
.features-split {
    padding: 40px 0 80px;
    background: var(--app-bg);
}
.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-badge {
    background: var(--app-gold);
    color: #000;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}
.gold-icon-large {
    color: var(--app-gold);
    font-size: 2.5rem;
}
.feature-text h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.feature-text p {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: var(--app-text-muted);
    line-height: 1.3;
}

/* Mockup CSS */
.phone-carousel-container {
    position: relative;
    display: flex;
    justify-content: center;
}
.phone-frame {
    border: 4px solid var(--app-gold);
    border-radius: 45px;
    overflow: hidden;
    background: var(--app-bg);
    aspect-ratio: 9/19.5;
    width: 65%;
    position: relative;
}
.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.phone-screen.active {
    opacity: 1;
}

/* B2B MOBILE FIX */
@media (max-width: 992px) {
    .b2b-premium-card {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }
    .b2b-content {
        flex-direction: column;
        text-align: center;
    }
    .b2b-text p {
        font-size: 1rem;
    }
    .b2b-btn {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
        padding: 15px;
    }
}

/* FAB BUTTONS */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}
.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    position: relative;
}
.fab-wa {
    background: #25D366;
    animation: pulse-green 2s infinite;
}
.fab-app {
    background: var(--app-gold);
    color: #000;
    animation: pulse-gold 2s infinite;
    animation-delay: 1s;
}
.fab-btn:hover {
    transform: scale(1.1);
    animation: none;
}
.fab-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.fab-btn:hover .fab-tooltip {
    opacity: 1;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(195, 154, 69, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(195, 154, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(195, 154, 69, 0); }
}

@media (max-width: 768px) {
    .floating-actions {
        bottom: 20px;
        right: 20px;
    }
    .fab-btn {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
}

/* ══ PILARES CIENTIFICOS ══ */
.pilares { padding: 6rem 5%; max-width: 1100px; margin: 0 auto; text-align: center; }
.pilares h2 { font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 600; margin-bottom: 0.5rem; line-height: 1.2; }
.pilares__sub { font-size: 1.1rem; color: var(--app-text-muted); margin-bottom: 3rem; font-family: 'Inter', sans-serif; }
.pilares__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pilar {
    position: relative; overflow: hidden; z-index: 0;
    background: rgba(8, 43, 46, 0.5); border: 1px solid var(--app-gold);
    border-radius: 15px; padding: 1.8rem 1.4rem;
    text-align: left; transition: transform 0.3s ease, border-color 0.3s;
}
.pilar::before {
    content: '';
    position: absolute; inset: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0.35; z-index: -2;
    transition: opacity 0.4s ease;
}
.pilar[data-pilar="sueno"]::before { background-image: url('imagenes/sueno.webp'); }
.pilar[data-pilar="estres"]::before { background-image: url('imagenes/estres.webp'); }
.pilar[data-pilar="sustancias"]::before { background-image: url('imagenes/sustancias.webp'); }
.pilar[data-pilar="movimiento"]::before { background-image: url('imagenes/movimiento.webp'); }
.pilar[data-pilar="conexion"]::before { background-image: url('imagenes/conexion.webp'); }
.pilar[data-pilar="nutricion"]::before { background-image: url('imagenes/nutricion.webp'); }
.pilar::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,14,16,0.50) 0%, rgba(6,14,16,0.90) 100%);
    z-index: -1;
}
.pilar:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.50); }
.pilar:hover::before { opacity: 0.60; }
.pilar__icon {
    width: 44px; height: 44px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.pilar__icon i { color: #fff; font-size: 20px; }
.pilar h4 { font-family: 'Oswald', sans-serif; font-size: 1.5rem; margin-bottom: 0.3rem; }
.pilar p { font-size: 1rem; color: #ccc; line-height: 1.45; margin-bottom: 0.4rem; font-family: 'Inter', sans-serif;}
.pilar__ref { font-size: 0.85rem; color: var(--app-gold); opacity: 0.9; font-style: italic; display: block; font-family: 'Inter', sans-serif;}
@media (max-width: 992px) {
    .pilares__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .pilares__grid { grid-template-columns: 1fr; }
}

/* TOTEM ANIMATION */
.totem-animate {
    opacity: 0;
    transform: scale(0.95) translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.totem-animate.totem-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* AUDIO TOGGLE */
.audio-toggle {
    position: fixed;
    bottom: 100px;
    right: 35px;
    background: rgba(8, 43, 46, 0.8);
    border: 2px solid var(--app-gold);
    color: var(--app-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s, background 0.3s;
}
.audio-toggle:hover {
    transform: scale(1.1);
    background: var(--app-gold);
    color: #000;
}
@media (max-width: 768px) {
    .audio-toggle {
        bottom: 90px;
        right: 25px;
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

/* B2B PREMIUM BANNER */
.b2b-premium-section {
    padding: 60px 0;
    background: var(--app-bg);
}
.b2b-premium-card {
    background: linear-gradient(145deg, rgba(195, 154, 69, 0.1) 0%, rgba(8, 43, 46, 0.8) 100%);
    border: 1px solid rgba(195, 154, 69, 0.3);
    border-radius: 20px;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}
.b2b-premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--app-gold), transparent);
}
.b2b-content {
    display: flex;
    align-items: center;
    gap: 30px;
}
.b2b-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(195, 154, 69, 0.15);
    border: 2px solid var(--app-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--app-gold);
    flex-shrink: 0;
}
.b2b-btn {
    background: var(--app-gold);
    color: #000;
    font-family: 'Anton', sans-serif;
    font-size: 1.2rem;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    letter-spacing: 1px;
    white-space: nowrap;
}
.b2b-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(195, 154, 69, 0.4);
}

/* Modal de Video */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.3s;
}
.modal-overlay.show .modal-content {
    transform: scale(1);
}
.close-btn {
    position: absolute;
    top: -40px; right: -20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
.modal-phone-container {
    display: flex;
    justify-content: center;
    width: 100%;
}
.modal-phone {
    width: 70%;
    max-width: 320px;
    transform: none !important; /* Overrides the -2deg rotation */
}

/* Responsive */
@media (max-width: 992px) {
    .title-white { font-size: 6rem; }
    .title-gold { font-size: 3rem; }
    .impact-banner h2 { font-size: 3.5rem; }
    .features-container { grid-template-columns: 1fr; }
    .phone-frame { width: 50%; }
    .b2b-container { flex-direction: column; gap: 20px; text-align: center; }
    .b2b-right { align-items: center; }
    .download-grid { flex-direction: column; align-items: center; text-align: center; }
    .download-right { padding-left: 0; }
    .badge-ribbon { margin-left: 0; margin-top: 10px; }
}
@media (max-width: 768px) {
    .title-white { font-size: 4rem; }
    .title-gold { font-size: 2rem; }
    .title-gold-light { font-size: 1.5rem; }
    .top-pillars { 
        display: grid; 
        grid-template-columns: 1fr 1fr; 
        gap: 20px; 
        border: none; 
    }
    .pillar:not(:last-child)::after { display: none; }
    .impact-banner h2 { font-size: 2.5rem; }
    .impact-banner h3 { font-size: 1.2rem; }
    .massive-download { font-size: 3rem; }
    
    .features-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .features-list .section-badge {
        grid-column: 1 / -1;
        justify-self: center;
        margin-bottom: 10px;
    }
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    .feature-text h4 {
        font-size: 1.1rem;
    }
    .feature-text p {
        font-size: 0.8rem;
    }
    .b2b-line-1 { font-size: 1.2rem; }
    .b2b-line-2 { font-size: 1.8rem; }
    .b2b-action { font-size: 1.2rem; }
}
@media (max-width: 480px) {
    .title-white { font-size: 3rem; }
    .main-logo { height: 90px; }
    .logo-name { font-size: 1.8rem; }
    .phone-frame { width: 80%; }
    .massive-download { font-size: 2.5rem; }
    .action-slogan { font-size: 1.5rem; }
    .b2b-line-2 { font-size: 1.5rem; }
}
