/* ═══════════════════════════════════════════════════════
   CINEMATIC DESIGN SYSTEM v3 — Psychology Website
   Video BG + Liquid Glass + Smooth Animations
   ═══════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
    --accent: #00F0FF;
    --accent-rgb: 0, 240, 255;
    --white: #ffffff;
    --text: #e2e6ec;
    --text-dim: #b0b8c4;
    --glass-bg: rgba(12, 14, 22, 0.62);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

body.theme-cambio {
    --accent: #ff6c37;
    --accent-rgb: 255, 108, 55;
}

/* ─── Reset & Base ─── */
html {
    /* overflow-y: scroll; removed to fix mobile scrolling */
}
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: #000;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    line-height: 1.7;
    font-size: 22px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

a { color: var(--white); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }
strong { color: var(--white); }
em { color: var(--text); }

/* ─── CINEMATIC VIDEO BACKGROUND ─── */
.video-placeholder-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('bg_canyon.jpg') center/cover no-repeat;
    z-index: -3;
    animation: placeholderZoom 20s ease-out forwards;
}

@keyframes placeholderZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.bg-video {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.bg-video.video-playing {
    opacity: 1;
}

/* ─── BOTTOM BLUR OVERLAY ─── */
.blur-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
    pointer-events: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    mask-image: linear-gradient(to top, black 0%, transparent 45%);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 45%);
}

/* ─── LIQUID GLASS EFFECT ─── */
.liquid-glass,
.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.14),
        0 6px 32px rgba(0, 0, 0, 0.48),
        0 0 80px rgba(0, 0, 0, 0.22);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.liquid-glass::before,
.faq-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.08) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.08) 75%,
        rgba(255, 255, 255, 0.3) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* ─── SMOOTH FADE-UP ANIMATION ─── */
@keyframes smoothFadeUp {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.animate-blur-fade-up {
    opacity: 0;
    animation: smoothFadeUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(12, 14, 22, 0.78);
    backdrop-filter: blur(35px) saturate(1.4);
    -webkit-backdrop-filter: blur(35px) saturate(1.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 -1px 2px rgba(255, 255, 255, 0.14),
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 0, 0, 0.2);
}

.navbar-glass {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3.5rem;
    transition: var(--transition);
}

.logo {
    font-size: 1.87rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.logo span {
    display: block;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.04em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
}

.nav-desktop ul {
    display: flex; list-style: none; gap: 2rem; align-items: center;
}

.nav-desktop a {
    font-size: 1.36rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.9);
}

.nav-desktop a:hover { color: var(--white); }

.hamburger {
    display: none;
    width: 52px; height: 52px;
    border-radius: 50%;
    align-items: center; justify-content: center;
    cursor: pointer; color: var(--white);
    border: none; background: none;
}

.ham-icon, .close-icon {
    position: absolute;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.close-icon { opacity: 0; transform: rotate(-180deg) scale(0.5); }
.menu-open .ham-icon { opacity: 0; transform: rotate(180deg) scale(0.5); }
.menu-open .close-icon { opacity: 1; transform: rotate(0) scale(1); }

.mobile-menu {
    position: fixed;
    top: 75px; left: 0; right: 0;
    z-index: 40;
    display: flex; flex-direction: column;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-open .mobile-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 1.05rem;
    color: var(--text);
    transition: background 0.3s;
}

.mobile-menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }

/* ─── HERO ─── */
.hero {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 3rem 2rem;
}

.hero-content {
    display: flex;
    align-items: flex-end;
    gap: 2rem;
}

.hero-left { flex: 1; }

.hero-meta {
    display: flex; flex-wrap: wrap; gap: 1.3rem;
    font-size: 1rem; color: var(--text-dim);
    margin-bottom: 0.8rem; letter-spacing: 0.04em;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    color: var(--white);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: clamp(1.4rem, 2.2vw, 1.7rem);
    color: var(--text);
    max-width: 600px;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hero-buttons {
    display: flex; flex-wrap: wrap; gap: 0.8rem;
}

.hero-right {
    flex-shrink: 0;
    max-width: 380px;
}

/* ─── Buttons ─── */
.btn-solid {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: var(--white);
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-solid:hover {
    background: #e5e5e5;
    color: #000;
}

.btn-glass {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    color: var(--white);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ─── Linehan Quote (Hero) ─── */
.linehan-quote {
    margin-top: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: 14px;
    max-width: 650px;
}

.linehan-quote blockquote {
    font-style: italic;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.linehan-quote cite {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ─── Profile Card ─── */
.profile-card {
    border-radius: 14px;
}

.profile-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(10%) contrast(105%);
    transition: var(--transition);
    border-radius: 14px 14px 0 0; /* Clip top corners to match card */
}

.profile-card:hover .profile-img {
    filter: grayscale(0%) contrast(100%);
}

.profile-text {
    padding: 1.2rem;
}

.profile-text h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.profile-text p {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ─── CONTENT SECTIONS ─── */
.content-section {
    position: relative;
    z-index: 10;
    padding: 1.5rem 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ─── Typography ─── */
h2 {
    font-size: clamp(2.4rem, 4.2vw, 3.6rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    color: var(--white);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

h3 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.35rem;
}

.section-desc {
    text-align: center;
    color: var(--text);
    font-size: 1.35rem;
    max-width: 700px;
    margin: 0 auto 0.8rem;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.ref-text {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.6rem;
    line-height: 1.5;
}

.ref-text a { color: var(--accent); }

.fine-print {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
    line-height: 1.2;
    opacity: 0.7;
}

/* ─── Glass Panel (content blocks) ─── */
.glass-panel {
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
    margin-bottom: 0.4rem;
}

.glass-panel p {
    color: var(--text);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.glass-panel ul {
    color: var(--text);
    font-size: 1.3rem;
    margin: 0.3rem 0 0.3rem 1.5rem;
    line-height: 1.75;
}

.glass-panel li { margin-bottom: 0.08rem; }

.glass-panel h3 { margin-bottom: 0.35rem; }

/* ─── Linehan Quote Inline ─── */
.linehan-quote-inline {
    padding: 0.7rem 1.1rem;
    border-radius: 14px;
    margin-bottom: 0.4rem;
}

.linehan-quote-inline blockquote {
    font-style: italic;
    font-size: 1.35rem;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.linehan-quote-inline cite {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ─── Cards Grid — 2-column modern ─── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.8rem;
}

.card {
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
    /* transform handled entirely by JS tilt — no CSS hover transform here */
}

.card p { color: var(--text); font-size: 1.3rem; line-height: 1.65; }
.card h4 { color: var(--white); }

.component-icon {
    color: var(--accent);
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

/* ─── Timeline — compact ─── */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0.5rem auto 0.8rem;
    padding: 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 31px;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
    position: relative;
    padding-left: 72px;
    margin-bottom: 0.35rem;
}

.timeline-dot {
    position: absolute;
    left: 24px; top: 12px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.4);
    z-index: 2;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.7);
}

.timeline-content {
    padding: 1rem 1.3rem;
    border-radius: 14px;
    /* transform handled entirely by JS tilt — no CSS hover transform here */
}

.timeline-content p { color: var(--text); font-size: 1.3rem; line-height: 1.65; }
.timeline-content h4 { margin-bottom: 0.3rem; }

/* ─── Specialties Grid ─── */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.35rem;
    margin-bottom: 0.7rem;
}

.specialty-card {
    padding: 1.2rem 1.4rem;
    border-radius: 14px;
}

.specialty-card p { color: var(--text); font-size: 1.3rem; line-height: 1.65; }

/* ─── Manuals Gallery ─── */
.manuals-gallery {
    margin-bottom: 1rem;
    text-align: center;
}

.manuals-gallery h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.manuals-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.manual-item {
    flex: 1 1 180px;
    max-width: 220px;
    text-align: center;
    padding: 0.7rem;
    border-radius: 14px;
}

.manual-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

/* .manual-item:hover .manual-img transform removed — parent card JS tilt handles it */

.manual-item p { color: var(--text); font-size: 0.95rem; }

/* ─── Quote Banner ─── */
.quote-banner {
    position: relative;
    z-index: 10;
    padding: 1.4rem 2rem;
    text-align: center;
    border-radius: 14px;
}

.quote-banner blockquote {
    font-size: 1.5rem;
    font-family: 'Georgia', serif;
    font-style: italic;
    max-width: 750px;
    margin: 0 auto 0.25rem;
    line-height: 1.5;
    color: var(--text);
}

.quote-banner cite {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.quote-banner.accent {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(0, 240, 255, 0.01)) !important;
}

/* ─── Resource Container ─── */
.resource-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-section h3 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.3rem;
    margin-bottom: 0.4rem;
}

.legal-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-style: italic;
    text-align: left;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.price { font-size: 1.2rem; color: var(--accent); font-weight: 600; }

.file-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem !important;
    margin-bottom: 0;
}

.file-card .btn-glass {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.file-info h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.file-info p {
    font-size: 0.85rem !important;
    color: var(--text);
    line-height: 1.3;
    margin-top: 0;
    margin-bottom: 0;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.8rem;
}

/* ─── Video Grid ─── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.5rem;
}

.video-placeholder {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    cursor: pointer;
    overflow: hidden;
}

.video-placeholder iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.play-button {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    transition: transform 0.3s;
}

/* .play-button hover scale removed — parent card JS tilt+scale handles it */
.video-placeholder p { color: var(--text); font-size: 1.05rem; }

/* ─── Contact Form ─── */
.contact-form {
    max-width: 560px;
    margin: 0.8rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    transition: var(--transition);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.14),
        0 6px 32px rgba(0, 0, 0, 0.48),
        0 0 80px rgba(0, 0, 0, 0.22);
    appearance: none;
    -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.2);
}

/* ─── Footer — tight, no extra space ─── */
footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0.5rem 2rem 0.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
}

footer p {
    margin: 0;
}

.footer-sub {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 0.2rem !important;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    .hero-content { flex-direction: column; align-items: flex-start; }
    .hero-right { max-width: 100%; width: 100%; }
    .navbar { padding: 0; }
    .navbar-glass { padding: 0.875rem 1.875rem; }
    .mobile-menu { top: 70px; }
    .hero { padding: 0 1.5rem 1.5rem; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    body { font-size: 19px; }
    .hero h1 { font-size: 2.5rem; }
    .hero-meta { gap: 0.4rem; font-size: 1rem; }
    .profile-card { max-width: 100%; }
    .file-card { flex-direction: column; text-align: center; }
    .specialties-grid { grid-template-columns: 1fr; }
    .resource-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .content-section { padding: 1.5rem 0; }
    .glass-panel { padding: 1rem 1.2rem; }
    .card { padding: 1rem 1.2rem; }
    .timeline-content { padding: 0.8rem 1rem; }
    h2 { margin-bottom: 0.6rem; }
    .hero { padding: 120px 1rem 1.2rem; }
    .container { padding: 0 1rem; }
    .logo { font-size: 1.3rem; }
    .logo span { font-size: 0.85rem; }
    .navbar-glass { padding: 0.875rem 1.2rem; }
    .download-grid { grid-template-columns: 1fr; }
    .articles-grid { grid-template-columns: 1fr; }
    
    /* FAQ & Manuals scaling for mobile */
    .faq-question {
        padding: 1.2rem !important;
        font-size: 1.15rem !important;
    }
    .faq-answer > div {
        padding: 0 1rem 1rem !important;
    }
    .manuals-grid {
        gap: 0.8rem;
    }
    .manual-item {
        flex: 1 1 130px;
        max-width: 150px;
        padding: 0.5rem;
    }
    .manual-item p {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }
    .manuals-gallery h4 {
        font-size: 1.1rem;
    }
}

#recursos, #contacto {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
#recursos .video-grid {
    margin-top: 0.4rem;
}
#contacto .contact-form {
    margin-top: 0.4rem;
}

/* ─── Dial Theme Toggle ─── */
.theme-dial {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 68px;
    height: 35px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    margin-left: 0.5rem;
}

.theme-dial .dial-knob {
    background: var(--white);
    border-radius: 50%;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.0rem;
    color: #000;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s;
    transform: translateX(0);
}

body.theme-cambio .theme-dial {
    border-color: rgba(var(--accent-rgb), 0.3);
    background: rgba(var(--accent-rgb), 0.1);
}

body.theme-cambio .theme-dial .dial-knob {
    transform: translateX(33px);
    background: var(--accent);
    color: #000;
}

.mobile-theme-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 1.5rem;
}

/* ─── Scroll Indicator ─── */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    pointer-events: none;
    z-index: 10;
}

.scroll-indicator span {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 12px rgba(var(--accent-rgb), 0.4);
}

.mouse-scroll {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.6),
        0 0 24px rgba(var(--accent-rgb), 0.3);
}

.mouse-wheel {
    width: 5px;
    height: 10px;
    background: var(--accent);
    border-radius: 3px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
    box-shadow: 0 0 8px var(--accent);
}

@keyframes scrollMouse {
    0% { transform: translate(-50%, 0); opacity: 0; }
    30% { opacity: 1; }
}

@media (max-width: 768px) {
    .scroll-indicator {
        display: none !important;
    }
}

/* ─── Tilt & Glisten Effect ─── */
.liquid-glass {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.glisten-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 6;
    border-radius: inherit;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.2s ease;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.18) 0%, transparent 65%);
}

/* ─── Success Modal ─── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: 440px;
    width: 90%;
    padding: 2.2rem 2rem;
    text-align: center;
    border-radius: 14px;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 52px;
    height: 52px;
    background: rgba(46, 213, 115, 0.15);
    color: #2ed573;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
}

.modal-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.modal-content p {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

.modal-content .btn-solid {
    width: 100%;
}

/* ─── Active Scroll Spy States ─── */
.nav-desktop a.active,
.mobile-menu a.active {
    color: var(--accent) !important;
    font-weight: 600;
}

/* ─── Global Hover Scaling & Glow Effects ─── */
.nav-desktop a,
.mobile-menu a,
.btn-solid,
.btn-glass,
.manual-item,
h2, h3, h4 {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease, box-shadow 0.4s ease, color 0.3s;
}

.nav-desktop a:hover,
.mobile-menu a:hover {
    text-shadow: 0 0 15px rgba(var(--accent-rgb), 0.95), 0 0 5px rgba(var(--accent-rgb), 0.4) !important;
}

.btn-solid:hover,
.btn-glass:hover {
    box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.8), 0 0 10px rgba(var(--accent-rgb), 0.4) !important;
}

/* manual-item: transform removed (was killing JS tilt with !important). Glow handled by .liquid-glass:hover */

/* h2/h3/h4 hover: ONLY glow, NO transform scale.
   Reason: these elements live inside .liquid-glass tilt cards.
   The parent card already does scale(1.15) via JS — if the heading
   also scales with !important it creates an independent motion that
   makes it LOOK like only the text tilts instead of the whole card. */
h2:hover,
h3:hover:not(#sobre-mi),
h4:hover {
    text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.98), 0 0 10px rgba(var(--accent-rgb), 0.5) !important;
}

/* Glass cards dynamic hover glow (+15%) */
.liquid-glass:hover,
.faq-item:hover {
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.29),
        0 10px 46px rgba(0, 0, 0, 0.69),
        0 0 52px rgba(var(--accent-rgb), 0.63) !important;
}

@media (hover: hover) {
    .nav-desktop a:hover,
    .mobile-menu a:hover {
        transform: scale(1.15) !important;
    }
    .btn-solid:hover,
    .btn-glass:hover {
        transform: scale(1.15) !important;
    }
    .liquid-glass:not(.navbar-glass):not(.modal-content):hover {
        transform: scale(1.15) !important;
    }
    .faq-item:hover {
        transform: scale(1.03) !important;
    }
}

/* ─── Testimonials ─── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.testimonial-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.testimonial-author {
    font-weight: 600;
    color: var(--accent);
    text-align: right;
}

/* ─── Articles Grid ─── */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.article-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.article-title {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    line-height: 1.3;
}
.article-excerpt {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
    flex-grow: 1; /* Pushes the button to the bottom */
}

/* ─── FAQ Accordion ─── */
.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.faq-item {
    border-radius: 14px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s;
}
.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}
.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: var(--accent);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-answer p {
    padding: 0 1.5rem 1.2rem;
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}
.faq-answer ul {
    padding: 0 2rem 1.5rem 3.5rem;
    margin: 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    list-style-type: disc;
}
.faq-answer li {
    margin-bottom: 0.6rem;
}
.faq-answer li:last-child {
    margin-bottom: 0;
}
.faq-item.active .faq-answer {
    max-height: 2000px;
}

/* ─── WhatsApp Float Button ─── */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    color: #fff;
    transform: translateY(-3px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    display: block;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        border-radius: 50%;
    }
    .whatsapp-float span {
        display: none; /* Hide text on mobile, just show icon */
    }
    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }
}

/* ─── Cuestionario de Autoevaluación ─── */
.cuestionario-card {
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.cuestionario-step {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cuestionario-opcion {
    cursor: pointer;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15) !important;
}

.cuestionario-opcion:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--accent) !important;
    transform: translateX(5px) !important;
}

/* ─── Habilidad DBT del Día Widget ─── */
#habilidad-dbt-widget {
    border: 1px solid rgba(255, 255, 255, 0.22);
}

#btn-otra-habilidad {
    border: 1px solid rgba(255,255,255,0.15) !important;
    transition: all 0.3s ease;
}

#btn-otra-habilidad:hover {
    border-color: var(--accent) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

