:root {
    --primary: #1E88C8;
    --primary-dark: #1565A0;
    --accent: #A64D8F;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    --radius: 16px;
    --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', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animation Base Classes */
.fade-in {
    animation: fadeInUp 1.2s ease-out forwards;
    animation-fill-mode: both;
}

.slide-in-left {
    animation: slideInLeft 1.2s ease-out forwards;
    animation-fill-mode: both;
}

.slide-in-right {
    animation: slideInRight 1.2s ease-out forwards;
    animation-fill-mode: both;
}

.scale-in {
    animation: scaleIn 1s ease-out forwards;
    animation-fill-mode: both;
}

.bounce-in {
    animation: bounceIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-fill-mode: both;
}

/* Hero-specific animations */
.hero-fade-up {
    animation: heroFadeUp 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-fill-mode: both;
}

.hero-reveal {
    animation: heroReveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-fill-mode: both;
}

.hero-scale-fade {
    animation: heroScaleFade 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-fill-mode: both;
}

/* Animation Delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }

.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.6s ease;
}

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

.brand {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--primary);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a.active {
    color: var(--primary);
    font-weight: 700;
}

.phone-btn {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.phone-btn:hover {
    background: var(--bg-light);
}

.cta-btn {
    background: var(--primary);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(30, 136, 200, 0.3);
}

.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 136, 200, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #484F57;
}




.hero-logo-card {
    background: #ffffff;
    border-radius: 0 28px 28px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 56px 60px 40px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3), 12px 0 0 rgba(30, 136, 200, 0.5);
    z-index: 2;
    transform: translateY(-40px);
}

.hero-center {
    flex: 1;
    padding: 0px 20px 100px 150px;
    max-width: 850px;
    z-index: 2;
}

.hero-person-img {
    position: absolute;
    right: -3%;
    bottom: 0;
    height: 65%;
    width: auto;
    border-radius: 12%;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(-16px 0 28px rgba(0,0,0,0.25));
}

.hero-logo-img {
    width: 500px;
    height: auto;
    object-fit: contain;
}

.hero-heading {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: white;
    letter-spacing: 2px;
    opacity: 0;
}

.highlight {
    color: var(--primary);
    display: block;
}

.hero-text {
    font-size: 18px;
    color: white;
    margin-bottom: 40px;
    line-height: 1.7;
    opacity: 0;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn i {
    font-size: 24px;
}

.btn div {
    text-align: left;
}

.btn strong {
    display: block;
    font-size: 15px;
}

.btn small {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    font-weight: 400;
}

.btn-primary {
    background: linear-gradient(135deg, #1E88C8 0%, #1565A0 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(30, 136, 200, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, #A64D8F 0%, #7B3570 100%);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(166, 77, 143, 0.35);
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;
}

.specialties-card {
    background: var(--white);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    width: 100%;
    max-height: 105vh;
    overflow-y: auto;
    opacity: 0;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    text-align: center;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 12px;
    background: var(--bg-light);
    transition: var(--transition);
    cursor: pointer;
}

.spec-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.spec-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.spec-item p {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

/* Info Cards Section */
.info-cards-section {
    padding: 40px 0;
    background: var(--white);
    margin-top: -50px;
    position: relative;
    z-index: 5;
}

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

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

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

.info-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1E88C8 0%, #1565A0 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.info-icon.green {
    background: linear-gradient(135deg, #A64D8F 0%, #7B3570 100%);
}

.info-icon.blue {
    background: linear-gradient(135deg, #1E88C8 0%, #1565A0 100%);
}

.info-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.info-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-content .highlight-text {
    color: var(--primary);
    font-weight: 600;
    margin-top: 12px;
}

.info-content .small-text {
    font-size: 13px;
    color: #9ca3af;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.card-link:hover {
    gap: 12px;
    color: var(--primary-dark);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
}

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

.about-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-image:hover .consultorio-img {
    transform: scale(1.05);
}

.about-content {
    padding: 20px;
}

.about-content .section-heading {
    text-align: left;
    margin-bottom: 24px;
    font-size: 42px;
}

.about-intro {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.about-feature {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.feature-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.about-feature h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.about-feature p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Medical Checkups Section */
.checkups-section {
    padding: 60px 0;
    background: linear-gradient(180deg, #f8fafc 0%, var(--white) 100%);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: -40px;
    margin-bottom: 60px;
}

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

.checkup-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.checkup-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.checkup-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.checkup-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================
   SECTION HEADING GENERIC
======================== */
.section-heading {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* ========================
   NAV LOGO (subpages)
======================== */
.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.nav-menu a.active {
    color: var(--primary);
    font-weight: 700;
}

/* ========================
   PAGE HEADER (subpages)
======================== */
.page-header {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 56px;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(30, 40, 55, 0.72);
    z-index: 1;
}

.page-header .container-fluid {
    position: relative;
    z-index: 2;
}

.page-header--staff {
    background-image: url('../images/interior.jpeg');
}

.page-header--estudios {
    background-image: url('../images/interior2.jpeg');
}

.page-header--nosotros {
    background-image: url('../images/consultorio.jpg');
}

.page-header--contacto {
    background-image: url('../images/otroconsultorio.jpeg');
}

.page-header--faq {
    background-image: url('../images/interior2.jpeg');
}

/* ========================
   FAQ SECTION
======================== */
.faq-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 860px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item--open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 28px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 12px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-item--open .faq-answer {
    max-height: 800px;
    padding: 0 28px 24px;
}

.faq-item--open .faq-question {
    color: var(--primary);
}

.faq-cta {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.06);
}

.faq-cta p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
    margin: 6px;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(30,136,200,0.25);
}

.faq-cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.faq-cta-btn--wa {
    background: #25D366;
    box-shadow: 0 4px 12px rgba(37,211,102,0.25);
}

.faq-cta-btn--wa:hover {
    background: #1ebe5a;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 15px;
        padding: 18px 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item--open .faq-answer {
        padding: 0 20px 20px;
    }

    .faq-cta {
        padding: 28px 20px;
    }
}

.page-header-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 6px;
    margin: 0 0 12px;
}

.page-header-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.65);
    margin: 0;
}

/* ========================
   NOSOTROS PAGE
======================== */
.nosotros-section {
    background: var(--white);
    padding-bottom: 80px;
}

.nosotros-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 80px 0;
}

.nosotros-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.nosotros-map-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.nosotros-subtitle {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
    line-height: 1.3;
}

.nosotros-text {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}

.lema-card {
    background: #484F57;
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
}

.lema-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.lema-quote {
    font-size: 22px;
    font-weight: 600;
    color: white;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    border: none;
}

/* ========================
   STAFF PAGE
======================== */
.staff-section {
    background: var(--bg-light);
    padding-bottom: 80px;
    max-width: 1800px;
}

/* Filter bar */
.staff-filters-toggle {
    display: none;
}

.staff-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 32px 0 8px;
    justify-content: center;
    top: 72px;
    z-index: 90;
    background: var(--bg-light);
    padding-bottom: 18px;
}

.staff-filters-list {
    display: contents;
}

.staff-filter-btn {
    padding: 8px 18px;
    border: 2px solid rgba(30, 136, 200, 0.2);
    border-radius: 50px;
    background: var(--white);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.staff-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(30, 136, 200, 0.06);
}

.staff-filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(30, 136, 200, 0.3);
}

/* Staff groups flow grid */
.staff-groups-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-top: 40px;
}

.staff-group[data-count="4"] { grid-column: span 4; }
.staff-group[data-count="3"] { grid-column: span 3; }
.staff-group[data-count="2"] { grid-column: span 2; }
.staff-group[data-count="1"] { grid-column: span 1; }

/* Visual order for optimal row packing */
.staff-group[data-category="cardiologia"] { order: 1; }
.staff-group[data-category="clinica-medica"] { order: 2; }
.staff-group[data-category="cirugia-plastica"] { order: 3; }
.staff-group[data-category="dermatologia"] { order: 4; }
.staff-group[data-category="diagnosticos-por-imagenes"] { order: 5; }
.staff-group[data-category="pediatria"] { order: 6; }
.staff-group[data-category="fonoaudiologia"] { order: 7; }
.staff-group[data-category="proctologia"] { order: 8; }
.staff-group[data-category="neumonologia"] { order: 9; }
.staff-group[data-category="psicologia"] { order: 10; }
.staff-group[data-category="oftalmologia"] { order: 11; }
.staff-group[data-category="traumatologia"] { order: 12; }
.staff-group[data-category="rpg"] { order: 13; }
.staff-group[data-category="endocrinologia"] { order: 14; }
.staff-group[data-category="flebologia"] { order: 15; }
.staff-group[data-category="gastroenterologia"] { order: 16; }
.staff-group[data-category="ginecologia"] { order: 17; }
.staff-group[data-category="neurociencias"] { order: 18; }
.staff-group[data-category="nutricion"] { order: 19; }
.staff-group[data-category="otorrinolaringologia"] { order: 20; }
.staff-group[data-category="urologia"] { order: 21; }

.staff-group {
    padding-top: 0;
}

.staff-group:first-child {
    padding-top: 0;
}

.staff-group.hidden {
    display: none;
}

.staff-group-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(30, 136, 200, 0.15);
}

.staff-group-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.staff-group-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 300px));
    gap: 20px;
}

.staff-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow-sm);
}

.staff-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.staff-card-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.staff-card-body {
    padding: 24px 20px;
}

.staff-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.staff-card-specialty {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.staff-card-insurance {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.staff-card-insurance i {
    color: var(--primary);
    font-size: 14px;
}

.staff-placeholder {
    padding: 100px 0;
    text-align: center;
    font-size: 22px;
    color: var(--text-secondary);
    font-style: italic;
}

/* ========================
   ESTUDIOS PAGE
======================== */
.estudios-section {
    background: var(--white);
    padding-bottom: 80px;
}

.estudios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 28px;
    padding: 70px 0;
    align-items: start;
}

.estudio-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    border-top: 4px solid #1E88C8;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: auto;
}

.estudio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-top-color: #A64D8F;
}

.estudio-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1E88C8 0%, #1565A0 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.estudio-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.estudio-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.estudio-card ul li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.estudio-card ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #1E88C8;
    font-weight: 700;
}

/* ========================
   CONTACTO PAGE
======================== */
.contacto-section {
    background: var(--white);
    padding-bottom: 80px;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    padding: 70px 0;
}

.contacto-map iframe {
    border-radius: 16px;
    width: 100%;
    height: 450px;
}

.contacto-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.contacto-items {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

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

.contacto-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1E88C8 0%, #1565A0 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.contacto-icon.violet {
    background: linear-gradient(135deg, #A64D8F 0%, #7B3570 100%);
}

.contacto-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.contacto-value {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.6;
}

a.contacto-value:hover {
    color: var(--primary);
}

/* ========================
   FOOTER SIMPLE BAR
======================== */
.footer-bottom-simple {
    background: #484F57;
    padding: 24px 0;
    margin-top: auto;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-bar-contact {
    display: flex;
    gap: 24px;
}

.footer-bar-contact a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-bar-contact a:hover {
    color: white;
}

.footer-credit {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.footer-credit a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-credit a:hover {
    color: white;
}

/* Footer Section */
.footer-section {
    background: linear-gradient(180deg, #f8fafc 0%, #e5e7eb 100%);
    padding: 80px 0 0;
}

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

.footer-left {
    display: flex;
    align-items: center;
    min-height: 450px;
}

.footer-map {
    width: 100%;
    height: 100%;
}

.footer-map iframe {
    border-radius: 12px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-title.mt {
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-secondary);
}

.contact-item i {
    font-size: 20px;
    color: var(--primary);
    width: 24px;
}

.schedule {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-icons a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.social-icons a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.05);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== INDEX SECTIONS ===== */
.index-section {
    padding: 80px 0;
    background: var(--white);
}

.index-section--alt {
    background: #484F57;
}

.index-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.index-section-wrapper--reverse {
    direction: rtl;
}

.index-section-wrapper--reverse > * {
    direction: ltr;
}

.index-section-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.index-section-img--double {
    display: flex;
    gap: 12px;
    overflow: hidden;
    min-width: 0;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    min-width: 900px;
}

.index-section-img--double img {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 0;
    width: 0;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.index-section-img--double img:hover {
    transform: scale(1.04);
}

.index-section-img img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.index-section-img:hover img {
    transform: scale(1.04);
}

.index-section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.index-section-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 28px;
}

.index-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.index-section-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.index-section-link:hover {
    color: var(--accent);
    gap: 12px;
}

/* ===== CONSULTORIO FOTOS ===== */
.consultorio-fotos-section {
    background: #f8fafc;
    padding: 70px 0;
}

.consultorio-fotos-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 40px;
    text-align: center;
}

.consultorio-fotos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.consultorio-foto-block {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.consultorio-foto {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.consultorio-foto-block:hover .consultorio-foto {
    transform: scale(1.04);
}

.interior-placeholder {
    background: linear-gradient(135deg, #484F57 0%, #384049 100%);
    height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,0.35);
    font-size: 52px;
}

.interior-placeholder p {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.interior-placeholder span {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

.foto-label {
    position: absolute;
    bottom: 16px;
    left: 20px;
    background: rgba(0,0,0,0.55);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ===== ESTUDIO DOCTOR BADGE ===== */
.estudio-doctors-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.estudio-doctors-badges .estudio-doctor-badge {
    margin-top: 0;
}

.estudio-doctor-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 10px 12px;
    background: rgba(30, 136, 200, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(30, 136, 200, 0.12);
}

.estudio-doctor-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    flex-shrink: 0;
}

.estudio-doctor-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.estudio-doctor-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.estudio-doctor-detail {
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    margin-top: 1px;
}

.estudio-doctor-insurance {
    font-size: 12px;
    color: var(--text-secondary);
}

.estudio-doctor-insurance i {
    color: var(--primary);
    margin-right: 4px;
}

/* ===== ESTUDIO TURNO BUTTON ===== */
.estudio-turno {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.estudio-turno-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(30, 136, 200, 0.25);
}

.estudio-turno-btn:hover {
    background: linear-gradient(135deg, var(--accent) 0%, #7B3570 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(166, 77, 143, 0.3);
}

/* ========================
   POPUP CONTENT STYLES
======================== */
.popup-estudio-detail {
    text-align: center;
    padding: 16px 0;
}

.popup-estudio-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 24px;
}

.popup-estudio-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.popup-estudio-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 32px;
    max-width: 400px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-estudio-list li {
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.popup-estudio-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.popup-no-data {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.popup-turno {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.popup-doctors-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 32px;
}

.popup-doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.popup-doctor-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.popup-doctor-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.popup-doctor-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    display: block;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.popup-doctor-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.popup-doctor-spec {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
}

.popup-doctor-insurance {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.popup-doctor-insurance i {
    color: var(--primary);
    font-size: 13px;
}

.staff-card {
    cursor: pointer;
}

.estudio-card {
    cursor: pointer;
}

/* ===== CONTACTO ACTION BUTTONS ===== */
.contacto-actions {
    display: flex;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.contacto-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: var(--transition);
}

.contacto-btn.wsp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contacto-btn.wsp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.contacto-btn.turno {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 136, 200, 0.3);
}

.contacto-btn.turno:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30, 136, 200, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-person-img {
        height: 55%;
        right: -5%;
    }

    .hero-center {
        padding: 0 32px 60px 80px;
        max-width: none;
    }

    .hero-logo-card {
        padding: 40px 40px 40px 28px;
    }

    .hero-logo-img {
        width: 360px;
    }

    .hero-heading {
        font-size: 32px;
    }

    .consultorio-fotos-grid {
        grid-template-columns: 1fr 1fr;
    }
    .consultorio-foto{
        height: 200px;
    }

    .nosotros-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu, .nav-actions {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 16px 24px;
    }

    .nav-menu {
        gap: 0;
        order: 1;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .nav-actions {
        padding-top: 8px;
        order: 2;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-actions.active {
        display: flex;
    }

    .navbar .container-fluid {
        flex-wrap: wrap;
    }

    .nav-right {
        flex-wrap: wrap;
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-section {
        flex-direction: column;
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 40px;
        gap: 24px;
    }

    .hero-logo-card {
        border-radius: 0 16px 16px 0;
        align-self: flex-start;
        padding: 24px 32px 24px 20px;
        min-height: auto;
        box-shadow: 0 12px 32px rgba(0,0,0,0.2), 6px 0 0 rgba(30, 136, 200, 0.5);
        transform: translateY(0px);
    }

    .hero-logo-img {
        width: 220px;
    }

    .hero-center {
        padding: 0 24px 24px;
        text-align: center;
        max-width: none;
    }

    .hero-ctas {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .hero-ctas .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-person-img {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        max-height: 300px;
        border-radius: 0;
        object-fit: cover;
        filter: none;
    }

    .index-section-wrapper {
        grid-template-columns: 1fr;
    }

    .index-section-wrapper--reverse {
        direction: ltr;
    }

    .hero-heading {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .hero-text {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .btn {
        font-size: 14px;
        padding: 14px 20px;
    }
    
    .specialties-card {
        padding: 24px;
        max-height: 60vh;
    }
    
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .spec-item {
        padding: 10px 6px;
    }
    
    .spec-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .spec-item p {
        font-size: 10px;
    }
    
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .nosotros-wrapper,
    .contacto-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .estudios-grid {
        grid-template-columns: 1fr;
    }

    .staff-groups-flow {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .staff-group[data-count="4"],
    .staff-group[data-count="3"],
    .staff-group[data-count="2"],
    .staff-group[data-count="1"] {
        grid-column: span 1;
    }

    .staff-grid {
        grid-template-columns: 1fr 1fr;
    }
    .staff-card-img{
        height: 150px;
    }
    .staff-card-name {
    font-size: 14px;
}

.staff-card-specialty {
    font-size: 12px;
}

.staff-card-insurance {
    font-size: 10px;
}

.staff-card-insurance i {
    font-size: 10px;
}

.staff-placeholder {
    font-size: 16px;

}

    .staff-filters {
        flex-direction: column;
        gap: 0;
        padding: 12px 0;
        top: 60px;
    }

    .staff-filters-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px 20px;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-family: 'Inter', sans-serif;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
    }

    .staff-filters-toggle-icon {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .staff-filters.open .staff-filters-toggle-icon {
        transform: rotate(180deg);
    }

    .staff-filters-list {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        padding: 0;
    }

    .staff-filters.open .staff-filters-list {
        max-height: 500px;
        padding: 12px 0 4px;
    }

    .staff-filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .popup-doctors-grid {
        grid-template-columns: 1fr;
    }

    .popup-estudio-title,
    .popup-doctors-title {
        font-size: 22px;
    }
    .index-section-img--double{
        display: flex;
        flex-direction: column;
        min-width: auto;
    }
    
    .section-heading {
        font-size: 32px;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
    color: var(--text-primary);
    text-align: center;
}

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

.doctor-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.doctor-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.doctor-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.doctor-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.doctor-specialty {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doctor-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.doctor-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.doctor-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.doctor-info-item i {
    color: var(--primary);
    font-size: 14px;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    60% {
        opacity: 1;
        transform: translateY(-5px);
    }
    80% {
        transform: translateY(2px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hero-specific keyframes */
@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroScaleFade {
    0% {
        opacity: 0;
        transform: translateX(40px) scale(0.9);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 32px 24px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .doctors-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox-trigger {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.25s ease;
}

.lightbox-img-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    animation: scaleIn 0.3s ease;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    display: block;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    margin-top: 14px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
    margin: 0 16px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin: 0 8px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
}
