/*
Theme Name: Rocío Gómez Theme
Template: twentytwentyfive
Version: 1.0.1
Description: Premium spiritual therapy website with world-class design
Author: Seek my Client
Author URI: https://seekmyclient.com
*/

/* ===================================================================
   PREMIUM DESIGN SYSTEM - $30K LEVEL
   Typography: Playfair Display + Lato
   Colors: Carefully curated earth tones for trust and warmth
   =================================================================== */

/* --- CSS VARIABLES & FOUNDATION --- */
:root {
    /* NEW BRANDING SYSTEM - Color Distribution Strategy */
    
    /* Principal Colors (60% usage) - Fondos */
    --rg-arena-suave: #EDE6DA;    /* Arena suave - main backgrounds */
    --rg-marfil-calido: #F9F7F3;  /* Marfil cálido - secondary backgrounds */
    --rg-white: #FFFFFF;
    
    /* Secondary Colors (30% usage) - Headers, navigation, sections */
    --rg-verde-salvia-claro: #CBD3C0;  /* Verde salvia claro */
    --rg-verde-seco: #6B6A46;          /* Verde seco */
    
    /* Accent Colors (10% usage) - CTAs, important buttons */
    --rg-azul-profundo: #0F4C81;       /* Azul profundo - main CTAs */
    --rg-tono-tierra: #85674C;         /* Tono tierra - secondary CTAs */
    
    /* Text Colors */
    --rg-text-primary: #2C2C2C;        /* Main text */
    --rg-text-secondary: #6B6A46;      /* Secondary text */
    --rg-text-light: #666666;          /* Light text */
    
    /* Functional Mappings */
    --rg-background: var(--rg-marfil-calido);
    --rg-background-alt: var(--rg-arena-suave);
    --rg-primary: var(--rg-verde-seco);
    --rg-secondary: var(--rg-azul-profundo);
    --rg-accent: var(--rg-tono-tierra);
    --rg-border: rgba(107, 106, 70, 0.2);
    
    /* Premium Shadows */
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    
    /* Typography Scale - Golden Ratio */
    --font-xs: 0.875rem;    /* 14px */
    --font-sm: 1rem;        /* 16px */
    --font-base: 1.125rem;  /* 18px */
    --font-lg: 1.25rem;     /* 20px */
    --font-xl: 1.5rem;      /* 24px */
    --font-2xl: 1.875rem;   /* 30px */
    --font-3xl: 2.25rem;    /* 36px */
    --font-4xl: 3rem;       /* 48px */
    --font-5xl: 3.75rem;    /* 60px */
    
    /* Spacing System - 8px Grid */
    --space-xs: 0.5rem;     /* 8px */
    --space-sm: 1rem;       /* 16px */
    --space-md: 1.5rem;     /* 24px */
    --space-lg: 2rem;       /* 32px */
    --space-xl: 3rem;       /* 48px */
    --space-2xl: 4rem;      /* 64px */
    --space-3xl: 6rem;      /* 96px */
    --space-4xl: 8rem;      /* 128px */
    
    /* Premium Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* --- NEW BRANDING IMAGES & LAYOUT --- */
.hero-portrait,
.sobre-mi-portrait,
.ucdm-reading-portrait {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    filter: brightness(1.1) contrast(0.95) saturate(0.85);
    transition: transform 0.3s ease;
}

.hero-portrait:hover,
.sobre-mi-portrait:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.site-logo {
    height: 40px;
    width: auto;
    margin-right: 12px;
    filter: contrast(1.1);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--rg-text-primary);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 24px;
}

.site-title {
    color: var(--rg-primary);
}

/* Hero Section Layout Updates */
.hero-container {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 3rem;
    align-items: center;
    min-height: 70vh;
}

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

.hero-content-sobre {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-image-sobre {
    margin-top: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Card Styles with New Branding */
.card-servicio {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 4px solid var(--rg-azul-profundo);
    transition: all 0.3s ease;
}

.card-servicio:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.testimonial-card {
    background: var(--rg-marfil-calido);
    border-left: 4px solid var(--rg-tono-tierra);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* --- RESPONSIVE DESIGN ENHANCEMENTS --- */

/* Tablet Adjustments */
@media (max-width: 1024px) {
    .nav-container {
        padding: 15px var(--space-lg) 20px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero-container,
    .hero-content-ucdm {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .site-header {
        background: rgba(255, 255, 255, 0.98) !important;
    }
    
    .nav-container {
        padding: 15px var(--space-md) 20px;
        min-height: 70px;
        position: relative;
    }
    
    .site-logo {
        height: 45px;
        max-width: 160px;
    }
    
    .logo-link {
        font-size: 1.5rem;
    }
    
    /* Mobile Navigation */
    .main-navigation {
        gap: 1rem;
        position: relative;
    }
    
    /* Show menu toggle on mobile */
    .menu-toggle {
        display: block !important;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
        padding: var(--space-md);
        flex-direction: column;
        gap: 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu a {
        display: block;
        padding: 16px;
        min-height: 44px; /* Touch target requirement */
        color: var(--rg-azul-profundo);
        border-bottom: 1px solid rgba(15, 76, 129, 0.1);
        font-weight: 500;
        text-align: center;
    }
    
    .nav-menu a:hover {
        background: rgba(15, 76, 129, 0.05);
        color: var(--rg-azul-profundo);
        transform: none;
    }
    
    .nav-menu a:after {
        display: none;
    }
    
    /* Mobile Menu Toggle */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 1.5rem;
        min-height: 44px;
        min-width: 44px;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: background 0.3s ease;
    }
    
    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .btn-cta-nav {
        padding: 10px 20px;
        font-size: 0.85rem;
        margin-top: 12px;
    }
    
    /* Layout Adjustments */
    .hero-container,
    .hero-content-ucdm {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .card-servicio {
        padding: 24px;
        margin-bottom: 20px;
    }
    
    /* Typography Mobile Scaling */
    p, .body-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .lead {
        font-size: 1.125rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-container {
        padding: 12px var(--space-sm) 15px;
    }
    
    .site-logo {
        height: 40px;
    }
    
    .logo-link {
        font-size: 1.6rem;
    }
    
    .card-servicio {
        padding: 20px;
    }
}

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

/* Universal fix for text rendering and prevent tilting/skewing issues */
p, h1, h2, h3, h4, h5, h6, span, div, a, li, article, section {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: flat;
    -webkit-transform-style: flat;
}

/* Ensure paragraphs and headings never get skewed or tilted */
p, h1, h2, h3, h4, h5, h6 {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: auto;
}

/* Fix for animation end states */
[class*="hero"], [class*="animate"], .animated {
    animation-fill-mode: both !important;
    -webkit-animation-fill-mode: both !important;
}

html {
    scroll-behavior: auto !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: auto !important;
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--rg-text-primary);
    background-color: var(--rg-background);
    font-weight: 400;
    letter-spacing: 0.01em;
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    height: auto !important;
    position: static !important;
}

/* Site Container */
#page.site {
    overflow: visible !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    min-height: 100vh;
    position: static !important;
}

.site-main {
    overflow: visible !important;
    width: 100%;
    padding-top: 80px;
    position: static !important;
}

/* Asegurar que las secciones no interfieran con el scroll */
section {
    position: relative;
    overflow: visible !important;
}

/* --- TYPOGRAPHY HIERARCHY --- */
/* --- ENHANCED TYPOGRAPHY HIERARCHY --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    color: var(--rg-text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h1, .h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* 40px to 56px */
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.5px;
    color: var(--rg-azul-profundo);
}

h2, .h2 {
    font-size: clamp(2rem, 4vw, 2.8rem); /* 32px to 45px */
    line-height: 1.2;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    font-weight: 500;
    color: var(--rg-verde-seco);
}

h3, .h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem); /* 24px to 35px */
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--rg-azul-profundo);
}

/* Enhanced Body Typography */
p, .body-text {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.125rem; /* 18px */
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--rg-text-primary);
    font-weight: 400;
}

/* Lead Text */
.lead {
    font-size: 1.25rem; /* 20px */
    line-height: 1.6;
    font-weight: 400;
    color: var(--rg-text-secondary);
    margin-bottom: 2rem;
}

/* Small Text */
.small, small {
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
    color: var(--rg-text-secondary);
}

h4 {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--rg-verde-olivo);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
    color: var(--rg-text);
    line-height: 1.8;
}

.lead {
    font-size: var(--font-lg);
    line-height: 1.6;
    color: var(--rg-text-light);
    font-weight: 300;
}

/* --- CONTAINER & LAYOUT --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
}

section {
    padding: var(--space-4xl) 0;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: var(--space-3xl) 0;
    }
}

/* --- NEW BRANDING BUTTONS --- */
.boton-principal,
.wp-block-button__link,
.cta-button,
.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--rg-tono-tierra) 0%, #B8936D 100%);
    color: #FFFFFF !important;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    text-transform: none;
}

.boton-principal:hover,
.cta-button:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(133, 103, 76, 0.3);
    color: #FFFFFF !important;
}

.boton-secundario,
.btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: var(--rg-azul-profundo) !important;
    border: 2px solid var(--rg-azul-profundo);
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: none;
}

.boton-secundario:hover,
.btn-secondary:hover {
    background: var(--rg-azul-profundo);
    color: #FFFFFF !important;
    transform: translateY(-1px);
}

.wp-block-button__link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left var(--transition-slow);
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.wp-block-button__link:hover:before {
    left: 100%;
}

.wp-block-button__link:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--rg-terracota) !important;
    border: 2px solid var(--rg-terracota);
}

.btn-secondary:hover {
    background: var(--rg-terracota);
    color: white !important;
}

/* --- ENHANCED HEADER & NAVIGATION --- */
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.site-header.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12) !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70px;
}

/* Enhanced Site Branding */
.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-text {
    font-family: 'Georgia', serif;
    font-size: 18px;
    color: #2C2C2C;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.site-logo:hover .logo-text {
    color: #6B6A46;
}

/* Enhanced Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: #2C2C2C;
}

.cta-button {
    background: #0F4C81;
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 20px;
}

.cta-button:hover {
    background: #083d6b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 76, 129, 0.3);
}
    position: relative;
    padding: 8px 0;
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.3;
}

.nav-menu a:hover {
    color: #D4A574;
    transform: translateY(-1px);
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #D4A574 0%, #E0B688 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-menu a:hover:after {
    width: 100%;
}

/* CTA Button in Navigation */
.btn-cta-nav {
    background: linear-gradient(135deg, #D4A574 0%, #C89960 100%);
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    border: none;
    cursor: pointer;
}

.btn-cta-nav:hover {
    background: linear-gradient(135deg, #C89960 0%, #D4A574 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 116, 0.4);
    color: #ffffff !important;
}


/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 240px;
    list-style: none;
    padding: var(--space-sm) 0;
    margin-top: var(--space-sm);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu a {
    display: block;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-sm);
}

.sub-menu a:hover {
    background: var(--rg-background);
    color: var(--rg-terracota);
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: var(--space-4xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(200,159,156,0.05) 0%, rgba(163,163,128,0.05) 100%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(var(--font-3xl), 5vw, var(--font-5xl));
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s ease-out;
}

/* Hero subtitle with visible animation */
.hero-subtitle {
    font-size: var(--font-lg);
    color: var(--rg-text-light);
    margin-bottom: var(--space-xl);
    opacity: 0;
    animation: fadeInUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    will-change: transform, opacity;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateZ(0) rotate(0deg) skew(0deg);
    }
}

/* --- FAMILIAR SECTION (Pain Points) --- */
.familiar-section {
    background: white;
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.familiar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.familiar-item {
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    border: 1px solid transparent;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.familiar-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--rg-tono-tierra);
    background: rgba(255, 255, 255, 0.95);
}

.familiar-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: block;
}

.familiar-item h3 {
    color: var(--rg-azul-profundo);
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
}

.familiar-item p {
    color: var(--rg-text-primary);
    line-height: 1.7;
}

/* --- PROMESA SECTION --- */
.promesa-section {
    background: linear-gradient(135deg, rgba(200,159,156,0.08) 0%, transparent 100%);
    text-align: center;
}

.promesa-content {
    max-width: 800px;
    margin: 0 auto;
}

.promesa-content h2 {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-xl);
}

.promesa-content p {
    font-size: var(--font-lg);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

/* --- SERVICES SECTION --- */
.services-section {
    background: var(--rg-background);
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-subtitle {
    font-size: var(--font-lg);
    color: var(--rg-text-secondary);
    margin-top: var(--space-md);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-lg);
    min-height: 500px;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rg-tono-tierra) 0%, var(--rg-azul-profundo) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.service-card:hover:before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.95);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.service-card h3 {
    color: var(--rg-azul-profundo);
    margin-bottom: var(--space-sm);
    font-size: 1.8rem;
}

.service-card h4 {
    font-size: var(--font-base);
    color: var(--rg-tono-tierra);
    margin-bottom: var(--space-lg);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
    align-items: center;
}

.service-features .feature {
    background: rgba(15, 76, 129, 0.1);
    color: var(--rg-azul-profundo);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 500;
}

/* --- TESTIMONIALS --- */
.testimonials {
    background: linear-gradient(135deg, rgba(163,163,128,0.08) 0%, transparent 100%);
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.testimonial-slide {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial-slide:before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 80px;
    color: var(--rg-terracota);
    opacity: 0.2;
    font-family: 'Playfair Display', serif;
}

.testimonial-text {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    color: var(--rg-terracota);
    font-weight: 600;
    text-align: right;
}

/* --- NEWSLETTER SECTION --- */
.newsletter-section {
    background: linear-gradient(135deg, var(--rg-azul-profundo) 0%, var(--rg-verde-seco) 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin: 2rem 0;
}

.newsletter-section h2 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: 2.2rem;
}

.newsletter-section p {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    font-size: 1.1rem;
}

/* Fallback Newsletter Form Styles */
.newsletter-form-fallback {
    max-width: 500px;
    margin: 0 auto;
}

/* Ensure fallback form inherits newsletter section styling */
#fallback-newsletter-form {
    color: white;
}

#fallback-newsletter-form .form-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.newsletter-form-fallback .form-group {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.newsletter-form-fallback .newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: var(--font-base);
    font-family: inherit;
    backdrop-filter: blur(10px);
}

.newsletter-form-fallback .newsletter-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form-fallback .newsletter-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.2);
}

.newsletter-form-fallback .newsletter-button {
    padding: var(--space-md) var(--space-xl);
    border: 2px solid white;
    border-radius: 50px;
    background: white;
    color: var(--rg-terracota);
    font-size: var(--font-base);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form-fallback .newsletter-button:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.newsletter-form-fallback .form-note {
    font-size: var(--font-sm);
    color: rgba(255,255,255,0.8);
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .newsletter-form-fallback .form-group {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form-fallback .newsletter-input {
        width: 100%;
        min-width: unset;
    }
    
    .newsletter-form-fallback .newsletter-button {
        width: 100%;
        max-width: 250px;
    }
}

/* --- FOOTER --- */
.site-footer {
    background: var(--rg-text);
    color: white;
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand h3 {
    color: white;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    color: white;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--rg-terracota);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: var(--font-sm);
}

/* --- PAGE SPECIFIC STYLES --- */

/* Sobre Mi Page */
.sobre-mi-container {
    padding-top: var(--space-4xl);
}

.hero-sobre-mi {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.mi-historia {
    background: white;
}

.historia-content {
    max-width: 800px;
    margin: 0 auto;
}

.historia-content p {
    font-size: var(--font-lg);
    line-height: 1.9;
    margin-bottom: var(--space-lg);
}

.credenciales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.credencial-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.credencial-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.credencial-icon {
    font-size: var(--font-2xl);
    color: var(--rg-terracota);
}

/* Terapia SAAMA Page */
.terapia-saama-container {
    padding-top: var(--space-4xl);
}

.hero-saama {
    background: linear-gradient(135deg, rgba(200,159,156,0.1) 0%, transparent 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.checklist-saama,
.checklist-ucdm,
.checklist-ebook {
    max-width: 800px;
    margin: var(--space-2xl) auto;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.check-item:hover {
    background: var(--rg-background);
    transform: translateX(5px);
}

.check-icon {
    color: var(--rg-verde-olivo);
    font-size: var(--font-xl);
    font-weight: bold;
    flex-shrink: 0;
}

.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.oferta-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-base);
}

.oferta-card.principal {
    border: 2px solid var(--rg-terracota);
    position: relative;
}

.oferta-card.principal:before {
    content: 'RECOMENDADO';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rg-terracota);
    color: white;
    padding: 4px 20px;
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.oferta-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.precio {
    font-size: var(--font-3xl);
    color: var(--rg-terracota);
    font-weight: 600;
    margin: var(--space-md) 0;
}

.resultados-grid,
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.resultado-item,
.beneficio-item {
    text-align: center;
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.resultado-item:hover,
.beneficio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resultado-icon,
.beneficio-icon {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-sm);
}

/* UCDM Page */
.ucdm-container {
    padding-top: var(--space-4xl);
}

.hero-ucdm {
    background: linear-gradient(135deg, rgba(163,163,128,0.1) 0%, transparent 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.detalles-grupo {
    background: var(--rg-background);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin: var(--space-md) 0;
}

.detalle-item {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--rg-border);
}

.detalle-item:last-child {
    border-bottom: none;
}

/* Ebook Page */
.ebook-page-container {
    padding-top: 0;
}

.hero-ebook {
    background: linear-gradient(135deg, rgba(212,162,118,0.1) 0%, transparent 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
}

.ebook-mockup {
    max-width: 400px;
    margin: var(--space-2xl) auto;
    filter: drop-shadow(var(--shadow-xl));
}

.problema-section,
.solucion-section {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.problema-section {
    background: white;
}

.descubriras-section {
    background: var(--rg-background);
}

.cta-ebook {
    background: linear-gradient(135deg, var(--rg-terracota) 0%, var(--rg-ocre) 100%);
    color: white;
    text-align: center;
}

.cta-ebook h2 {
    color: white;
}

.price-container {
    background: rgba(255,255,255,0.1);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) auto;
    max-width: 500px;
}

.price-label {
    display: block;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.price {
    font-size: var(--font-5xl);
    font-weight: 700;
    display: block;
    margin-bottom: var(--space-sm);
}

.price-note {
    font-size: var(--font-sm);
    opacity: 0.9;
}

.guarantee {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

.guarantee p {
    background: rgba(255,255,255,0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    margin: 0;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.testimonio-item {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.testimonio-autor {
    color: var(--rg-terracota);
    font-weight: 600;
    text-align: right;
    margin-top: var(--space-md);
}

/* FAQ Section */
.faq-section {
    background: var(--rg-background);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.faq-item h3 {
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
    color: var(--rg-terracota);
}

/* Agenda Page */
.agenda-page-container {
    padding-top: var(--space-4xl);
}

.agenda-header {
    background: linear-gradient(135deg, var(--rg-terracota) 0%, var(--rg-ocre) 100%);
    color: white;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.agenda-title {
    color: white;
}

.agenda-subtitle {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
}

.calendly-container {
    margin: var(--space-3xl) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.cancellation-policy {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    margin: var(--space-2xl) 0;
    box-shadow: var(--shadow-md);
}

.policy-content {
    max-width: 700px;
    margin: 0 auto;
}

.policy-note {
    background: var(--rg-background);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
    border-left: 4px solid var(--rg-terracota);
}

.additional-info {
    margin-top: var(--space-3xl);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.info-item {
    text-align: center;
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-sm);
}

/* 21 Días Page */
.programa-21dias-container {
    padding-top: var(--space-4xl);
}

.hero-21dias {
    background: linear-gradient(135deg, var(--rg-terracota) 0%, var(--rg-ocre) 100%);
    color: white;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.programa-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.programa-title {
    color: white;
}

.programa-subtitle {
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.programa-features {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin: var(--space-xl) 0;
}

.programa-features .feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255,255,255,0.15);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
}

.programa-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: var(--rg-terracota) !important;
}

.btn-secondary {
    background: transparent;
    color: white !important;
    border: 2px solid white;
}

.programa-fecha {
    background: rgba(0,0,0,0.1);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: var(--space-2xl) auto 0;
}

.incluye-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.incluye-item {
    text-align: center;
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.incluye-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.incluye-icon {
    font-size: var(--font-4xl);
    margin-bottom: var(--space-md);
}

.timeline {
    max-width: 700px;
    margin: var(--space-2xl) auto;
}

.timeline-item {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    position: relative;
}

.timeline-item:not(:last-child):after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: calc(100% + var(--space-lg));
    background: var(--rg-border);
}

.timeline-number {
    background: var(--rg-terracota);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.inversion-box {
    background: white;
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.btn-cta-large {
    background: linear-gradient(135deg, var(--rg-terracota) 0%, var(--rg-ocre) 100%);
    color: white;
    padding: 20px 50px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: var(--font-lg);
    font-weight: 600;
    display: inline-block;
    margin-top: var(--space-xl);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-base);
}

.btn-whatsapp:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Servicios Page Styles */
.servicios-container {
    padding-top: var(--space-4xl);
}

/* Removed conflicting .hero-servicios styles - now handled in page-mis-servicios.php */

.servicios-principales {
    padding: var(--space-4xl) 0;
    background: var(--rg-background);
}

.service-card-detailed {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl);
    margin-bottom: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--rg-tono-tierra) 0%, var(--rg-azul-profundo) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.service-card-detailed:hover::before {
    transform: scaleX(1);
}

.service-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.98);
}

.service-card-detailed .service-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.service-card-detailed h2 {
    color: var(--rg-azul-profundo);
    font-size: 2.2rem;
    margin-bottom: var(--space-sm);
}

.service-features-detailed ul {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.service-features-detailed li {
    font-size: 1rem;
    display: flex;
    align-items: center;
    color: var(--rg-text-primary);
}

.service-ideal {
    text-align: left;
    max-width: 500px;
    margin: 2rem auto !important;
}

.service-ctas {
    margin-top: 2.5rem;
}

.productos-digitales {
    padding: var(--space-4xl) 0;
    position: relative;
}

.productos-grid {
    margin-top: var(--space-3xl);
}

.producto-card {
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
}

.cta-servicios {
    position: relative;
    overflow: hidden;
}

.cta-servicios::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--rg-tono-tierra) 0%, var(--rg-azul-profundo) 100%);
    z-index: 1;
}

.cta-servicios .container {
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .service-card-detailed {
        padding: var(--space-xl);
        margin-bottom: var(--space-lg);
    }
    
    .service-card-detailed h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons a {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

/* Blog Styles */
.blog-container {
    padding-top: var(--space-4xl);
}

.blog-header {
    background: linear-gradient(135deg, var(--rg-terracota) 0%, var(--rg-ocre) 100%);
    color: white;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.blog-title {
    color: white;
    font-size: var(--font-4xl);
    margin-bottom: var(--space-md);
}

.blog-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: var(--font-lg);
    max-width: 700px;
    margin: 0 auto;
}

.blog-subscription {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-top: var(--space-2xl);
}

/* Enhanced Footer Styles */
.pre-footer-cta {
    color: white;
    text-align: center;
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}


.pre-footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 1;
}

.pre-footer-cta .container {
    position: relative;
    z-index: 2;
}

.pre-footer-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pre-footer-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.newsletter-form-footer {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.newsletter-form-footer input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.newsletter-form-footer input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form-footer button {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--rg-azul-profundo);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.newsletter-form-footer button:hover {
    background: var(--rg-marfil-calido);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.newsletter-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.newsletter-benefit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

.newsletter-benefit i {
    color: #4CAF50;
}

.site-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    filter: brightness(1.1);
}

.footer-brand h3 {
    color: white;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 600;
}

.footer-brand p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trust-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--rg-terracota);
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section ul li a i {
    width: 16px;
    color: var(--rg-terracota);
}

.contact-info {
    space: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--rg-terracota);
    width: 16px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-radius: 50%;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 1px solid rgba(255,255,255,0.2);
}

.social-links a:hover {
    background: var(--rg-terracota);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.rotating-testimonial {
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.testimonial-text {
    color: rgba(255,255,255,0.9);
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    color: var(--rg-terracota);
    font-weight: 600;
    font-size: 0.9rem;
}

.business-hours {
    background: rgba(255,255,255,0.05);
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.1);
}

.business-hours h5 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.hours-list {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--rg-azul-profundo);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--rg-tono-tierra);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .pre-footer-cta {
        padding: var(--space-3xl) 0;
    }
    
    .pre-footer-cta h2 {
        font-size: 2rem;
    }
    
    .newsletter-form-footer {
        flex-direction: column;
        max-width: 300px;
    }
    
    .newsletter-benefits {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-brand {
        max-width: none;
        text-align: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.blog-post-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-post-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-post-content {
    padding: var(--space-lg);
}

.blog-post-meta {
    color: var(--rg-text-light);
    font-size: var(--font-sm);
    margin-bottom: var(--space-sm);
}

.blog-post-title {
    font-size: var(--font-xl);
    margin-bottom: var(--space-sm);
}

.blog-post-excerpt {
    color: var(--rg-text-light);
    margin-bottom: var(--space-md);
}

/* Mobile Menu Toggle - Beautiful Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1001;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-left: auto;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

/* Beautiful Hamburger Lines */
.menu-toggle::before,
.menu-toggle::after,
.hamburger-line {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.menu-toggle::before {
    top: 14px;
}

.hamburger-line {
    top: 21px;
}

.menu-toggle::after {
    top: 28px;
}

/* Active State Animation */
.menu-toggle.active::before {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active .hamburger-line {
    opacity: 0;
    transform: translateX(-50%) scale(0);
}

.menu-toggle.active::after {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex !important;
    }
    
    .main-navigation {
        position: relative;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: auto;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 280px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        box-shadow: 0 12px 40px rgba(15, 76, 129, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 12px;
        overflow: hidden;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        display: block;
        padding: 16px 24px;
        color: #ffffff !important;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
    }
    
    .nav-menu a:hover,
    .nav-menu a:focus {
        background: rgba(255, 255, 255, 0.1);
        border-left-color: var(--rg-tono-tierra);
        transform: translateX(4px);
    }
    
    .btn-cta-nav {
        display: none;
    }
    
    /* Beautiful slide-down animation */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--rg-terracota);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--rg-terracota);
    outline-offset: 2px;
}

/* ==========================================================================
   PREMIUM ANIMATIONS & MICRO-INTERACTIONS - $30K Level
   ========================================================================== */

/* Enhanced Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.stagger-animation {
    transition-delay: 0.1s;
}

/* Premium Header Effects */
.premium-header {
    transition: all var(--transition-base);
    backdrop-filter: blur(0px);
}

/* ==========================================================================
   EMERGENCY CSS FIX FOR SCROLL BEHAVIOR ISSUE
   ========================================================================== */

/* Fix para el problema de scroll */
html, body {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: relative !important;
}

#page {
    min-height: 100vh;
    overflow: visible !important;
    position: relative !important;
}

.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: auto !important;
    overflow: visible !important;
}

.site-main {
    margin-top: 80px !important;
    overflow: visible !important;
    position: relative !important;
    min-height: calc(100vh - 80px) !important;
}

.hero-section {
    overflow: visible !important;
    position: relative !important;
    height: auto !important;
    min-height: calc(100vh - 80px) !important;
}

.main-navigation {
    position: relative !important;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}


.mobile-menu-open .main-navigation {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto !important;
    z-index: 999;
}

.header-scrolled {
    backdrop-filter: blur(20px);
    background: rgba(253, 251, 245, 0.95);
    box-shadow: var(--shadow-lg);
}

.header-hidden {
    transform: translateY(-100%);
}

/* Enhanced Button Interactions */
.wp-block-button__link::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--rg-ocre) 0%, var(--rg-verde-olivo) 100%);
    transition: left var(--transition-slow);
    z-index: -1;
}

.wp-block-button__link:hover::before,
.cta-button:hover::before {
    left: 0;
}

.wp-block-button__link:hover,
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Ripple Effect Enhancement */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Premium Form Enhancements */
.input-wrapper {
    position: relative;
    margin-bottom: var(--space-lg);
}

.floating-label {
    position: absolute;
    left: var(--space-md);
    top: var(--space-md);
    color: #999;
    font-size: var(--font-base);
    pointer-events: none;
    transition: all var(--transition-base);
    background: var(--rg-background);
    padding: 0 var(--space-xs);
}

.input-wrapper.focused .floating-label,
.input-wrapper.filled .floating-label {
    top: -8px;
    left: var(--space-sm);
    font-size: var(--font-sm);
    color: var(--rg-terracota);
}

.input-wrapper.focused input,
.input-wrapper.focused textarea {
    border-color: var(--rg-terracota);
    box-shadow: 0 0 0 3px rgba(200, 159, 156, 0.1);
}

.input-wrapper.success input {
    border-color: var(--rg-verde-olivo);
}

.input-wrapper.error input {
    border-color: #e74c3c;
}

/* Mobile Menu Hamburger */
.hamburger {
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--rg-text);
    border-radius: 1px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0px; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }

.menu-toggle.active .hamburger span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle.active .hamburger span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

/* Menu Animation */
.menu-item-animate {
    animation: menuItemSlide 0.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

@keyframes menuItemSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rg-terracota), var(--rg-ocre));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--rg-terracota);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--rg-ocre);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Page Loading Overlay */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rg-background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.page-loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

.spinner-ring {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(200, 159, 156, 0.3);
    border-top: 3px solid var(--rg-terracota);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

.loading-text {
    color: var(--rg-terracota);
    font-size: var(--font-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Premium Card Hover Effects */
.service-card.hovered,
.testimonial-item.hovered,
.pricing-card.hovered {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Focus States */
.premium-focus {
    outline: 2px solid var(--rg-terracota);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Custom Cursor (Desktop Only) */
@media (min-width: 769px) {
    .custom-cursor {
        position: fixed;
        width: 20px;
        height: 20px;
        background: rgba(200, 159, 156, 0.5);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.1s ease-out;
        transform: translate(-50%, -50%);
    }

    .custom-cursor.cursor-hover {
        transform: translate(-50%, -50%) scale(1.5);
        background: rgba(200, 159, 156, 0.8);
    }
}

/* Premium Body Class Effects */
.premium-theme-active {
    overflow-x: hidden;
}

/* ===================================================================
   FIX CRÍTICO PARA PROBLEMA DE SCROLL - SOLUCIÓN DE EMERGENCIA
   =================================================================== */

/* Fix para el problema de scroll */
html, body {
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: relative !important;
}

#page {
    min-height: 100vh;
    overflow: visible !important;
    position: relative !important;
}

.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    height: auto;
    max-height: 100px;
}

.site-main {
    padding-top: 100px;
    min-height: 100vh;
    overflow: visible !important;
}

/* Asegura que el hero section no bloquee el scroll */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: visible !important;
}

/* Fix para menú móvil */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body:not(.menu-open) {
    overflow: visible !important;
    position: static !important;
}

.main-navigation {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}


/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .cta-section,
    .newsletter-section,
    .scroll-progress,
    .back-to-top,
    .page-loading-overlay,
    .custom-cursor {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* --- FIX FOR WHITE BAR AND SKIP LINK --- */
.wp-block-template-skip-link,
.skip-link,
a.skip-link,
#wp--skip-link--target,
.wp-site-blocks > :first-child {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

body > div:first-child:not(#page) {
    display: none !important;
}

body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

