/* Custom variables for a premium, high-end dental clinic in Polanco */
:root {
    --primary: #0b132b;       /* Deep Luxury Navy */
    --secondary: #14b8a6;     /* Bright Tiffany Teal */
    --accent: #2dd4bf;        /* Light Teal Accent */
    --accent-light: #f0fdfa;  /* Mint Tint */
    --danger: #be123c;        /* Rose / Crimson Alert for emergencies */
    --bg-light: #fafaf9;      /* Off-White, Editorial feel */
    --bg-white: #ffffff;
    --text-main: #475569;     /* Slate text */
    --text-dark: #0f172a;     /* Deep Slate headings */
    --text-muted: #64748b;    
    --border-color: #f1f5f9;  
    --gold: #d97706;          /* Elegant gold touch */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --shadow-sm: 0 4px 10px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.04);
    --shadow-lg: 0 30px 60px rgba(0,0,0,0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

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

.text-serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

/* Buttons (Premium styling) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px; /* Straight clean edges look more premium */
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: #0d9488;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.25);
}

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

.btn-secondary:hover {
    background-color: #1e293b;
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.btn-urgencia {
    background-color: var(--danger);
    font-weight: 700;
}

.btn-urgencia:hover {
    background-color: #9f1239;
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.25);
    transform: translateY(-3px);
}

.btn-white-urgencia {
    background-color: var(--bg-white);
    color: var(--danger);
    font-weight: 700;
    border: 1px solid rgba(190, 18, 60, 0.2);
}

.btn-white-urgencia:hover {
    background-color: var(--danger);
    color: var(--bg-white);
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.3);
}

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1rem;
}

/* Header & Navigation */
.header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2.1rem;
    color: var(--secondary);
}

.logo-meta {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--secondary);
    font-weight: 300;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 100px 0 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbfb 100%);
    position: relative;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background-color: rgba(20, 184, 166, 0.05);
    color: var(--secondary);
    border: 1px solid rgba(20, 184, 166, 0.15);
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 580px;
    font-weight: 300;
}

.hero-actions-group {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-trust {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-trust i {
    color: var(--secondary);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image-frame {
    position: relative;
    border-radius: 4px;
    overflow: visible;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.hero-main-img {
    width: 440px;
    height: 480px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Glassmorphism Tags */
.glass-tag {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 16px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-md);
    z-index: 5;
    width: max-content;
}

.glass-tag i {
    font-size: 1.4rem;
    color: var(--secondary);
}

.glass-tag h4 {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 700;
}

.glass-tag p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tag-experience {
    top: 40px;
    left: -40px;
}

.tag-location {
    bottom: 40px;
    right: -20px;
}

/* Banner Urgencias */
.banner-urgencias {
    background-color: #fff1f2;
    border-top: 1px solid rgba(225, 29, 72, 0.1);
    border-bottom: 1px solid rgba(225, 29, 72, 0.1);
    padding: 30px 0;
}

.banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.banner-text {
    display: flex;
    align-items: center;
    gap: 24px;
}

.emergency-icon-pulse {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--danger);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    animation: beacon 2s infinite;
}

.banner-text h3 {
    color: var(--danger);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.banner-text p {
    color: #9f1239;
    font-weight: 400;
    margin: 0;
}

/* Section Common Titles */
.section-title-wrapper {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px auto;
}

.section-subtitle {
    display: inline-block;
    color: var(--secondary);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Services / Especialidades Section */
.services {
    padding: 120px 0;
    background-color: var(--bg-white);
}

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

.service-card {
    background-color: var(--bg-light);
    border: 1px solid rgba(226, 232, 240, 0.4);
    padding: 50px 40px;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-color: rgba(20, 184, 166, 0.2);
}

.service-icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 30px;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--primary);
    margin-bottom: 18px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-meta-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Brand Values Section */
.brand-values {
    padding: 120px 0;
    background: linear-gradient(180deg, #fafaf9 0%, #ffffff 100%);
}

.values-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.value-item {
    display: flex;
    gap: 24px;
    margin-top: 36px;
}

.value-icon {
    width: 56px;
    height: 56px;
    background-color: rgba(20, 184, 166, 0.05);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}

.value-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.values-accent-box {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 60px;
    border-radius: 4px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.values-accent-box::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 8rem;
    font-family: 'Playfair Display', serif;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
}

.values-accent-box h3 {
    font-size: 1.7rem;
    line-height: 1.5;
    margin-bottom: 30px;
    font-weight: 400;
}

.quote-author {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--secondary);
    text-transform: uppercase;
}

/* Specialists / Directorio Medicos */
.specialists {
    padding: 120px 0;
    background-color: var(--bg-white);
}

.specialists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 40px;
}

.specialist-card {
    background-color: var(--bg-light);
    border: 1px solid rgba(226, 232, 240, 0.4);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.specialist-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(20, 184, 166, 0.1);
}

.specialist-avatar-visual {
    height: 380px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.doctor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.specialist-card:hover .doctor-img {
    transform: scale(1.05);
}

.specialist-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.specialist-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.specialist-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.specialist-degree {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.specialist-degree i {
    color: var(--secondary);
    margin-right: 6px;
}

.specialist-bio {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.7;
    margin-bottom: 30px;
}

.specialist-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    width: 100%;
}

.specialist-features span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.specialist-features span i {
    color: var(--secondary);
}

/* Contact & Directions */
.contact {
    padding: 120px 0;
    background-color: var(--bg-light);
}

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

.contact-info-panel h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-info-panel p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-detail-item {
    display: flex;
    gap: 24px;
}

.contact-detail-item .icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--bg-white);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.contact-detail-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.contact-detail-item p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0;
}

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

.contact-link:hover {
    color: var(--secondary);
}

.text-danger-color {
    color: var(--danger) !important;
    font-weight: 700;
}

.contact-map-panel {
    background-color: var(--bg-white);
    border: 1px solid rgba(226, 232, 240, 0.4);
    border-radius: 4px;
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.map-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.map-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.map-header i {
    font-size: 2.2rem;
    color: var(--secondary);
}

.map-header h4 {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
}

.map-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.map-tip {
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: var(--bg-light);
    padding: 16px;
    border-left: 3px solid var(--secondary);
    border-radius: 4px;
}

.map-tip i {
    color: var(--secondary);
    margin-right: 6px;
}

/* Footer Section */
.footer {
    background-color: var(--primary);
    color: #94a3b8;
    padding: 100px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 80px;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.footer-brand .logo-sub {
    color: rgba(255,255,255,0.4);
}

.text-white {
    color: var(--bg-white) !important;
}

.footer-links h4, .footer-hours h4 {
    color: var(--bg-white);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-hours p {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.footer-hours .highlight {
    color: var(--accent);
    font-weight: 700;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        align-items: center;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-actions-group {
        justify-content: center;
    }

    .hero-image-wrapper {
        justify-content: center;
    }

    .values-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .specialists-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px 0;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 32px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }

    .nav.open {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-actions-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-main-img {
        width: 100%;
        height: auto;
        max-height: 400px;
    }

    .tag-experience {
        left: 10px;
        top: 10px;
    }

    .tag-location {
        right: 10px;
        bottom: 10px;
    }

    .banner-container {
        flex-direction: column;
        text-align: center;
    }

    .banner-text {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* Animations */
@keyframes beacon {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(190, 18, 60, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(190, 18, 60, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(190, 18, 60, 0);
    }
}
