/* =========================================================
   VARIABLES DE MARCA
   ========================================================= */
:root {
    --color-principal: #4a3e3d;
    --color-secundario: #6d5952;
    --color-crema: #fdfbf7;
    --color-fondo: #f9f6f0;
    --color-cta: #8c7368;
    --color-cta-hover: #765f55;
    --shadow-soft: 0 10px 30px rgba(74, 62, 61, 0.05);
    --shadow-whatsapp: 0 5px 20px rgba(74, 62, 61, 0.25);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-principal);
    background-color: var(--color-fondo);
    line-height: 1.6;
    padding-top: 80px;
    overflow-x: hidden;
}

/* =========================================================
   MENÚ DE NAVEGACIÓN Y NUEVO LOGO
   ========================================================= */
.site-header {
    background-color: rgba(253, 251, 247, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.02);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos homogéneos para Psicología y Yanis, reduciendo 'con' */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--color-principal);
    text-decoration: none;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
}

.logo .logo-con {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--color-cta);
    margin: 0 6px;
    text-transform: lowercase;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--color-secundario);
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-cta);
}

.btn-nav {
    background-color: var(--color-cta);
    color: var(--color-crema) !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 500;
    white-space: nowrap;
}

.btn-nav:hover {
    background-color: var(--color-cta-hover);
}

/* Botón menú móvil con estética de WhatsApp (marrón corporativo) */
.btn-menu-movil {
    display: none;
    background-color: var(--color-cta);
    color: var(--color-crema);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(140, 115, 104, 0.25);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s;
    z-index: 1010;
}

.btn-menu-movil i {
    transition: transform 0.3s ease;
}

/* Animación interactiva del botón + al abrir */
.btn-menu-movil.active i {
    transform: rotate(135deg);
}

/* =========================================================
   SECCIÓN HERO
   ========================================================= */
.hero {
    padding: 80px 20px;
    background-color: var(--color-crema);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.5fr;
    gap: 50px;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.6vw, 1.95rem);
    line-height: 1.25;
    margin-bottom: 30px;
    color: var(--color-principal);
}

.hero-desc-card {
    position: relative;
    background-image: url('../img/fotosuperior.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 25px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(74, 62, 61, 0.06);
}

.hero-desc-overlay {
    position: absolute;
    inset: 0;
    background: rgba(74, 62, 61, 0.45); /* Aclara/equilibra el contraste */
    z-index: 1;
}

.hero-desc-card p {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    color: #ffffff; /* Texto blanco de alta legibilidad */
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 35px; /* Separación adaptada de la tarjeta */
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-main.primary {
    background-color: var(--color-cta);
    color: var(--color-crema);
    box-shadow: 0 5px 15px rgba(140, 115, 104, 0.2);
}

.btn-main.primary:hover {
    background-color: var(--color-cta-hover);
    transform: translateY(-2px);
}

.btn-main.secondary {
    border: 1px solid var(--color-cta);
    color: var(--color-cta);
}

.btn-main.secondary:hover {
    background-color: rgba(140, 115, 104, 0.05);
    transform: translateY(-2px);
}

.hero-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(74, 62, 61, 0.1);
    display: block;
}

/* =========================================================
   ESTRUCTURA DE ACORDEONES (SOBRE MÍ)
   ========================================================= */
.about {
    padding: 100px 20px;
    max-width: 850px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--color-cta);
    margin: 15px auto 0;
}

.about-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-accordion-item {
    background-color: var(--color-crema);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

/* Botones idénticos a los de agendar sesión por WhatsApp */
.btn-about-accordion {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    background-color: var(--color-cta);
    color: var(--color-crema);
    box-shadow: 0 5px 15px rgba(140, 115, 104, 0.15);
    transition: var(--transition);
}

.btn-about-accordion:hover {
    background-color: var(--color-cta-hover);
}

.btn-about-accordion i {
    transition: transform 0.3s ease;
}

.about-accordion-item.active .btn-about-accordion i {
    transform: rotate(180deg);
}

/* Panel desplegable con animación limpia */
.about-accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 32px;
    transition: max-height 0.35s cubic-bezier(0.3, 1, 0.3, 1), padding 0.35s ease;
}

.about-accordion-item.active .about-accordion-content {
    max-height: 1200px;
    padding: 30px 32px;
}

.about-accordion-content p {
    margin-bottom: 16px;
    font-size: 1.02rem;
    color: var(--color-secundario);
    font-weight: 300;
}

.about-accordion-content p:last-child {
    margin-bottom: 0;
}

.about-accordion-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--color-principal);
}

.about-bullets {
    list-style: none;
}

.about-bullets li {
    font-size: 1rem;
    color: var(--color-secundario);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-bullets li i {
    color: var(--color-cta);
}

.tarifas-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 10px;
}

.tarifa-box {
    background-color: var(--color-fondo);
    padding: 20px;
    border-radius: 16px;
}

.tarifa-box h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--color-principal);
}

.tarifa-box p {
    font-size: 0.92rem;
    line-height: 1.5;
}

.panel-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-cta);
    display: block;
    margin-top: 8px;
}

/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */
.faqs {
    padding: 100px 20px;
    max-width: 850px;
    margin: 0 auto;
}

.faq-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--color-crema);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    color: var(--color-principal);
    font-family: 'Poppins', sans-serif;
    padding: 22px 30px;
    font-size: 1.05rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--color-cta);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 30px;
    color: var(--color-secundario);
    font-size: 0.98rem;
    font-weight: 300;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 30px 22px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
    padding: 100px 20px;
    background-color: var(--color-crema);
    min-height: 400px;
}

.contact-solo {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-solo-lead {
    font-size: 1.05rem;
    color: var(--color-secundario);
    font-weight: 300;
}

/* =========================================================
   FOOTER Y MODALES
   ========================================================= */
.site-footer {
    background-color: var(--color-principal);
    color: var(--color-crema);
    padding: 40px 20px 30px;
    text-align: center;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
}

.footer-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(253, 251, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-crema);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.55;
    margin-bottom: 20px;
}

.footer-legal-btn {
    background: rgba(253, 251, 247, 0.1);
    color: rgba(253, 251, 247, 0.75);
    border: 1px solid rgba(253, 251, 247, 0.18);
    border-radius: 20px;
    padding: 7px 18px;
    cursor: pointer;
    margin: 4px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(74, 62, 61, 0.55);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--color-crema);
    border-radius: 22px;
    padding: 40px;
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-exit-btn {
    align-self: center;
    background-color: var(--color-cta);
    color: var(--color-crema);
    border: none;
    border-radius: 30px;
    padding: 10px 28px;
    cursor: pointer;
}

/* =========================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================= */
.whatsapp-flotante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--color-cta);
    color: var(--color-crema);
    height: 52px;
    width: 52px;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    z-index: 9999;
    box-shadow: var(--shadow-whatsapp);
    transition: 
        width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        right 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        bottom 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-radius 0.35s ease,
        background-color 0.3s ease;
}

.whatsapp-flotante span {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.whatsapp-flotante:not(.centrado-scroll):hover {
    width: 240px;
    background-color: var(--color-cta-hover);
}

.whatsapp-flotante:not(.centrado-scroll):hover span {
    max-width: 180px;
    opacity: 1;
    padding-left: 10px;
}

.whatsapp-flotante.centrado-scroll {
    right: 50%;
    transform: translateX(50%);
    width: 280px;
    height: 54px;
    border-radius: 30px;
}

.whatsapp-flotante.centrado-scroll span {
    max-width: 200px;
    opacity: 1;
    padding-left: 10px;
}

/* =========================================================
   RESPONSIVE (MÓVIL INTERACTIVO ESTILO APP)
   ========================================================= */
@media (max-width: 768px) {
    body {
        padding-top: 75px;
    }

    /* Activar el botón + estilo WhatsApp en el Header */
    .btn-menu-movil {
        display: flex;
    }

    /* Ventana desplegable interactiva como una App de pantalla completa */
    .nav-menu {
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: rgba(253, 251, 247, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 50px 30px;
        gap: 25px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.4s cubic-bezier(0.1, 0.9, 0.2, 1), opacity 0.3s ease;
        z-index: 999;
        justify-content: flex-start;
    }

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

    .nav-link {
        font-size: 1.25rem;
        font-weight: 500;
        width: 100%;
        text-align: center;
        padding: 14px;
        border-bottom: 1px solid rgba(140, 115, 104, 0.1);
    }

    .btn-nav {
        width: 90%;
        margin-top: 20px;
        text-align: center;
    }

    /* REORDENACIÓN HERO MÓVIL: Imagen arriba lo primero */
    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .hero-image {
        order: -1; /* Forzado al inicio superior */
    }

    /* Centrado absoluto y perfecto del texto del Hero */
    .hero-text {
        align-items: center;
        text-align: center;
    }

    .hero-title {
        text-align: center;
        font-size: 1.65rem;
        margin: 0 auto 25px auto;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .tarifas-panel-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-flotante.centrado-scroll {
        width: 86%;
    }
}