/* CONTENEDOR GENERAL */

.servicios-odontologicos-container {
    padding-top: 140px;
    max-width: 1200px;
    margin: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* TÍTULO */

.titulo-servicios {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 55px;
}

.titulo-servicios h1 {
    font-family: 'DM Serif Display', serif;
    color: var(--azul-oscuro);
    font-size: 3rem;
    letter-spacing: 1px;
    text-align: center;
}

.logo-titulo-servicios {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.linea {
    width: 100%;
    height: 8px;
    background: var(--amarillo);
    margin-top: 15px;
}

/* TEXTO INTRODUCTORIO */

.texto-servicio-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 45px;
    margin-bottom: 60px;
    box-shadow: var(--sombra-card);
    border-left: 8px solid var(--amarillo);
}

.texto-servicio-card h2 {
    font-family: 'DM Serif Display', serif;
    color: var(--azul-oscuro);
    font-size: 2.5rem;
    margin-bottom: 22px;
}

.texto-servicio-card p {
    font-family: 'DM Sans', sans-serif;
    color: #333333;
    font-size: 1.08rem;
    line-height: 1.85;
}

/* CARRUSEL */

.carrusel-servicios {
    width: 90%;
    max-width: 620px;
    margin: 0 auto 70px;
    text-align: center;
}

.carrusel-servicios h2 {
    font-family: 'DM Serif Display', serif;
    color: var(--azul-oscuro);
    font-size: 2.4rem;
    margin-bottom: 28px;
}

.carrusel-servicios-contenedor {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #f7f7f7;
    box-shadow: var(--sombra-card);
}

.slides-servicios {
    display: flex;
    transition: transform 0.45s ease-in-out;
}

.slide-servicio {
    min-width: 100%;
    height: 720px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f7f7f7;
}

.slide-servicio img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* FLECHAS */

.flecha-servicio {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.flecha-servicio:hover {
    background: rgba(0, 0, 0, 0.75);
}

.flecha-servicio-izquierda {
    left: 15px;
}

.flecha-servicio-derecha {
    right: 15px;
}

/* MINIATURAS */

.miniaturas-servicios {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.miniatura-servicio {
    width: 62px;
    height: 88px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.55;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: #ffffff;
}

.miniatura-servicio:hover {
    opacity: 0.85;
}

.miniatura-servicio.activa {
    opacity: 1;
    border-color: var(--amarillo);
    transform: translateY(-3px);
}

/* TARJETAS DE SERVICIOS */

.servicios-lista {
    margin-bottom: 80px;
}

.servicios-lista h2 {
    font-family: 'DM Serif Display', serif;
    color: var(--azul-oscuro);
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 35px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.servicio-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sombra-card);
    transition: 0.3s ease;
    border-top: 6px solid var(--amarillo);
}

.servicio-card:hover {
    transform: translateY(-8px);
}

.servicio-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.servicio-card div {
    padding: 20px;
}

.servicio-card h3 {
    font-family: 'DM Serif Display', serif;
    color: var(--azul-oscuro);
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.servicio-card p {
    font-family: 'DM Sans', sans-serif;
    color: #333333;
    font-size: 0.96rem;
    line-height: 1.55;
}

/* FOOTER */

.redes img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* ANIMACIONES */

@keyframes flotarLogo {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

/* RESPONSIVE */

@media(max-width: 1100px) {

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media(max-width: 992px) {

    .titulo-servicios h1 {
        font-size: 2.5rem;
    }

    .slide-servicio {
        height: 680px;
    }

}

@media(max-width: 768px) {

    .titulo-servicios {
        flex-direction: column;
        text-align: center;
    }

    .logo-titulo-servicios {
        width: 65px;
        height: 65px;
    }

    .titulo-servicios h1 {
        font-size: 2.1rem;
    }

    .texto-servicio-card {
        padding: 30px 22px;
    }

    .texto-servicio-card h2 {
        font-size: 2rem;
    }

    .slide-servicio {
        height: 560px;
    }

    .carrusel-servicios {
        width: 100%;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

}

@media(max-width: 480px) {

    .slide-servicio {
        height: 460px;
    }

    .miniatura-servicio {
        width: 52px;
        height: 72px;
    }

    .servicio-card img {
        height: 180px;
    }

}