/* ==========================================================================
   B DENTAL - CLÍNICA ODONTOLÓGICA
   HOJA DE ESTILOS PRINCIPAL (OPTIMIZADA Y SIN DUPLICADOS)
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES GLOBALES
   ========================================================================== */
:root {
    --gris-oscuro: #333333;
    --gris-medio: #666666;
    --gris-claro: #f0f0f0;
    --blanco: #ffffff;
    --rosa: #d4a5a5;
    --rosa-claro: #e8c4c4;
    --rosa-palo: #e8d5d8;
    --nude: #f5e6ea;
    --nude-oscuro: #e8d5d8;
    --whatsapp: #25D366;
    --verde-ok: #4caf50;
    --rojo-error: #e74c3c;
}

/* ==========================================================================
   2. RESET Y BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--nude);
    color: var(--gris-oscuro);
    line-height: 1.6;
}

/* ==========================================================================
   3. HEADER Y NAVEGACIÓN
   ========================================================================== */
header {
    background: var(--gris-oscuro);
    color: var(--blanco);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-header {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 50%;
    background: #000;
    padding: 2px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: 0.3s;
}

nav a:hover {
    background: var(--rosa);
    color: var(--gris-oscuro);
}

/* Indicador Abierto/Cerrado */
.estado-clinica {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 1rem;
}

.estado-punto {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-estado 2s infinite;
}

.estado-punto.abierto { background: #4caf50; box-shadow: 0 0 8px rgba(76, 175, 80, 0.6); }
.estado-punto.cerrado { background: #e74c3c; box-shadow: 0 0 8px rgba(231, 76, 60, 0.6); }
.estado-texto { color: white; }

@keyframes pulse-estado {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* Redes Sociales Header */
.redes-sociales {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.25); }
.social-link[href*="instagram"]:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-link[href*="wa.me"]:hover { background: #25D366; }

/* ==========================================================================
   4. MAIN Y SECCIONES GENERALES
   ========================================================================== */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    min-height: 70vh;
}

.seccion {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
}

h1, h2, h3 { color: var(--gris-oscuro); margin-bottom: 1rem; }
h1 { text-align: center; font-size: 2.2rem; }
h2 { font-size: 1.8rem; border-bottom: 2px solid var(--rosa); padding-bottom: 0.5rem; }

.subtitle {
    text-align: center;
    color: var(--gris-medio);
    margin-bottom: 2rem;
}

/* ==========================================================================
   5. HERO CINEMATOGRÁFICO
   ========================================================================== */
.hero-cinematografico {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #1a1a1a;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('../img/carrusel/consultorioMueble.jpeg') center/cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.85) 0%, rgba(80, 60, 70, 0.75) 40%, rgba(212, 165, 165, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-logo-banner {
    width: 120px; height: 120px;
    background: white;
    border-radius: 50%;
    padding: 15px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

.hero-cinematografico h1 {
    font-size: 3rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-frase {
    font-size: 1.5rem;
    color: white;
    font-style: italic;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-descripcion {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto; margin-right: auto;
    line-height: 1.6;
}

.hero-botones {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-cinematografico .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    min-width: 180px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-cinematografico .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.scroll-indicator-inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gris-oscuro);
    cursor: pointer;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--rosa);
    border-radius: 25px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 0.85rem;
}

.scroll-indicator-inline:hover {
    background: var(--rosa);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 165, 0.5);
}

.scroll-indicator-inline .scroll-text,
.scroll-indicator-inline .scroll-arrow {
    color: var(--rosa);
    transition: color 0.3s;
}

.scroll-indicator-inline:hover .scroll-text,
.scroll-indicator-inline:hover .scroll-arrow { color: white; }

.scroll-indicator-inline .scroll-arrow {
    font-size: 1.1rem;
    font-weight: bold;
    animation: bounceArrow 1.5s infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.hero-curve {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    z-index: 4;
    line-height: 0;
}

.hero-curve svg { width: 100%; height: 60px; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   6. SERVICIOS
   ========================================================================== */
.servicios-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-top: 1.5rem !important;
    justify-content: center !important;
    align-items: stretch !important;
}

.servicio {
    background: var(--blanco) !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    border: 1px solid var(--gris-claro) !important;
    transition: transform 0.3s, box-shadow 0.3s !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 280px !important;
}

.servicio:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
    border-color: var(--rosa) !important;
}

.servicio-img-container {
    width: 100% !important;
    height: 180px !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    margin-bottom: 1rem !important;
    background: var(--gris-claro) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.servicio-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s !important;
}

.servicio:hover .servicio-img { transform: scale(1.05) !important; }

.servicio h3 {
    color: var(--gris-oscuro) !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   7. EQUIPO
   ========================================================================== */
.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.doctor {
    background: var(--blanco);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--gris-claro);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.doctor:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.doctor-destacado {
    border: 2px solid var(--rosa);
    background: linear-gradient(135deg, #ffffff 0%, var(--nude) 100%);
}

.doctor-destacado::before {
    content: '⭐ Profesional destacada';
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    background: var(--rosa);
    color: var(--gris-oscuro);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}

.doctor-foto-container {
    position: relative;
    width: 150px; height: 150px;
    margin: 0 auto 1rem;
}

.doctor-foto {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--rosa-claro);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.doctor:hover .doctor-foto { transform: scale(1.05); }
.doctor-destacado .doctor-foto { border: 4px solid var(--rosa); }

.doctor-badge {
    position: absolute;
    bottom: 5px; right: 5px;
    background: var(--gris-oscuro);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.doctor h3 { color: var(--gris-oscuro); font-size: 1.3rem; margin-bottom: 0.5rem; font-weight: 700; }

.doctor-especialidad {
    color: var(--rosa);
    font-weight: bold;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.doctor-matricula { color: var(--gris-medio); font-size: 0.9rem; margin-bottom: 1rem; font-style: italic; }
.doctor-descripcion { color: var(--gris-medio); font-size: 0.95rem; line-height: 1.5; margin-bottom: 1rem; padding: 0 0.5rem; }

.doctor-horario {
    background: var(--gris-claro);
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--gris-oscuro);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==========================================================================
   8. POR QUÉ ELEGIRNOS (VENTAJAS)
   ========================================================================== */
.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.ventaja-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ventaja-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(212, 165, 165, 0.25);
    border-color: var(--rosa);
}

.ventaja-imagen-container {
    width: 100%; height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--nude) 0%, var(--rosa-palo) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ventaja-imagen {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ventaja-card:hover .ventaja-imagen { transform: scale(1.1); }
.ventaja-card h3 { color: var(--gris-oscuro); margin: 1.5rem 1rem 0.8rem 1rem; font-size: 1.2rem; text-align: center; }
.ventaja-card p { color: var(--gris-medio); line-height: 1.6; font-size: 0.95rem; margin: 0 1rem 1.5rem 1rem; text-align: center; padding: 0 0.5rem; }

/* ==========================================================================
   9. INFORMACIÓN Y CONTACTO
   ========================================================================== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-box { background: var(--gris-claro); padding: 1.5rem; border-radius: 10px; text-align: center; }
.info-box .icon { font-size: 2rem; margin-bottom: 0.5rem; }

.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contacto-info { background: var(--gris-claro); padding: 1.5rem; border-radius: 10px; }
.contacto-item { margin: 1rem 0; padding: 1rem; background: var(--blanco); border-radius: 5px; text-align: center; }
.contacto-item .icon { font-size: 1.5rem; }
.contacto-item .label { color: var(--gris-medio); font-size: 0.9rem; margin-bottom: 0.3rem; }
.contacto-item .value { color: var(--gris-oscuro); font-weight: bold; font-size: 1.1rem; }

.mapa-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.mapa-container iframe { width: 100%; height: 400px; border: none; display: block; }
.mapa-info { text-align: center; }
.mapa-detalles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.mapa-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--gris-claro); border-radius: 8px; text-align: left; }
.mapa-icono { font-size: 2rem; flex-shrink: 0; }
.mapa-item strong { display: block; color: var(--gris-oscuro); margin-bottom: 0.3rem; }
.mapa-item p { color: var(--gris-medio); margin: 0; font-size: 0.9rem; }

/* ==========================================================================
   10. BOTONES
   ========================================================================== */
.btn-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--gris-oscuro);
    color: var(--blanco);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn:hover { background: var(--gris-medio); }
.btn-rosa { background: var(--rosa); color: var(--gris-oscuro); }
.btn-rosa:hover { background: var(--rosa-claro); }
.btn-whatsapp { background: var(--whatsapp); }
.btn-verde { background: var(--verde-ok); }
.btn-rojo { background: var(--rojo-error); }
.btn-imprimir { background: var(--gris-medio); margin-left: 0.5rem; }
.btn-imprimir:hover { background: var(--gris-oscuro); }

.btn-gris {
    background: #6c757d;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-gris:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

/* ==========================================================================
   11. FORMULARIOS Y VALIDACIONES
   ========================================================================== */
form { display: flex; flex-direction: column; gap: 1rem; max-width: 600px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-weight: bold; color: var(--gris-oscuro); margin-bottom: 0.3rem; }

input, textarea, select {
    padding: 0.8rem;
    border: 1px solid var(--gris-claro);
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

input:focus, textarea:focus, select:focus { outline: none; border-color: var(--rosa); }

.error-msg {
    display: block;
    color: var(--rojo-error);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 1.2rem;
    font-weight: 500;
}

input.error, textarea.error, select.error { border: 2px solid var(--rojo-error) !important; background-color: #fff5f5; }
input.valido, textarea.valido, select.valido { border: 2px solid var(--verde-ok) !important; background-color: #f5fff5; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
input.shake, textarea.shake, select.shake { animation: shake 0.3s ease-in-out; }

/* Contenedor de contraseña */
.password-container { position: relative; margin-bottom: 1rem; }
.password-container input { width: 100%; padding: 0.8rem 2.5rem 0.8rem 1rem; border: 2px solid var(--gris-claro); border-radius: 8px; font-size: 1rem; transition: border-color 0.3s ease; box-sizing: border-box; }
.password-container input:focus { outline: none; border-color: var(--rosa); }

.toggle-password {
    position: absolute;
    right: 12px; top: 38px;
    background: none; border: none;
    cursor: pointer;
    font-size: 1.3rem; color: var(--gris-medio);
    padding: 5px;
    transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
}
.toggle-password:hover { color: var(--rosa); transform: scale(1.1); }
.toggle-password:active { transform: scale(0.95); }

/* ==========================================================================
   12. MENSAJES, LOGIN Y PANEL
   ========================================================================== */
.mensaje { padding: 1rem; border-radius: 5px; margin-bottom: 1rem; text-align: center; }
.mensaje.exito { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.mensaje.error { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6cb; }
.mensaje.info { background: var(--nude); color: var(--gris-oscuro); border: 1px solid var(--rosa); }

.login-box { max-width: 400px; margin: 2rem auto; background: var(--blanco); padding: 2rem; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.panel-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.panel-card { background: var(--blanco); padding: 1.5rem; border-radius: 10px; text-align: center; border: 1px solid var(--gris-claro); text-decoration: none; color: var(--gris-oscuro); transition: 0.3s; }
.panel-card:hover { border-color: var(--rosa); transform: translateY(-3px); }
.panel-card .icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.panel-card h3 { color: var(--gris-oscuro); margin-bottom: 0.3rem; }

/* ==========================================================================
   13. TABLAS
   ========================================================================== */
.tabla { width: 100%; border-collapse: collapse; margin-top: 1rem; background: var(--blanco); }
.tabla th, .tabla td { padding: 0.8rem; text-align: left; border-bottom: 1px solid var(--gris-claro); }
.tabla th { background: var(--gris-oscuro); color: var(--blanco); }
.tabla tr:hover { background: var(--nude); }

/* ==========================================================================
   14. CALENDARIO BÁSICO
   ========================================================================== */
.calendario { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 1rem; }
.dia-header { background: var(--gris-oscuro); color: var(--blanco); padding: 0.5rem; text-align: center; font-weight: bold; border-radius: 5px; }
.dia { background: var(--blanco); padding: 0.5rem; min-height: 80px; border: 1px solid var(--gris-claro); border-radius: 5px; font-size: 0.85rem; }
.dia.ocupado { background: var(--rosa); color: var(--gris-oscuro); }
.dia.libre { background: var(--verde-ok); color: var(--blanco); }
.turno-item { background: var(--nude-oscuro); padding: 0.3rem; margin: 0.2rem 0; border-radius: 3px; font-size: 0.75rem; }

/* ==========================================================================
   15. CARRUSEL
   ========================================================================== */
.carrusel-container {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.carrusel-slides { position: relative; width: 100%; height: 500px; overflow: hidden; }
.carrusel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.carrusel-slide.active { opacity: 1; z-index: 1; }
.carrusel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

.carrusel-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(51,51,51,0.9) 0%, rgba(51,51,51,0) 100%);
    color: white; padding: 3rem 2rem 2rem; text-align: center;
}
.carrusel-caption h3 { font-size: 1.8rem; margin-bottom: 0.5rem; color: white; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.carrusel-caption p { font-size: 1.1rem; margin: 0; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }

.carrusel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8); color: var(--gris-oscuro);
    border: none; width: 50px; height: 50px; border-radius: 50%;
    font-size: 1.5rem; cursor: pointer; z-index: 10;
    transition: all 0.3s ease; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.carrusel-btn:hover { background: var(--rosa); color: white; transform: translateY(-50%) scale(1.1); }
.carrusel-prev { left: 20px; }
.carrusel-next { right: 20px; }

.carrusel-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s ease; border: 2px solid white; }
.dot:hover { background: rgba(255, 255, 255, 0.8); }
.dot.active { background: var(--rosa); transform: scale(1.3); }

/* ==========================================================================
   16. PAGOS Y OBRAS SOCIALES
   ========================================================================== */
.pagos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }

.pago-card, .plan-card {
    background: var(--blanco);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--gris-claro);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pago-card:hover, .plan-card:hover {
    transform: translateY(-5px);
    border-color: var(--rosa);
    box-shadow: 0 8px 25px rgba(212, 165, 165, 0.3);
}

/* Fusionado para evitar duplicados */
.pago-icono, .plan-icono {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.pago-card h3, .plan-card h3 {
    color: var(--gris-oscuro);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pago-lista { list-style: none; padding: 0; margin: 0; text-align: left; }
.pago-lista li, .plan-card ul li {
    padding: 0.5rem 0;
    color: var(--gris-medio);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gris-claro);
}
.pago-lista li:last-child, .plan-card ul li:last-child { border-bottom: none; }
.plan-card ul { list-style: none; padding: 0; text-align: left; }
.pago-info-extra { grid-column: 1 / -1; }

/* ==========================================================================
   17. WIDGET PRÓXIMOS TURNOS
   ========================================================================== */
.turnos-rapidos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.turno-rapido {
    background: var(--gris-claro); padding: 1rem; border-radius: 10px;
    display: flex; align-items: center; gap: 1rem;
    border-left: 4px solid var(--rosa); transition: all 0.3s ease;
}
.turno-rapido:hover { transform: translateX(5px); box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.turno-hora {
    background: var(--gris-oscuro); color: white; padding: 0.5rem 1rem;
    border-radius: 8px; font-weight: bold; font-size: 1.1rem;
    min-width: 70px; text-align: center;
}
.turno-info { flex: 1; }
.turno-info strong { color: var(--gris-oscuro); font-size: 1rem; }
.turno-info small { color: var(--gris-medio); font-size: 0.85rem; }
.estado-confirmado { color: var(--verde-ok); font-weight: bold; }
.estado-pendiente { color: #f39c12; font-weight: bold; }
.turno-acciones { display: flex; gap: 0.5rem; }
.btn-small {
    padding: 0.4rem 0.8rem; background: var(--rosa); color: var(--gris-oscuro);
    text-decoration: none; border-radius: 5px; font-size: 0.85rem;
    font-weight: 600; transition: all 0.3s ease;
}
.btn-small:hover { background: var(--rosa-claro); transform: scale(1.05); }

/* ==========================================================================
   18. CALENDARIO INTERACTIVO
   ========================================================================== */
.btn-calendario-nav {
    background: var(--rosa); color: var(--gris-oscuro); border: none;
    padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer;
    font-weight: 600; transition: all 0.3s ease;
}
.btn-calendario-nav:hover { background: var(--rosa-claro); transform: scale(1.05); }
.calendario-grid { background: var(--blanco); padding: 1rem; border-radius: 8px; }
.dia-semana { text-align: center; font-weight: bold; padding: 0.5rem; background: var(--gris-oscuro); color: white; border-radius: 5px; font-size: 0.9rem; }
.dia-calendario {
    min-height: 80px; padding: 0.5rem; border: 1px solid var(--gris-claro);
    border-radius: 5px; cursor: pointer; transition: all 0.3s ease;
    position: relative; font-size: 0.85rem;
}
.dia-calendario:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.15); }
.dia-calendario.libre { background: var(--verde-ok); color: white; }
.dia-calendario.ocupado { background: var(--rosa); color: white; }
.dia-calendario.no-laborable, .dia-calendario.no-disponible { background: #cccccc; color: #666666; cursor: not-allowed; opacity: 0.6; }
.dia-calendario.seleccionado { border: 3px solid var(--gris-oscuro); box-shadow: 0 0 15px rgba(0,0,0,0.3); }
.dia-numero { font-weight: bold; font-size: 1.1rem; margin-bottom: 0.3rem; }
.dia-info { font-size: 0.75rem; line-height: 1.3; }
.dia-info .turno-ocupado { text-decoration: line-through; opacity: 0.8; display: block; margin-top: 0.2rem; }

/* ==========================================================================
   19. WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px; background-color: #25D366; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999; transition: all 0.3s ease; animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover { background-color: #1ebe57; transform: scale(1.1); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }
.whatsapp-icon { width: 32px; height: 32px; }

.whatsapp-tooltip {
    position: absolute; right: 75px; background: #333333; color: white;
    padding: 8px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    pointer-events: none; box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.whatsapp-tooltip::after {
    content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
    border-width: 6px 0 6px 6px; border-style: solid;
    border-color: transparent transparent transparent #333333;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; visibility: visible; right: 70px; }

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   20. FOOTER Y REDES
   ========================================================================== */
footer { background: var(--gris-oscuro); color: var(--blanco); text-align: center; padding: 1.5rem; margin-top: 2rem; }
footer p { margin: 0.3rem 0; }
footer a { color: var(--rosa-claro); text-decoration: none; font-weight: bold; }
footer a:hover { text-decoration: underline; }

.footer-redes { display: flex; justify-content: center; gap: 1.5rem; margin: 1rem 0; flex-wrap: wrap; }
.footer-social {
    display: flex; align-items: center; gap: 0.5rem; color: var(--rosa-claro);
    text-decoration: none; padding: 0.5rem 1rem; border-radius: 25px;
    background: rgba(255, 255, 255, 0.1); transition: all 0.3s ease; font-weight: 500;
}
.footer-social:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); color: white; }

.logo-impresion, .titulo-impresion { display: none; }

/* ==========================================================================
   21. MEDIA QUERIES RESPONSIVE (CONSOLIDADAS)
   ========================================================================== */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 0.8rem; }
    .estado-clinica { display: none; }
    nav { justify-content: center; }
    .redes-sociales { border-left: none; margin-left: 0; padding-left: 0; margin-top: 0.5rem; justify-content: center; }
    
    .form-row { grid-template-columns: 1fr; }
    .contacto-grid { grid-template-columns: 1fr; }
    .servicios-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .equipo-grid { grid-template-columns: 1fr; }
    .doctor-destacado::before { font-size: 0.7rem; padding: 0.2rem 0.8rem; }
    .calendario { grid-template-columns: repeat(7, 1fr); font-size: 0.7rem; }
    .odontograma { grid-template-columns: repeat(8, 1fr); }
    
    .hero-cinematografico { height: auto; min-height: 500px; padding: 3rem 1rem; }
    .hero-cinematografico h1 { font-size: 2rem; }
    .hero-frase { font-size: 1.2rem; }
    .hero-logo-banner { width: 90px; height: 90px; }
    .hero-botones { flex-direction: column; gap: 1rem; }
    .hero-cinematografico .btn { min-width: 160px; padding: 0.9rem 1.5rem; }
    
    .ventajas-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .ventaja-imagen-container { height: 180px; }
    .pagos-grid { grid-template-columns: 1fr; }
    .turnos-rapidos { grid-template-columns: 1fr; }
    .turno-rapido { flex-direction: column; text-align: center; }
    
    .carrusel-slides { height: 350px; }
    .carrusel-caption h3 { font-size: 1.3rem; }
    .carrusel-caption p { font-size: 0.95rem; }
    .carrusel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
    .carrusel-prev { left: 10px; }
    .carrusel-next { right: 10px; }
    
    .dia-calendario { min-height: 60px; font-size: 0.75rem; }
    .dia-numero { font-size: 0.9rem; }
    .dia-info { font-size: 0.65rem; }
}

@media (max-width: 480px) {
    .servicios-grid { grid-template-columns: 1fr !important; }
    .mapa-container iframe { height: 300px; }
    .mapa-detalles { grid-template-columns: 1fr; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .whatsapp-icon { width: 26px; height: 26px; }
    .whatsapp-tooltip { display: none; }
    .carrusel-slides { height: 250px; }
    .carrusel-caption { padding: 2rem 1rem 1rem; }
    .carrusel-caption h3 { font-size: 1.1rem; }
    .carrusel-caption p { font-size: 0.85rem; }
}

/* Tarjetas de servicios clickeables en el index */
.servicio-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.servicio-link:hover {
    transform: translateY(-5px);
}

.servicio-link .servicio {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.servicio-link .servicio::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 165, 165, 0.1) 0%, rgba(212, 165, 165, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.servicio-link:hover .servicio::after {
    opacity: 1;
}

.servicio-ver-mas {
    color: var(--rosa);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.servicio-link:hover .servicio-ver-mas {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   22. MEDIA QUERIES DE IMPRESIÓN
   ========================================================================== */
@media print {
    header, footer, nav, .btn, .btn-group, .no-print, .mensaje, .whatsapp-float, .mapa-container {
        display: none !important;
    }
    
    body { background: white; color: black; font-size: 12pt; }
    main { margin: 0; padding: 0; max-width: 100%; }
    .seccion { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
    
    .tabla { width: 100%; border: 1px solid #000; }
    .tabla th, .tabla td { border: 1px solid #000; padding: 5px; }
    .tabla th { background: #ddd !important; color: black !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    
    .logo-impresion {
        display: block; text-align: center; margin-bottom: 15px;
        padding-bottom: 10px; border-bottom: 2px solid var(--rosa);
    }
    .logo-impresion .logo-img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 5px; }
    .logo-impresion .logo-texto { font-size: 20pt; font-weight: bold; color: var(--gris-oscuro); margin-top: 5px; }
    .logo-impresion .logo-subtexto { font-size: 10pt; color: var(--gris-medio); margin-top: 2px; }
    
    .titulo-impresion {
        display: block !important; text-align: center; font-size: 18pt;
        font-weight: bold; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #000;
    }
}