/* ===== ODONTOCARE - CLÍNICA ODONTOLÓGICA ===== */
:root {
    --primary: #0A8F7C;
    --primary-light: #05C7A0;
    --primary-dark: #087A69;
    --secondary: #F0F9F7;
    --accent: #E8F5F2;
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body { font-family: var(--font-body); color: var(--text-dark); overflow-x: hidden; }

.container { max-width: 1280px; margin: 0 auto; }

/* Navigation */
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
    padding: 4px 0;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary); }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #0A8F7C 0%, #05C7A0 50%, #0A8F7C 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://images.unsplash.com/photo-1606811841689-23dfddce3e95?w=1600&q=80') center/cover;
    opacity: 0.15;
}
.hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 150px;
    background: white;
    clip-path: ellipse(70% 100% at 50% 100%);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}
.btn-primary { background: white; color: var(--primary); box-shadow: 0 4px 20px rgba(10, 143, 124, 0.3); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(10, 143, 124, 0.4); }
.btn-outline {
    border: 2px solid #05C7A0;
    color: #05C7A0;
    background: transparent;
}
.btn-outline:hover { background: rgba(5, 199, 160, 0.1); border-color: #0A8F7C; color: #0A8F7C; transform: translateY(-3px); }

/* Cards */
.service-card {
    background: white;
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10, 143, 124, 0.15);
}

/* Section Titles */
.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}
.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

/* Team Cards */
.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.team-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.team-card:hover img { transform: scale(1.05); }

/* Gallery */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 143, 124, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(10, 143, 124, 0.1);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0A8F7C, #05C7A0);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: cta-shimmer 6s ease-in-out infinite;
}
@keyframes cta-shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

/* Counter */
.counter-item { text-align: center; padding: 20px; }
.counter-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.counter-label { color: var(--text-light); font-size: 14px; margin-top: 8px; }

/* Form */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fafafa;
    outline: none;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 143, 124, 0.1);
    background: white;
}
textarea.form-input { min-height: 140px; resize: vertical; }

/* Page Banner */
.page-banner {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #0A8F7C, #05C7A0);
    position: relative;
    text-align: center;
}
.page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: white;
    clip-path: ellipse(60% 100% at 50% 100%);
}

/* Mobile Menu Animation */
#mobileMenu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                visibility 0.3s ease,
                padding 0.3s ease;
    padding: 0 16px !important;
}
#mobileMenu.open {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
    padding: 16px !important;
}
#mobileMenu .nav-link {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s ease;
}
#mobileMenu .nav-link:hover,
#mobileMenu .nav-link.active {
    background: var(--primary);
    color: white !important;
}
#mobileMenu .nav-link.active {
    font-weight: 600;
}

/* Hamburger Button Animation */
.hamburger-btn {
    width: 28px;
    height: 22px;
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 60;
}
.hamburger-btn span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #374151;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.hamburger-btn span:nth-child(1) { top: 0; }
.hamburger-btn span:nth-child(2) { top: 9px; width: 80%; }
.hamburger-btn span:nth-child(3) { top: 18px; }

.hamburger-btn.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
    background: var(--primary);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(12px);
    width: 100%;
}
.hamburger-btn.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
    background: var(--primary);
}

/* Mobile Menu Backdrop */
.mobile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 48;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title { font-size: 2rem; }
}
@media (max-width: 768px) {
    .section-title { font-size: 1.75rem; }
    .hero-section { min-height: 90vh; }
    .counter-number { font-size: 2.25rem; }
    .page-banner { padding: 140px 0 80px; }
}
@media (max-width: 480px) {
    .section-title { font-size: 1.5rem; }
    .hero-section { min-height: 80vh; }
    .btn-primary { padding: 12px 24px; font-size: 14px; }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(10, 143, 124, 0.3);
    z-index: 999;
    transition: all 0.3s;
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 143, 124, 0.4);
}
.back-to-top.show { display: flex; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.lightbox-close:hover { opacity: 1; }
