/* =========================================
   ADEN CLINIC - DESIGN SYSTEM & STYLES
   ========================================= */

:root {
    /* Color Palette - "Nuevo Prestigio" (ADEN Strategy) */
    --color-primary: #1A1A19;
    /* Even deeper Charcoal - Absolute Authority */
    --color-primary-light: #2C2C2B;
    --color-secondary: #C5A059;
    /* Refined Champagne Gold */
    --color-secondary-dark: #A68546;
    --color-accent: #7C8670;
    /* More sophisticated Muted Sage */

    --color-bg: #FCFAF8;
    /* Creamier Taupe tint */
    --color-surface: #FFFFFF;
    --color-taupe: #B8A99A;

    --color-text-main: #2A2A2A;
    --color-text-light: #5F5F5F;
    --color-text-muted: #8E8E8E;

    /* Typography - Fluid scaling */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --fs-h1: clamp(2.5rem, 8vw, 5.5rem);
    --fs-h2: clamp(2rem, 6vw, 3.5rem);
    --fs-h3: clamp(1.2rem, 4vw, 1.8rem);
    --fs-body: clamp(1rem, 1.5vw, 1.15rem);

    /* Spacing & Layout - Adaptive */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-max: 1440px;

    /* Variables */
    --radius-sm: 0px;
    /* Sharper for luxury feel */
    --radius-md: 2px;
    --radius-lg: 4px;

    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 40px 80px rgba(0, 0, 0, 0.08);

    --transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-slow: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-taupe);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.15;
    font-weight: 400;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* =========================================
   COMPONENTS
   ========================================= */

/* Buttons - Refined Luxury */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 20px 48px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.btn-primary:hover {
    letter-spacing: 3px;
    background-color: var(--color-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-primary);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background-color: transparent;
}

.btn-outline-light {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--color-primary);
}

/* Badge - Luxury Style */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(15, 23, 42, 0.85);
    /* Primary color with transparency */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Gold Accent */
.accent-gold {
    color: var(--color-accent) !important;
    background-color: rgba(212, 175, 55, 0.1) !important;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.33, 1, 0.68, 1), transform 1.2s cubic-bezier(0.33, 1, 0.68, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   LAYOUT & SECTIONS
   ========================================= */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 20px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-logo {
    height: 48px;
    width: auto;
    transition: var(--transition);
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-secondary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Hero Section - Editorial Layout */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--color-bg);
    padding-top: 80px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    max-width: 100%;
    padding: 0;
}

.hero-content {
    padding: 80px 10%;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    margin-bottom: 30px;
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: var(--color-secondary);
    display: block;
    font-style: italic;
    font-weight: 400;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: 48px;
    max-width: 540px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 24px;
}

.hero-image-wrapper {
    height: 100vh;
    width: 100%;
    position: relative;
}

.hero-img-clean {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
}

/* Background element */
.hero::after {
    content: 'EST. 2024';
    position: absolute;
    right: 50px;
    bottom: 100px;
    writing-mode: vertical-rl;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 5px;
    color: var(--color-taupe);
    opacity: 0.5;
}

/* Services */
.services {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    /* Minimalist line grid */
    background-color: rgba(0, 0, 0, 0.05);
    /* Grid line color */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card {
    background-color: var(--color-bg);
    padding: 60px 40px;
    transition: var(--transition);
}

.service-card:hover {
    background-color: white;
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.service-icon {
    font-size: 1.2rem;
    color: var(--color-secondary);
    margin-bottom: 30px;
    display: block;
}

.service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background-color: var(--color-bg);
}

.cta-container {
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 12px;
}

.cta-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* Testimonials / Experience */
.testimonials {
    padding: var(--section-padding) 0;
    background-color: white;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.experience-image {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.experience-content h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-primary);
    margin-bottom: 24px;
    position: relative;
    padding-left: 30px;
}

.testimonial-quote::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--color-secondary);
    opacity: 0.3;
}

/* Differentials */
.differentials {
    padding: 100px 0;
    background-color: var(--color-bg);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.diff-item {
    text-align: left;
}

.diff-icon {
    font-size: 1.5rem;
    color: var(--color-secondary);
    margin-bottom: 24px;
    display: block;
}

.diff-item h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.diff-item p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Updated Footer */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: 100px 0 40px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 100px;
    margin-bottom: 80px;
}

.logo-footer {
    margin-bottom: 30px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer h3 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    margin-bottom: 30px;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--color-secondary);
    margin-right: 12px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}


/* Text align helpers */
.text-center {
    text-align: center;
    margin: 0 auto;
}

/* Cases Grid */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);

    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.video-placeholder {
    height: 240px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-secondary);
    font-size: 3rem;
    opacity: 0.95;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.case-info {
    padding: 20px;
}

.case-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.case-info p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* CTA Box - High End */
.cta-box {
    background: var(--color-primary);
    padding: 120px 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    color: white;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 24px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 50px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-white {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-white:hover {
    background-color: white;
    color: var(--color-primary);
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-image-wrapper {
        height: 60vh;
        /* Better ratio for editorial impact */
    }

    .hero-content {
        padding: 120px 24px 60px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: var(--fs-h1);
        line-height: 1;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
        font-size: var(--fs-body);
    }

    .hero-cta {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .experience-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .experience-image {
        height: 50vh;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 20px 0;
    }

    .nav-links,
    .nav-actions .btn-outline {
        display: none;
    }

    .menu-toggle {
        display: block;
        z-index: 2000;
        font-size: 1.5rem;
    }

    /* Mobile Menu Overlay */
    .mobile-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        z-index: 1500;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-slow);
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu a {
        font-family: var(--font-heading);
        font-size: 2.22rem;
        color: var(--color-primary);
        text-transform: uppercase;
        letter-spacing: 6px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
        text-decoration: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 5px;
        width: 80%;
        text-align: center;
    }

    .mobile-menu a:last-child {
        border-bottom: none;
        color: var(--color-secondary);
    }

    .mobile-menu.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered transition for links */
    .mobile-menu.active a:nth-child(1) {
        transition-delay: 0.2s;
    }

    .mobile-menu.active a:nth-child(2) {
        transition-delay: 0.3s;
    }

    .mobile-menu.active a:nth-child(3) {
        transition-delay: 0.4s;
    }

    .mobile-menu.active a:nth-child(4) {
        transition-delay: 0.5s;
    }



    .services-grid {
        grid-template-columns: 1fr;
    }

    .main-logo {
        height: 36px;
    }

    .diff-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .cta-box {
        padding: 100px 24px;
    }
}

/* Lead Form - CTA Section */
.lead-form-container {
    max-width: 500px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 40px 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form controls — used inside CTA dark section */
.form-control {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    color: white !important;
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-bottom: 1px solid var(--color-secondary);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
}

.lead-form input::placeholder {
    transition: var(--transition);
}

.lead-form input:focus::placeholder {
    opacity: 0;
    transform: translateX(10px);
}

#leadMessage {
    margin-top: 24px;
    color: var(--color-secondary);
    font-weight: 500;
}


/* =========================================
   LUXURY OVERRIDES — "Lujo Sereno"
   ========================================= */

h1,
h2 {
    letter-spacing: -0.03em;
    font-weight: 500;
}

.hero-content h1 {
    line-height: 0.9;
    margin-bottom: 40px;
}

.hero-content h1 span {
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--color-secondary);
    opacity: 0.9;
}

.badge {
    background: transparent;
    border-color: rgba(197, 160, 89, 0.3);
    color: var(--color-secondary);
    letter-spacing: 4px;
    font-size: 0.7rem;
    padding: 8px 20px;
}

.navbar.scrolled {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(252, 250, 248, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Service Cards */
.service-card {
    border: 0.5px solid rgba(0, 0, 0, 0.05);
    border-right: 1px solid rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background-color: transparent;
    border-color: var(--color-secondary);
    transform: translateY(-5px);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.service-card:hover::after {
    height: 100%;
}

/* Scroll Reveal — Premium */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Services Grid */
.services-grid {
    gap: 0;
    border: none;
    background-color: transparent;
}

/* Image Hover */
.hero-img-clean,
.experience-image {
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-img-clean:hover,
.experience-image:hover {
    transform: scale(1.05);
}

/* Logo refinement */
.logo-placeholder {
    font-weight: 500;
    font-size: 2rem;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.logo-footer {
    letter-spacing: -1px;
    font-size: 2.5rem;
}