@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Sora:wght@100..800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLES (Oliva Perez Odontología)
   ========================================================================== */
:root {
    /* Color Palette - Official Brand Colors (Dark Gray & Orange Theme) */
    --color-bg-dark: #121214;          /* Fondo base gris muy oscuro */
    --color-bg-light: #121214;         /* Mapeado al gris oscuro para compatibilidad */
    --color-bg-white: #1C1C1E;         /* Fondo de tarjetas y secciones secundarias */
    --color-bg-orange-soft: rgba(245, 124, 0, 0.08); /* Sutil tinte naranja */
    --color-bg-orange-light: rgba(245, 124, 0, 0.18);
    --color-bg-orange-ultra: rgba(245, 124, 0, 0.04);
    
    --color-text-dark: #FFFFFF;        /* Títulos y textos principales en blanco */
    --color-text-muted: #B3B3B7;       /* Descripciones legibles en gris claro */
    --color-text-light: #7E7E82;       /* Subtextos en gris medio */
    
    --color-orange-red: #F57C00;       /* Naranja puro de marca (reemplaza al rojo #E33E16) */
    --color-orange-bright: #FF9800;    /* Naranja brillante para hovers y estados activos */
    --color-yellow-gold: #FFA726;      /* Acentos cálidos */
    --color-rose-gold: #FFA726;
    
    /* Typography */
    --font-brand: 'Bebas Neue', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --font-subheading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Elevation & Shadows (Adaptadas para fondo oscuro) */
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.55);
    
    /* Animation Speeds */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.25s ease-out;
}

/* ==========================================================================
   BASE & RESET STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   TYPOGRAPHY INHERITANCE
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-dark);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.25;
}

h3 {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.35;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-subheading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-orange-red);
    color: var(--color-bg-white);
    box-shadow: 0 4px 15px rgba(227, 62, 22, 0.25);
}

.btn-primary:hover {
    background-color: var(--color-orange-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 62, 22, 0.35);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-orange-bright) 0%, var(--color-yellow-gold) 100%);
    color: var(--color-bg-white);
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.25);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.35);
}

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

.btn-outline:hover {
    background-color: var(--color-orange-red);
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVIGATION BAR
   ========================================================================== */
.top-bar {
    background-color: #1C1C1E;
    padding: 0.6rem 0;
    font-size: 0.82rem;
    text-align: center;
    font-family: var(--font-subheading);
    font-weight: 600;
    color: var(--color-orange-red);
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(245, 124, 0, 0.15);
}

header {
    background-color: rgba(18, 18, 20, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(245, 124, 0, 0.12);
    transition: var(--transition-smooth);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 48px;
    width: auto;
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-brand);
    font-size: 2.1rem;
    font-weight: 400;
    color: var(--color-text-dark);
    letter-spacing: 1px;
    line-height: 1;
}

.logo-text span {
    color: var(--color-orange-red);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    align-items: center;
    font-family: var(--font-subheading);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-link {
    color: var(--color-text-muted);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover {
    color: var(--color-text-dark);
}

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

.nav-link.active {
    color: var(--color-orange-red);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--color-text-dark);
    padding: 0.2rem;
}

/* ==========================================================================
   HERO / COVER SECTION
   ========================================================================== */
.hero {
    padding: 7rem 0 6rem;
    background: radial-gradient(circle at 75% 25%, var(--color-bg-orange-soft) 0%, var(--color-bg-light) 65%);
    min-height: calc(85vh - 90px);
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

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

.hero-tagline {
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-orange-red);
    font-weight: 700;
    background-color: var(--color-bg-orange-soft);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--color-bg-orange-light);
}

.hero-title span {
    color: var(--color-orange-red);
    display: block;
    margin-top: 0.3rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    max-width: 580px;
}

.hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
}

.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-visual-bg {
    position: absolute;
    width: 110%;
    height: 110%;
    background: linear-gradient(135deg, var(--color-bg-orange-soft) 0%, var(--color-bg-orange-light) 100%);
    border-radius: 65% 35% 50% 50% / 40% 50% 50% 60%;
    z-index: 1;
    animation: morphing-blob 15s infinite alternate ease-in-out;
}

.hero-card {
    position: relative;
    z-index: 2;
    background-color: var(--color-bg-white);
    border-radius: 28px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(227, 62, 22, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.hero-card img {
    max-height: 100px;
    width: auto;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.hero-card h3 {
    font-family: var(--font-brand);
    font-size: 2.2rem;
    letter-spacing: 0.5px;
    font-weight: 400;
}

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

@keyframes morphing-blob {
    0% { border-radius: 65% 35% 50% 50% / 40% 50% 50% 60%; }
    50% { border-radius: 50% 50% 35% 65% / 50% 60% 40% 50%; }
    100% { border-radius: 65% 35% 50% 50% / 40% 50% 50% 60%; }
}

/* ==========================================================================
   ABOUT / SOBRE NOSOTROS SECTION
   ========================================================================== */
.about {
    padding: 7.5rem 0;
    background-color: var(--color-bg-white);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: center;
}

.about-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-orange-bright);
    margin-top: 1.5rem;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-text {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* Doctors team cards container */
.doctors-team {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.doctor-profile-card {
    background-color: var(--color-bg-orange-ultra);
    border-left: 4px solid var(--color-orange-red);
    padding: 2rem;
    border-radius: 0 20px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.doctor-profile-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-medium);
}

.doctor-profile-card h4 {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    color: var(--color-text-dark);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.doctor-mn {
    font-size: 0.82rem;
    color: var(--color-orange-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.doctor-studies {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-text-light);
}

.doctor-specialization {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   SPECIALTIES / TRATAMIENTOS
   ========================================================================== */
.specialties {
    padding: 8rem 0;
    background-color: var(--color-bg-white);
    border-top: 1px solid rgba(227, 62, 22, 0.03);
}

.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
}

.section-tag {
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-orange-red);
    font-weight: 700;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.specialty-card {
    background-color: var(--color-bg-light);
    border-radius: 24px;
    padding: 3rem 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    border: 1px solid rgba(227, 62, 22, 0.03);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.specialty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-orange-red) 0%, var(--color-yellow-gold) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.specialty-card:hover {
    transform: translateY(-8px);
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-hover);
}

.specialty-card:hover::before {
    opacity: 1;
}

.specialty-icon-container {
    width: 65px;
    height: 65px;
    background-color: var(--color-bg-orange-soft);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange-red);
    font-size: 1.6rem;
    transition: var(--transition-smooth);
}

.specialty-card:hover .specialty-icon-container {
    background-color: var(--color-orange-red);
    color: var(--color-bg-white);
    transform: scale(1.05);
}

.specialty-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.specialty-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.specialty-partnership {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    background-color: var(--color-bg-white);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(227, 62, 22, 0.05);
    margin-top: 0.5rem;
}

.specialty-card:hover .specialty-partnership {
    background-color: var(--color-bg-orange-soft);
}

.specialty-action {
    margin-top: 1rem;
    align-self: flex-start;
}

/* ==========================================================================
   PAYMENT CALLOUT
   ========================================================================== */
.payment {
    padding: 5.5rem 0;
    background-color: var(--color-bg-orange-soft);
    border-top: 1px solid var(--color-bg-orange-light);
    border-bottom: 1px solid var(--color-bg-orange-light);
    text-align: center;
}

.payment-desc {
    font-family: var(--font-subheading);
    font-size: 1.5rem;
    color: var(--color-text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-orange-red);
    font-style: italic;
    font-weight: 700;
}

/* ==========================================================================
   LOCATIONS / CLINICS SECTION
   ========================================================================== */
.locations {
    padding: 8rem 0;
    background-color: var(--color-bg-white);
}

/* Single Sede Layout Style */
.locations-single-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.location-card {
    background-color: var(--color-bg-light);
    border-radius: 28px;
    padding: 4rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    box-shadow: var(--shadow-subtle);
    border: 1px solid rgba(227, 62, 22, 0.03);
    transition: var(--transition-smooth);
    position: relative;
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background-color: var(--color-bg-orange-soft);
}

.location-card-icon {
    font-size: 3rem;
    color: var(--color-orange-red);
}

.location-name {
    font-family: var(--font-brand);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.location-info strong {
    color: var(--color-text-dark);
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-subheading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.location-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.location-actions-grid .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.8rem;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
footer {
    background-color: var(--color-text-dark);
    color: var(--color-bg-white);
    padding: 5.5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 4.5rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-brand .logo-text {
    color: var(--color-bg-white);
}

.footer-brand img {
    height: 44px;
    width: auto;
    align-self: flex-start;
    border-radius: 4px;
}

.footer-brand-desc {
    opacity: 0.8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-social-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-white);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.footer-social-icon:hover {
    background-color: var(--color-orange-bright);
    transform: translateY(-3px);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-title {
    font-family: var(--font-subheading);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-yellow-gold);
    font-weight: 700;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer-links li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-links li i {
    color: var(--color-yellow-gold);
    margin-top: 0.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* ==========================================================================
   POPUP MODAL COMPONENT
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 24, 26, 0.55);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background-color: var(--color-bg-white);
    border-radius: 30px;
    width: 90%;
    max-width: 580px;
    padding: 4rem 3.5rem 3.5rem;
    position: relative;
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 60px rgba(22, 24, 26, 0.25);
    border: 1px solid rgba(227, 62, 22, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.modal-overlay.active .modal-window {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 22px;
    right: 22px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close-btn:hover {
    color: var(--color-orange-red);
    background-color: var(--color-bg-orange-soft);
}

.modal-window h2 {
    font-family: var(--font-brand);
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--color-orange-red);
    letter-spacing: 0.5px;
}

.modal-description {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.modal-highlight {
    font-family: var(--font-subheading);
    font-size: 1.3rem;
    color: var(--color-text-dark);
    font-weight: 700;
}

.modal-action-btn {
    align-self: center;
    padding: 1rem 2.4rem;
}

/* ==========================================================================
   WHATSAPP FLOATING BADGE
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 35px;
    right: 35px;
    background-color: #25D366;
    color: var(--color-bg-white);
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: var(--transition-smooth);
}

.whatsapp-floating:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   MEDIA RESPONSIVENESS OVERRIDES
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .hero {
        padding: 5rem 0;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4.5rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .hero-visual-bg {
        max-width: 80%;
        margin: 0 auto;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-header h2::after {
        margin: 1.5rem auto 0;
    }
    
    .doctors-team {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }
    
    .footer-socials {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    #btn-consultas {
        display: none;
    }

    .logo img {
        height: 38px;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        height: calc(100vh - 90px);
        background-color: var(--color-bg-white);
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 2.5rem;
        transition: var(--transition-smooth);
        border-top: 1px solid rgba(245, 124, 0, 0.15);
        z-index: 99;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-actions .btn {
        padding: 0.65rem 1.4rem;
        font-size: 0.8rem;
    }
    
    .location-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-window {
        padding: 3rem 1.8rem 2.5rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .whatsapp-floating {
        bottom: 25px;
        right: 25px;
        width: 52px;
        height: 52px;
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }

    .specialties-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }
}


/* ==========================================================================
   NUEVAS SECCIONES: GALERÍA DE CONSULTORIO Y OPINIONES
   ========================================================================== */
.consultorio-gallery {
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 250px;
    border: 2px solid rgba(245, 124, 0, 0.15);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

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

.gallery-item:hover {
    transform: scale(1.03);
    border-color: var(--color-orange-bright);
    box-shadow: var(--shadow-hover);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Sección de Reseñas de Google Maps */
.reviews-section {
    padding: 8rem 0;
    background-color: var(--color-bg-white);
    border-top: 1px solid rgba(245, 124, 0, 0.08);
    position: relative;
}

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

.review-card {
    background-color: var(--color-bg-light);
    border-radius: 24px;
    padding: 3rem 2.2rem;
    border: 1px solid rgba(245, 124, 0, 0.05);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background-color: rgba(28, 28, 30, 0.6);
    border-color: rgba(245, 124, 0, 0.15);
}

.review-stars {
    color: var(--color-yellow-gold);
    font-size: 1.1rem;
    display: flex;
    gap: 0.2rem;
}

.review-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-style: italic;
    flex-grow: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.review-author-avatar {
    width: 44px;
    height: 44px;
    background-color: rgba(245, 124, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange-bright);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-subheading);
}

.review-author-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
}

.review-author-info span {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.google-maps-btn-container {
    text-align: center;
    margin-top: 4rem;
}

/* Modal Flyer Layout */
.modal-window .modal-flyer-brand {
    font-family: var(--font-brand);
    font-size: 2rem;
    letter-spacing: 2px;
    color: #FFFFFF;
    line-height: 1;
}

.modal-window .modal-flyer-sub {
    font-family: var(--font-subheading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-orange-bright);
    margin-top: 0.2rem;
}

.modal-window h2.modal-flyer-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.25;
    margin-top: 0.5rem;
}

.modal-smile-shape {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
}

.modal-window img.modal-logo-icon {
    width: 80px;
    height: auto;
    margin: 0 auto;
}

.doctor-profile-card img.doctor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-orange-red);
    margin-bottom: 0.5rem;
    background-color: var(--color-bg-light);
    align-self: center;
}

.doctor-profile-card .doctor-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid rgba(245, 124, 0, 0.2);
    margin-bottom: 0.5rem;
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-text-light);
    align-self: center;
}

.about-visual img.about-work-img {
    border-radius: 28px;
    border: 2px solid rgba(245, 124, 0, 0.15);
    box-shadow: var(--shadow-medium);
}

