/* --- RESETEO Y FUENTE MODERNA --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif; 
}

/* Desplazamiento suave para los enlaces del menú */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8fafc; 
    color: #334155;
}

/* --- BARRA DE NAVEGACIÓN MODERNA --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px calc((100vw - 1100px) / 2); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Ajuste automático para laptops y celulares */
@media (max-width: 1200px) {
    .navbar { padding: 15px 50px; }
}
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
}



.logo {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 1.5em;
    font-weight: 700;
    color: #0284c7; 
    letter-spacing: 1px;
}

.logo-img {
    height: 40px; 
    width: auto;  
}

.menu-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu-links a {
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    transition: color 0.3s ease;
}

.menu-links a:hover {
    color: #0284c7;
}

/* --- SECCIÓN HERO (PORTADA) --- */
.hero {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-contenido {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5em; 
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.eslogan {
    font-size: 1.5em;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 20px;
    color: #e0f2fe;
}

.subtitulo {
    font-size: 1.1em;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* --- BOTÓN DE LLAMADO A LA ACCIÓN --- */
.btn-principal {
    display: inline-block;
    background-color: white;
    color: #0284c7;
    padding: 15px 35px;
    border-radius: 50px; 
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-principal:hover {
    transform: translateY(-3px); 
    box-shadow: 0 14px 20px -3px rgba(0, 0, 0, 0.2);
}

/* --- SECCIÓN DE SERVICIOS (DISEÑO PROFESIONAL) --- */
.servicios {
    background-color: white;
    padding: 80px 20px;
    text-align: center;
}

.servicios h2 {
    color: #0284c7;
    font-size: 2.2em;
    margin-bottom: 5px;
}

.subtitulo-servicios {
    color: #64748b;
    margin-bottom: 50px;
    font-size: 1.1em;
}

.contenedor-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-tarjeta {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: left; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
    border-left: 5px solid #38bdf8; 
    transition: all 0.3s ease;
}

.servicio-tarjeta:hover {
    transform: translateY(-5px); 
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); 
    border-left: 5px solid #0284c7; 
    background-color: white;
}

.servicio-tarjeta h3 {
    color: #334155;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.servicio-tarjeta p {
    color: #475569;
    font-size: 0.95em;
    line-height: 1.5;
}

/* --- SECCIÓN DEL EQUIPO --- */
.equipo {
    background-color: #f8fafc; 
    padding: 60px 20px;
    text-align: center;
}

.equipo h2 {
    color: #0284c7;
    font-size: 2em;
    margin-bottom: 40px;
}

.contenedor-equipo {
    display: flex;
    justify-content: center;
    gap: 20px; /* Redujimos el espacio entre tarjetas para que quepan las 4 */
    flex-wrap: wrap; 
    max-width: 1250px; /* Ampliamos el contenedor principal (antes era 900px) */
    margin: 0 auto;
}

.dentista-tarjeta {
    background-color: white;
    border-radius: 15px;
    padding: 35px 25px; /* Ajustamos un poco el relleno */
    width: 280px; /* Hicimos la tarjeta un poco más delgada (antes era 350px) */
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease;
}

.dentista-tarjeta:hover {
    transform: translateY(-10px); 
}

.foto-dentista {
    width: 150px;
    height: 150px;
    object-fit: cover;
    /* 'top' asegura que la foto se centre en la parte superior (el rostro) y no les corte la cabeza */
    object-position: top; 
    border-radius: 50%; 
    border: 5px solid #e0f2fe; 
    margin-bottom: 20px;
    
    /* Obliga al navegador a suavizar los píxeles al encoger la foto gigante */
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast; 
}

.dentista-tarjeta h3 {
    color: #334155;
    font-size: 1.4em;
    margin-bottom: 5px;
}

.especialidad {
    color: #0ea5e9;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.divisor-dentista {
    border: none;
    border-top: 2px solid #e0f2fe;
    width: 50%;
    margin: 15px auto 0;
}

.info-dentista {
    font-size: 0.9em;
    color: #64748b;
    margin-top: 15px;
    line-height: 1.6;
    text-align: justify;
    text-align-last: left;
    hyphens: auto;
}
/*
.info-dentista {
    font-size: 0.9em;
    color: #64748b;
    margin-top: 15px;
    line-height: 1.6;
}

/* --- PIE DE PÁGINA (CONTACTO Y SUCURSALES) --- */
footer {
    background-color: #1e293b; 
    color: white;
    text-align: center;
    padding: 70px 20px;
}

footer h2 {
    color: #38bdf8;
    margin-bottom: 10px;
    font-size: 2.2em;
}

.contenedor-contacto {
    max-width: 1000px;
    margin: 40px auto 0;
}

.contacto-general h3 {
    font-size: 1.2em;
    color: #94a3b8;
    margin-bottom: 15px;
    font-weight: 400;
}

.telefonos-lista {
    display: flex;
    justify-content: center;
    gap: 20px; 
    flex-wrap: wrap; 
    margin-bottom: 15px;
}

.contacto-general .telefono {
    display: inline-block; /* Necesario para que el enlace respete los márgenes como un botón */
    text-decoration: none; /* Quita el subrayado feo de los enlaces */
    font-size: 1.6em; 
    font-weight: 700;
    color: #e0f2fe;
    background-color: rgba(255, 255, 255, 0.05); 
    padding: 10px 25px;
    border-radius: 8px;
    margin: 0;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease; /* Prepara el botón para un cambio de color suave */
}

/* NUEVO: Efecto al pasar el mouse o tocar en el celular */
.contacto-general .telefono:hover {
    background-color: rgba(255, 255, 255, 0.15); /* Se hace un poco más claro */
    color: white; /* El texto se vuelve más blanco */
    transform: translateY(-2px); /* El botón se levanta ligeramente */
}

.sucursales-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; 
    margin-top: 40px;
}

.sucursal-tarjeta {
    background-color: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    width: 380px;
    text-align: left; 
}

.sucursal-tarjeta h3 {
    color: #38bdf8;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.sucursal-tarjeta p {
    margin-bottom: 12px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #cbd5e1;
}

.sucursal-tarjeta strong {
    color: white; 
}

/* --- ESTILOS DE LOS MAPAS --- */
.mapa-contenedor {
    margin-top: 20px;
    width: 100%;
    height: 200px; /* Alto del mapa, puedes aumentarlo si lo quieres más grande */
    border-radius: 8px; /* Bordes redondeados para combinar con la tarjeta */
    overflow: hidden; /* Esto asegura que el mapa no tape los bordes redondeados */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Un borde sutil y elegante */
}

.mapa-contenedor iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- ESTILOS PREPARADOS PARA LOGIN Y FORMULARIOS --- */
.fondo-login {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; 
    margin: 0;
}

.contenedor-login {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-login {
    font-size: 2.5em;
    font-weight: 700;
    color: #0284c7;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.subtitulo-login {
    color: #64748b;
    margin-bottom: 30px;
}

.grupo-input {
    text-align: left;
    margin-bottom: 20px;
}

.grupo-input label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-weight: 600;
    font-size: 0.9em;
}

.grupo-input input, .select-form, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.grupo-input input:focus, .select-form:focus, textarea:focus {
    border-color: #0284c7; 
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.ancho-total {
    width: 100%;
    margin-top: 10px;
    cursor: pointer;
    border: none; 
}

.volver-inicio {
    margin-top: 25px;
}

.volver-inicio a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.volver-inicio a:hover {
    color: #0284c7;
}

.bienvenida-panel {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px -5px rgba(2, 132, 199, 0.4); 
    margin-bottom: 30px;
    text-align: center; 
    border: none;
}

.bienvenida-panel h1 {
    color: white;
    font-size: 2.2em;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.bienvenida-panel p {
    color: #e0f2fe;
    font-size: 1.1em;
}

.formulario-expediente {
    background-color: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    border-top: 5px solid #0ea5e9; 
}

.titulo-seccion-form {
    color: #0284c7;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.3em;
    font-weight: 700;
}

/* --- BOTONES FLOTANTES (WHATSAPP E INSTAGRAM) --- */
.redes-flotantes {
    position: fixed;
    bottom: 30px; /* Distancia desde abajo */
    right: 30px;  /* Distancia desde la derecha */
    display: flex;
    flex-direction: column; /* Apila los botones uno sobre otro */
    gap: 15px; /* Espacio entre los botones */
    z-index: 1000; /* Asegura que siempre estén por encima de las fotos o textos */
}

.btn-flotante {
    width: 60px;
    height: 60px;
    border-radius: 50%; /* Los hace un círculo perfecto */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.btn-flotante:hover {
    transform: translateY(-5px) scale(1.05); /* Efecto de flotar y crecer sutilmente */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Colores e iconos */
.whatsapp {
    background-color: #25d366; /* El verde oficial de WhatsApp */
}

.instagram {
    /* El degradado oficial de Instagram */
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.btn-flotante svg {
    width: 32px;
    height: 32px;
    fill: white; /* Pinta los iconos de blanco */
}

/* =========================================
   MÓDULO: REGISTRO DE PACIENTES
   ========================================= */
.registro-section {
    padding: 60px 20px;
    background-color: #f4f7f6;
    min-height: calc(100vh - 200px);
}

.registro-contenedor {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.registro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.registro-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.btn-volver {
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-volver:hover {
    color: #0088cc;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-grupo {
    margin-bottom: 5px;
}

.form-grupo.completo {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-input, .form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box; 
}

.form-input:focus, .form-select:focus {
    border-color: #0088cc;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 136, 204, 0.2);
}

.seccion-titulo {
    grid-column: 1 / -1;
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-top: 15px;
    color: #0088cc;
    font-size: 18px;
    margin-bottom: -5px;
}

.btn-guardar {
    background-color: #0088cc;
    color: white;
    padding: 14px 35px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    margin-top: 20px;
}

.btn-guardar:hover {
    background-color: #006699;
    box-shadow: 0 4px 10px rgba(0, 136, 204, 0.3);
}

/* =========================================
   MÓDULO: PANEL DE CONTROL
   ========================================= */

/* Fondo ligeramente gris para que las tarjetas blancas resalten */
body {
    background-color: #f4f7f6; 
}

.panel-container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.panel-header {
    text-align: center;
    margin-bottom: 40px;
}

.panel-header h2 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
}

.panel-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Usamos CSS Grid para un diseño responsivo y moderno */
.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tarjeta-modulo {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Efecto al pasar el mouse (Hover) */
.tarjeta-modulo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 136, 204, 0.15);
    border-color: #0088cc;
}

.icono-tarjeta {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.tarjeta-modulo h3 {
    color: #0088cc;
    font-size: 22px;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.tarjeta-modulo p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    flex-grow: 1; /* Permite que el botón siempre quede abajo */
}

.btn-modulo {
    background-color: #f0f8ff;
    color: #0088cc;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.tarjeta-modulo:hover .btn-modulo {
    background-color: #0088cc;
    color: #ffffff;
}

/* =========================================
   MÓDULO: ODONTOGRAMA INTERACTIVO
   ========================================= */
.odontograma-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    overflow-x: auto;
}
.fila-dientes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}
.cuadrante { display: flex; gap: 4px; }

.diente-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.diente-numero {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
}
.diente-numero.abajo {
    margin-bottom: 0;
    margin-top: 3px;
}

/* Magia CSS para hacer el círculo dividido */
.diente {
    width: 36px;
    height: 36px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #555;
    transform: rotate(45deg); /* Gira el cuadrado interior */
    background: #fff;
}

.superficie {
    position: absolute;
    width: 50%;
    height: 50%;
    border: 1px solid #555;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s;
}
.superficie:hover { filter: brightness(0.9); }

/* Posiciones de los cuadrantes */
.superficie.t { top: 0; left: 0; }
.superficie.r { top: 0; left: 50%; }
.superficie.b { top: 50%; left: 50%; }
.superficie.l { top: 50%; left: 0; }

/* Círculo central (Cara oclusal/incisal) */
.superficie.c {
    width: 16px;
    height: 16px;
    top: 10px;
    left: 10px;
    border-radius: 50%;
    transform: rotate(-45deg);
}

/* Estilos para la leyenda del odontograma */
.leyenda-odontograma {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 13px;
    color: #444;
}
.leyenda-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.caja-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    border: 1px solid #aaa;
}