/*===== ESTILOS GENERALES ===== */

/* Quitar margenes raros del navegador y poner tipografía base */
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif; 
    background-color: #f5f5f5;
    color: 222222;
}

/* Alinear los títulos principales y dar espacios entres secciones */
section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Asegurar que las imagenes no se salgan del contenedor */
img {
    max-width: 100%;
    display: block;
}

/* Titulos principales de cada sección */
h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Párrafos más comodos de leer */
p { 
    line-height: 1.5;
    margin-bottom: 10px;
}

/*===== HEADER ===== */

header {
    background: linear-gradient(to right, #1a1a1a, #d4af37);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo img {
    width: 60px;
    height: auto;
    margin-right: 10px;
}

.logo span {
    font-size: 1.3rem;
    font-weight: bold;
}

/* MENU */
.menu a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

.menu a:hover {
    text-decoration: underline;
}

/* REDES SOCIALES */
/* ===== REDES SOCIALES HEADER ===== */
.social {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Estilo general del enlace */
.social .icono {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

/* Íconos FontAwesome */
.social .icono i {
    font-size: 1.3rem;
    transition: 0.3s;
}

/* Efecto hover */
.social .icono i:hover {
    color: #d4f1ff;
    transform: scale(1.08);
}

/* ===== SOBRE NOSOTROS =====*/
#nosotros {
    background-color: #ffffff;
    padding: 40px 20px;
    margin-top: 20px;
    border-radius: 10px;
}

#nosotros h2 {
    color: #c9a24d;
    text-align: center;
    margin-bottom: 20px;
}
#nosotros p{
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

/* ===== SECCIÓN SERVICIOS ===== */

/* CONTENEDOR PARA CENTRAR EL BOTÓN */
.boton-servicios {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* ===== MISIÓN Y VISIÓN =====*/
.vision-mision {
    background: #f7f7f7;
    padding: 60px 20px;
}


.vision-mision h2{
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #1e1e1e;
}

.vm-container {
    max-width: 1100px;
    margin:0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax (280px, 1fr));
    gap: 30px;
}

.vm-card{
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.vm-card h3 {
font-size: 20px;
margin-bottom: 15px;
color: #000
}

.vm-card p {
    font-size: 16px;
    text-align: justify;
    line-height: 1.6;
    color: #444
}

.vm-card h3 {
    color: #c9a24d;
}

.vm-card {
    border-left: 4px solid #c9a24d;
}
/* BOTÓN ESTILO OLMOS DENTAL */
.btn-servicio {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #d4af37; /* Dorado elegante */
    border: 2px solid #d4af37;
    border-radius: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* EFECTO HOVER DORADO CON BRILLO */
.btn-servicio::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(212,175,55,0.6), transparent);
    transition: 0.5s;
}

.btn-servicio:hover::before {
    left: 100%;
}

.btn-servicio:hover {
    background-color: #d4af37;
    color: #000000; /* Negro elegante */
    box-shadow: 0 0 10px rgba(212,175,55,0.6);
    transform: translateY(-2px);
}


#servicios {
    margin-top: 40px
}

/* Contenedor de todas las tarjetas */
.servicios-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center;
}

/* Cada tarjeta individual */
.servicio-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba (0, 0, 0, 0.08); 
    overflow: hidden; 
    flex: 1 1 260px;
    max-width: 320px;
}

/* Imagen dentro de la tarjeta */ 
.servicios-card img {
    width: 100%;
    height: auto;
}

/* Título del servicio */
.servicio-card h3 {
    font-size: 1.1rem;
    margin: 15px 16px 5px
}

/* Texto descriptivo */
.servicios-card p{
    margin: 0 16px 12px;
    font-size: 0.95rem;
}

/* Enlace "Leer más" */
.servicio-card p.leer-mas {
    display: inline-block;
    margin: 0 16px 10px;
    font-size: 0.95rem;
    text-decoration: none; 
    color: #1c73be;
    font-weight: bold;
}

.servicio-card .leer-mas:hover{
    text-decoration: underline;
}

/* ===== TARJETAS DE SERVICIO ===== */
.servicios-container{
    display:flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.servicio-card{
    background: white;
    width: 320px;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0, 1);
    text-align: left; 
}

.servicio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px; 
    display: block;
}

.servicio-card h3{
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.servicio-card p{
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.servicio-card .leer-mas {
    color: #1e73be;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
}

.servicio-card .leer-mas:hover{
    text-decoration: underline;
}

/* ===== BOTÓN DE AGENDAR CITA ===== */
.btn-agendar{
    display: flex;
    justify-content: center;
    background: #d4af37;
    color: white;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0, 15);
    transition: all 0.3s ease;
    margin-top: 40px;
}

.btn-agendar:hover{
    background: #155a94;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0, 20);
    transform: translate(-3px);
}

.boton-agendar{
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

/* ============================
   SECCIÓN: NUESTRAS UBICACIONES
   ============================ */

   #ubicaciones {
    margin-top: 60px;
    text-align: center;
}

#ubicaciones h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #000;
}

/* Contenedor general de las dos tarjetas */
.ubicaciones-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

/* Tarjeta individual */
.ubicacion-card {
    background: #ffffff;
    width: 330px;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Icono de ubicación */
.ubicacion-card .maps-icon {
    width: 60px;
    margin-bottom: 10px;
}

/* Título de cada consultorio */
.ubicacion-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1e73be;
    font-weight: bold;
}

/* Horarios */
.ubicacion-card h4 {
    margin-top: 15px;
    font-size: 1.05rem;
    color: #222;
}

.ubicacion-card ul {
    margin-left: 15px;
    margin-top: 8px;
}

.ubicacion-card ul li {
    margin-bottom: 5px;
}

/* Aviso del consultorio */
.aviso-consultorio {
    font-size: 0.85rem;
    color: #555;
    margin-top: 5px;
}

/* Enlace de Ver en Google Maps */
.ver-mapa {
    display: inline-block;
    margin-top: 12px;
    color: #1e73be;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
}

.ver-mapa:hover {
    text-decoration: underline;
}

/* ===== TESTIMONIOS DE PACIENTES ===== */

#testimonios {
    max-width: 1100px;
    margin: 60px auto 40px;
}

#testimonios h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

/* Cada burbuja de testimonio */
.testimonios {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Triangulito de "burbuja de mensaje" */
.testimonios::after {
    content: "";
    position: absolute;
    bottom: -14px;
    left: 50px;
    border-width: 14px 14px 0 14px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    filter: drop-shadow(0 -3px 4px rgba(0, 0, 0, 0.06));
}

/* Animación al pasar el mouse */
.testimonios:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Parte de arriba: icono + nombre + estrellas */
.testimonio-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Icono redondo tipo avatar */
.testimonio-icono {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #1e73be;  /* azul de tu página */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
}

/* Nombre + estrellas */
.testimonio-datos {
    display: flex;
    flex-direction: column;
}

/* Nombre del paciente */
.testimonio-nombre {
    font-weight: bold;
    font-size: 0.95rem;
}

/* Estrellas */
.testimonio-estrellas {
    color: #f6b800;          /* amarillo estrella */
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Texto del testimonio */
.testimonios p {
    margin: 8px 0 0;
    line-height: 1.5;
    font-size: 0.95rem;
    color: #333333;
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-flotante {
    position: fixed;          /* Se queda flotando aunque hagas scroll */
    right: 20px;              /* Separado 20px del lado derecho */
    bottom: 20px;             /* Separado 20px de la parte baja */
    background-color: #25D366;/* Verde WhatsApp */
    color: #ffffff;           /* Texto blanco */
    padding: 12px 20px;       /* Tamaño del botón */
    border-radius: 999px;     /* Súper redondo (pastilla) */
    text-decoration: none;    /* Quita subrayado */
    font-weight: bold;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;            /* Para que quede encima de todo */
}

/* Efecto al pasar el mouse */
.whatsapp-flotante:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
}

/* ===== FOOTER PROFESIONAL ===== */

footer {
    background-color: #d4af37;  /* Azul profesional */
    color: white;
    padding: 40px 20px;
    margin-top: 40px;
}

.footer-contenido {
    max-width: 1000px;
    margin: auto;
}

/* Título del footer (nombre) */
.footer-contenido h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: bold;
}

/* Texto general del footer */
.footer-contenido p {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 1rem;
}

/* Ajustes de listas dentro del footer */
.footer-redes {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.footer-redes li {
    margin-bottom: 8px;
}

/* Enlaces del footer */
.footer-redes a,
.footer-contenido a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.footer-redes a:hover,
.footer-contenido a:hover {
    color: #d4f1ff;   /* celeste para hover */
    text-decoration: underline;
}

/* COPYRIGHT */
.footer-copy {
    text-align: center;
    margin-top: 25px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* -------------------------------- */
/* VIDEO PROMOCIONAL ELEGIRNOS      */
/* -------------------------------- */

.imagen-elegirnos {
    display: flex;
    justify-content: center;
    align-items: center;
}

.imagen-elegirnos video {
    width: 100%;          /* Ocupa su columna, no toda la página */
    max-width: 620px;     /* Tamaño similar a la foto que tenías */
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 3px solid #b497ff;  /* Morado de tu marca */
    object-fit: cover;    /* Para que no se deforme */
}

/* --------------------------------- */
/* MENÚ RESPONSIVO (CELULAR)         */
/* --------------------------------- */

@media (max-width: 768px) {

    header {
        flex-direction: column;       /* Logo arriba, menú abajo */
        align-items: center;
        text-align: center;
    }

    header nav {
        width: 100%;
        display: flex;
        flex-wrap: wrap;             /* Si no cabe, que brinque a segunda fila */
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
    }

    header nav a {
        font-size: 0.9rem;           /* Letras un poco más pequeñas */
    }
}
