:root {
    /* Color Palette - Refined & Premium */
    --bg-color: #F8F9F6;
    --bg-alt: #FFFFFF;
    --primary: #4A6052; /* Deep Sage */
    --primary-light: #7A9B89;
    --primary-ultra-light: #E8F0EB;
    --accent: #D4AF37; /* Subtle Gold accent */
    --text-main: #1A261F;
    --text-muted: #5B6B61;
    --border-color: #E6EAE7;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-signature: 'Great Vibes', cursive;

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(26, 38, 31, 0.08);
    --shadow-glow: 0 15px 35px rgba(74, 96, 82, 0.2);

    /* Layout */
    --container-width: 1200px;
    --section-pad: 100px 20px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html { scroll-behavior: smooth; }

.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-main);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); letter-spacing: -0.02em; margin-bottom: 1.5rem; }
h1 em { color: var(--primary); font-style: italic; }

h2.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-header { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-subtitle { font-size: 1.125rem; color: var(--text-muted); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 40px;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 30px; height: 1px;
    background-color: var(--primary);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary { background-color: var(--primary); color: white; }
.btn-primary:hover { background-color: #384A3E; transform: translateY(-3px); box-shadow: var(--shadow-glow); }

.btn-whatsapp-solid {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp-solid:hover { background-color: #1EBE5A; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3); }

.btn-outline { background-color: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-outline:hover { background-color: var(--primary-ultra-light); border-color: var(--primary-light); color: var(--primary); }

.btn-large { padding: 1.125rem 2.5rem; font-size: 1.125rem; }

/* Header */
.header {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1005;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.header-container { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo i { font-size: 2.2rem; color: var(--primary); }
.logo-text { display: flex; flex-direction: column; }
.logo-name { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1; font-weight: 600;}
.logo-title { font-size: 0.65rem; letter-spacing: 3px; color: var(--text-muted); margin-top: 2px;}

.nav { display: flex; gap: 2.5rem; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-main); position: relative; }
.nav a:hover { color: var(--primary); }
.nav a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -6px; left: 0; background-color: var(--primary); transition: var(--transition);
}
.nav a:hover::after { width: 100%; }

.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* Premium Hero Section */
.hero {
    position: relative;
    padding: 180px 20px 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-alt);
    overflow: hidden;
}

.hero-bg-accent {
    position: absolute;
    top: -20%; right: -10%;
    width: 60%; height: 80%;
    background: radial-gradient(circle, var(--primary-ultra-light) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content .badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 90%;
}

.hero-actions { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.avatars { display: flex; }
.avatars img, .avatar-more {
    width: 45px; height: 45px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -15px;
    object-fit: cover;
}
.avatars img:first-child { margin-left: 0; }
.avatar-more {
    background-color: var(--primary-ultra-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 600;
}
.hero-trust span { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

.hero-image-wrapper { position: relative; }
.image-container { position: relative; border-radius: var(--radius-lg); overflow: visible; }
.image-container img {
    width: 100%; height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* Glassmorphism Floating Card */
.floating-card {
    position: absolute;
    bottom: -30px; left: -40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.icon-circle {
    width: 45px; height: 45px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
}
.card-text { display: flex; flex-direction: column; }
.card-text strong { color: var(--text-main); font-size: 1.05rem; }
.card-text span { color: var(--text-muted); font-size: 0.85rem; }

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    transition: var(--transition);
}
.scroll-indicator:hover { opacity: 1; color: var(--primary); }
.scroll-indicator i { font-size: 1.5rem; animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Ticker Marquee */
.ticker-wrapper {
    background-color: var(--primary);
    color: white;
    padding: 1rem 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}
.ticker {
    display: flex;
    animation: marquee 30s linear infinite;
    flex-shrink: 0;
    min-width: 100%;
    justify-content: space-around;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 2rem;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 1px;
}
.ticker-item i { color: var(--accent); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* Services / Especialidades */
.services { padding: var(--section-pad); background-color: var(--bg-color); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.premium-card {
    background-color: var(--bg-alt);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.premium-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background-color: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.premium-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: transparent; }
.premium-card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 65px; height: 65px;
    background-color: var(--primary-ultra-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}
.card-icon i { font-size: 2rem; color: var(--primary); transition: var(--transition); }
.premium-card:hover .card-icon { background-color: var(--primary); }
.premium-card:hover .card-icon i { color: white; }

.premium-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.premium-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* About Section */
.about { padding: var(--section-pad); background-color: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 6rem; align-items: center; }

.about-image-wrapper { position: relative; }
.image-box { position: relative; border-radius: var(--radius-lg); }
.image-box img {
    width: 100%; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5; object-fit: cover;
}
.experience-badge {
    position: absolute; bottom: -20px; right: -20px;
    background-color: var(--primary); color: white;
    padding: 1.5rem; border-radius: 50%;
    width: 140px; height: 140px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; border: 8px solid var(--bg-alt);
    box-shadow: var(--shadow-md);
}
.experience-badge .number { font-family: var(--font-heading); font-size: 2.5rem; line-height: 1; }
.experience-badge .text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-top: 5px; opacity: 0.9; }

.about-content .highlight-text {
    font-size: 1.25rem; font-family: var(--font-heading);
    color: var(--primary); font-style: italic; margin-bottom: 2rem;
    border-left: 3px solid var(--accent); padding-left: 1.5rem;
}
.about-content p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }

.about-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 3rem; border-top: 1px solid var(--border-color); padding-top: 2rem; }
.signature { font-family: var(--font-signature); font-size: 3.5rem; color: var(--text-main); line-height: 0.8; }
.credentials { display: flex; flex-direction: column; gap: 0.5rem; }
.credentials span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.credentials i { color: var(--primary); }

/* Methodology Steps */
.methodology { padding: var(--section-pad); background-color: var(--bg-color); }
.steps-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.step {
    background: var(--bg-alt); padding: 3rem 2.5rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; z-index: 2;
}
.step:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.step-number {
    font-family: var(--font-heading); font-size: 4rem; color: var(--primary-ultra-light);
    line-height: 1; margin-bottom: 1rem; font-weight: 600;
}
.step h3 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--primary); }
.step p { color: var(--text-muted); }

/* Testimonials */
.testimonials { padding: var(--section-pad); background-color: var(--primary-ultra-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; margin-bottom: 2rem; }
.testimonial-card { background: white; padding: 3rem; border-radius: var(--radius-lg); position: relative; box-shadow: var(--shadow-sm); }
.quote-icon { position: absolute; top: 1.5rem; left: 2.5rem; font-family: var(--font-heading); font-size: 5rem; color: var(--primary-ultra-light); line-height: 1; z-index: 1; }
.testimonial-card p { position: relative; z-index: 2; font-size: 1.1rem; font-style: italic; color: var(--text-main); margin-bottom: 2rem; line-height: 1.8; }
.patient-info { display: flex; flex-direction: column; }
.patient-info strong { color: var(--primary); font-size: 1.1rem; }
.patient-info span { color: var(--text-muted); font-size: 0.9rem; }
.disclaimer { font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; }

/* FAQ Premium */
.faq-premium { padding: var(--section-pad); background-color: var(--bg-alt); }
.faq-container { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.faq-left h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.faq-left p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

.accordion { display: flex; flex-direction: column; gap: 1rem; }
.accordion-item { border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition); }
.accordion-item.active { border-color: var(--primary); box-shadow: 0 5px 15px rgba(74, 96, 82, 0.08); }
.accordion-header {
    width: 100%; text-align: left; background: none; border: none; padding: 1.5rem 2rem;
    font-family: var(--font-heading); font-size: 1.2rem; font-weight: 500; color: var(--text-main);
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition);
}
.accordion-item.active .accordion-header { color: var(--primary); background-color: var(--primary-ultra-light); }
.accordion-header i { transition: transform 0.4s ease; background-color: var(--bg-color); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.accordion-item.active .accordion-header i { transform: rotate(45deg); background-color: var(--primary); color: white; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); background-color: white; }
.accordion-content p { padding: 0 2rem 1.5rem; color: var(--text-muted); line-height: 1.7; }

/* Final CTA Premium */
.final-cta-premium { padding: 40px 20px 100px; background-color: var(--bg-alt); }
.cta-box {
    background-color: var(--primary);
    border-radius: var(--radius-lg);
    padding: 5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.cta-bg-elements {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at top right, rgba(255,255,255,0.1) 0%, transparent 40%),
                      radial-gradient(circle at bottom left, rgba(255,255,255,0.05) 0%, transparent 40%);
    z-index: 1; pointer-events: none;
}
.cta-content { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.cta-content h2 { color: white; font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
.cta-content p { color: rgba(255,255,255,0.8); font-size: 1.15rem; margin-bottom: 3rem; }
.security-note { margin-top: 1.5rem; color: rgba(255,255,255,0.6); font-size: 0.85rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* Premium Footer */
.footer-premium { background-color: #111A15; color: white; padding-top: 5rem; }
.footer-container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }

.footer-brand .logo i { color: white; }
.footer-brand .logo-name { color: white; }
.footer-brand .logo-title { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.6); margin: 1.5rem 0; font-size: 0.95rem; line-height: 1.6; max-width: 80%; }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; background-color: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-links a:hover { background-color: var(--primary); transform: translateY(-3px); }

.footer-links h3, .footer-contact h3 { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 1.5rem; color: white; }
.footer-links ul, .footer-contact ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.95rem; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.5; }
.footer-contact i { color: var(--primary-light); font-size: 1.2rem; margin-top: 2px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 1.5rem 0; }
.bottom-container { display: flex; justify-content: space-between; align-items: center; color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.privacy-link { color: rgba(255,255,255,0.4); }
.privacy-link:hover { color: white; }

/* Animations */
.reveal-fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-fade-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-fade-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-active { opacity: 1; transform: translate(0); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container, .about-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-actions { align-items: center; }
    .hero-bg-accent { width: 100%; height: 50%; top: 0; right: 0; border-radius: 0 0 50% 50%; }
    .floating-card { left: 50%; transform: translateX(-50%); bottom: -20px; width: 80%; animation: none; }
    
    .eyebrow::before { display: none; }
    .eyebrow { padding-left: 0; }
    
    .steps-container, .testimonials-grid { grid-template-columns: 1fr; }
    .faq-container { grid-template-columns: 1fr; }
    .footer-container { grid-template-columns: 1fr; gap: 3rem; }
    .footer-brand p { max-width: 100%; }
    .about-footer { flex-direction: column; gap: 2rem; }
    .experience-badge { right: 0; bottom: 0; width: 110px; height: 110px; padding: 1rem; border-width: 5px; }
    .experience-badge .number { font-size: 1.8rem; }
    .experience-badge .text { font-size: 0.6rem; letter-spacing: 0.5px; margin-top: 2px; }
}

@media (max-width: 768px) {
    .nav, .btn-nav { display: none; }
    .mobile-menu-btn { display: block; z-index: 1001; }
    .hero { padding-top: 140px; }
    .bottom-container { flex-direction: column; gap: 1rem; text-align: center; }
    .cta-box { padding: 3rem 1.5rem; }
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-alt);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}
.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
}
.mobile-menu .btn-primary {
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-top: 1rem;
}
