html {
    height: 100vh;
    scroll-behavior: smooth;
}

.logo {
    width: 25% !important;
}

.navbar {
    top: 0;
    background: #7a0000;
    padding: 5px 0;
    position: fixed;
    width: 100%;
    z-index: 99;
}

.nav-link {
    color: #ffffff;
    font-size: 20px;
    align-items: center;
    transition: all 0.3s ease;
    padding: 10px 20px;
    position: relative;
    text-decoration: none;
}

/* Efecto de subrayado animado */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-toggler {
    background-color: white;
}

.navbar .navbar-collapse {
    position: relative;
    width: 50%;
    text-align: center;
    left: -10px;
    justify-content: center;
}

.nav {
    width: 90%;
    color: white;
}

.navbar .button-navbar li i {
    color: #7a0000;
    font-size: 20px;
    height: 20px;
    width: 45px;
    border-radius: 50%;
    background: #fff;
    text-align: center;
    line-height: 30px;
    border: 7px solid #eee;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.navbar .button-navbar li i:hover {
    background: #7a0000;
    color: white;
    border-color: #7a0000;
}

.navbar-brand {
    width: 20%;
}



span.span-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 7px;
    display: block;
    display: flex;
    justify-content: center;
    color: white;
}

body {
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    padding: 0;
    margin: 0;
    color: #2a2a2a;
}

h1 {
    font-size: 54px;
    line-height: 58px;
    font-weight: 600;
    position: relative;
}

h2 {
    font-size: 38px;
    font-weight: 600;
    line-height: 44px;
    margin-bottom: 20px;
}

h3 {
    font-size: 32px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 20px;
    font-weight: 600;
    line-height: 22px;
}

h6 {
    font-size: 18px;
}


p {
    margin: 5px 0 15px;
    line-height: 28px;
    letter-spacing: 0.5px;
}

ul {
    padding: 0;
    margin: 0;
}

ul li {
    list-style: none;
    text-align: left;
}

img {
    width: 50%;
}

span.span-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 7px;
    display: block;
    color: #ec7163dd;
    display: flex;
    justify-content: center;
}

span.span-title-left {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 7px;
    display: block;
    color: #ec7163dd;
}

/*Intro*/

.intro {
    color: #eee;
    background: #7a0000;
    padding: 85px 0 1px;
    text-align: center;
}

.intro .span-title {
    color: #fff;
}

.intro h1 {
    color: #fff;
    padding: 0 130px;
    padding-bottom: 30px;
    z-index: 1;
}

.intro .content-right img {
    position: relative;
    top: -22px;
    left: -160px;
}

.intro .content-left img {
    position: relative;
    right: -260px;
    z-index: 2;
    top: 26px;
}

.intro img {
    border-radius: 10px;
}

/*Caracteristicas*/

.features {
    scroll-margin-top: 50px;
    padding-top: 10px;
    align-items: center;
    display: flex;
}


.features h2 {
    margin-bottom: 50px;
}

.features .content .icon {
    float: left;
}

.features .content .icon i {
    height: 50px;
    width: 50px;
    background: #ec7163dd;
    text-align: center;
    color: #fff;
    line-height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 24px;
}



/*Acerca de*/
.about {
    padding-top: 50px;
    scroll-margin-top: 50px;
}

.about .open {
    background: #fff;
    z-index: 1;
    position: relative;
    text-align: center;
    width: 400px;
    border-radius: 5px;
    padding: 27px;
    bottom: 50px;
    box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 1);
    margin-left: 50%;
    transform: translate(-50%);
    padding-top: 0;
}

.foto_dentista {
    width: 100%;
}

.about .content-left .open i {
    height: 40px;
    width: 40px;
    line-height: 38px;
    background: #ec7163dd;
    color: #fff;
    font-size: 19px;
    border-radius: 50%;
    position: relative;
    top: -19px;
}

.about .content {
    padding-left: 50px;
}

.about .content-icon {
    position: relative;
}

.about .content-icon .icon {
    float: left;
}

.about .content-icon .icon i {
    height: 50px;
    width: 50px;
    background: #ec7163dd;
    text-align: center;
    color: #fff;
    line-height: 48px;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 24px;
}

.about .content-icon .text {
    overflow: hidden;
}

.about .row .row {
    margin-top: 50px;
}

/*Doctores*/

/* Imagen ovalada */
.foto_dectores {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Tarjeta del doctor */
.dentistas-card {
    border: none;
    padding: 1rem;
    text-align: center;    
}


/* Servicios*/

.span-subtitle {
    color: #ec7163dd;
    font-size: 20px;
    letter-spacing: 1px;
    width: 100%;
    display: inline-block;
    border-bottom: 3px solid #ec7163dd;
    padding-bottom: 5px;
}

.services {
    padding-top: 190px;
    padding-bottom: 140px;
    scroll-margin-top: 50px;
}

.services .content {
    box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 1);
    padding: 30px;
    text-align: center;
    border-radius: 10px;
}

.services .content p {
    line-height: 24px;
}

.services .content img {
    height: 65px;
    width: auto;
    margin-bottom: 25px;
}

.limpieza,
.extraccion,
.blanqueamiento,
.Ortodoncia,
.resinas,
.endodoncia {
    height: 50% !important;
    width: 50% !important;
    margin-left: auto;
    margin-right: auto;
}

.services .content h5 {
    margin-bottom: 25px;
}

.card {
    max-width: 95%;
    margin: 0 auto;
}

.card img {
    max-height: 80px;
    max-width: 80px;
    object-fit: cover;
}

.hover-card {
    position: relative;
    overflow: hidden;
}

.custom-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.hover-card:hover .custom-modal {
    opacity: 1;
    pointer-events: all;
}

/*Comentarios*/

.boton {
    background: #ec7163dd;
}

.boton:hover {
    background: #ec7163dd;
}

.texto_boton {
    color: #ec7163dd;
}

.comment-card {
    border: none;
    background: #f8f9fa;
    border-radius: 20px;
    transition: transform 0.5s ease-out, box-shadow 0.3s ease;
    height: 200px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    position: relative;
    overflow: hidden;
}

.comment-card.slide-out {
    transform: translateX(-100%);
    box-shadow: none;
}

.comment-card.slide-in {
    transform: translateX(0);
}

.comment-text {
    margin-bottom: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.comment-card.slide-out .comment-text {
    opacity: 0;
}

.swiper-slide {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.swiper {
    padding: 30px 0;
}

/* Estilos para el formulario */
form input,
form textarea {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

form input:focus,
form textarea:focus {
    border-color: #ec7163dd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/*Contacto*/
.contact {
    scroll-margin-top: 50px;
}

.span-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.card .icon i {
    font-size: 2.5rem;
}

.card .text h5 {
    margin-top: 10px;
    font-size: 1.2rem;
}

.card .text span {
    font-size: 0.95rem;
}

.horario {
    background-color: #ec7163dd;

}

.dias {
    padding-top: 10px;
}

.direccion,
.numero {
    padding-bottom: 10px;
}


/*footer*/
footer {
    text-align: center;
    width: 100%;
    color: #4f4e4edd;
}

/*boton de whatsapp*/

.wa-btn {
    background: #1ad03f;
    width: 70px;
    height: 70px;
    text-align: center;
    font-size: 46px;
    border-radius: 50px;
    position: fixed;
    bottom: 20px;
    right: 16px;
    color: #FFF;
}

.wa-btn a {
    color: #FFF
}

.celular {
    animation: pulseGreen 2s infinite;
    transition: transform 0.3s ease;
}

.celular:hover {
    transform: scale(1.03);
    text-decoration: none;
}



/*responsive*/
@media (max-width: 1199px) {
    .navbar .button-navbar {
        width: 15%;
        float: left;
        text-align: left;
    }

    .navbar .button-navbar li i {
        margin-right: 0;
    }

    .open {
        margin-left: 50% !important;
    }
}

@media (max-width: 991px) {
    .navbar .button-navbar {
        display: none;
    }

    .intro h1 {
        padding: 0;
    }

    .intro .content-left img {
        right: -140px;
    }

    .intro .content-right img {
        left: -110px;
    }

    .features .container {
        padding: 0;
    }

    .about .col-md-5 {
        flex: 100%;
    }

    .about .col-md-7 {
        flex: 100%;
    }

    .about h2 {
        margin-top: 30px;
    }

    .about .content-left {
        margin-right: 50px;
    }

    .about .content {
        margin-top: 100px;
        padding-left: 0;
    }

    .open {
        margin-left: 55% !important;
    }

    .contact .col-md-3 {
        flex: 50%;
    }

    .contact .col-md-6 {
        flex: 50%;
    }
}

@media (max-width: 767px) {

    img {
        width: 70%;
    }

    .intro {
        padding-bottom: 75px;
    }

    .intro .content-left img {
        right: 0;
        top: 25px;
    }

    .intro .content-right img {
        left: 0;
        top: 50px;
    }

    .features .content {
        margin-bottom: 25px;
    }

    .features .container {
        padding: 0 30px;
    }

    .card h5 {
        font-size: 1rem;
    }

    .custom-modal p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {

    img {
        width: 100%;
    }

    h1 {
        font-size: 48px;
        line-height: 53px;
    }

    .about .col {
        flex: 100%;
    }

    .open {
        width: 300px !important;
        margin-left: 58% !important;
    }

    .contact .col-md-6 {
        flex: 100%;
    }

    .contact .col-md-3 {
        width: 100%;
    }

    h2 {
        font-size: 36px;
        line-height: 45px;
    }

    .wa-btn {
        background: #1ad03f;
        width: 50px;
        height: 50px;
        text-align: center;
        font-size: 36px;
        border-radius: 50px;
        position: fixed;
        bottom: 20px;
        right: 16px;
        color: #FFF;
    }

    .wa-btn a {
        color: #FFF
    }
}