@import url('https://fonts.cdnfonts.com/css/anaktoria');

/* VARIABLES GLOABLES */
:root {
    --bg-color: #080808;
    --bg-surface: #121212;
    --bg-surface-light: rgba(25, 25, 25, 0.7);
    --gold: #C5A059;
    --gold-hover: #E3B96A;
    --text-main: #EAEAEA;
    --text-muted: #A0A0A0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-name: 'Anaktoria', serif;
    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* RESET & TYPOGRAPHY */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

p {
    text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

.gold-text {
    color: var(--gold);
}

.dark-bg {
    background-color: var(--bg-surface);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--gold);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.3);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* HEADER & NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: background-color var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
    padding: 1.5rem 0;
}

header.scrolled {
    background-color: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.logo-img-footer {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
    position: relative;
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: width var(--transition-fast);
}

.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

.desktop-nav a.active {
    color: var(--gold);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* MOBILE NAV */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
    pointer-events: none;
}

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

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.mobile-link {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mobile-link:hover {
    color: var(--gold);
}

/* HERO SECTION */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('assets/LOGO + PUERTA MISTERIO.jpeg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.8) 0%, rgba(8, 8, 8, 0.6) 50%, rgba(8, 8, 8, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-logotipo {
    height: 220px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 2rem;
}

.hero-name {
    font-size: clamp(1.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    font-family: var(--font-name);
    color: #FFFFFF;
}

.name-block {
    display: block;
    white-space: nowrap;
}

.hero-role {
    font-family: var(--font-body);
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 2rem;
    text-align: center;
}

.hero-pillars {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* SOBRE MI */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
    border-radius: 10px;
    pointer-events: none;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--gold);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.highlight-phrase {
    color: var(--gold);
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* ENFOQUE TERAPEUTICO */
.approach-icon {
    font-size: 3rem;
    color: rgba(197, 160, 89, 0.3);
    margin-bottom: 1rem;
}

.emotional-manifesto {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.manifesto-title {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
}

.emotional-manifesto p {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.manifesto-highlight {
    font-family: var(--font-heading) !important;
    font-size: 1.5rem !important;
    margin-top: 3rem;
    font-style: italic;
    color: #fff !important;
}

/* SERVICIOS */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.glass-card {
    background: var(--bg-surface-light);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(197, 160, 89, 0.3);
}

/* GROUP THERAPY SECTION */
.group-therapy {
    background: radial-gradient(circle at center, #151515 0%, #080808 100%);
}

.lead-text {
    text-wrap: balance;
}

.therapy-modalities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.modality-card {
    display: flex;
    flex-direction: column;
}

.modality-image {
    width: 100%;
    margin-bottom: -3rem;
    z-index: 1;
    padding: 0 1.5rem;
}

.modality-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.7);
    border: 1px solid rgba(197, 160, 89, 0.3);
    transition: transform 0.4s ease;
}

.modality-card:hover .modality-image img {
    transform: translateY(-10px);
}

.modality-info {
    padding: 5rem 2rem 2.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
}

.modality-info h3 {
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.modality-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modality-features-mini {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.modality-features-mini li {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--gold);
}

@media (max-width: 992px) {
    .therapy-modalities-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

.service-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* EXPERIENCIA */
.experience-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.experience-list {
    margin-bottom: 2rem;
}

.experience-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.1rem;
}

.experience-list i {
    margin-top: 5px;
}

.cedula-box {
    background-color: rgba(197, 160, 89, 0.1);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.experience-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* BLOG / VIDEOS */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-wrapper {
    background: var(--bg-surface-light);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: left;
}

.video-wrapper iframe {
    width: 100%;
    height: 315px; /* Fallback height */
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    display: block;
}

.video-title {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 400;
}

/* CTA */
.cta {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.9), rgba(28, 28, 28, 0.9)), url('assets/LOGO + PUERTA MISTERIO.jpeg') center/cover fixed;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

/* CONTACT & HORARIOS */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.contact-card p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.contact-card i {
    color: var(--gold);
    width: 20px;
    text-align: center;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.schedule-item.closed {
    color: var(--text-muted);
}

/* FOOTER */
footer {
    background-color: #050505;
    padding-top: 4rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.footer-quote {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--gold);
    color: #000;
}

.footer-bottom {
    background-color: #000;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* FLOATING WPP */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: transform var(--transition-fast);
}

.floating-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.modal.open {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    background-color: var(--bg-surface);
    border: 1px solid rgba(197, 160, 89, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(-20px);
    transition: transform var(--transition-fast);
}

.modal.open .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--gold);
}

.modal-body-text p {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.7;
}

.modal-body-text strong {
    color: var(--gold);
}

/* ANIMATIONS & RESPONSIVE */
.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

@media (max-width: 900px) {
    .about-container, .experience-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .experience-content .experience-text {
        order: 2;
    }
    
    .experience-content .experience-image {
        order: 1;
    }

    .hero-name {
        font-size: clamp(1.3rem, 9vw, 2.5rem);
    }

    .hero-role {
        font-size: 1.1rem;
    }
    
    .hero-pillars {
        font-size: 1.3rem;
    }
    
    .hero-logotipo {
        height: 150px;
    }

    .emotional-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .section-padding {
        padding: 4rem 0;
    }
}

/* SECTION DIVIDER */
.section-divider {
    height: 1px;
    width: 60%;
    margin: 0 auto;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.2;
}

/* BOOKS SECTION ENHANCEMENT */
#libros {
    background-color: #0a0a0a;
    position: relative;
}

#libros::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    opacity: 0.3;
    pointer-events: none;
}

/* PODCAST UNIFIED DESIGN V3 */
.podcast-unified-card {
    padding: 0 !important;
    overflow: hidden;
    background: rgba(15, 15, 15, 0.9) !important;
    backdrop-filter: blur(25px) !important;
    border: 1px solid rgba(197, 160, 89, 0.2) !important;
    position: relative;
}

.podcast-unified-content {
    display: flex;
    align-items: stretch;
}

.podcast-text-side {
    flex: 0 0 55%;
    padding: 4rem 3.5rem;
}

.podcast-image-side {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: transparent;
    border-left: none;
}

.podcast-image-inner-container {
    width: 100%;
    max-width: 480px;
    height: auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(197, 160, 89, 0.3);
}

.podcast-image-inner-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 10s ease;
}

.podcast-unified-card:hover .podcast-image-inner-container img {
    transform: scale(1.05);
}

.card-accent-line {
    position: absolute;
    top: 0;
    left: 4rem;
    width: 60px;
    height: 3px;
    background: var(--gold);
    z-index: 3;
}

.podcast-tagline {
    font-size: 1.4rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    color: #fff;
    text-align: left;
}

.podcast-body p {
    text-align: left;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.podcast-signature {
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.podcast-highlight-box {
    background: rgba(197, 160, 89, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    border-right: 2px solid var(--gold);
}

.podcast-manifesto {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    line-height: 1.4;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    padding-top: 2rem;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .podcast-unified-content {
        flex-direction: column;
    }
    
    .podcast-text-side {
        flex: 0 0 100%;
        padding: 3rem 1.5rem;
    }
    
    .podcast-image-side {
        flex: 0 0 100%;
        height: 400px;
        border-left: none;
        border-top: 1px solid rgba(197, 160, 89, 0.1);
    }
}

/* FEATURED VIDEO STYLES */
.featured-video-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem !important;
    position: relative;
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    overflow: hidden;
}

.featured-video-label {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--gold);
    color: #000;
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom-right-radius: 10px;
    z-index: 2;
}

.featured-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.featured-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.featured-video-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .featured-video-info h3 {
        font-size: 1.4rem;
    }
    .featured-video-box {
        padding: 1rem !important;
    }
}
