/* CSS Reset and Base Styles */
:root {
    --primary-color: #7E3294; /* Kalan Purple */
    --primary-light: #9B4AB3;
    --primary-dark: #5C226E;
    --secondary-color: #00C2A8; /* Teal accent for health/cleanliness */
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Typography Utility */
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 8px 16px rgba(126, 50, 148, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(126, 50, 148, 0.35);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
    padding: 16px 0;
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    height: 48px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: radial-gradient(circle at top right, rgba(126, 50, 148, 0.05), transparent 60%),
                radial-gradient(circle at bottom left, rgba(0, 194, 168, 0.05), transparent 60%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(126, 50, 148, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--primary-color);
    opacity: 0.05;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

.hero-image-placeholder img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    height: 500px;
    border: 8px solid white;
}

/* Services */
.services {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card.featured {
    border: 2px solid var(--primary-color);
}

.service-card.featured::before {
    content: 'MÁS POPULAR';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.service-card.special-offer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    border: none;
}
.service-card.special-offer h3,
.service-card.special-offer p {
    color: white;
}

.card-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
}

.service-card.special-offer .card-header {
    border-color: rgba(255,255,255,0.2);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-color);
    line-height: 1;
}

.service-card.special-offer .price {
    color: white;
    font-size: 2.5rem;
}

.price-sub {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}
.service-card.special-offer .price-sub {
    color: rgba(255,255,255,0.8);
    display: block;
    margin-top: 4px;
}

.card-body {
    flex-grow: 1;
    margin-bottom: 32px;
}

.card-body p {
    color: var(--text-muted);
}

.service-card.special-offer .btn {
    background: white;
    color: var(--primary-color);
}

/* Why Us */
.why-us {
    padding: 100px 0;
}

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

.why-us-content h2 {
    font-size: 2.5rem;
    margin-bottom: 48px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    background: rgba(126, 50, 148, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-muted);
}

/* Location Section */
.location-section {
    padding: 100px 0;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.contact-card .icon {
    font-size: 2rem;
    background: rgba(126, 50, 148, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
}

.contact-card h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-muted);
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 600;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.stars {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 24px;
    flex-grow: 1;
}

.patient-info {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.patient-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.patient-info h4 {
    margin-bottom: 4px;
    font-size: 1.1rem;
}

.patient-treatment {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 80px 0 24px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 60px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
}

.footer-links h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-links p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.2);
}

.whatsapp-btn:hover {
    background-color: #20BA56;
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.3);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA56;
}

/* --- Premium Service Pages Upgrades --- */
.service-hero-premium {
    position: relative;
    padding: 200px 0 120px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
}

.service-hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(92, 34, 110, 0.85), rgba(126, 50, 148, 0.7));
    z-index: 1;
}

.service-hero-premium .container {
    position: relative;
    z-index: 2;
}

.service-hero-premium h1 {
    color: white;
    font-size: 4.5rem;
    margin: 16px 0;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.service-hero-premium p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 32px;
}

.service-price-premium {
    font-size: 4.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 32px;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.service-price-premium span {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.8;
}

.service-content-premium {
    padding: 100px 0;
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.content-split img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    height: 500px;
}

.process-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.process-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.process-number {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    font-weight: 800;
    color: rgba(126, 50, 148, 0.05);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.process-card h4 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.process-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container,
    .location-grid,
    .content-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-info p {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile fallback */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .price {
        font-size: 2.5rem;
    }
}
