/* 
    Estilos para Clínica Dental Soledad Fenner
    Tema: Elegante, Minimalista, Cálido, Femenino y Clínico
*/

:root {
    /* Paleta de colores (PENDIENTE DE CONFIRMACIÓN) */
    --bg-main: #FCFBF9; /* Fondo blanco/cálido muy claro */
    --bg-alt: #F4F1EA; /* Fondo secundario natural (beige muy claro) */
    --bg-white: #FFFFFF;
    
    --color-primary: #839788; /* Verde salvia suave y elegante (cálido, clínico) */
    --color-secondary: #C4B7A6; /* Tono arena/natural */
    --color-accent: #657A6A; /* Tono más oscuro para botones y acentos */
    --color-accent-hover: #506154;
    
    --text-dark: #333333; /* Texto principal muy legible */
    --text-muted: #666666; /* Texto secundario */
    --text-light: #FFFFFF;
    
    --border-radius: 12px; /* Esquinas moderadamente redondeadas */
    --border-radius-lg: 24px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
    
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    
    --header-height: 80px;
}

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

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

body {
    font-family: 'Inter', sans-serif; /* Tipografía moderna y legible */
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Tipografías de encabezados */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif; /* Elegante y moderna */
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-dark);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
}

/* Utilitarios de Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0; /* Espacios amplios entre secciones */
}

.bg-alt {
    background-color: var(--bg-alt);
}

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

.text-center { text-align: center; }

/* Accesibilidad y Foco */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

.btn-secondary:hover {
    background-color: rgba(101, 122, 106, 0.05);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-main);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: var(--shadow-soft);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo-placeholder {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.header-logo {
    height: 64px;
    width: auto;
    display: block;
}

.footer-logo {
    height: 72px;
    width: auto;
    display: block;
}

.logo-placeholder span {
    font-size: 0.8rem;
    background: var(--bg-alt);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--text-muted);
}

.desktop-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 400;
}

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

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-white);
    min-width: 240px;
    box-shadow: var(--shadow-soft);
    border-radius: var(--border-radius);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.03);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.dropdown-item:hover {
    background-color: var(--bg-main);
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #25D366;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.whatsapp-icon:hover {
    transform: scale(1.05);
}

/* Menú Móvil Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-white);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    box-shadow: -5px 0 20px rgba(0,0,0,0.05);
    transition: right 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-link {
    display: block;
    font-size: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.mobile-dropdown-menu {
    display: none;
    padding-left: 1rem;
    background-color: var(--bg-main);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.mobile-dropdown-menu.active {
    display: block;
}

.mobile-dropdown-item {
    display: block;
    padding: 0.8rem;
    font-size: 1rem;
    color: var(--text-muted);
}

/* WhatsApp Flotante */
.floating-wa {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: var(--transition-normal);
}

.floating-wa:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--bg-alt); /* Placeholder para la imagen de carga */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Secciones Generales */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Tarjetas (Cards) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    color: var(--color-accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-link:hover {
    gap: 0.8rem; /* Pequeña animación de flecha al hover */
}

/* Grilla de Tratamientos */
.treatments-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.treatment-item {
    background-color: var(--bg-main);
    border: 1px solid rgba(0,0,0,0.04);
    padding: 1.5rem 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    flex: 1 1 calc(16.666% - 1rem);
    min-width: 140px;
}

.treatment-item:hover {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.treatment-item h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Contacto y Footer */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-card {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
}

.contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.map-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: var(--bg-alt); /* Placeholder mapa */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.footer {
    background-color: var(--bg-white);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.footer-col p, .footer-col a {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: block;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Interior Pages Base */
.page-header {
    padding: 12rem 0 6rem;
    background-color: var(--bg-alt);
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-content {
    padding: 6rem 0;
    min-height: 40vh;
}

/* Responsive */
@media (max-width: 992px) {
    .desktop-menu { display: none; }
    .header-logo {
        height: 54px;
    }

    .desktop-menu, .header-actions {
        display: none;
    }.mobile-toggle { display: flex; }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 2rem);
    }
    
    .hero-image {
        aspect-ratio: 16/9;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .section-padding { padding: 4rem 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .footer-bottom { justify-content: center; }
}

/* Formulario de Contacto Elegante */
.elegant-form {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.elegant-form .form-group {
    margin-bottom: 1.5rem;
}

.elegant-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.elegant-form input,
.elegant-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fdfdfd;
}

.elegant-form input:focus,
.elegant-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(162, 197, 151, 0.2);
}

.elegant-form .btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    padding: 1rem;
}

.elegant-form .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
    font-size: 0.95rem;
    text-align: center;
}

.form-message.success {
    display: block;
    background-color: rgba(162, 197, 151, 0.1);
    color: #2e5926;
    border: 1px solid var(--primary-color);
}

.form-message.error {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* Reducción de márgenes y tamaños del header para que sea compacto */
.header {
    padding: 0.8rem 0;
}
.header-logo {
    height: 64px;
}
@media (min-width: 993px) {
    .desktop-menu {
        gap: 1.5rem;
    }
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Galería Mosaico Clínica */
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
    padding: 2rem 0;
}

.gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform var(--transition);
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

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

/* Configuraciones del mosaico (7 fotos) */
.item-1 { grid-column: span 2; grid-row: span 2; } /* Foto grande principal */
.item-2 { grid-column: span 1; grid-row: span 1; }
.item-3 { grid-column: span 1; grid-row: span 2; } /* Foto vertical */
.item-4 { grid-column: span 1; grid-row: span 1; }
.item-5 { grid-column: span 2; grid-row: span 1; } /* Foto horizontal ancha */
.item-6 { grid-column: span 1; grid-row: span 1; }
.item-7 { grid-column: span 1; grid-row: span 1; }

@media (max-width: 992px) {
    .gallery-mosaic {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }
    .item-1 { grid-column: span 2; grid-row: span 2; }
    .item-2 { grid-column: span 1; grid-row: span 1; }
    .item-3 { grid-column: span 1; grid-row: span 1; }
    .item-4 { grid-column: span 1; grid-row: span 1; }
    .item-5 { grid-column: span 2; grid-row: span 1; }
    .item-6 { grid-column: span 1; grid-row: span 1; }
    .item-7 { grid-column: span 3; grid-row: span 1; } /* Última foto ocupa todo el ancho */
}

@media (max-width: 768px) {
    .gallery-mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }
    .item-1 { grid-column: span 2; grid-row: span 2; }
    .item-2 { grid-column: span 1; grid-row: span 1; }
    .item-3 { grid-column: span 1; grid-row: span 1; }
    .item-4 { grid-column: span 1; grid-row: span 1; }
    .item-5 { grid-column: span 1; grid-row: span 1; }
    .item-6 { grid-column: span 1; grid-row: span 1; }
    .item-7 { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 480px) {
    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    .gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* Equipo Clínico */
.team-section {
    padding: 3rem 0 5rem 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-card {
    background-color: var(--bg-main);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    text-align: justify;
    transition: transform var(--transition), box-shadow var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.team-card-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 15%; /* Mantiene la cabeza completa y centrada */
    border-bottom: 3px solid var(--color-primary-light);
}

.team-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.team-card h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.team-card h4 {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: justify;
}

.team-card ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

/* Team Lead Section */
.team-lead {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    background-color: var(--bg-main);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.team-lead-img {
    flex: 0 0 320px;
}

.team-lead-img img {
    width: 100%;
    height: 320px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    object-fit: cover;
    object-position: center 15%; /* Evita cortar la cabeza y cabello */
    border-bottom: 3px solid var(--color-primary-light);
}

.team-lead-content {
    flex: 1;
}

.team-lead-content h2 {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.team-lead-content .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.lead-details {
    border-left: 4px solid var(--color-primary-light);
    padding-left: 1.5rem;
}

.lead-details h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.lead-details h4 {
    font-size: 1.1rem;
    color: var(--color-secondary);
    font-weight: 500;
}

@media (max-width: 992px) {
    .team-lead {
        gap: 2rem;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .team-lead {
        flex-direction: column;
        text-align: center;
    }
    
    .team-lead-img {
        flex: 100%;
    }
    
    .lead-details {
        border-left: none;
        border-top: 4px solid var(--color-primary-light);
        padding-left: 0;
        padding-top: 1.5rem;
        margin-top: 1rem;
    }
}

/* Elegant 3-Image Gallery for Odontopediatría */
.pediatria-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.elegant-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    height: 500px;
}
.elegant-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.elegant-gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.elegant-gallery .img-large {
    grid-column: 1;
    grid-row: 1 / 3;
}
.elegant-gallery .img-small-top {
    grid-column: 2;
    grid-row: 1;
}
.elegant-gallery .img-small-bottom {
    grid-column: 2;
    grid-row: 2;
}

/* Hover Case Button */
.hover-case-container {
    position: relative;
    display: inline-block;
}
.hover-image-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    margin-bottom: 20px;
    background: var(--bg-white);
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    width: 320px;
    pointer-events: none;
}
.hover-image-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px;
    border-style: solid;
    border-color: var(--bg-white) transparent transparent transparent;
}
.hover-image-popup img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}
.hover-case-container:hover .hover-image-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 992px) {
    .pediatria-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
@media (max-width: 768px) {
    .elegant-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        height: auto;
    }
    .elegant-gallery .img-large {
        grid-column: 1 / 3;
        grid-row: 1;
        aspect-ratio: 4/3;
    }
    .elegant-gallery .img-small-top {
        grid-column: 1;
        grid-row: 2;
        aspect-ratio: 1/1;
    }
    .elegant-gallery .img-small-bottom {
        grid-column: 2;
        grid-row: 2;
        aspect-ratio: 1/1;
    }
}

/* Ortodoncia Layout */
.ortodoncia-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .ortodoncia-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
