/* ==========================================================================
   DESPERTAR UNIVERSAL — DESIGN SYSTEM
   Paleta y estilo idénticos a la app Método JAC
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens idénticos a style.css de la app JAC ── */
:root {
    --bg-dark:       #060b16;
    --bg-card:       rgba(17, 28, 48, 0.45);
    --bg-darker:     #03060d;
    --bg-sidebar:    rgba(10, 18, 34, 0.65);

    --text-light:    #F9F6F0;
    --text-muted:    #A5B1C2;
    --text-dim:      #677890;

    --gold:          #D4A574;
    --gold-hover:    #E5C39E;
    --gold-subtle:   rgba(212, 165, 116, 0.12);
    --gold-glow:     rgba(212, 165, 116, 0.25);

    --border-subtle: rgba(212, 165, 116, 0.18);
    --glass-bg:      rgba(9, 15, 27, 0.6);
    --glass-border:  rgba(212, 165, 116, 0.2);
    --glass-shadow:  0 20px 50px rgba(0, 0, 0, 0.55);

    --font-heading:  'Playfair Display', Georgia, serif;
    --font-body:     'Inter', -apple-system, sans-serif;

    --radius:    16px;
    --radius-sm: 10px;
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Fondo radial igual al login screen de la app */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, #0f1f3a 0%, var(--bg-dark) 70%);
    pointer-events: none;
    z-index: 0;
}

main { position: relative; z-index: 1; }
img, video { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all var(--transition); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.25; }
button { cursor: pointer; font-family: var(--font-body); }

/* ============================================================
   NAVBAR
   ============================================================ */
.header-nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 70px;                           /* = --topbar-height de la app */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    background: rgba(11, 20, 38, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: all var(--transition);
}

.header-nav.scrolled {
    background: rgba(6, 11, 22, 0.97);
    border-bottom-color: var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--gold);
    line-height: 1;
}

/* Igual al .sidebar-logo h2 de la app */
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 3px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ── Selector de idioma ── */
.lang-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3px 5px;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lang-btn .lang-flag {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    font-size: 0.95rem;
    line-height: 1;
}

.lang-btn.active {
    background: var(--gold-subtle);
    color: var(--gold);
}

.lang-btn:hover:not(.active) {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
}

.lang-divider {
    color: var(--border-subtle);
    font-size: 0.8rem;
    user-select: none;
    pointer-events: none;
}

/* Red exit button style matching metodojac.com */
.btn-exit {
    color: #ef4444;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-exit:hover {
    background: rgba(239, 68, 68, 0.08);
    border-bottom-color: #ef4444;
}

/* ============================================================
   BUTTONS — idénticos a los de la app
   ============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), #c49560);
    color: var(--bg-dark);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: all var(--transition);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.25);
    white-space: nowrap;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.35);
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* Igual al .btn-outline de la app */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(212, 165, 116, 0.4);
    color: var(--gold);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    font-family: var(--font-body);
    background: transparent;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 6% 100px;
    overflow: hidden;
}

/* Partículas flotantes — mismo efecto que el login screen de la app */
.hero-ambient-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.ambient-card {
    position: absolute;
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0.055;
    filter: blur(0.5px);
}

.ambient-card img { width: 100%; height: 100%; object-fit: cover; }

.ambient-card-1 {
    width: 200px; height: 290px;
    top: 10%; left: -50px;
    transform: rotate(-12deg);
    animation: floatA 9s ease-in-out infinite;
}
.ambient-card-2 {
    width: 170px; height: 245px;
    top: 22%; right: -35px;
    transform: rotate(10deg);
    animation: floatB 11s ease-in-out infinite;
}
.ambient-card-3 {
    width: 130px; height: 190px;
    bottom: 12%; left: 6%;
    transform: rotate(5deg);
    animation: floatA 13s ease-in-out infinite reverse;
}

@keyframes floatA {
    0%, 100% { transform: rotate(-12deg) translateY(0px);   }
    50%       { transform: rotate(-12deg) translateY(-16px); }
}
@keyframes floatB {
    0%, 100% { transform: rotate(10deg) translateY(0px);  }
    50%       { transform: rotate(10deg) translateY(14px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

/* badge igual al .login-badge de la app */
.hero-badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-subtle);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    color: var(--text-light);
    margin-bottom: 22px;
    max-width: 900px;
    text-shadow: 0 0 60px rgba(212, 165, 116, 0.2);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 760px;
    margin-bottom: 52px;
    line-height: 1.75;
}

.routing-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold-hover);
    margin-bottom: 36px;
    opacity: 0.9;
    font-style: italic;
}

/* ── Routing Cards grid ── */
.routing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* Igual al .action-card de la app */
.routing-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 44px 28px 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
    overflow: hidden;
}

/* tope dorado — igual al ::before de .action-card */
.routing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.routing-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-glow);
}
.routing-card:hover::before { opacity: 1; }

/* Card destacada — igual al .action-card-primary */
.routing-card--featured {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(212, 165, 116, 0.03));
    border-color: var(--gold-glow);
}

.routing-card--primary {
    border-color: var(--gold);
    box-shadow: 0 12px 35px rgba(212, 165, 116, 0.25);
}

.routing-card--primary::before {
    opacity: 1;
}

.btn-consultante-highlight {
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.4);
    font-weight: 700;
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: 14px; right: 14px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-subtle);
    padding: 4px 10px;
    border-radius: 20px;
}

.card-icon {
    font-size: 2rem;
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    margin-bottom: 20px;
    color: var(--gold);
}

.routing-card h3 {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.routing-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
    flex-grow: 1;
}

.routing-card .btn-primary,
.routing-card .btn-secondary { width: 100%; }

.terapeuta-plans {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    width: 100%;
}

.terapeuta-plans .btn-primary,
.terapeuta-plans .btn-secondary {
    width: 100%;
    text-align: center;
}

/* ============================================================
   AUTHORITY SECTION
   ============================================================ */
.authority-section {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 72px 6%;
    text-align: center;
    position: relative;
    z-index: 1;
}

.authority-container { max-width: 820px; margin: 0 auto; }

.authority-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: block;
}

.authority-text {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    line-height: 1.6;
    color: var(--text-light);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.92;
}

.authority-author {
    font-style: italic;
    color: var(--gold-hover);
    font-size: 0.88rem;
    letter-spacing: 0.05em;
}

/* ============================================================
   METHODOLOGY SECTION
   ============================================================ */
.method-section {
    padding: 100px 6%;
    position: relative;
    z-index: 1;
}

.method-container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 65px; }

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: var(--text-light);
    margin-bottom: 18px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.75;
}

.section-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
    display: block;
}

/* ── 5 pasos ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 70px;
}

/* Igual al .stat-card / .action-card de la app */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 40px 16px 28px;
    text-align: center;
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-glow);
}
.step-card:hover::before { opacity: 1; }

.step-number {
    position: absolute;
    top: -18px; left: 50%;
    transform: translateX(-50%);
    width: 36px; height: 36px;
    background: var(--bg-dark);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    color: var(--gold);
    font-size: 0.9rem;
    font-family: var(--font-body);
    box-shadow: 0 0 12px var(--gold-subtle);
}

.step-icon {
    font-size: 2rem;
    margin: 10px 0 14px;
    display: block;
}

.step-card h4 {
    font-size: 0.92rem;
    color: var(--gold-hover);
    margin-bottom: 10px;
    line-height: 1.4;
}

.step-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ── Tira de cartas ── */
.card-preview-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 20px;
}

.preview-card {
    width: 110px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    transform-style: preserve-3d;
    animation: cardEntrance 0.6s ease both;
    animation-delay: var(--d, 0s);
    aspect-ratio: 2/3;
    object-fit: cover;
}

.preview-card:hover {
    box-shadow: 0 16px 40px var(--gold-glow), 0 0 20px rgba(212, 165, 116, 0.1);
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(20px) rotateX(10deg); }
    to   { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* ============================================================
   EXPERIENCE + VIDEO SECTION
   ============================================================ */
.experience-section {
    /* Igual al glass-bg de la app */
    background: var(--glass-bg);
    border-top: 1px solid var(--border-subtle);
    padding: 100px 6%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.experience-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    color: var(--text-light);
    margin: 10px 0 18px;
}

.experience-content > p {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 0.97rem;
    line-height: 1.75;
}

/* igual al .feature-list pero con el ✦ dorado de la app */
.feature-list { list-style: none; margin-bottom: 36px; }

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-list li::before {
    content: "✦";
    color: var(--gold);
    font-size: 0.65rem;
    flex-shrink: 0;
    margin-top: 4px;
}

/* ── Video wrapper ── */
.video-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), 0 0 40px var(--gold-glow);
    aspect-ratio: 9/16;
    background: #000;
    max-height: 560px;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-overlay-badge {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    background: rgba(6, 11, 22, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--gold-hover);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 16px;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section {
    background: var(--bg-darker);
    padding: 100px 6%;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.faq-container { max-width: 820px; margin: 0 auto; }

/* Igual al .action-card */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all var(--transition);
}

.faq-item:hover { border-color: var(--gold-glow); }
.faq-item.active { border-color: var(--gold-glow); }

.faq-trigger {
    width: 100%;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    gap: 12px;
}

.faq-trigger span:first-child { flex: 1; }

.faq-icon {
    font-size: 1.3rem;
    color: var(--gold);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content p {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 72px 6% 40px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    background: var(--bg-darker);
    color: var(--text-dim);
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
}

.footer-inner { max-width: 900px; margin: 0 auto; }

/* Igual al .sidebar-logo h2 */
.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 24px;
    display: inline-block;
    line-height: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
    transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-divider {
    width: 50px; height: 1px;
    background: var(--gold);
    margin: 0 auto 28px;
    opacity: 0.3;
}

.footer-legal {
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--text-dim);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .steps-grid { grid-template-columns: repeat(3, 1fr); }
    .routing-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .experience-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .video-wrapper { max-height: 400px; }
}

@media (max-width: 640px) {
    .header-nav { 
        padding: 0 12px; 
    }
    .nav-actions {
        gap: 8px;
    }
    .btn-nav { 
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    .btn-exit {
        padding: 8px 8px;
        font-size: 0.75rem;
    }
    .logo-text { display: none; } /* Hide text logo on small mobile to fit all header items */
    .hero-section { padding: 90px 20px 80px; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .card-preview-row { gap: 10px; }
    .preview-card { width: 80px; }
    .method-section,
    .experience-section,
    .faq-section,
    .authority-section { padding: 70px 20px; }
    .footer { padding: 60px 20px 36px; }
    .footer-links { gap: 16px; }
}

@media (max-width: 400px) {
    .steps-grid { grid-template-columns: 1fr; }
}
