    /* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }
    
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

    /* header */

header {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    font-family: 'Poppins', sans-serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-logo {
    position: absolute;
    left: 49%;
    transform: translateX(-50%);
    max-height: 80px;
    height: auto;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li:nth-child(1) { margin-right: 45px; margin-left: 20px; }  /* INICIO */
nav ul li:nth-child(2) { margin-right: 40px; }  /* NOSOTROS */
nav ul li:nth-child(3) { margin-right: 80px; }  /* ESPECIALIDADES */
nav ul li:nth-child(4) { margin-left: 180px; }   /* PRESUPUESTOS */
nav ul li:nth-child(5) { margin-left: 40px; }   /* CONTACTO */
nav ul li:nth-child(6) { left: 50px; }   /* BOTÓN AGENDA */


.menu li a {
    text-decoration: none;
    color: #4396C9;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    padding: 8px 0;
    display: inline-block;
}

.menu li a:hover { color: #377fc0; }

.menu li:nth-child(6) a:hover {
    background-color: #2e6aa8;
}

.menu li.menu-mobile-only {
    display: none;
}

.menu li:nth-child(6) a {
    background-color: #45B7FD;
    color: white;
    text-decoration: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    display: inline-flex;
    transition: background 0.3s ease;
}

.menu li:nth-child(6) a:hover {
    background-color: #2e6aa8;
}


    /* Landin Page */

/* Portada hero section */
.hero-section {
    background-image: url('../img/portada-hero-section.jpg'); 
    background-size: cover;
    background-position: center;
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.hero-section h1 {
    color: white;
    font-size: 60px !important;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    color: white;
    font-size: 22px !important;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-section a {
    background-color: #45B7FD;
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    transition: background 0.3s ease;
}

.hero-section a:hover {
    background-color: #2CADFD;
}

.hero-overlay p:first-of-type {
    margin-bottom: -20px;
    color: white; 
    font-size: 20px;      
    line-height: 28px;
    font-weight: 500;     
}

.hero-overlay h1 {
    margin-top: 30px; 
    margin-bottom: 20px;
    font-size: 43px;       
    line-height: 62px;     
}

.hero-overlay p:nth-of-type(2) {
    margin-top: -15px; 
    font-size: 31px;       
    line-height: 45px;
    font-weight: 500;     
}

.hero-overlay a {
    margin-top: 60px; 
}


/* call to action */
.sobre-nosotros {
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
}

.sobre-nosotros__contenedor {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.sobre-nosotros__imagenes img {
    width: 100%;
    max-width: 540px;
    border-radius: 16px;
}

.sobre-nosotros__contenido {
    flex: 1 1 400px;
}

.sobre-nosotros__contenido h2 {
    color: #45B7FD;
    font-size: 30px !important;
    margin-bottom: 20px;
}

.sobre-nosotros__contenido h4 {
    color: #45B7FD;
    font-size: 16px !important;
}

.sobre-nosotros__contenido p {
    font-size: 16px !important;
    line-height: 1.6;
    color: black;
    margin-bottom: 15px;
}

.sobre-nosotros__contenido strong {
    color: black;
}

.btn-outline {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 30px;
    border: 2px solid #00aeef !important; 
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    background-color: #45B7FD;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #2CADFD;
}

/* cards especialidades */
.especialidades {
    padding: 60px 20px;
    background-color: #EFF8FF;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.especialidades__contenedor {
    max-width: 1200px;
    margin: 0 auto;
}

.especialidades__texto h2 {
    font-size: 30px !important; 
    color: #00aeef;
    margin-bottom: 10px;
}

.especialidades__texto p {
    font-size: 16px !important;       
    line-height: 1.6;      
    color: #333;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.especialidades__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.especialidades__item {
    padding: 30px 20px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.especialidades__item:hover {
    transform: translateY(-5px);
}

.especialidades__item img {
    width: 200px;
    height: 200px;
    object-fit: contain; 
    margin-bottom: 20px;
}

.especialidades__item h3 {
    font-size: 16px;       
    line-height: 1.6;
    color: #00aeef;
    font-weight: 600;
}

.especialidades__vermas {
    border: 2px dashed #00aeef;
    background-color: transparent;
}

.especialidades__vermas .btn-outline {
    margin-top: 0;
    padding: 12px 24px;
    font-size: 16px;       
}

/* Estadisticas */
.sello-personal {
    background-color: #99D6FB; 
    padding: 60px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.sello-personal__titulo {
    font-size: 30px;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 40px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.sello-personal__estadisticas {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.sello-personal__item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sello-personal__item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: white; 
    margin-bottom: 10px;
}

.sello-personal__item p {
    font-size: 1rem;
    font-weight: 500;
    color: white; 
}

/* Que ofrecemos */
.sello-dental {
    background-color: #EFF8FF;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.sello-dental h2 {
    font-size: 30px;      
    line-height: 1.6;     
    color: #00aeef;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.sello-dental__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    justify-items: center;
    max-width: 1000px;
    margin: 60px auto 60px;
}

.sello-dental__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sello-dental__item img {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
}

.sello-dental__item p {
    font-size: 16px;      
    line-height: 1.6;     
    color: #003049;
    font-weight: 500;
    text-transform: uppercase;
}

.sello-dental a {
    display: inline-block;
    background-color: #45B7FD;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;     
    transition: background-color 0.3s ease;
}

.sello-dental a:hover {
    background-color: #2CADFD;
}

/* testimonio */ 
.testimonio-usuario {
    padding: 60px 20px;
    background-color: #f8fbff;
    font-family: 'Poppins', sans-serif;
}

.testimonio-usuario__contenedor {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.testimonio-usuario__item {
    display: none; 
}

.testimonio-usuario__item.activo {
    display: block; 
}

.testimonio-usuario__imagen img {
    width: 500px;
    border-radius: 12px;
}

.testimonio-usuario__contenido {
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 30px;
}

.testimonio-usuario__comillas img {
    width: 60px;
    margin-top: 20px;
}

.testimonio-usuario__contenido p {
    font-size: 17px;
    line-height: 1.6;
    margin: 10px 0 0 0;
}

.testimonio-usuario__contenido strong {
    font-weight: 600;
    font-size: 17px;
}

.testimonio-usuario__flechas {
    position: absolute;
    bottom: 15px; 
    display: flex;
    gap: 10px;
    margin-bottom: 120px; 
    justify-content: flex-start; 
    padding-left: 240px; 
    left: 30%;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.testimonio-usuario__flechas img {
    width: 11%;   
}

.testimonio-usuario__imagen {
    position: relative; 
}

.testimonio-usuario__contenedor {
    position: relative; 
}

/* Dentistas */
.nuestro-equipo {
    background-color: #EFF8FF;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.nuestro-equipo h3 {
    font-size: 30px;       
    line-height: 1.3;      
    color: #00aeef;
    font-weight: 700;
    margin-bottom: 15px;
}

.nuestro-equipo p {
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 16px;       
    line-height: 1.6;     
}

.nuestro-equipo > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.nuestro-equipo figure {
    margin: 0;
    text-align: center;
    width: 240px;
}

.nuestro-equipo figure img {
    width: 100%;
    border-radius: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.nuestro-equipo figcaption {
    font-size: 16px;       
    line-height: 1.4;      
    font-weight: 600;
}

.nuestro-equipo figcaption small {
    display: block;
    font-size: 14px;       
    line-height: 1.6;      
    font-weight: 400;
    margin-top: 4px;
    color: #666;
}

/* Oculta flechas en web */
.carrusel-btn {
    display: none;
}

/* Mantiene la grilla normal en web */
.nuestro-equipo__slides {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}


/* Visítanos */
.visitanos {
    padding: 50px 20px;
    background-color: #f4faff;
    font-family: 'Poppins', sans-serif;
}

.contenedor-visita {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px; 
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.mapa-visita iframe {
    width: 600px;
    max-width: 600px;
    height: 600px;
    border: 0;
    border-radius: 10px;
    margin-left: -180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-visita {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    text-align: left;
    margin-top: 40px;   
    margin-left: 30px;  
}

.subtitulo-visita {
    font-weight: 600;
    color: #1fa4dd;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
    width: 100%;
}

.info-visita h2 {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #012b61;
    margin-bottom: 20px;
}

.info-visita p {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.info-visita img {
    width: 20px;
    height: 20px;
}

.btn-visita {
    margin-top: 10px;
    display: inline-block;
    background-color: #45B7FD;
    color: #fff;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    align-self: flex-start;
    margin-left: 0;        
    margin-top: 12px;
    transition: background-color 0.3s ease;
}

.btn-visita:hover {
    background-color: #2CADFD;
}


  /* Pagina Nosotros */

/* titulo */
.titulo-pagina {
    background-color: #EFF8FF; 
    text-align: center;
    padding: 60px 20px;
    font-family: 'Poppins', sans-serif;
}

.titulo-pagina h1 {
    font-size: 40px;
    color: #00aeef;
    font-weight: 700;
    margin: 0;
}


/* Mision y Vision */
.filosofia-dental {
    background-color: #EFF8FF;
    padding: 60px 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.texto-filosofia h3 {
    color: #45B7FD;
    font-size: 26px; /* antes 30px */
    margin-bottom: 8px; /* antes 10px */
    font-weight: 700;
}

.texto-filosofia p {
    font-size: 15px; /* antes 16px */
    line-height: 1.5; /* mejora legibilidad */
    max-width: 600px;
    margin: 0 auto;
    color: #333;
}

.imagenes-filosofia {
    display: flex;
    justify-content: center;
    gap: 50px; /* antes 60px */
    margin-top: 18px; /* antes 20px */
    flex-wrap: wrap;
}

.bloque-filosofia {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bloque-filosofia img {
    width: 330px; /* antes 350px */
    height: 330px;
    object-fit: contain;
    margin-bottom: 8px; /* antes 10px */
}

.bloque-filosofia p {
    font-weight: 600;
    font-size: 14px; /* antes no definido */
    color: #333;
}


/* Dentistas */
body.nosotros .nuestro-equipo {
    background-color: #fff; 
}

    /* Especialidades */

/* Sección de especialidad */
.especialidad {
    padding: 50px 20px;
    display: flex;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}

.especialidad-contenido {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1100px;
    gap: 35px; 
}

.invertir {
    flex-direction: row-reverse;
}

.imagenes-especialidad {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

.imagenes-especialidad img {
    width: 100%; 
    max-width: 750px; 
    border-radius: 12px;
}

.texto-especialidad {
    flex: 1 1 400px;
}

.texto-especialidad h3 {
    font-size: 15px; 
    color: #45B7FD;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px; 
    letter-spacing: 1px;
}

.texto-especialidad h4 {
    font-size: 26px; 
    font-weight: 700;
    color: #45B7FD;
    margin-bottom: 8px; 
}

.texto-especialidad p {
    font-size: 16px; 
    line-height: 1.5; 
    color: #333 !important
}

.especialidad.endodoncia .texto-especialidad {
    text-align: left;
}

.especialidad:nth-of-type(5) .texto-especialidad h3 {
    font-size: 16px;
}

.especialidad:nth-of-type(5) .texto-especialidad h4 {
    font-size: 26px;
}

.especialidad:nth-of-type(5) .texto-especialidad p {
    font-size: 16px;
}

.especialidad.endodoncia .texto-especialidad p {
    font-size: 16px;
    margin-top: 10px; /* ajusta este valor según necesites */
}

    /* Presupuesto */

/* NUESTROS PRECIOS */
.titulo-precios {
    background-color: #EFF8FF;
    text-align: center;
    padding: 50px 20px 35px;
}

.titulo-precios h1 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
}

.titulo-precios span {
    color: #2e9cff;
}

.intro-presupuesto {
    padding: 50px 20px;
    text-align: center;
}

.intro-presupuesto h2 {
    font-size: 28px;
    font-weight: 700;
    color: #45B7FD;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.intro-presupuesto p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* Imagen de la tabla */
.tabla-presupuesto {
    padding: 35px 20px;
    text-align: center;
}

.tabla-presupuesto img {
    max-width: 65%;
    height: auto;
    margin: 0 auto;
}

/* Última sección de precios */
section:last-of-type {
    padding: 50px 20px;
    text-align: center;
}

section:last-of-type h2 {
    font-size: 28px;
    font-weight: 700;
    color: #45B7FD;
    text-transform: uppercase;
    margin-bottom: 18px;
    margin-top: -30px;
}

section:last-of-type p {
    font-size: 16px;
    color: #222;
    margin-bottom: 28px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: -20px;
}

section:last-of-type ul {
    list-style: disc;
    text-align: left;
    max-width: 800px;
    margin: 30px auto 0;
    padding-left: 20px;
    color: #222;
}

section:last-of-type li {
    margin-bottom: 12px;
    font-size: 16px;
}


/* FOOTER BASE */
footer {
    background-color: #E2E2E2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 60px 40px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    flex-wrap: wrap;
    gap: 40px;
    text-align: left;
    position: relative;
}

.direccion {
    flex: 0 0 auto;
    margin-right: 20px;
}

.logo-footer {
    max-width: 83px;
    height: auto;
    display: block;
    margin-top: -10px;
}

footer > div:nth-child(2) {
    flex: 0 0 180px;
}

footer h4 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: black;
}

footer p {
    font-size: 13px;
    line-height: 1.4;
    color: black;
    margin: 0;
}

.col-encuentranos {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -20px; 
}

.footer-botones {
    display: flex;
    gap: 12px;
    margin-bottom: 6px; 
}

.footer-botones img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.horario,
.contacto {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 0 0 auto;
}

.horario img,
.contacto img {
    width: 28px;
    margin-top: 10px;
}

.linea {
    width: 1px;
    height: 55px;
    background-color: black;
    margin: 0 20px;
    flex-shrink: 0;
    margin-top: 10px;
}

.texto-horario h4,
.texto-contacto h4 {
    margin: 0 0 4px;
    font-size: 14px;
    color: black;
}

.texto-horario p,
.texto-contacto p {
    margin: 0;
    font-size: 13px;
    color: black;
    line-height: 1.4;
}

.contacto {
    margin-left: -20px; 
}

.copyright {
    background-color: #ffffff;
    text-align: center;
    padding: 15px 10px;
    font-size: 12px;
    color: #888;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 1px solid #e0e0e0;
}

    /* media query */

/* Menú mobile */
@media (max-width: 768px) {
nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
        position: relative;
        height: 60px;
        background-color: #fff;
        z-index: 1100;
}

.menu-logo {
        display: block;
        height: 48px;
        width: auto;
        position: static; 
        transform: none;  
        margin-right: auto;
}

.menu-icon {
        cursor: pointer;
        background: none;
        border: none;
        z-index: 1101;
        margin-left: auto;
        position: relative;
        width: 40px;
        height: 40px;
    }

    .menu-icon img {
        width: 40px;
        height: 40px;
        margin-right: 25px;
        position: absolute;
        top: 0;
        left: 0;
        transition: opacity 0.3s ease;
    }

    .menu-icon .icon-close {
        opacity: 0;
    }

    /* Cuando el menú está abierto */
    .menu-toggle:checked + .menu-icon .icon-open {
        opacity: 0;
    }

    .menu-toggle:checked + .menu-icon .icon-close {
        opacity: 1;
    }

.menu {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #1fa4dd;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
        z-index: 1000;
        padding: 0 !important;
        margin: 0 !important;
}

.menu img { display: none; }

.menu-toggle:checked + .menu-icon + .menu {
        max-height: 600px;
        opacity: 1;
        transform: translateY(0);
}

.menu li {
        width: 100%;
        padding: 6px 0px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        text-align: left;
        margin: 0 !important;
        left: 0 !important;
        position: static !important
}

.menu li a {
        color: #fff !important;
        display: block;
        width: 100%;
        padding-left: 0px; 
        box-sizing: border-box;
        text-align: left;
        line-height: 1;
        text-transform: none;
        font-weight: 400;
        padding-left: 20px !important;
        margin: 0 !important;
}



.menu a {
        font-family: 'Poppins', sans-serif;
        font-size: 25px;
        text-decoration: none;
        color: #fff;
        font-weight: 600;
        display: block;
        width: 100%;
        padding-left: 0;
}

.menu li:nth-child(1) a { padding-left: 0px; } /* INICIO */
.menu li:nth-child(2) a { padding-left: 0px; } /* NOSOTROS */
.menu li:nth-child(3) a { padding-left: 0px; } /* ESPECIALIDADES */
.menu li:nth-child(4) a { padding-left: 0px; } /* PRESUPUESTOS */
.menu li:nth-child(5) a { padding-left: 0px; } /* CONTACTO */
.menu li:nth-child(6) a { padding-left: 0px; } /* AGENDA CON NOSOTROS */
}

.menu li:nth-child(6) a {
        background-color: #45B7FD !important; 
        color: #fff !important;
        border-radius: 25px !important; 
}

.menu .cta {
        background: none;
        color: #fff;
        font-weight: 400;
        text-align: left;
        margin: 0;
        padding: 0;
        border-radius: 0;
        pointer-events: none; 
}

.menu-toggle { display: none; }

.menu-mobile-only {
        display: block;
        width: 100%;
        padding: 6px 0px;
        border-bottom: 0px solid rgba(255,255,255,0.1);
        text-align: left;
    }

.menu-mobile-only a {
        display: block;
        width: 100%;
        padding-left: 20px; 
        box-sizing: border-box;
        text-align: left;
        line-height: 1;
        text-transform: none;
        font-weight: 400;
        color: #fff;
}

.menu-mobile-only a {
        background: none !important;   /* sin fondo */
        border-radius: 0 !important;   /* sin bordes redondeados */
        padding: 6px 20px !important;
        font-weight: 400 !important;
        text-align: left !important;
    }

@media (min-width: 769px) {
    .menu-icon,
    .menu-toggle,
    .cta { 
        display: none; 
    }
}
    
/* web 400px mq*/

    /* Inicio */ 

@media (max-width: 400px) {
.hero-section {
        height: 70vh;
        padding: 0 20px;
        text-align: center;
        background-position: center;
}

.hero-overlay {
    position: relative;
    top: -20px; /* 👈 Sube todo el bloque de textos */
}

.hero-overlay p {
        font-weight: 500; /* 👈 Medium */
}

.hero-overlay p:first-of-type { /* "WELCOME TO..." */
        font-size: 18px !important;
        margin-bottom: -10px;
        letter-spacing: 1px;
        margin-top: 60px;
        color: #aef2ff
}

.hero-section h1 { /* "Sonríe en Dental Gamar" */
        font-size: 40px !important;
        margin-bottom: 8px;
        line-height: 1.2;
}

.hero-overlay p:nth-of-type(2) { /* Texto debajo del h1 */
        font-size: 18px !important;
        margin-top: 10px;
        line-height: 1.4;
}

.hero-section a {
        font-size: 14px;
        padding: 8px 20px;
        border-radius: 40px;
        margin-top: 15px;
        display: inline-block;
}
}

/* call to action */
@media (max-width: 400px) {
.sobre-nosotros {
        padding: 50px;
}

.sobre-nosotros__contenedor {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 24px; 
}

.sobre-nosotros__imagenes img {
        max-width: 100%;
        border-radius: 12px;
}

.sobre-nosotros__contenido {
        width: 100%;
        text-align: left; 
}

.sobre-nosotros__contenido h2 {
        font-size: 22px;
        margin-bottom: 10px;
        letter-spacing: 0.5px;
}

.sobre-nosotros__contenido h4 {
        font-size: 15px;
        margin-bottom: 6px;
        letter-spacing: 0.5px;
}

.sobre-nosotros__contenido p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 14px; 
        letter-spacing: 0.3px;
}

.btn-outline {
        margin-top: 10px;
        padding: 8px 20px;
        font-size: 0.85rem;
        border-radius: 20px;
        letter-spacing: 0.5px;
        display: inline-block; 
}
}

/* especialidades */
@media (max-width: 400px) {
.especialidades {
        padding: 40px 16px;
}

    /* Texto de introducción */
.especialidades__texto h2 {
        font-size: 22px;
        margin-bottom: 10px;
        letter-spacing: 0.5px;
}

.especialidades__texto p {
        font-size: 15px;
        margin-bottom: 24px;
        line-height: 1.6;
        padding: 0 8px;
        display: -webkit-box;
}

    /* Grid de cards */
.especialidades__grid {
        grid-template-columns: 1fr;
        gap: 20px;
}

    /* Card individual */
.especialidades__item {
        padding: 20px 12px;
        border-radius: 12px;
        position: relative;
        overflow: hidden;
}

    /* Imagen principal de la card */
.especialidades__item img:not(.animacion) {
        width: 180px;
        height: 180px;
        margin: 0 auto 12px;
}

    /* Animación imagen superpuesta */
.especialidades__item img.animacion {
        position: absolute;
        bottom: -20px;           /* parcialmente oculta abajo */
        left: 50%;
        transform: translateX(-50%);
        width: 150px;            /* ajustado para mobile */
        height: 150px;
        object-fit: contain;
        transition: bottom 0.3s ease;
}

    /* Interacción al tocar la card */
.especialidades__item:active img.animacion,
.especialidades__item:hover img.animacion {
        top: 20px;
        bottom: 20px !important;            /* sube pero sin desbordar */
}

    /* Títulos de cada card */
.especialidades__item h3 {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
}

    /* Botón ver más (si aplica) */
.especialidades__vermas .btn-outline {
        padding: 8px 20px;
        font-size: 0.85rem;
        border-radius: 20px;
        margin-top: 10px;
}
}

/* estadisticas */
@media (max-width: 400px) {
.sello-personal {
        padding: 40px 20px; 
}

.sello-personal__titulo {
        font-size: 1.2rem; 
        margin-bottom: 24px;
        line-height: 1.3;
        letter-spacing: 1px;
}

.sello-personal__estadisticas {
        flex-direction: column; 
        gap: 24px; 
}

.sello-personal__item h3 {
        font-size: 2.2rem; 
        margin-bottom: 6px;
}

.sello-personal__item p {
        font-size: 0.9rem;
        letter-spacing: 0.5px; 
}
}

/* que ofrecemos */
@media (max-width: 400px) {
.sello-dental {
        padding: 40px 20px; 
}

.sello-dental h2 {
        font-size: 22px; 
        margin-bottom: 16px;
        line-height: 1.3;
        letter-spacing: 1px;
}


.sello-dental__items {
        grid-template-columns: 1fr; 
        gap: 28px; 
        margin: 40px auto;
}

.sello-dental__item img {
        width: 135px; 
        height: 135px;
        margin-bottom: 12px;
}

.sello-dental__item p {
        font-size: 15px; 
        line-height: 1.3;
        max-width: 240px; 
        margin: 0 auto;
}

.sello-dental a {
        font-size: 0.85rem;
        padding: 8px 20px; 
        border-radius: 40px;
        margin-top: 8px;
}
}

/* testimonios */
@media (max-width: 400px) {
.testimonio-usuario {
        padding: 40px 16px;
        text-align: left; 
}

.testimonio-usuario__contenedor {
        flex-direction: column; 
        align-items: center; 
        gap: 24px;
}

.testimonio-usuario__imagen img {
        width: 100%;
        max-width: 320px;
        border-radius: 10px;
}

.testimonio-usuario__contenido {
        max-width: 320px; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start; 
        text-align: left;
        gap: 10px;
}

.testimonio-usuario__comillas img {
        width: 40px; 
        margin-top: 0;
}

.testimonio-usuario__contenido p {
        font-size: 15px;
        line-height: 1.4;
        margin: 0;
}

.testimonio-usuario__contenido strong {
        font-size: 15px;
}

.testimonio-usuario__flechas {
    position: relative !important; 
    left: -120px !important; 
    transform: none; 
    padding-left: 0; 
    margin-top: 10px;
    margin-bottom: 0;
    justify-content: flex-start; 
}

.testimonio-usuario__contenido {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* texto alineado a la izquierda */
    text-align: left;
}

.testimonio-usuario__flechas img {
        width: 35px;
        height: 35px;
}
}

/* Dentistas Mobile */
@media (max-width: 400px) {
.nuestro-equipo {
        padding: 40px 10px;
}

.nuestro-equipo h3 {
        font-size: 22px;
        margin-bottom: 10px;
}

.nuestro-equipo p {
        font-size: 15px;
        margin: 0 auto 20px;
        max-width: 120%; 
        line-height: 1.4;
        white-space: normal; 
}

.nuestro-equipo__carrusel {
        position: relative;
        display: flex;
        align-items: center;
        overflow: hidden;
        width: 100%;
}

.nuestro-equipo__slides {
        display: flex;
        flex-wrap: nowrap;
        gap: 28px;
        overflow-x: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 8%; /* Centrado de primer y último slide */
        justify-content: flex-start;
        transition: transform 0.4s ease;
}

.nuestro-equipo figure {
        flex: 0 0 70%;
        max-width: 70%;
        text-align: center;
        margin: 0;
        scroll-snap-align: center;
}

.nuestro-equipo figure:first-child {
        flex: 0 0 85%;
        max-width: 85%;
}

.nuestro-equipo figure img {
        width: 200px;
        margin: 22px auto 12px auto;
        display: block;
        border-radius: 12px;
}

.nuestro-equipo figcaption {
        font-size: 14px;
}

.nuestro-equipo figcaption small {
        font-size: 12px;
}

.carrusel-btn {
        display: block;
        position: absolute;
        top: 50%;           
        transform: translateY(-50%); 
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 10;
        width: 32px;           
        height: 32px;
}

.carrusel-btn img {
        width: 100%;
        height: auto;
        display: block;
}

.carrusel-btn.prev {
        left: 8px;             
}

.carrusel-btn.next {
        right: 8px;            
}
}

    /* Nosotros */

/*titulo*/
@media (max-width: 400px) {
.titulo-pagina {
        padding: 30px 10px; 
}

.titulo-pagina h1 {
        font-size: 28px; 
        line-height: 1.2; 
}
}

/* mision y vision */
@media (max-width: 400px) {
.filosofia-dental {
        padding: 30px 15px;
}

.texto-filosofia h3 {
        font-size: 22px; 
        line-height: 1.2;
}

.texto-filosofia p {
        font-size: 15px; 
        max-width: 90%;
        margin-top: 10px;
}

.imagenes-filosofia {
        flex-direction: column; 
        gap: 0px;
        margin-top: 15px;
}

/* Bloque individual */
.bloque-filosofia {
        position: relative; /* necesario para animación */
        overflow: hidden;
        margin-bottom: 40px; /* espacio entre bloques */
}

/* Imagen base */
.bloque-filosofia img:not(.animacion) {
        width: 220px;  
        height: 220px;
        margin-bottom: -20px;
        display: block;
        margin-left: auto;
        margin-right: auto;
}

/* Imagen superpuesta / animación */
.bloque-filosofia img.animacion {
        width: 220px !important;
        height: 220px !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -40px; /* parcialmente oculta abajo */
        transition: bottom 0.5s ease;
}

/* Hover en desktop + toque en mobile */
.bloque-filosofia:active img.animacion,
.bloque-filosofia:hover img.animacion {
        top: 20px;
        bottom: 20px; /* sube al tocar sin desbordar */
}

/* Texto debajo de la imagen */
.bloque-filosofia p {
        font-size: 15px;
        line-height: 1.4;
        margin-top: 8px;
        text-align: center;
}
}


/* dentistas */
.nuestro-equipo.nosotros {
    background-color: transparent;
}

/* especialidades mobile */

/* especialidades */
@media (max-width: 400px) {
.especialidad {
        padding: 30px 10px;
}

.especialidad-contenido {
        flex-direction: column;
        align-items: center;
        gap: 50px;
}

.invertir {
        flex-direction: column;
}

.imagenes-especialidad {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-bottom: 5px;
}

.imagenes-especialidad img {
        width: 90%;
        max-width: 350px;
        border-radius: 12px;
}

.texto-especialidad {
        flex: none;
        width: 100%;
        text-align: left;
        padding-left: 10px;
}

.texto-especialidad h3 {
        font-size: 15px; /* título principal igual que Diagnóstico */
        margin-bottom: 10px;
}

.texto-especialidad h4 {
        font-size: 22px; /* subtítulo igual que Diagnóstico */
        margin-bottom: 10px;
}

.especialidad.endodoncia .texto-especialidad h3 {
        margin-left: -10px; /* mueve el título a la izquierda */
        margin-top: 0;       /* opcional: reduce espacio arriba */
}

.especialidad.endodoncia .texto-especialidad h4 {
        margin-left: -12px; /* ajusta según necesites */
    }

.especialidad.endodoncia .texto-especialidad p {
        margin-left: -30px; /* ajusta el valor según lo necesites */
}

.texto-especialidad p {
        font-size: 16px; /* mismo tamaño que Diagnóstico */
        line-height: 1.4;
        margin-left: 0; /* elimina márgenes específicos previos */
    }
}

/* presupuesto mobile */

.tabla-web {
    display: block;
}

.tabla-mobile {
    display: none;
}

@media (max-width: 400px) {
.tabla-web {
        display: none; 
    }
.tabla-mobile {
        display: block; 
        width: 100%;
        text-align: center;
}

.tabla-mobile {
        max-width: 90%;
        margin: 0 auto;
        height: auto;
}

.titulo-precios {
        padding: 40px 10px 20px;
}

.titulo-precios h1 {
        font-size: 22px;
        line-height: 1.2;
}

.titulo-precios span {
        display: inline-block;
        font-size: 22px;
}

.intro-presupuesto {
        padding: 30px 10px;
}

.intro-presupuesto h2 {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.3;
}

.intro-presupuesto p {
        font-size: 15px;
        line-height: 1.4;
        text-align: left;
        padding-left: 20px;
}

.tabla-presupuesto {
        padding: 20px 0;
        text-align: center;
}

.tabla-mobile {
        display: block; 
        width: 110% !important; /* ocupar todo el ancho posible */
        max-width: 200%; /* eliminar restricción de 90% */
        margin: 0 auto;
        height: auto;
        text-align: center;
        font-size: 18px; /* aumentar tamaño de fuente de la tabla */
    }

.tabla-web {
        display: none;
}

section:last-of-type {
        padding-top: 80px; /* sube el contenido hacia abajo */
        padding-left: 20px;
        padding-right: 10px;
        padding-bottom: 40px;
}

section:last-of-type h2 {
        font-size: 22px;
        margin-bottom: 15px;
        line-height: 1.3;
}

section:last-of-type p {
        font-size: 15px;
        line-height: 1.4;
        margin-top: 20px; /* aumenta el espacio arriba del texto */
        margin-bottom: 20px;
        padding-left: 20px;
        text-align: left;
}

section:last-of-type ul {
        padding-left: 20px;
}

section:last-of-type li {
        font-size: 15px;
        line-height: 1.4;
        margin-bottom: 10px;
}
}

/* footer mobile */
@media (max-width: 400px) {
footer {
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 40px;
    gap: 25px;
    text-align: center;
}

.direccion {
    margin-right: 0;
}

.logo-footer {
    max-width: 90px;
    margin-top: 0;
}

footer > div:nth-child(2) {
    flex: 0 0 auto;
    margin-top: 10px;
}

.horario,
.contacto {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.horario img,
.contacto img {
    margin-top: 0;
}

.linea {
    display: none;
}

.contacto {
    margin-left: 0;
}

.texto-horario h4,
.texto-contacto h4,
footer h4 {
    font-size: 13px;
}

.texto-horario p,
.texto-contacto p,
footer p {
    font-size: 12px;
}

.copyright {
    font-size: 11px;
    padding: 12px 10px;
}
}

/* watsapp icono */
.whatsapp-float {
    position: fixed;
    width: 75px;
    height: 75px;
    bottom: 25px; /* más separado del borde inferior */
    right: 25px; /* más separado del borde derecho */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 58px;
    height: 58px;
}

@media (max-width: 400px) {
.whatsapp-float {
        width: 50px;   
        height: 50px;  
        bottom: 15px;  
        right: 15px;   
}
.whatsapp-icon {
        width: 48px;   
        height: 48px;  
}
}

/* inicio 768px mq */

    /* home */

/* hero section */
@media (min-width: 401px) and (max-width: 768px) {
.hero-section {
        height: 70vh;
        padding: 0 40px; /* más margen lateral en pantallas medianas */
        text-align: center;
        background-position: center;
}

.hero-overlay p:first-of-type { /* "WELCOME TO..." */
        font-size: 20px !important; /* un poco más grande */
        margin-bottom: 12px;
        letter-spacing: 1px;
        color: #aef2ff;
}

.hero-section h1 { /* "Sonríe en Dental Gamar" */
        font-size: 45px !important; /* crece suavemente */
        margin-bottom: 10px;
        line-height: 1.2;
}

.hero-overlay p:nth-of-type(2) { /* Texto debajo del h1 */
        font-size: 20px !important;
        margin-top: 12px;
        line-height: 1.5;
}

.hero-section a {
        font-size: 16px;
        padding: 10px 24px;
        border-radius: 40px;
        margin-top: 25px;
        display: inline-block;
}
}

/* call to action */
@media (min-width: 401px) and (max-width: 768px) {
.sobre-nosotros {
        padding: 60px; /* un poco más de aire */
}

.sobre-nosotros__contenedor {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 28px; /* un poquito más para pantallas más grandes */
}

.sobre-nosotros__imagenes img {
        max-width: 100%;
        border-radius: 14px;
}

.sobre-nosotros__contenido {
        width: 100%;
        text-align: left; 
}

.sobre-nosotros__contenido h2 {
        font-size: 26px; /* más grande que en móvil pequeño */
        margin-bottom: 12px;
        letter-spacing: 0.5px;
}

.sobre-nosotros__contenido h4 {
        font-size: 17px;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
}

.sobre-nosotros__contenido p {
        font-size: 17px;
        line-height: 1.6;
        margin-bottom: 16px; 
        letter-spacing: 0.3px;
}

.btn-outline {
        margin-top: 12px;
        padding: 10px 24px;
        font-size: 0.9rem;
        border-radius: 20px;
        letter-spacing: 0.5px;
        display: inline-block; 
}
}

/* especialidades tablet */
@media (min-width: 401px) and (max-width: 768px) {

 /* Contenedor sección */
.especialidades {
        padding: 50px 24px;
}

/* Texto de introducción */
.especialidades__texto h2 {
        font-size: 26px;
        margin-bottom: 12px;
        letter-spacing: 0.5px;
}

.especialidades__texto p {
        font-size: 17px;
        margin-bottom: 28px; 
        line-height: 1.6;
        padding: 0 12px; 
        display: -webkit-box;
}

/* Grid de cards */
.especialidades__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px; 
}

/* Card individual */
.especialidades__item {
        padding: 24px 16px;
        border-radius: 14px;
        position: relative;
        overflow: hidden;
}

/* Imagen principal de la card */
.especialidades__item img:not(.animacion) {
        width: 200px;
        height: 200px;
        margin: 0 auto 14px;
        display: block;
}

/* Imagen superpuesta / animación */
.especialidades__item img.animacion {
        position: absolute;
        bottom: -40px;           /* parcialmente oculta abajo */
        left: 50%;
        transform: translateX(-50%);
        width: 180px;            /* ajustado para tablets */
        height: 180px;
        object-fit: contain;
        transition: bottom 0.5s ease;
}

/* Hover en desktop + toque en tablet */
.especialidades__item:active img.animacion,
.especialidades__item:hover img.animacion {
        top: 20px;
        bottom: 20px;            /* sube pero sin desbordar */
}

/* Títulos de cada card */
.especialidades__item h3 {
        font-size: 1rem;
        letter-spacing: 0.5px;
}

/* Botón ver más */
.especialidades__vermas .btn-outline {
        padding: 10px 24px;
        font-size: 0.9rem;
        border-radius: 20px;
        margin-top: 12px;
}
}

/* estadisticas */
@media (min-width: 401px) and (max-width: 768px) {
.sello-personal {
        padding: 50px 40px; /* más espacio lateral */
}

.sello-personal__titulo {
        font-size: 1.5rem; /* un poco más grande */
        margin-bottom: 28px;
        line-height: 1.4;
        letter-spacing: 1px;
}

.sello-personal__estadisticas {
        flex-direction: column; 
        gap: 30px; /* más separación entre items */
}

.sello-personal__item h3 {
        font-size: 2.6rem; /* escala hacia pantallas medianas */
        margin-bottom: 8px;
}

.sello-personal__item p {
        font-size: 1rem;
        letter-spacing: 0.5px; 
}
}

/* que ofrecemos */
@media (min-width: 401px) and (max-width: 768px) {
.sello-dental {
        padding: 50px 40px; /* más espacio lateral */
}

.sello-dental h2 {
        font-size: 28px; /* más grande para mejor visibilidad */
        margin-bottom: 20px;
        line-height: 1.3;
        letter-spacing: 1px;
}

.sello-dental__items {
        grid-template-columns: 1fr; 
        gap: 32px; 
        margin: 50px auto;
        max-width: 600px; /* limita el ancho para no estirar demasiado */
}

.sello-dental__item img {
        width: 160px; 
        height: 160px;
        margin-bottom: 16px;
}

.sello-dental__item p {
        font-size: 17px; 
        line-height: 1.4;
        max-width: 280px; 
        margin: 0 auto;
}

.sello-dental a {
        font-size: 0.95rem;
        padding: 10px 24px; 
        border-radius: 40px;
        margin-top: 12px;
        display: inline-block;
}
}

/* testimonios */
@media (min-width: 401px) and (max-width: 768px) {
.testimonio-usuario {
        padding: 50px 32px;
        text-align: left; 
}

.testimonio-usuario__contenedor {
        flex-direction: column; 
        align-items: center; 
        gap: 30px;
}

.testimonio-usuario__imagen img {
        width: 100%;
        max-width: 400px;
        border-radius: 12px;
}

.testimonio-usuario__contenido {
        max-width: 400px; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start; 
        text-align: left;
        gap: 14px;
}

.testimonio-usuario__comillas img {
        width: 50px; 
        margin-top: 0;
}

.testimonio-usuario__contenido p {
        font-size: 17px;
        line-height: 1.5;
        margin: 0;
}

.testimonio-usuario__contenido strong {
        font-size: 17px;
}

.testimonio-usuario__flechas {
        position: relative !important; 
        left: -140px !important; 
        transform: none; 
        padding-left: 0; 
        margin-top: 12px;
        margin-bottom: 0;
        justify-content: flex-start; 
    }

.testimonio-usuario__flechas img {
        width: 40px;
        height: 40px;
}
}

/* dentistas */
@media (min-width: 401px) and (max-width: 768px) {
.nuestro-equipo {
        padding: 50px 20px;
}

.nuestro-equipo h3 {
        font-size: 26px;
        margin-bottom: 14px;
}

.nuestro-equipo p {
        font-size: 17px;
        margin: 0 auto 24px;
        max-width: 100%;
        line-height: 1.5;
        white-space: normal;
}

.nuestro-equipo__carrusel {
        position: relative;
        display: flex;
        align-items: center;
        overflow: hidden;
        width: 100%;
}

.nuestro-equipo__slides {
        display: flex;
        flex-wrap: nowrap;
        gap: 30px;
        overflow-x: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 10%; /* Más espacio lateral para centrar */
        justify-content: flex-start;
        transition: transform 0.4s ease;
}

.nuestro-equipo figure {
        flex: 0 0 65%;
        max-width: 65%;
        text-align: center;
        margin: 0;
        scroll-snap-align: center;
}

.nuestro-equipo figure:first-child {
        flex: 0 0 80%;
        max-width: 80%;
}

.nuestro-equipo figure img {
        width: 240px;
        margin: 24px auto 14px auto;
        display: block;
        border-radius: 14px;
}

.nuestro-equipo figcaption {
        font-size: 16px;
}

.nuestro-equipo figcaption small {
        font-size: 14px;
}

.carrusel-btn {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 10;
        width: 36px;
        height: 36px;
}

.carrusel-btn img {
        width: 100%;
        height: auto;
        display: block;
}

    .carrusel-btn.prev {
        left: 12px;
    }

.carrusel-btn.next {
        right: 12px;
}
}
/* visitanos tablet */
@media (min-width: 401px) and (max-width: 768px) {
.visitanos {
        padding: 30px 30px;
        text-align: left;
}

    .contenedor-visita {
        flex-direction: column;
        align-items: center; 
        gap: 20px;
    }

.mapa-visita {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        text-align: center;     
}

.mapa-visita iframe {
        display: block;      
        width: 90%;
        height: 300px;
        margin: 0 auto;   
        max-width: 600px !important;
        border-radius: 12px;
}

.info-visita {
        max-width: 100%;
        align-items: flex-start;
        text-align: left;
        gap: 6px;
        margin-top: 20px;
}

.subtitulo-visita {
        font-size: 18px !important;
        text-align: left !important;
        margin: 0 0 2px 0 !important; /* antes -20px → ahora más a la derecha */
}

.info-visita h2 {
        font-size: 32px !important;
        text-align: left !important;
        line-height: 1.2;
        margin: 0 0 8px -10px !important; /* antes -40px → ahora más a la derecha */
}

.info-visita p {
        font-size: 18px;
        line-height: 1.2;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left !important;
        margin: 0;
        margin-left: -15px !important; /* antes -55px → ahora más a la derecha */
}

.btn-visita {
        font-size: 16px;
        padding: 10px 24px;
        margin-top: 18px;
        margin-left: 0 !important; /* antes -20px → ahora completamente a la derecha */
}
}

    /* sobre nosotros */

/* titulo */
@media (min-width: 401px) and (max-width: 768px) {
.titulo-pagina {
        padding: 40px 20px;
}

.titulo-pagina h1 {
        font-size: 36px;
        line-height: 1.2;
}
}

/* mision y vision */
@media (min-width: 401px) and (max-width: 768px) {
.filosofia-dental {
        padding: 40px 30px;
}

.texto-filosofia h3 {
        font-size: 26px;
        line-height: 1.3;
}

.texto-filosofia p {
        font-size: 17px;
        max-width: 85%;
        margin-top: 14px;
}

.imagenes-filosofia {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
}

/* Bloque individual */
.bloque-filosofia {
        position: relative; /* necesario para animación */
        overflow: hidden;
        margin-bottom: 40px;
}

/* Imagen base */
.bloque-filosofia img:not(.animacion) {
        width: 260px;
        height: 260px;
        margin-bottom: -25px;
        display: block;
        margin-left: auto;
        margin-right: auto;
}

/* Imagen superpuesta / animación */
.bloque-filosofia img.animacion {
        width: 260px !important;
        height: 260px !important;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -50px; /* parcialmente oculta abajo */
        transition: bottom 0.5s ease;
}

.bloque-filosofia img:not(.animacion),
.bloque-filosofia img.animacion {
        width: 250px;
        height: 200px;
}

/* Hover en desktop + toque en tablet */
.bloque-filosofia:active img.animacion,
.bloque-filosofia:hover img.animacion {
        bottom: 10px; /* sube al tocar sin desbordar */
}

/* Texto debajo de la imagen */
.bloque-filosofia p {
        font-size: 17px;
        line-height: 1.4;
        margin-top: 8px;
        text-align: center;
}
}
    /* especialidades */

@media (min-width: 401px) and (max-width: 768px) {
.especialidad {
        padding: 40px 20px;
}

.especialidad-contenido {
        flex-direction: column;
        align-items: center;
        gap: 60px;
}

.invertir {
        flex-direction: column;
}

.imagenes-especialidad {
        flex: none;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-bottom: 10px;
}

.imagenes-especialidad img {
        width: 85%;
        max-width: 400px;
        border-radius: 14px;
}

.texto-especialidad {
        flex: none;
        width: 100%;
        text-align: left;
        padding-left: 20px;
}

.texto-especialidad h3 {
        font-size: 18px;
        margin-bottom: 12px;
}

.texto-especialidad h4 {
        font-size: 26px;
        margin-bottom: 12px;
}

.especialidad.endodoncia h3 {
        font-size: 26px; /* título principal */
}

.especialidad.endodoncia h4 {
        font-size: 15px; /* texto arriba del título */
}

.especialidad.endodoncia p {
        font-size: 17px; /* párrafo */
        line-height: 1.5;
}

.texto-especialidad p {
        font-size: 17px;
        line-height: 1.5;
}


.especialidad.endodoncia h3 {
        font-size: 18px; 
}

.especialidad.endodoncia h4 {
        font-size: 26px; 
}

.especialidad.endodoncia p {
        font-size: 17px; 
        line-height: 1.5;
}

.especialidad.endodoncia .texto-especialidad p {
        margin-left: -25px;
}
}

    /* presupuesto */

@media (min-width: 401px) and (max-width: 768px) {
.tabla-web {
        display: none; 
}

.tabla-mobile {
        display: block; 
        width: 90%;
        max-width: 600px;
        margin: 0 auto;
        height: auto;
        text-align: center;
}

.titulo-precios {
        padding: 50px 20px 25px;
}

.titulo-precios h1 {
        font-size: 28px;
        line-height: 1.2;
}

.titulo-precios span {
        display: inline-block;
        font-size: 28px;
}

.intro-presupuesto {
        padding: 40px 20px;
}

.intro-presupuesto h2 {
        font-size: 28px;
        margin-bottom: 18px;
        line-height: 1.3;
}

.intro-presupuesto p {
        font-size: 17px;
        line-height: 1.5;
        text-align: left;
        padding-left: 24px;
}

.tabla-presupuesto {
        padding: 30px 0;
        text-align: center;
}

.tabla-mobile {
        display: block; 
        width: 95%;              /* más ancha */
        max-width: 700px;        /* aumentamos límite */
        margin: 0 auto;
        height: auto;
        text-align: center;
        font-size: 18px;         /* textos más grandes */
}

section:last-of-type {
        padding: 50px 20px;
}

section:last-of-type h2 {
        font-size: 28px;
        margin-bottom: 18px;
        line-height: 1.3;
}

section:last-of-type p {
        font-size: 17px;
        line-height: 1.5;
        margin-top: 20px;
        margin-bottom: 25px;
        padding-left: 24px;
        text-align: left;
}

section:last-of-type ul {
        padding-left: 24px;
}

section:last-of-type li {
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 14px;
}
}

    /* footer */
@media (min-width: 401px) and (max-width: 768px) {
footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
        gap: 18px; /* MÁS compacto que antes */
        text-align: center;
}

footer * {
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
}

.logo-footer {
        max-width: 130px;
        margin: 0 auto 10px auto; /* logo más pegado a lo siguiente */
}

.col-encuentranos {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
}

.footer-botones {
        display: flex;
        justify-content: center;
        gap: 10px; /* íconos más juntos */
        margin-top: 5px; /* menos aire arriba */
}

.footer-botones img {
        width: 32px;
        height: 32px;
}

.horario,
.contacto {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2px; /* compacta cada bloque */
        margin-top: 8px; /* menos separación con lo de arriba */
}

.linea {
        display: none;
}

.texto-horario h4,
.texto-contacto h4,
footer h4 {
        font-size: 15px;
        margin-bottom: 2px; /* más pegado al texto */
}

.texto-horario p,
.texto-contacto p,
footer p {
        font-size: 13px;
        line-height: 1.2; /* más compacto */
        margin: 0;
}

.copyright {
        font-size: 12px;
        padding: 10px 0; /* más cerca del resto */
        margin-top: 10px; /* menos aire arriba */
        text-align: center;
}
}


    /* whatsapp icon */

@media (max-width: 400px) {
    .whatsapp-float {
        width: 70px;   /* más grande */
        height: 70px;
        bottom: 20px;
        right: 16px;
    }
    .whatsapp-icon {
        width: 60px;   /* ícono más grande */
        height: 60px;
    }
}

@media (min-width: 401px) and (max-width: 768px) {
.whatsapp-float {
        width: 70px;
        height: 70px;
        bottom: 20px;
        right: 16px;
}
.whatsapp-icon {
        width: 60px;
        height: 60px;
}
}

/* animaciones keyframe */

/* call to action & sobre dental gamar */
@keyframes slideInFromLeft { /* Animación desde la izquierda */
from {
    transform: translateX(-100px);
    opacity: 0;
}
to {
    transform: translateX(0);
    opacity: 1;
}
}

@keyframes slideInFromRight { /* Animación desde la derecha */
from {
    transform: translateX(100px);
    opacity: 0;
}
to {
    transform: translateX(0);
    opacity: 1;
}
}

.sobre-nosotros__imagenes,
.sobre-nosotros__contenido { /* Estado inicial oculto */
    opacity: 0;
}

.sobre-nosotros__imagenes.animate { /* Activación con delays */
    animation: slideInFromLeft 1s ease-out forwards;
}

.sobre-nosotros__contenido.animate {
    animation: slideInFromRight 1s ease-out forwards;
    animation-delay: 0.3s; /* El texto entra 0.3s después */
}

/* cards especialidades */
.sobre-nosotros__contenido,
.especialidades__texto,
.sello-dental h2,
.sello-dental__descripcion {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-timing-function: ease;
}

.sobre-nosotros__contenido.animate,
.especialidades__texto.animate,
.sello-dental h2.animate,
.sello-dental__descripcion.animate {
    animation-name: slideUp;
}

@keyframes slideUp { /* Animación desde abajo (slide up) */
from {
    transform: translateY(50px);
    opacity: 0;
}
to {
    transform: translateY(0);
    opacity: 1;
}
}

/* cards */
.especialidades__item {
    position: relative;
    overflow: hidden;
}

.especialidades__item img.animacion {
    position: absolute;
    bottom: -100%; /* Oculta abajo */
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    object-fit: contain;
    transition: bottom 0.5s ease;
}

.especialidades__item:hover img.animacion {
    bottom: 30px; /* Ajusta este valor para subir más o menos */
}

/* que ofrecemos titulo */
.sello-dental h2,
.sello-dental__descripcion {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-timing-function: ease;
}

.sello-dental h2.animate,
.sello-dental__descripcion.animate {
    animation-name: slideUp;
}

.sello-dental__item {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-timing-function: ease;
    transform: translateY(50px);
}

.sello-dental__item.animate {
    animation-name: slideUp;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* testimonio animacion */
.testimonio-usuario__item {
    opacity: 0;
    transform: translateY(50px);
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-timing-function: ease;
}

.testimonio-usuario__item.animate {
    animation-name: slideUp;
}

@keyframes slideUp {
from {
    transform: translateY(50px);
    opacity: 0;
}to {
    transform: translateY(0);
    opacity: 1;
}
}

/* dentista */
.nuestro-equipo h3,
.nuestro-equipo p {
    opacity: 0;
    transform: translateY(50px);
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-timing-function: ease;
}

.nuestro-equipo h3.animate,
.nuestro-equipo p.animate {
    animation-name: slideUp;
}

.nuestro-equipo figure img {
    opacity: 0;
    transform: translateY(50px);
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-timing-function: ease;
}

.nuestro-equipo figure img.animate {
    animation-name: slideUp;
}

@keyframes slideUp {
    from {
    transform: translateY(50px);
    opacity: 0;
}

to {
    transform: translateY(0);
    opacity: 1;
}
}

/* visitanos */
.info-visita h2,
.info-visita p {
    opacity: 0;
    transform: translateY(50px);
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-timing-function: ease;
}

.info-visita h2.animate,
.info-visita p.animate {
    animation-name: slideUp;
}

.mapa-visita iframe {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.mapa-visita iframe.animate {
    opacity: 1;
    transform: translateX(0);
}

@keyframes slideUp {
from {
    transform: translateY(50px);
    opacity: 0;
}
to {
    transform: translateY(0);
    opacity: 1;
}
}

/* mision y vision */
.sobre-nosotros__contenido,
.especialidades__texto,
.sello-dental h2,
.sello-dental__descripcion,
.texto-filosofia h3,
.texto-filosofia p {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-timing-function: ease;
}

.sobre-nosotros__contenido.animate,
.especialidades__texto.animate,
.sello-dental h2.animate,
.sello-dental__descripcion.animate,
.texto-filosofia h3.animate,
.texto-filosofia p.animate {
    animation-name: slideUp;
}

@keyframes slideUp {
from {
        transform: translateY(50px);
        opacity: 0;
}
to {
        transform: translateY(0);
        opacity: 1;
}
}

/* mision y vision cards */
.bloque-filosofia {
    position: relative; /* Para que la animación se posicione relativo al contenedor */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* Oculta lo que sobresalga */
}

.bloque-filosofia img.animacion {
    position: absolute;
    bottom: -100%; /* Oculta la imagen animada debajo */
    left: 50%;
    transform: translateX(-50%);
    width: 330px;  /* Igual que la imagen base */
    height: 330px; /* Igual que la imagen base */
    object-fit: contain;
    transition: bottom 0.5s ease;
    pointer-events: none; /* Para que el hover pase a la imagen base */
}

.bloque-filosofia:hover img.animacion {
    bottom: 0; /* Sube la imagen animada para cubrir la base */
}

/* estadisticas */

.sello-personal__item {
    opacity: 0;
    transform: translateY(50px);
}

.sello-personal__item.animate {
    animation: slideUp 0.6s forwards; /* aplica la animación slideUp */
}

/* especialidades animacion */

.especialidad {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.especialidad.implantologia,
.especialidad.infantil {
    transform: translateX(50px);
}

.especialidad.operatoria,
.especialidad.estetica,
.especialidad.endodoncia {
    transform: translateX(-50px);
}

.especialidad.animate-left,
.especialidad.animate-right {
    opacity: 1;
    transform: translateX(0);
}

.especialidad.endodoncia .texto-especialidad p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.especialidad.endodoncia.animate-left .texto-especialidad p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* presupuesto */
.titulo-precios h1,
.intro-presupuesto h2,
.intro-presupuesto p,
section:last-of-type h2,
section:last-of-type p {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 1.5s;
    animation-timing-function: ease;
}

.titulo-precios h1.animate,
.intro-presupuesto h2.animate,
.intro-presupuesto p.animate,
section:last-of-type h2.animate,
section:last-of-type p.animate {
    animation-name: slideUp;
}

.tabla-presupuesto img {
    max-width: 65%;
    height: auto;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.tabla-presupuesto img.animate {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}










