/* =========================================
   AlmaSync - Estilo Naturaleza Orgánica
   ========================================= */

/* Las fuentes de Google se cargan con <link> en cada página: un @import aquí
   obligaba a descargar primero este CSS y solo después las fuentes. */

/* Variables */
:root {
    --primary-color: #5D7052;
    /* Verde bosque cálido */
    --secondary-color: #8C6A5D;
    /* Terracota suave */
    --accent-color: #E8DCC4;
    /* Arena/Beige */
    --bg-color: #FDFBF7;
    /* Blanco crema cálido (Matches Logo) */
    --card-bg: #FFFFFF;
    --text-color: #4A4A48;
    --text-muted: #787878;
    --leaf-green: #A3B18A;
    --header-h: 76px;
}

html {
    scroll-behavior: smooth;
}

/* Los anclajes (#terapias, #faq...) no deben quedar tapados por la cabecera fija */
[id] {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Nunito', sans-serif;
    line-height: 1.7;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%235d7052' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

h1,
h2,
h3 {
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-weight: 700;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* =========================================
   Header
   ========================================= */
/* Cabecera compacta y fija: el logo grande ahora vive en el hero de la portada */
.site-header {
    position: sticky;
    top: 0;
    z-index: 150;
    background: rgba(253, 251, 247, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    border-bottom-color: rgba(93, 112, 82, 0.12);
    box-shadow: 0 6px 20px rgba(93, 112, 82, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(93, 112, 82, 0.15);
}

/* Navegación principal */
.main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.8rem;
}

.main-nav a {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 0.2rem;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    border-bottom-color: var(--leaf-green);
}

.main-nav a[aria-current="page"] {
    border-bottom-color: var(--secondary-color);
    color: var(--secondary-color);
}

.main-nav .nav-cta {
    background: var(--primary-color);
    color: white;
    padding: 0.55rem 1.3rem;
    border-radius: 50px 50px 50px 0;
    border-bottom: none;
}

.main-nav .nav-cta:hover,
.main-nav .nav-cta:focus-visible {
    background: #4C5C43;
}

/* Botón hamburguesa: solo visible en móvil y con JavaScript activo */
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.nav-toggle:hover {
    background: rgba(93, 112, 82, 0.08);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
    :root {
        --header-h: 66px;
    }

    .brand img {
        width: 44px;
        height: 44px;
    }

    .js .nav-toggle {
        display: flex;
    }

    /* Sin JavaScript el menú se queda visible debajo, nunca inaccesible */
    .main-nav {
        width: 100%;
        justify-content: center;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .js .header-inner {
        flex-wrap: nowrap;
    }

    .js .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1.5rem;
        background: var(--bg-color);
        border-bottom: 1px solid rgba(93, 112, 82, 0.12);
        box-shadow: 0 16px 30px rgba(93, 112, 82, 0.12);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    }

    .js .main-nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    .js .main-nav a {
        padding: 0.9rem 0.2rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(93, 112, 82, 0.1);
    }

    .js .main-nav .nav-cta {
        margin-top: 1rem;
        text-align: center;
        border-bottom: none;
    }
}

/* Salto al contenido para lectores de pantalla / teclado */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0 0 12px 0;
    z-index: 200;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 3px solid var(--leaf-green);
    outline-offset: 3px;
}

/* =========================================
   Hero
   ========================================= */
.hero {
    padding: 5rem 0 8rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Forma orgánica de fondo */
.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -100px;
    width: 600px;
    height: 600px;
    background-color: rgba(93, 112, 82, 0.1);
    border-radius: 43% 57% 72% 28% / 40% 41% 59% 60%;
    z-index: -1;
    animation: morph 15s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -100px;
    width: 500px;
    height: 500px;
    background-color: rgba(140, 106, 93, 0.1);
    border-radius: 72% 28% 44% 56% / 32% 64% 36% 68%;
    z-index: -1;
    animation: morph 12s ease-in-out infinite alternate-reverse;
}

@keyframes morph {
    0% {
        border-radius: 43% 57% 72% 28% / 40% 41% 59% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

/* Subrayado orgánico */
.hero h1::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: var(--accent-color);
    z-index: -1;
    border-radius: 4px;
    opacity: 0.6;
    transform: rotate(-1deg);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: var(--secondary-color);
}

.hero-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px 50px 50px 0;
    /* Forma hoja */
    font-weight: 700;
    box-shadow: 4px 4px 0px var(--accent-color);
    transform: translateY(0);
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 6px 6px 0px var(--secondary-color);
}

/* Cabecera de las páginas interiores: más baja que la de portada */
.hero--compact {
    padding: 3rem 0 4rem;
}

/* Portada: texto a la izquierda y logo a la derecha */
.hero--home {
    padding: 4rem 0 6rem;
    text-align: left;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 3rem;
}

.hero--home p {
    margin-left: 0;
}

.hero .eyebrow {
    display: block;
    font-family: 'Nunito', sans-serif;
    line-height: 1.5;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
}

.hero-link {
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}

.hero-link:hover,
.hero-link:focus-visible {
    border-bottom-color: var(--primary-color);
}

.hero-link i {
    font-size: 0.85em;
    margin-left: 0.3rem;
}

.hero-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.6rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(93, 112, 82, 0.15);
    font-weight: 600;
    color: var(--text-color);
}

.hero-facts i {
    color: var(--primary-color);
    margin-right: 0.35rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 25px 60px rgba(93, 112, 82, 0.2);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 860px) {
    .hero--home {
        padding: 2.5rem 0 4rem;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* En móvil el logo va arriba y más pequeño, para que el texto se vea sin hacer scroll */
    .hero-visual {
        order: -1;
    }

    .hero-visual img {
        max-width: 190px;
    }

    .hero--home p {
        margin-left: auto;
    }

    .hero-actions,
    .hero-facts {
        justify-content: center;
    }
}

/* =========================================
   Otras terapias (final de cada ficha)
   ========================================= */
.related-therapies {
    padding: 0 0 5rem;
}

.related-therapies h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.2rem;
}

.related-card {
    display: block;
    background: var(--card-bg);
    padding: 1.4rem 1.6rem;
    border-radius: 16px;
    border: 1px solid rgba(93, 112, 82, 0.12);
    box-shadow: 0 4px 15px rgba(93, 112, 82, 0.06);
}

.related-card strong {
    display: block;
    font-family: 'Merriweather', serif;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

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

.related-card:hover,
.related-card:focus-visible {
    border-color: var(--leaf-green);
    transform: translateY(-3px);
}

/* =========================================
   Cómo funciona
   ========================================= */
.how-it-works {
    padding: 5rem 0;
    background-color: #F8F5EF;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.how-steps {
    list-style: none;
    counter-reset: paso;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
}

.how-steps li {
    counter-increment: paso;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(93, 112, 82, 0.08);
}

.how-steps li::before {
    content: counter(paso);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.2rem;
    border-radius: 50% 50% 50% 0;
    background: var(--primary-color);
    color: var(--accent-color);
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.how-steps h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.how-steps p {
    color: var(--text-muted);
}

/* =========================================
   Services
   ========================================= */
.services {
    padding: 6rem 0;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-grid {
    display: grid;
    /* Con 4 servicios, 2x2 queda equilibrado; 3+1 dejaba una tarjeta descolgada */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(93, 112, 82, 0.08);
    /* Sombra verde suave */
    transition: transform 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

/* El marco de la tarjeta es apaisado y las fotos son verticales: sin esto,
   el recorte automatico centra en el pecho y decapita al sujeto. */
.service-image img[src*="reiki"] {
    object-position: center 18%;
}

.service-image img[src*="pendulo"] {
    object-position: center 28%;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Precios de servicios */
.service-pricing {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(93, 112, 82, 0.15);
}

.price-item {
    flex: 1;
    background: linear-gradient(135deg, rgba(93, 112, 82, 0.08) 0%, rgba(140, 106, 93, 0.08) 100%);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.price-item:hover {
    transform: translateY(-2px);
}

.price-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.price-item strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-family: 'Merriweather', serif;
}

.price-item.single {
    max-width: 150px;
    margin: 0 auto;
}

/* La promo lleva rótulo y fecha: necesita más ancho que un precio suelto */
.price-item.single.promo {
    max-width: 250px;
}

.price-item.promo {
    background: linear-gradient(135deg, rgba(163, 177, 138, 0.2) 0%, rgba(93, 112, 82, 0.15) 100%);
    border: 2px dashed var(--leaf-green);
    position: relative;
}

.price-item.promo span {
    color: var(--primary-color);
    font-weight: 700;
}

/* =========================================
   Contact & Footer
   ========================================= */
.contact-section {
    padding: 5rem 0;
    background-color: #F2EFE9;
    /* Un tono más oscuro que el bg principal */
    border-radius: 50px 50px 0 0;
}

/* Bloque de contacto: WhatsApp como canal principal, correo como alternativa */
.contact-actions {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05), 0 20px 40px rgba(0, 0, 0, 0.05);
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: #25d366;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
    font-size: 1.6rem;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    background-color: #1eb855;
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.35);
}

.contact-response {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-alt {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(93, 112, 82, 0.15);
    font-size: 0.98rem;
    color: var(--text-muted);
}

.contact-alt a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
}

/* En las fichas, el correo va justo bajo el botón de reserva */
.service-detail-text .contact-alt {
    margin-top: 1.2rem;
    padding-top: 0;
    border-top: none;
    font-size: 0.92rem;
}

.btn-primary i {
    margin-right: 0.5rem;
}

button {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 12px;
    background-color: var(--secondary-color);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Nunito', sans-serif;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

button:hover {
    background-color: #7A5C50;
}

.services-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.contact-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
}

.site-footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 320px;
    opacity: 0.9;
}

.brand--footer {
    color: white;
}

.brand--footer img {
    box-shadow: none;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-title {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    margin-bottom: 0.4rem;
}

.footer-col a {
    color: var(--accent-color);
    opacity: 0.85;
}

.footer-col a:hover,
.footer-col a:focus-visible {
    opacity: 1;
    text-decoration: underline;
}

.footer-col a i {
    width: 1.2em;
    margin-right: 0.3rem;
    text-align: center;
}

.footer-bottom {
    margin-top: 3rem;
    text-align: center;
}

.footer-legal {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-legal a {
    color: var(--accent-color);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    text-decoration: underline;
}

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-brand .social-links {
        justify-content: center;
    }

    .footer-col {
        align-items: center;
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--accent-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
}

.social-link.phone:hover {
    background: var(--primary-color);
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

/* WhatsApp Estilo Hoja */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% 50% 0 50%;
    /* Hoja */
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
    z-index: 100;
}

.whatsapp-float:hover {
    transform: rotate(10deg) scale(1.1);
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px 50px 50px 0;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px var(--accent-color);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0px var(--secondary-color);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-actions {
        padding: 2rem 1.5rem;
    }

    .btn-whatsapp {
        width: 100%;
        padding: 1.1rem 1.5rem;
        font-size: 1.05rem;
    }

}

/* =========================================
   Legal Pages
   ========================================= */
.legal-content {
    padding: 4rem 0;
    min-height: 70vh;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.legal-content .last-updated {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 3rem;
}

.legal-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(93, 112, 82, 0.08);
}

.legal-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.8;
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-content .btn-primary {
    margin-top: 2rem;
}

/* =========================================
   Service Detail Page Layout
   ========================================= */
.service-detail-section {
    padding: 2rem 0 5rem;
}
.service-detail-grid {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    align-items: flex-start;
}
.service-detail-image {
    /* Algo mas estrecha que el texto: la ficha tiene mucho contenido y a 50/50
       la columna de lectura queda angosta. */
    flex: 0 1 40%;
    min-width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(93, 112, 82, 0.15);
    /* La imagen acompana la lectura en vez de dejar un hueco vacio debajo */
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}
.service-detail-image img {
    width: 100%;
    height: auto;
    /* Las fotos verticales son muy altas: sin tope, la imagen fija llenaria
       toda la pantalla en portatiles de poca altura. */
    max-height: calc(100vh - var(--header-h) - 3rem);
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.service-detail-image:hover img {
    transform: scale(1.05);
}
.service-detail-text {
    flex: 1 1 55%;
    min-width: 300px;
    font-size: 1.1rem;
}
.service-detail-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}
.service-detail-text h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}
.service-detail-text h3.subheading {
    font-size: 1.3rem;
}

.service-detail-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.service-detail-text ul {
    margin-bottom: 2rem;
    padding-left: 0;
    list-style-type: none;
}
.service-detail-text ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
}
.service-detail-text ul li i {
    color: var(--leaf-green);
    margin-right: 10px;
    margin-top: 5px;
}
.service-detail-pricing {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(93, 112, 82, 0.08);
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* =========================================
   Interactive Quiz & FAQ Sections
   ========================================= */
.interactive-quiz, .faq-section {
    padding: 5rem 0;
}

.interactive-quiz {
    background-color: var(--bg-color);
}

.faq-section {
    background-color: #F8F5EF;
}

.interactive-quiz h2, .faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.quiz-intro, .faq-intro {
    text-align: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(93, 112, 82, 0.08);
    text-align: center;
}

.quiz-container h3 {
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.4rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-btn {
    background-color: #FAF8F2;
    border: 2px solid rgba(93, 112, 82, 0.2);
    padding: 1.2rem;
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.quiz-btn:hover {
    background-color: rgba(163, 177, 138, 0.2);
    border-color: var(--leaf-green);
    transform: translateY(-2px);
}

.quiz-result {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(93, 112, 82, 0.08);
    text-align: center;
    border: 2px solid var(--leaf-green);
}

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

.faq-item {
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(93, 112, 82, 0.05);
    background: var(--card-bg);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    border: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: background 0.3s;
    text-align: left;
    margin-top: 0;
}

.faq-question:hover {
    background-color: #FAF8F2;
}

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

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: #FAF8F2;
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: var(--text-color);
    line-height: 1.7;
}

.faq-answer p+p {
    padding-top: 0;
}

/* El atributo hidden debe ganar siempre */
[hidden] {
    display: none !important;
}

/* =========================================
   Botones secundarios
   ========================================= */
.btn-card {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.8rem;
    border-radius: 12px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(93, 112, 82, 0.2);
}

.btn-card:hover,
.btn-card:focus-visible {
    background-color: #4C5C43;
    transform: translateY(-2px);
}

.btn-reset {
    display: block;
    width: auto;
    margin: 1.5rem auto 0;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: underline;
    cursor: pointer;
}

.btn-reset:hover {
    background: none;
    color: var(--primary-color);
}

/* Bloque "Cómo suele sentirse" de las tarjetas */
.service-benefits {
    margin-top: 1.2rem;
}

.service-benefits strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

/* Resultado del test */
.quiz-result h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.quiz-result p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* =========================================
   Modalidad, duración y precios
   ========================================= */
.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    background: rgba(93, 112, 82, 0.1);
    color: var(--primary-color);
}

.tag.remote {
    background: rgba(163, 177, 138, 0.25);
}

.tag.onsite {
    background: rgba(140, 106, 93, 0.15);
    color: var(--secondary-color);
}

.price-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.8rem;
    text-align: center;
    line-height: 1.5;
}

.service-detail-pricing {
    flex-wrap: wrap;
}

.service-detail-pricing .price-note {
    flex-basis: 100%;
    margin-top: 0;
}

.price-item .price-before {
    display: block;
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.1rem;
    font-family: 'Merriweather', serif;
}

.promo-deadline {
    display: block;
    font-size: 0.78rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin-top: 0.3rem;
}

/* =========================================
   Descargo de responsabilidad
   ========================================= */
.disclaimer {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(140, 106, 93, 0.07);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    padding: 1.3rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

.disclaimer strong {
    color: var(--secondary-color);
}

.service-detail-text .disclaimer {
    margin: 0 0 2rem;
}

/* Letra pequeña legal del pie: presente pero sin robar peso al resto */
.footer-disclaimer {
    max-width: 620px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232, 220, 196, 0.2);
    font-size: 0.82rem;
    line-height: 1.65;
    opacity: 0.78;
}

/* Recuadro de preparación de sesión */
.prep-note {
    background: rgba(93, 112, 82, 0.05);
    padding: 1.2rem;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    margin-bottom: 2rem;
    font-style: italic;
}

/* =========================================
   Página Quiénes Somos
   ========================================= */
.about-section {
    padding: 1rem 0 5rem;
}

.about-intro {
    max-width: 750px;
    margin: 0 auto 3.5rem;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-color);
    text-align: center;
}

.about-heading {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}

/* Narrativa "Por qué existe AlmaSync" */
.about-story {
    max-width: 720px;
    margin: 0 auto 4rem;
    font-size: 1.08rem;
    line-height: 1.9;
}

.about-story h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.about-quote {
    margin: 2.5rem 0;
    padding: 1.8rem 2rem;
    border-left: 5px solid var(--leaf-green);
    background: linear-gradient(135deg, rgba(93, 112, 82, 0.06) 0%, rgba(163, 177, 138, 0.06) 100%);
    border-radius: 0 16px 16px 0;
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--primary-color);
}

/* Pasos numerados "Qué puedes esperar" */
.steps {
    max-width: 720px;
    margin: 0 auto 4rem;
    padding: 0;
    list-style: none;
    counter-reset: paso;
}

.steps li {
    position: relative;
    counter-increment: paso;
    padding: 0 0 2.2rem 4.5rem;
}

.steps li::before {
    content: counter(paso);
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--accent-color);
    font-family: 'Merriweather', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

/* Línea que une los pasos */
.steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 3.4rem;
    bottom: 0.6rem;
    width: 2px;
    background: rgba(93, 112, 82, 0.2);
}

.steps li:last-child {
    padding-bottom: 0;
}

.steps h3 {
    font-size: 1.25rem;
    margin: 0.5rem 0 0.5rem;
}

.steps p {
    color: var(--text-muted);
    margin: 0;
}

.about-cta {
    text-align: center;
    margin-top: 3rem;
}

.values-grid {
    display: grid;
    /* Son 4 tarjetas: 2x2 queda equilibrado, 3+1 deja una descolgada */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.value-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(93, 112, 82, 0.08);
}

.value-card i {
    font-size: 2rem;
    color: var(--leaf-green);
    margin-bottom: 1rem;
    display: block;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
}

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

/* =========================================
   Página 404
   ========================================= */
.error-page {
    padding: 4rem 0 6rem;
    text-align: center;
    min-height: 45vh;
}

.error-page h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 2.5rem;
}

/* =========================================
   Ajustes responsive
   ========================================= */
@media (max-width: 768px) {

    .services h2,
    .contact-section h2,
    .interactive-quiz h2,
    .faq-section h2 {
        font-size: 2rem;
    }

    .main-nav {
        gap: 0.4rem 1.2rem;
        margin-top: 1.4rem;
    }

    .main-nav a {
        font-size: 0.95rem;
    }

    .hero {
        padding: 3rem 0 5rem;
    }

    .services,
    .interactive-quiz,
    .faq-section {
        padding: 3.5rem 0;
    }

    .quiz-container,
    .quiz-result {
        padding: 2rem 1.5rem;
    }

    .service-detail-pricing {
        padding: 1.5rem;
    }

    /* Apiladas en vertical, una imagen fija estorbaria la lectura */
    .service-detail-image {
        position: static;
    }

    .service-detail-grid {
        gap: 2rem;
    }

    .faq-question {
        font-size: 1.05rem;
        padding: 1.2rem;
    }
}

/* Aparición suave al hacer scroll (solo si hay JavaScript: sin él, todo visible) */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Respeta la preferencia de movimiento reducido del sistema */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}