* {
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
}

ul {
    list-style: none;
}

html {
    scroll-behavior: smooth;
}


.animar-al-scroll {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animar-desde-abajo {
    transform: translateY(40px);
}

.animar-desde-izquierda {
    transform: translateX(-50px);
}

.animar-desde-derecha {
    transform: translateX(50px);
}

.animar-zoom {
    transform: scale(0.85);
}

.animar-al-scroll.visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}


.hero{
    display: flex;
    justify-content: space-between;
    margin-left: 5rem;
    margin-bottom: 13rem;
}
.seccion-izquierda{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 45%;
    margin-top: 7rem;
}

.seccion-izquierda h1{
    font-family: 'Arial', sans-serif;
    font-size: 5rem;
    margin-bottom: 4rem;
}

.seccion-izquierda h1 span{
    color: #1e897c;
}

.seccion-izquierda p{
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 4rem;
}


#boton-cita{
    background-color: #009E8C;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 4rem;
    font-family: 'Arial', sans-serif;
    font-size: 1.4rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}

#boton-cita:hover{
    background-color: #08796e;
    transform: none;
}

.stats{
    display: flex;
    justify-content: space-between;
    width: 90%;
    padding: 2rem ;
    background-color: #bfe5e4ba;
    border-radius: 20px;
    animation: entradaSuave 0.6s ease-out forwards;
}

@keyframes entradaSuave {
    0% {
        opacity: 0;
        transform: translateX(-40px); 
    }
    100% {
        opacity: 1;
        transform: translateX(0);    
    }
}

.stat-item{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.stat-numero{
    font-family: 'Arial', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    border-left: 2px solid #1e897c4b;
    padding-left: 10px;
}

.stat-numero span:not(.text-anim-entrada){
    margin-right: 0.5rem;
}

.stat-texto{
    font-family: 'Arial', sans-serif;
    color: #0d3833c4;
    font-size: 1.2rem;
}

.text-anim-entrada {
    opacity: 0; 
    transform: translateY(40px); 
    transition: opacity 0.5s ease, transform 0.5s ease; 
    font-family: 'Arial', sans-serif;
}

.stat-item.animacion-activa .text-anim-entrada {
    opacity: 1; 
    transform: translateY(0); 
}


.hero-image-wrapper {
    position: relative;
    display: inline-block;
    z-index: 0;
    padding: 26px 60px 72px 80px;
}

.hero-image-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    right: -60px;
    bottom: 0;
    left: -80px;
    background-color: #5cdecf68;
    z-index: -2;
    border-radius: 0 0 0 290px;
    animation: entradasuave-iz 4.0s ease forwards;
}

.hero-shape {
    position: absolute;
    top: 0;
    right: -60px;
    bottom: 30px;
    left: -80px;
    background-color: #2cb8b67b; 
    z-index: -1;
    border-radius: 0 0 0 460px;
    animation: entradasuave-iz 3.0s ease forwards;
}

@keyframes entradasuave-iz {
    0% {
        opacity: 0;
        transform: translateX(40px); 
    }
    100% {
        opacity: 1;
        transform: translateX(0);    
    }
}

.hero-shape::after {
    content: none;
}

.hero-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 560px;
    max-width: none;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    animation: entradasuave-iz 1.0s ease forwards;
}


.seccion-derecha{
    flex-shrink: 0;
}

/*servicosssssssssssssssssssssssssssssssssssssssss*/

.servicios{
    display: flex;
    align-items: center;
    flex-direction: column;
    font-family: 'Arial', sans-serif;
    margin-bottom: 4rem;
}

.servicios h2{
    font-size: 3rem;
    font-weight: 700;
    border-width: 5px;
    border-radius: 5px;
}

.subtitulo{
    color: #666;
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 4rem;
    text-align: center;
}

.tarjeta-servicio{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 3rem;
    max-width: 180vh;
    margin: 0 auto 4rem auto;
    font-family: 'Arial', sans-serif;
    margin-bottom: 4rem;
}



.tarjeta{
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 320px; 
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tarjeta:hover{
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transform: scale(1.04) translateY(-4px);
}

.img-servicio img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.contenido-servicio {
    padding: 20px;
}

.contenido-servicio h3 {
    font-size: 1.25rem;
    color: #111111;
    margin-bottom: 12px;
}


.servicio-detalle {
    position: relative;
    padding-left: 18px;         
    border-left: 1.5px solid #d1d5db;
    margin-top: 8px;
}

.servicio-detalle::before {
    content: "";
    position: absolute;
    top: 0px;
    left: -6.5px;
    width: 14px;
    height: 14px;
    background-color: #897da9;   
    border-radius: 50%;            
}

.service-mini-titulo {
    font-size: 1rem;
    font-weight: 500;
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.service-description {
    font-size: 1rem;
    color: #666666;
    line-height: 1.4;
}

.service-puntos {
    margin: 0 0 14px;
    padding-left: 18px;
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.45;
}

.service-puntos li {
    margin-bottom: 6px;
}

.servicio-detalle details {
    margin-top: 10px;
}

.servicio-detalle summary {
    width: fit-content;
    color: #1e897c;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
}

.servicio-detalle summary:hover {
    color: #08796e;
}

.servicio-detalle details .service-description {
    margin-top: 10px;
}
.btn-servicios{
    background-color:#8978b9;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    font-family: 'Arial', sans-serif;
    font-size: 1.4rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 1.0s ease-in-out, transform 0.3s ease;
}

.btn-servicios:hover{
    background-color:#3b3350;
    transform: translateY(-2px);
}




.tecnologia-seccion, .atencion-especial-seccion {
    padding: 80px 20px;
    background-color: #108678;
    border-top: 10px solid #3dbdb0;
    border-bottom: 10px solid #3dbdb0;
    border-radius: 5px;
}


.contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10rem;
    margin-left: 5rem;
    margin-right: 5rem;
}


.divisor-seccion {
    width: 3px;
    border: none;
    border-radius: 5px;
    height: 300px;
    background: #fff;
    margin: 60px 0;
}

.titulo-seccion {
    text-align: center;
    margin-bottom: 50px;
}

.titulo-seccion h2 {
    font-family: 'Arial', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: white;
}
.titulo-seccion p{
    color: #e8dcdc;
}


.grid-tecnologia {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.tarjeta-tech {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 2px solid #009e8c56;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-tech:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.tech-icono {
    margin-bottom: 15px;
}

.tarjeta-tech h3 {
    color: #3b3350;
    margin-bottom: 15px;
}

.banner-destacado {
    background: linear-gradient(135deg, #009E8C 0%, #007a6d 100%);
    color: #ffffff;
    text-align: center;
    padding: 30px 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
}


.grid-perfiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: min(100%, 900px);
    margin: 0 auto;
}

.tarjeta-perfil {
    background: #f8fafc;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-perfil:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.tarjeta-perfil h4 {
    color: #009E8C;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tarjeta-perfil p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.tarjeta-horizontal {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contenido-perfil {
    flex: 1;
}

.foto-odontofobia {
    width: 130px;
    height: 170px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    filter: brightness(1.3) invert(0);
}











/*pq nosotroooooooooooooooooos */



.por-que-nosotros{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 10rem;
    margin-top: 10em;
}

.lado-izquierdo-pq-nosotros{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-left: 5rem;
    width: 60%;
}

.lado-izquierdo-pq-nosotros h2{
    font-family: 'Arial', sans-serif;
    font-size: 3rem;
    margin-bottom: 2rem;
}

.lado-izquierdo-pq-nosotros p{
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 4rem;
}



.tarjetitas{
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.tarjeta-nosotros{
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tarjeta-cabeza{
    font-family: 'Arial', sans-serif;
    color: #8978b9;
    padding: 1rem;
    text-align: center;
}

.tarjeta-cuerpo{
    background-color: #8978b9;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    color: #fff;

}

.img-local{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 4rem;
}
.img-local img{
    width: 60%;
    height: auto;
    border-right: 20px solid #8978b9;
    border-bottom: 20px solid #8978b9d1;
    border-radius: 20px;
}


.cta{
    background-image: linear-gradient(rgba(0, 0, 0, 0.716), rgba(0, 0, 0, 0.708)), url(../../img/photos/local-interior.webp);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 13rem;
}

.cta h2{
    font-family: 'Arial', sans-serif;
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #fff;
    font-weight: 800;
}

.cta p{
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #fff;
    width: 30%;
}

.btn-cita-cta{
    background-color: #8978b9;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    font-family: 'Arial', sans-serif;
    font-size: 1.4rem;
    cursor: pointer;
    text-decoration: none;
}


@media (max-width: 1366px) {

    .hero {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .seccion-izquierda {
        width: 48%;
    }

    .seccion-izquierda h1 {
        font-size: 4rem;
    }

    .hero-image-wrapper {
        padding: 24px 38px 48px 48px;
    }

    .hero-img {
        width: 30vw;
    }


    .stats{
        width: 100%;
    }

    .cuenta{
        font-size: 2rem;
    }
    .text-anim-entrada{
        font-size: 2rem;
    }
    .stat-texto{
        font-size: 1rem;
    }
}


@media (max-width: 1536px) {
    .hero {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .seccion-izquierda h1 {
        font-size: 3.5rem;
    }

    .hero-img {
        max-width: 450px;
    }

    .tarjeta-nosotros{
        height: 190px;
    }

    .tarjeta-cuerpo{
        height: 10vh;
    }

    .cta h2{
        width: 90vh;
    }   

    .cta p{
        width: 60vh;
    }

}

@media (max-width: 1440px) {
    .hero-img img{
        width: 15vh;
    }

    .por-que-nosotros{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .img-local{
        margin: 0;
    }
}

@media (max-width: 1100px) {
    .hero {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .seccion-izquierda {
        width: 48%;
    }

    .seccion-izquierda h1 {
        font-size: 4rem;
    }

    .hero-image-wrapper {
        padding: 24px 38px 48px 48px;
    }

    .hero-img {
        width: 30vw;
    }

    .hero-image-wrapper {
        position: relative;
        display: inline-block;
        z-index: 0;
        padding: 36px 70px 72px 45px;
    }

    .hero-image-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        right: -60px;
        bottom: 10px;
        left: 0px;
        background-color: #5cdecf68;
        z-index: -2;
        border-radius: 0 0 0 290px;
        animation: entradasuave-iz 4.0s ease forwards;
    }

    .hero-shape {
        position: absolute;
        top: 0;
        right: -60px;
        bottom: 20px;
        left: 0px;
    }

    .contenedor {
        gap: 4rem;
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

@media (max-width: 1026px) {
    .seccion-izquierda h1, .servicios h2, .lado-izquierdo-pq-nosotros h2 {
        font-size: clamp(2.2rem, 6vw, 4rem);
    }

    .tarjeta-servicio, .grid-tecnologia, .grid-perfiles {
        min-width: 0;
    }

    .tarjeta, .tarjeta-tech, .tarjeta-perfil {
        overflow-wrap: break-word;
    }

    .seccion-izquierda {
        margin-top: 2rem;
    }

    .hero-img {
        width: min(40vw, 320px);
        height: auto;
    }

    .hero-image-wrapper {
        position: relative;
        display: inline-block;
        z-index: 0;
        padding: 36px 70px 72px 45px;
    }

    .hero-image-wrapper::before {
        content: "";
        position: absolute;
        top: 0;
        right: -60px;
        bottom: 0;
        left: 0px;
        background-color: #5cdecf68;
        z-index: -2;
        border-radius: 0 0 0 290px;
        animation: entradasuave-iz 4.0s ease forwards;
    }

    .hero-shape {
        position: absolute;
        top: 0;
        right: -60px;
        bottom: 5px;
        left: 0px;
        background-color: #2cb8b67b;
        z-index: -1;
        border-radius: 0 0 0 460px;
        animation: entradasuave-iz 3.0s ease forwards;
    }

    .stats {
        width: 130%;
    }

    .tarjeta-servicio {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: start;
        gap: 3rem;
        max-width: 180vh;
        margin: 0 auto 4rem auto;
    }

    .lado-izquierdo-pq-nosotros {
        margin-left: 0px;
    }

    .img-local {
        margin-right: 0px;
    }

    .por-que-nosotros {
        display: flex;
        flex-direction: column;
    }

    .cta {
        padding: 3vh;
    }

    .cta h2 {
        width: 50vh;
    }

    .cta p {
        width: 50vh;
    }
}

@media (max-width: 900px) {
    .hero {
        margin-left: 2rem;
        margin-right: 2rem;
    }

    .seccion-izquierda {
        width: 48%;
    }

    .tarjeta-servicio {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .stats {
        width: 130%;
    }
}


@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        margin: 0 1rem 6rem;
    }

    .seccion-izquierda {
        width: 100%;
        margin-top: 2rem;
    }

    .seccion-izquierda h1 {
        font-size: clamp(2.7rem, 10vw, 4rem);
        margin-bottom: 2rem;
    }

    .seccion-izquierda p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    #boton-cita {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        display: flex;
        align-items: center;
    }

    .stats {
        width: 93%;
        padding: 1rem 0.75rem;
        gap: 1.5rem;
    }

    .seccion-derecha {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image-wrapper {
        aspect-ratio: 1;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        max-width: 330px;
        padding: 18px;
        width: min(84vw, 330px);
    }

    .hero-image-wrapper::before {
        background: #8978b9;
        border-radius: 28px;
        bottom: 8px;
        left: 8px;
        right: 8px;
        top: 8px;
        transform: rotate(7deg);
    }

    .hero-shape {
        background: #5cdecf;
        border-radius: 28px;
        bottom: 0;
        left: 0;
        right: 0;
        top: 0;
        transform: rotate(-5deg);
    }

    .hero-img {
        aspect-ratio: 1;
        border-radius: 22px;
        height: 100%;
        object-fit: cover;
        width: 100%;
    }

    .cuenta {
        font-size: 23px;
    }

    .stat-numero{
        padding-left: 5px;
        font-size: 0;
    }

    .text-anim-entrada {
        font-size: 20px;
        padding: 4px;
    }

    .stat-texto{
        font-size: 10px;
    }

    .servicios {
        width: 100%;
    }

    .servicios h2 {
        font-size: 31px;
        text-align: center;
    }

    .servicios p {
        font-size: 14px;
    }

    .subtitulo {
        margin-bottom: 2.5rem;
    }

    .tarjeta-servicio {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
        width: 80%;
        margin: 0;

    }

    .tarjeta {
        max-width: none;
        margin-bottom: 1.5rem;
    }

    .contenido-servicio {
        padding: 16px;
    }

    .contenedor {
        flex-direction: column;
        gap: 2rem;
        margin: 0;
    }

    .tecnologia-seccion, .atencion-especial-seccion {
        padding: 50px 1rem;
    }

    .tarjeta-horizontal {
        flex-direction: column;
    }

    .foto-odontofobia {
        width: 150px;
        height: 150px;
    }

    .por-que-nosotros {
        flex-direction: column;
        gap: 2rem;
        margin: 5rem 1rem;
        height: auto;
    }

    .lado-izquierdo-pq-nosotros {
        width: 100%;
        margin-left: 0;
    }

    .lado-izquierdo-pq-nosotros h2 {
        font-size: 2.2rem;
    }

    .lado-izquierdo-pq-nosotros p {
        font-size: 1rem;
        margin-bottom: 4vh;
    }

    .tarjeta-cuerpo p {
        margin: auto;
        height: auto;
    }

    .tarjetitas {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .tarjeta-nosotros {
        flex: 1 1 260px;
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }

    .img-pq-elegirnos, .img-pq-elegirnos .img-local {
        width: 100%;
        margin: 0;
    }

    .img-pq-elegirnos .img-local img {
        width: 100%;
    }

    .cta h2 {
        font-size: clamp(2rem, 9vw, 3.5rem);
        width: 39vh;
    }

    .cta p {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        width: 30vh;
    }

}

@media (max-width: 520px) {




    .tarjetitas {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    .tarjeta-nosotros {
        width: 100%;
        max-width: 320px;
        margin: 0 auto 1rem;
    }

    .tarjeta-cabeza {
        padding: 0.85rem 1rem;
    }

    .tarjeta-cabeza h3 {
        font-size: clamp(1.05rem, 4.5vw, 1.2rem);
        line-height: 1.2;
    }

    .tarjeta-cuerpo {
        padding: 1rem;
    }

    .tarjeta-cuerpo p {
        font-size: clamp(0.9rem, 3.8vw, 1rem);
        line-height: 1.5;
    }

    .tarjeta-servicio, .grid-tecnologia {
        grid-template-columns: 1fr;
    }

    .banner-destacado {
        padding: 24px 18px;
        font-size: 1rem;
    }

    .cta {
        padding: 7rem 1.25rem;
    }

    .cta h2, .cta p {
        width: 100%;
    }

    .cta h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 520px) {
    .seccion-izquierda h1 {
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 1.1;
    }

    .seccion-izquierda p,
    .lado-izquierdo-pq-nosotros p,
    .cta p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .lado-izquierdo-pq-nosotros h2 {
        font-size: clamp(1.8rem, 8vw, 2.3rem);
        line-height: 1.15;
    }
}