/*
Theme Name: Mujeres en Calma
Theme URI: https://mujeresencalma.com
Author: Arturo56k
Author URI: https://github.com/arturo56k
Description: A modern theme designed for Elementor Pro Theme Builder, WooCommerce, and Stripe payment integration. Optimized for SEO and AI Crawlers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: mujeres-en-calma
WC requires at least: 8.0
WC tested up to: 8.5
*/

/* -----------------------
   Variables
   ----------------------- */
:root {
    /* Palette Definition */
    --bg-color: #F6F1EA;
    --text-dark: #2F3B34;
    --primary-sage: #6A8A82;
    --accent-terra: #C97C5D;
    --accent-pink: #E9A298;
    --pop-berry: #CC3366;

    --white: #ffffff;
    --glass-bg: rgba(246, 241, 234, 0.85);
    /* Based on bg-color */
    --glass-dark: rgba(47, 59, 52, 0.4);
    --glass-darker: rgba(47, 59, 52, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal scroll on mobile */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Replace default cursor */
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: none;
    /* Hide default cursor for custom one */
}

button,
.btn,
.scroll-indicator {
    cursor: none;
}

/* -----------------------
   Wow Factor: Custom Cursor
   ----------------------- */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #b97e63;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(185, 126, 99, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Magnetic Hover State */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(185, 126, 99, 0.2);
    border-color: #b97e63;
}

/* -----------------------
   Wow Factor: Cinematic Preloader
   ----------------------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    /* Use viewport width */
    max-width: 100%;
    /* Prevent overflow */
    height: 100%;
    background-color: var(--bg-color);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
    overflow: hidden;
    /* Hide any overflow */
}

.preloader-content {
    overflow: hidden;
    text-align: center;
}

.preloader-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    /* Responsive preloader text */
    color: var(--text-dark);
    transform: translateY(100%);
    animation: textReveal 1.2s cubic-bezier(0.76, 0, 0.24, 1) forwards;
    padding: 0 1rem;
    /* Prevent overflow on small screens */
}

.preloader.hide {
    transform: translateY(-100%);
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-sage);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(47, 59, 52, 0.2);
}

.btn-accent {
    background-color: var(--accent-terra);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--pop-berry);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 124, 93, 0.3);
}

/* -----------------------
   Combined Shiny & Gradient Button
   ----------------------- */
@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@property --gradient-percent {
    syntax: "<percentage>";
    initial-value: 20%;
    inherits: false;
}

@property --gradient-shine {
    syntax: "<color>";
    initial-value: #C97C5D;
    /* accent-terra hex */
    inherits: false;
}

.shiny-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Glow Effect - Behind the button */
.shiny-glow {
    position: absolute;
    inset: -4px;
    background: linear-gradient(90deg, var(--primary-sage), var(--accent-terra), var(--accent-pink));
    border-radius: 9999px;
    filter: blur(12px);
    opacity: 0.6;
    transition: opacity 0.3s;
    z-index: -1;
}

.shiny-wrapper:hover .shiny-glow {
    opacity: 0.8;
}

.shiny-cta {
    --gradient-angle: 0deg;

    position: relative;
    /* was absolute in ref, but here needs to be blockish */
    border-radius: 9999px;
    padding: 0.6rem 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    cursor: pointer;

    /* Inner Gradient (Sage -> Terra) + Spinning Border */
    background: linear-gradient(110deg, var(--primary-sage), var(--accent-terra)) padding-box,
        conic-gradient(from var(--gradient-angle),
            transparent 20%, rgba(255, 255, 255, 0.7) 40%, transparent 60%) border-box;

    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);

    animation: border-spin 3s linear infinite;
    transition: transform 0.3s ease;
}

.shiny-cta:hover {
    transform: translateY(-2px);
}

/* Icons inside button */
.shiny-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.shiny-cta:hover svg {
    transform: translateX(3px);
}

@keyframes border-spin {
    0% {
        --gradient-angle: 0deg;
    }

    100% {
        --gradient-angle: 360deg;
    }
}

/* Icon Circle Button */
.btn-icon-circle {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.btn-icon-circle:hover {
    transform: rotate(45deg);
}

/* Footer */
footer.site-footer {
    background-color: var(--text-dark);
    color: var(--bg-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--accent-pink);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links li {
    list-style: none;
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent-terra);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* WooCommerce & Elementor Compatibility Placeholders */
.elementor-section {
    margin-top: 100px;
}

/* Accessibility Utilities */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link:focus {
    background-color: var(--bg-color);
    color: var(--text-dark);
    display: block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    padding: 1rem 2rem;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100000;
    text-decoration: none;
    outline: 2px solid var(--accent-terra);
    clip: auto !important;
    clip-path: none;
    height: auto;
    width: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* -----------------------
   Hero Section
   ----------------------- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    padding-bottom: 15vh;

    /* Background image - directly set */
    background-image: url('https://www.mujeresencalma.com/wp-content/uploads/2025/12/hero-bg.jpg');
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: 2rem;
    padding-top: 35vh;
    color: var(--white);
}

.hero-subtitle {
    display: block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    color: var(--accent-pink);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Background Animation */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: 115%;
    background-position: center 55%;
    z-index: -2;
    will-change: transform;
    animation: cinematicDrift 25s ease-in-out infinite alternate;
}

.hero-title {
    margin-bottom: 2rem;
    font-size: clamp(3.5rem, 9vw, 5rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #ffffff !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-family: 'Playfair Display', serif;
}

.hero-title span {
    display: block;
    /* Homologación: sin cursiva en todos los hero */
    font-style: normal;
    font-weight: 400;
    margin-top: 10px;
}

.hero-content p {
    margin-bottom: 2rem;
}

.hero-content .btn {
    margin-bottom: 2.5rem;
    backdrop-filter: blur(4px);
    background-color: rgba(201, 124, 93, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
}

.hero-content .btn:hover {
    transform: translateY(-3px);
    background-color: rgba(204, 51, 102, 0.95);
    box-shadow: 0 0 25px rgba(204, 51, 102, 0.5), 0 0 10px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-decoration: none;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 4px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

.scroll-arrow {
    color: var(--white);
    font-size: 1.2rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

@keyframes scrollWheel {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* Animations */
.reveal-text {
    opacity: 0;
    filter: blur(15px);
    transform: translateY(40px) scale(0.95);
    animation: blurSlideUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity, filter;
}

.delay-100 {
    animation-delay: 0.2s;
}

.delay-200 {
    animation-delay: 0.4s;
}

.delay-300 {
    animation-delay: 0.6s;
}

.delay-400 {
    animation-delay: 0.8s;
}

@keyframes blurSlideUp {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes cinematicDrift {
    0% {
        transform: scale(1.05) translateX(0);
    }

    100% {
        transform: scale(1.1) translateX(-2%);
    }
}

/* Global Hero Overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* -----------------------
   Section Styles (from HTML model)
   ----------------------- */
.section-padding {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--text-dark);
}

.section-header span {
    color: var(--accent-terra);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

/* -----------------------
   Philosophy Section
   ----------------------- */
.philosophy {
    position: relative;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.philosophy-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #4a4a4a;
}

.image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-card img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.image-card:hover img {
    transform: scale(1.05);
}

/* -----------------------
   Services / Pricing Cards
   ----------------------- */
.services {
    background-color: #fff;
}

.pricing-card {
    background-color: #ffffff;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    padding: 0;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.card-meta {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1rem;
}

/* Visual Headers for Cards */
.card-visual {
    height: 140px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-icon {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Card Gradients */
.visual-sage {
    background: linear-gradient(135deg, #6A8A82, #8CAEA5);
}

.visual-cosmic {
    background: linear-gradient(135deg, #2F3B34, #4A5D53);
}

.visual-terra {
    background: linear-gradient(135deg, #C97C5D, #E29E85);
}

.visual-mystic {
    background: linear-gradient(135deg, #9b5c8f, #CC3366);
}

/* La tarjeta 🌸 usaba `visual-rose` sin estilo, quedando transparente y mostrando blanco.
   La igualamos al header verde oscuro (misma familia que `.visual-cosmic`). */
.visual-rose {
    background: linear-gradient(135deg, #2F3B34, #4A5D53);
}

/* Price Tag */
.price-tag {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-weight: 400;
}

.price-tag span {
    font-size: 1.5rem;
    vertical-align: super;
}

/* Card Badges */
.card-badge {
    position: absolute;
    top: 155px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.badge-popular {
    background: var(--accent-terra);
    color: var(--white);
}

.badge-exclusive {
    background: var(--pop-berry);
    color: var(--white);
}

.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 0.9rem;
}

/* -----------------------
   Testimonials Section
   ----------------------- */
.testimonials {
    background-color: var(--primary-sage);
    color: var(--white);
    text-align: center;
}

.testimonial-content {
    max-width: 800px;
    margin: 0 auto;
}

.quote-icon {
    font-size: 4rem;
    color: var(--accent-pink);
    opacity: 0.5;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.testimonial-author {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* -----------------------
   Contact Section
   ----------------------- */
.contact {
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: none;
    background-color: #ffffff;
    border-bottom: 2px solid var(--primary-sage);
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--accent-terra);
    background-color: #fff;
}

/* Mobile */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    nav {
        padding: 0.8rem 1.5rem;
    }

    .philosophy-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------
   About Page
   ----------------------- */
/* Subpage Hero Adjustment */
body.page-template-page-acerca-de .hero,
body.page-template-page-servicios .hero,
body.page-id-about .hero,
body.page-id-services .hero {
    height: 50vh;
    min-height: 400px;
    padding-top: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #555;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* -----------------------
   Services Page
   ----------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-sage), var(--accent-terra));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-sage);
    margin-bottom: 1.5rem;
}

.service-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-sage) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-white {
    background: var(--white);
    color: var(--text-dark);
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-white:hover {
    background: var(--accent-pink);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* -----------------------
   Contact Page
   ----------------------- */
/* Subpage Hero Adjustment */
body.page-template-page-contacto .hero,
body.page-id-contact .hero {
    height: 50vh;
    min-height: 400px;
    padding-top: 60px;
}

.contact-section {
    text-align: center;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
    border: 2px solid var(--primary-sage);
    border-radius: 10px;
    padding: 1rem;
}

textarea.form-control:focus {
    border-color: var(--accent-terra);
}

/* -----------------------
   Shop / E-commerce
   ----------------------- */
/* Subpage Hero Adjustment for Shop Archive */
body.post-type-archive-product .hero,
body.tax-product_cat .hero,
body.tax-product_tag .hero {
    height: 50vh;
    min-height: 400px;
    padding-top: 60px;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary-sage);
    border-radius: 50px;
    background: transparent;
    color: var(--primary-sage);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-sage);
    color: var(--white);
}

/* Products Grid */
.products-grid,
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(18px, 2.5vw, 32px);
    padding: 0;
    margin: 2rem 0 0;
    list-style: none;
}

/* Custom product cards (woocommerce.php) - mantener coherencia visual con las cards de portada */
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Ensure WooCommerce standard list items match our grid */
ul.products li.product {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

ul.products li.product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Cabecera visual de la tarjeta (imagen) */
.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-terra));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* WooCommerce default thumbnails */
ul.products li.product a img,
ul.products li.product img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-terra);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.8rem;
    color: var(--primary-sage);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.product-card h3,
ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    padding: 0;
    line-height: 1.25;
}

.product-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;

    /* Mantener tarjetas parejas (similar a portada) */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

/* Botón en cards de tienda: evita que se rompa en 2 líneas (VER / MÁS) */
.product-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    flex: 0 0 auto;
}

.product-price,
ul.products li.product .price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0;
}

/* En móvil muy angosto: apilar precio + botón para que no se deforme */
@media (max-width: 420px) {
    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .product-footer .btn {
        width: 100%;
        padding: 0.9rem 1.6rem;
    }

    .product-price {
        margin-bottom: 0.35rem;
    }
}

.product-price .original,
ul.products li.product .price del {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* WooCommerce Button override */
ul.products li.product .button {
    background-color: var(--primary-sage);
    color: var(--white);
    border-radius: 50px;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: inline-block;
}

ul.products li.product .button:hover {
    background-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------
   WooCommerce Cart
   ----------------------- */
.woocommerce-cart .entry-content .woocommerce {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .woocommerce-cart .entry-content .woocommerce {
        grid-template-columns: 1fr;
    }
}

/* Cart Table Container */
.woocommerce-cart-form {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.woocommerce-cart table.cart {
    border: none !important;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.woocommerce-cart table.cart th {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--text-dark);
    padding: 1rem;
    border-bottom: 2px solid var(--primary-sage);
}

.woocommerce-cart table.cart td {
    padding: 1.5rem 1rem;
    background: #fff;
    border-top: 1px solid #eee;
}

.woocommerce-cart table.cart td.actions {
    border: none;
    padding-top: 2rem;
}

/* Coupon & Update Cart */
.woocommerce-cart table.cart td.actions .coupon {
    display: flex;
    gap: 1rem;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 50px;
    width: 150px;
}

/* Cart Totals (Sidebar) */
.cart-collaterals .cart_totals {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 120px;
    width: 100%;
    float: none;
}

.cart-collaterals .cart_totals h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    font-family: 'Playfair Display', serif;
}

.cart-collaterals .cart_totals table.shop_table {
    border: none;
    width: 100%;
}

.cart-collaterals .cart_totals table.shop_table th {
    padding: 1rem 0;
    color: #666;
    font-weight: normal;
}

.cart-collaterals .cart_totals table.shop_table td {
    padding: 1rem 0;
    text-align: right;
    font-weight: 700;
}

.cart-collaterals .cart_totals .wc-proceed-to-checkout {
    margin-top: 2rem;
}

.cart-collaterals .cart_totals .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
}

/* -----------------------
   WooCommerce Checkout
   ----------------------- */
.woocommerce-checkout .woocommerce {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

@media (max-width: 900px) {
    .woocommerce-checkout .woocommerce {
        grid-template-columns: 1fr;
    }
}

/* Checkout Form Fields */
.col2-set {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    float: none;
    margin-bottom: 2rem;
}

.col2-set .col-1,
.col2-set .col-2 {
    float: none;
    width: 100%;
    max-width: none;
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
#order_review_heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-color);
    font-family: 'Playfair Display', serif;
    color: var(--text-dark);
}

.woocommerce form .form-row {
    padding: 0;
    margin: 0 0 1.5rem;
}

.woocommerce form .form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fbfbfb;
}

.woocommerce form .form-row .input-text:focus,
.woocommerce form .form-row select:focus {
    outline: none;
    border-color: var(--primary-sage);
    background: #fff;
}

/* Order Review (Sidebar) */
#order_review_heading {
    display: none;
    /* Hide default heading to style custom */
}

.woocommerce-checkout-review-order {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 120px;
}

.woocommerce-checkout-review-order table.shop_table {
    border: none;
    margin-bottom: 2rem;
}

.woocommerce-checkout-review-order table.shop_table th,
.woocommerce-checkout-review-order table.shop_table td {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.woocommerce-checkout-review-order table.shop_table th {
    color: #666;
    font-weight: normal;
}

.woocommerce-checkout-review-order table.shop_table td {
    text-align: right;
    font-weight: 700;
}

/* Payment Methods */
#payment {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1rem;
}

#payment ul.payment_methods {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

#payment .place-order .button {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* General WooCommerce Button */
.woocommerce button.button.alt,
.woocommerce a.button.alt {
    background-color: var(--primary-sage);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: var(--text-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* =============================
   PRODUCTO INDIVIDUAL (WooCommerce)
   - Botón principal (Reservar ahora) debe seguir la paleta del tema
   - Relacionados: grid + cards consistentes con catálogo
   ============================= */

/* Botón principal (woocommerce + woocommerce-appointments) */
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart button.single_add_to_cart_button,
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce .single_add_to_cart_button,
.wc-appointments-appointment-form-button {
    background-color: var(--primary-sage) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
    border: none !important;

    font-family: 'Lato', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;

    padding: 0.9rem 1.6rem !important;
    line-height: 1 !important;
    min-height: 44px;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce .single_add_to_cart_button:hover,
.wc-appointments-appointment-form-button:hover {
    background-color: var(--text-dark) !important;
    transform: translateY(-2px);
}

/* Relacionados: usar el mismo grid que catálogo */
.woocommerce .related.products ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(18px, 2.5vw, 32px);
    margin-top: 2rem;

    /* WooCommerce agrega ::before/::after (clear fixes) que en grid generan “celdas vacías”. */
}

.woocommerce .related.products ul.products::before,
.woocommerce .related.products ul.products::after {
    content: none !important;
    display: none !important;
}

/* Cards de productos relacionados: coherencia visual */
.woocommerce .related.products ul.products li.product {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);

    /* Padding interior para que texto/botón no queden pegados al borde */
    padding-bottom: 1.25rem;
}

/* Contenido (título/precio) dentro de la card relacionada */
.woocommerce .related.products ul.products li.product .woocommerce-loop-product__link {
    display: block;
    padding: 1.1rem 1.25rem 0.75rem;
}

.woocommerce .related.products ul.products li.product .price {
    padding: 0 1.25rem;
    margin-bottom: 0.75rem;
}

.woocommerce .related.products ul.products li.product .button,
.woocommerce .related.products ul.products li.product a.button {
    margin-left: 1.25rem;
    margin-right: 1.25rem;
}

.woocommerce .related.products ul.products li.product:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Miniatura en relacionados: recorte correcto */
.woocommerce .related.products ul.products li.product a img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    display: block;
}

/* Botón dentro de cards relacionadas */
.woocommerce .related.products ul.products li.product .button,
.woocommerce .related.products ul.products li.product a.button {
    background-color: var(--primary-sage) !important;
    color: var(--white) !important;
    border-radius: 50px !important;
}

.woocommerce .related.products ul.products li.product .button:hover,
.woocommerce .related.products ul.products li.product a.button:hover {
    background-color: var(--text-dark) !important;
}

@media (max-width: 900px) {
    .woocommerce .related.products ul.products {
        grid-template-columns: 1fr;
    }
}

/* -----------------------
   Blog / Posts Grid
   ----------------------- */
/* Subpage Hero for Blog */
body.blog .hero,
body.single .hero,
body.search .hero,
body.archive .hero {
    height: 50vh;
    min-height: 400px;
    padding-top: 60px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
    display: block;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-date {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-sage);
    margin-bottom: 0.5rem;
    font-weight: 700;
    display: block;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.read-more-link {
    display: inline-block;
    font-weight: 700;
    color: var(--accent-terra);
    margin-top: auto;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more-link:hover {
    color: var(--text-dark);
}

/* Pagination */
.pagination {
    margin-top: 4rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--primary-sage);
    color: #fff;
    border-color: var(--primary-sage);
}/* -----------------------
   Single Post
   ----------------------- */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
}

.entry-header {
    text-align: center;
    margin-bottom: 3rem;
}

.entry-meta {
    margin-bottom: 1rem;
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content h2,
.entry-content h3 {
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Search Results */
.search-no-results .search-form {
    max-width: 600px;
    margin: 0 auto;
}

.search-form label {
    display: block;
    margin-bottom: 1rem;
}

.search-field {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary-sage);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

.search-submit {
    margin-top: 1rem;
    background-color: var(--text-dark);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
}

/* -----------------------
   Podcast Page
   ----------------------- */

/* Make RSS.app embeds responsive and aligned */
.podcast-page .podcast-embed iframe {
    width: 100% !important;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: 16px;
    overflow: hidden;
}

/* Subpage hero sizing consistency */
.hero.hero--subpage {
    height: 50vh;
    min-height: 400px;
    padding-top: 60px;
}

/* -----------------------
   RESPONSIVE / MOBILE OPTIMIZATION
   ----------------------- */

/* Hide Custom Cursor on Touch Devices */
@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body,
    a,
    button {
        cursor: auto;
    }
}

/* Base Mobile Styles (Header) */
.mobile-toggle {
    display: none;
    /* Hide by default on Desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10001;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.mobile-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   MOBILE MENU & OVERLAY (< 768px)
   ========================================= */
@media (max-width: 767px) {

    /* Mobile Toggle Button - Only visible when overlay is open */
    .mobile-toggle.overlay-toggle {
        display: flex;
        position: fixed;
        top: 25px;
        right: 25px;
        z-index: 10002;
    }

    /* Menu Overlay Container - ABSOLUTE FULL SCREEN - MAXIMUM SPECIFICITY */
    body nav.main-navigation .nav-menu-container,
    body header.site-header nav.main-navigation .nav-menu-container,
    body .nav-menu-container {
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        max-height: 100vh !important;
        min-height: 100vh !important;

        /* Dark Solid Background - No transparency */
        background: rgb(45, 55, 50) !important;
        background-color: rgb(45, 55, 50) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;

        transform: translateX(-100vw) !important;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1) !important;
        z-index: 999999 !important;
        padding: 2rem 1rem !important;
        margin: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        
        /* Force no borders, radius or constraints - escape parent */
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        outline: none !important;
        
        /* Break any parent constraints completely */
        float: none !important;
        clear: both !important;
        contain: none !important;
        
        /* Hide by default */
        visibility: hidden !important;
        opacity: 0 !important;
    }

    body nav.main-navigation .nav-menu-container.active,
    body header.site-header nav.main-navigation .nav-menu-container.active,
    body .nav-menu-container.active {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Mobile Close Button (X) - Top Left, Above Logo */
    .mobile-close-btn {
        display: none; /* Hidden by default, shown only in mobile overlay */
        position: absolute;
        top: 2rem;
        left: 2rem;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1000001;
        padding: 0;
        justify-content: center;
        align-items: center;
    }

    body.menu-open .mobile-close-btn {
        display: flex !important;
    }

    .mobile-close-btn .close-bar {
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--white);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .mobile-close-btn .close-bar:nth-child(1) {
        transform: rotate(45deg);
    }

    .mobile-close-btn .close-bar:nth-child(2) {
        transform: rotate(-45deg);
    }

    .mobile-close-btn:hover .close-bar {
        background-color: var(--accent-terra);
    }

    /* Mobile Brand/Logo inside Menu */
    .mobile-menu-brand {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-family: 'Playfair Display', serif;
        font-size: 1.8rem;
        color: #fff;
        margin-bottom: 3rem;
        margin-top: 4rem; /* Space for close button above */
        padding: 1rem 0;
        position: relative;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        width: 100%;
        justify-content: center;
    }

    .logo-icon {
        color: var(--accent-terra);
        font-size: 1.5rem;
    }

    /* Links Stack */
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem; /* Reduced gap to fit more content */
        padding: 1rem 0; /* Reduced padding */
        margin: 0;
        list-style: none;
        width: 100%; /* Use full available width */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav-links a {
        font-size: 1.8rem; /* Slightly smaller font */
        font-family: 'Playfair Display', serif;
        color: #fff;
        text-decoration: none;
        transition: all 0.3s ease;
        display: block;
        padding: 0.8rem 2rem; /* Reduced padding */
        border-radius: 12px;
        position: relative;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links a:hover {
        color: var(--accent-terra);
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        transform: scale(1.02);
    }

    /* Actions/Contact Button */
    /*
      Problema: en algunos móviles el botón "Contacto" quedaba fuera del viewport
      (al final del menú) y no era obvio que se podía hacer scroll.

      Solución:
      - Reducir un poco el espaciado vertical
      - Empujar el CTA al final usando margin-top:auto
      - Hacerlo "sticky" dentro del overlay (visible aunque haya scroll)
    */
    .nav-links {
        gap: 1.25rem; /* tighter so CTA fits */
    }

    .nav-actions {
        margin-top: auto;
        display: flex;
        padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom));
        width: 100%;
        justify-content: center;
        position: sticky;
        bottom: 0;
        background: linear-gradient(to top, rgb(45, 55, 50) 70%, rgba(45, 55, 50, 0));
    }

    .nav-actions .shiny-cta {
        padding: 0.95rem 2.6rem;
        font-size: 1rem;
        border-radius: 50px;
        max-width: calc(100vw - 3rem);
        /* Restore desktop shiny effect */
        background: linear-gradient(110deg, var(--primary-sage), var(--accent-terra)) padding-box,
            conic-gradient(from var(--gradient-angle),
                transparent 20%, rgba(255, 255, 255, 0.7) 40%, transparent 60%) border-box;
        border: 2px solid transparent;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        color: #fff;
        backdrop-filter: none;
        animation: border-spin 3s linear infinite;
        position: relative; /* form animation context */
    }
}

/* =========================================
   DESKTOP MENU (PILL DESIGN) (>= 768px)
   ========================================= */
@media (min-width: 768px) {
    /* Header Positioning - Contains the Glass Pill */
    header.site-header {
        position: absolute;
        width: 100%;
        top: 2rem;
        left: 0;
        z-index: 1000;
        background: transparent;
        padding: 0 2rem;
        transform: translateY(0) !important;
        display: flex;
        justify-content: center;
    }

    /* Hide Mobile Elements */
    .mobile-toggle,
    .mobile-menu-brand,
    .mobile-close-btn {
        display: none !important;
    }

    /* Show logo in desktop - make it clicable */
    nav.main-navigation .logo {
        display: flex !important;
        align-items: center;
        gap: 0.4rem;
        flex-shrink: 0;
    }

    nav.main-navigation .logo a {
        color: var(--white) !important;
        font-family: 'Playfair Display', serif;
        font-size: 1.4rem;
        font-weight: 500;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        transition: all 0.3s ease;
    }

    nav.main-navigation .logo a:hover {
        opacity: 0.8;
    }

    nav.main-navigation .logo .logo-icon {
        color: var(--accent-terra) !important;
        font-size: 1.5rem;
    }

    /* Tablet adjustments */
    @media (min-width: 768px) and (max-width: 991px) {
        nav.main-navigation {
            padding: 0.6rem 1.5rem !important;
            max-width: 95% !important;
        }

        nav.main-navigation .logo a {
            font-size: 1.2rem !important;
        }

        .nav-links {
            gap: 1rem !important;
        }

        .nav-links a {
            font-size: 0.95rem !important;
        }
    }

    /* The Glass Pill - Contains Logo + Menu */
    nav.main-navigation {
        display: flex !important;
        align-items: center;
        justify-content: space-between;

        max-width: 1100px;
        width: 95%;
        padding: 0.8rem 2.5rem;

        /* Glass Style - Darker variant for white text readability */
        background: rgba(45, 55, 50, 0.65);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 100px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    /* Menu Container */
    .nav-menu-container {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        flex-grow: 1;
        gap: 2rem;

        /* Reset mobile overlay properties */
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        transform: none;
        padding: 0;
        overflow: visible;
    }

    /* Links Row */
    .nav-links {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 2rem;
        padding: 0;
        margin: 0;
        list-style: none !important;
        background: transparent;
    }

    .nav-links li {
        margin: 0;
        padding: 0;
    }

    .nav-links a {
        font-size: 1rem;
        color: #ffffff !important;
        text-decoration: none;
        font-weight: 500;
        opacity: 0.9;
        transition: all 0.3s;
        font-family: 'Lato', sans-serif;
    }

    .nav-links a:hover {
        opacity: 1;
        color: var(--accent-terra) !important;
    }

    .nav-actions {
        margin-left: 1rem;
        display: flex;
    }

    .nav-actions .shiny-cta {
        padding: 0.6rem 1.8rem;
        border-radius: 50px;
        font-size: 0.9rem;
    }
}

/* =========================================
   MOBILE / TABLET TYPOGRAPHY & FIXES
   ========================================= */

/* Mobile Small (< 576px) */
@media (max-width: 576px) {
    /* Default hero (home) */
    .hero:not(.hero--subpage) {
        margin-top: 0 !important;
        min-height: 100vh;
        display: flex !important;
        align-items: flex-start !important;
        padding-top: 100px !important;
        padding-bottom: 0 !important;
    }

    /* Home hero: evitar que el CTA caiga sobre la cabeza.
       Ajusta el inicio del bloque para que el botón quede más abajo (debajo de la cabeza). */
    body.home .hero-content {
        padding-top: 38vh !important;
    }

    /* Subpage heroes should keep the standard 50vh layout */
    .hero.hero--subpage {
        min-height: 400px;
        height: 50vh;
        padding-top: 60px;
        padding-bottom: 0;
        align-items: center !important;
    }

    /* Text layout: EXTREME TOP - SKY ONLY */
    .hero-content {
        padding-top: 5vh !important;
        padding-bottom: 0 !important;
        justify-content: flex-start !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero-subtitle {
        font-size: 0.65rem !important;
        letter-spacing: 1.5px !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-title {
        font-size: 1.4rem !important;
        line-height: 1.05 !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-content p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.8rem !important;
        padding: 0;
    }

    .hero-content .btn {
        padding: 0.65rem 1.5rem !important;
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Hide scroll indicator on small mobile to save space */
    .scroll-indicator {
        display: none !important;
    }

    .section-padding {
        padding: 3rem 0;
    }

    /* Ensure no duplication */
    .hero-bg {
        display: none !important;
    }

    /* BUT keep background on subpage heroes */
    .hero.hero--subpage .hero-bg {
        display: block !important;
    }
}

/* Mobile Large / Tablet (577px - 991px) */
@media (min-width: 577px) and (max-width: 991px) {
    .hero-content {
        padding-top: 16vh !important;
        padding-bottom: 10vh !important;
    }

    .hero-subtitle {
        font-size: 0.85rem !important;
        letter-spacing: 4px !important;
        margin-bottom: 1.2rem !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1.8rem !important;
    }

    .hero-content .btn {
        margin-bottom: 2rem !important;
    }
}

/* -----------------------
   HEADER SCROLLED STATE
   ----------------------- */
@media (min-width: 768px) {
    header.site-header.scrolled {
        position: fixed;
        top: 1rem;
    }

    header.site-header.scrolled nav.main-navigation {
        background: rgba(45, 55, 50, 0.95);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Mobile Header Fixed State - Glass Pill Style */
@media (max-width: 767px) {
    /* Header container - centers the pill */
    header.site-header {
        position: fixed !important;
        top: 25px;
        left: 0;
        right: 0;
        z-index: 10000;
        padding: 0 1rem;
        display: flex;
        justify-content: center;
        background: transparent !important;
    }

    /* When WordPress admin bar is visible */
    body.admin-bar header.site-header {
        top: 71px; /* 46px admin bar + 25px margin */
    }

    @media (max-width: 782px) {
        body.admin-bar header.site-header {
            top: 71px; /* 46px mobile admin bar + 25px margin */
        }
    }

    /* Nav becomes the Glass Pill in mobile */
    header.site-header nav.main-navigation {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 340px;
        padding: 0.6rem 1rem;
        
        /* Glassmorphism style */
        background: rgba(45, 55, 50, 0.7) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 100px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    }

    /* Hide logo outside nav on mobile */
    header.site-header > .logo {
        display: none !important;
    }

    /* Hide mobile-toggle outside nav on mobile */
    header.site-header > .mobile-toggle {
        display: none !important;
    }

    /* Show logo inside nav for mobile pill */
    header.site-header nav.main-navigation .logo {
        display: flex !important;
        align-items: center;
        gap: 0.3rem;
        flex-shrink: 0;
    }

    header.site-header nav.main-navigation .logo a {
        color: var(--white) !important;
        font-family: 'Playfair Display', serif;
        font-size: 1.25rem;
        font-weight: 500;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    header.site-header nav.main-navigation .logo .logo-icon {
        color: var(--accent-terra) !important;
        font-size: 1.35rem;
    }

    /* Mobile toggle inside nav (hamburger) - improve visibility & tap area */
    header.site-header nav.main-navigation .mobile-toggle {
        display: flex !important;
        position: relative;
        top: auto;
        right: auto;
        z-index: 10002;
        flex-shrink: 0;

        width: 44px;
        height: 44px;
        padding: 10px;
        border-radius: 999px;

        /* align bars with consistent spacing */
        justify-content: center;
        gap: 6px;

        /* visible against busy hero backgrounds */
        background: rgba(0, 0, 0, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    }

    header.site-header nav.main-navigation .mobile-toggle .bar {
        background-color: var(--white);
        height: 3px;
        border-radius: 3px;
    }

    /* Update animation offsets to match new spacing */
    header.site-header nav.main-navigation .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    header.site-header nav.main-navigation .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    header.site-header nav.main-navigation .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Enhanced close button when menu is open - MORE VISIBLE */
    body.menu-open header.site-header nav.main-navigation .mobile-toggle {
        position: fixed !important;
        top: 2rem !important;
        right: 2rem !important;
        width: 50px !important;
        height: 50px !important;
        background: rgba(201, 124, 93, 0.9) !important;
        border-radius: 50% !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        border: 2px solid rgba(255, 255, 255, 0.3) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
        cursor: pointer !important;
        z-index: 1000000 !important;
    }

    body.menu-open header.site-header nav.main-navigation .mobile-toggle:hover {
        background: rgba(204, 51, 102, 0.95) !important;
        transform: scale(1.1) rotate(90deg) !important;
        box-shadow: 0 6px 25px rgba(204, 51, 102, 0.5) !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
    }

    body.menu-open header.site-header nav.main-navigation .mobile-toggle .bar {
        background-color: var(--white) !important;
        height: 3px !important;
    }

    /* Admin bar adjustments for close button */
    body.admin-bar.menu-open header.site-header nav.main-navigation .mobile-toggle {
        top: 6rem !important; /* Account for admin bar */
    }

    /* HIDE nav-menu-container by default (only show when active overlay) */
    header.site-header nav.main-navigation .nav-menu-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        min-width: 100vw !important;
        min-height: 100vh !important;
        
        background: rgb(45, 55, 50) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2rem !important;
        
        transform: translateY(-100vh) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), 
                    visibility 0s linear 0.5s,
                    opacity 0.3s ease !important;
        z-index: 99999 !important;
        padding: 4rem 1rem !important;
        margin: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Admin bar adjustment for overlay menu - keep full screen */
    body.admin-bar header.site-header nav.main-navigation .nav-menu-container {
        padding-top: 6rem !important;
    }

    header.site-header nav.main-navigation .nav-menu-container.active {
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1), 
                    visibility 0s linear 0s,
                    opacity 0.3s ease;
    }

    /* KEEP header visible and functional when menu is open */
    body.menu-open header.site-header {
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 25px !important;
        z-index: 10002 !important;
        transform: none !important;
    }

    /* Admin bar adjustment */
    body.admin-bar.menu-open header.site-header {
        top: 71px !important;
    }

    @media (max-width: 782px) {
        body.admin-bar.menu-open header.site-header {
            top: 71px !important;
        }
    }
}

/* Body menu-open state - prevent scroll */
body.menu-open {
    overflow: hidden;
}

/* Swiper Arrows Theme Colors - Services Slider */
.swiper-button-next, .swiper-button-prev {
  color: var(--accent-terra) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  width: 50px !important;
  height: 50px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
  transition: all 0.3s ease !important;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  background: var(--accent-terra) !important;
  color: white !important;
  transform: scale(1.1) !important;
}

/* Reposition Badges - No overlap title */
.card-badge {
  top: 10px !important;
  left: 10px !important;
  transform: none !important;
  z-index: 10 !important;
}

/* =====================================================================
   UI/UX IMPROVEMENTS (Móvil + Desktop)
   - Tipografía y layout más legibles
   - Accesibilidad (focus-visible, reduced motion)
   - Formularios y targets táctiles
   ===================================================================== */

/* Better defaults */
img {
    max-width: 100%;
    height: auto;
}

/* Improve keyboard navigation */
:where(a, button, input, textarea, select, summary, [role="button"], .btn, .shiny-cta):focus-visible {
    outline: 3px solid var(--accent-terra);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Make interactive targets easier on touch */
:where(button, .btn, .shiny-cta, .woocommerce a.button, .woocommerce button.button) {
    min-height: 44px;
    touch-action: manipulation;
}

/* Forms: ensure usable cursor + better visuals */
:where(input, textarea, select) {
    cursor: text;
}

/* Global content readability */
.hero-content p {
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}

/* Reduce giant paddings on tablets */
@media (max-width: 991px) {
    .section-padding {
        padding: 5rem 0;
    }
}

/* Container padding tuned for smaller screens */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
}

/* Mobile hero: keep the "cinematic" look but avoid tiny text */
@media (max-width: 576px) {
    .hero-subtitle {
        font-size: 0.75rem !important;
        letter-spacing: 2.5px !important;
    }

    .hero-title {
        font-size: clamp(1.9rem, 8vw, 2.4rem) !important;
        letter-spacing: -1px !important;
    }

    .hero-content p {
        font-size: 0.95rem !important;
        line-height: 1.45 !important;
        margin-bottom: 1.1rem !important;
    }

    .hero-content .btn {
        padding: 0.75rem 1.7rem !important;
        font-size: 0.85rem !important;
    }
}

/* Blog content: avoid forced left padding on headings in mobile */
@media (max-width: 767px) {
    .entry-content h2,
    .entry-content h3 {
        padding-left: 0;
    }
}

/* Generic pages (page.php) have no hero; add space to avoid header overlap */
@media (min-width: 768px) {
    .site-main > .section-padding:first-child {
        padding-top: calc(8rem + 120px);
    }
}

@media (max-width: 767px) {
    .site-main > .section-padding:first-child {
        padding-top: calc(3rem + 110px);
    }
}

/* Anchor scrolling: avoid header covering titles when jumping to #sections */
html {
    scroll-padding-top: 120px;
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 110px;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .preloader {
        transition: none !important;
    }
}
