/* =====================================================
   ZEUS - BASE STYLES
   Reset, Variables & Typography
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --canela: #AD7332;
    --canela-light: #C9954D;
    --canela-dark: #8B5A26;

    /* Crema/Beige Palette - CÁLIDOS, sin blancos puros */
    --cream: #E6DCCF;
    /* Slightly darker/warmer than #EDE5D8 */
    --cream-light: #F2E8DC;
    /* Warmer than #F5EDE0 */
    --cream-dark: #D9CBB7;
    /* Richer beige */
    --cream-accent: #E8DCCC;
    --bg-cream: #E6DCCF;
    --white: #F2E8DC;
    /* Replaced pure white with light cream */
    --bg-cream-alt: #F5EDE0;

    /* 🌟 NEW: Premium Accent Colors */
    --accent-warm: #D4A559;
    --accent-deep: #7A4E1E;
    --accent-rose: #C79A6B;

    /* 🌟 NEW: Premium Gradients */
    --gradient-gold: linear-gradient(135deg, #C9954D 0%, #AD7332 50%, #8B5A26 100%);
    --gradient-gold-soft: linear-gradient(135deg, rgba(201, 149, 77, 0.15), rgba(173, 115, 50, 0.25));
    --gradient-cream: linear-gradient(180deg, #F5EDE0 0%, #EDE5D8 50%, #DED3C2 100%);
    --gradient-text: linear-gradient(135deg, #8B5A26, #AD7332, #C9954D);

    /* 🌟 NEW: Glow Effects */
    --glow-gold: 0 0 30px rgba(173, 115, 50, 0.25);
    --glow-gold-intense: 0 0 40px rgba(173, 115, 50, 0.4);

    /* Text Colors - WCAG AA Compliant (4.5:1 minimum ratio) */
    --text-main: #1A1816;
    --text-light: #3A342F;
    /* Improved from #5A5450 for better contrast */
    --text-lighter: #5A5450;
    /* Improved from #7A756F for better contrast */

    /* Backgrounds */
    --bg-dark: #1A1816;
    --bg-light: #F5EDE0;

    /* Spacing System */
    --header-height: 80px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-2xl: 80px;
    --spacing-3xl: 120px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;

    /* Shadows - Subtle Premium */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-card-rest: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 12px 40px rgba(173, 115, 50, 0.12);
    --shadow-card-active: 0 20px 60px rgba(173, 115, 50, 0.18);

    /* Safe Area Insets — Dispositivos con notch (iPhone X+, etc.) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

/* =====================================================
   RESET & BASICS
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--cream);
    color: var(--text-main);
    line-height: 1.65;
    /* Improved readability */
    overflow-x: hidden;
    position: relative;
    overscroll-behavior-y: none;
    /* Evita efecto rebote en iOS/Android */
    -webkit-text-size-adjust: 100%;
    /* Previene ajuste automático de texto en iOS */
}

/* Global Noise Texture for Depth */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    /* Subtle grain */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* Typography Hierarchy - Premium Elegance
   Font Weights: 300 (light), 400 (normal), 500 (medium), 600 (semibold), 700 (bold) */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--canela-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 {
    line-height: 1.15;
    /* Improved mobile readability */
}

h2 {
    line-height: 1.2;
}

h3 {
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

/* =====================================================
   UTILITIES
   ===================================================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.pt-20 {
    padding-top: 5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* Positioning Utilities */
.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.overflow-hidden {
    overflow: hidden;
}

/* Section Utilities */
.section {
    padding: 80px 24px;
}

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

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--canela);
    border-radius: 2px;
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--canela);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(173, 115, 50, 0.08), rgba(173, 115, 50, 0.15));
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.section-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(173, 115, 50, 0.15), transparent);
    animation: labelShine 4s infinite;
}

@keyframes labelShine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Reveal on Scroll - Now handled by GSAP in animations.js
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
*/

/* =====================================================
   ACCESSIBILITY - Reduced Motion Support
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

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

/* =====================================================
   LANDSCAPE MODE — Ajustes para móvil horizontal
   ===================================================== */

@media (max-height: 500px) and (orientation: landscape) {

    .hero,
    .fisio-hero,
    .psico-hero {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-content {
        padding: 100px 40px 60px;
    }

    .fisio-hero__content,
    .psico-hero__content {
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .fisio-hero__title,
    .psico-hero__title {
        font-size: clamp(2rem, 6vw, 4rem);
    }
}