@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

body {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 3fr;
    grid-template-areas:
        "header"
        "main"
        "footer";
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3 {
    color: #4A3A2A;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

p {
    color: #6E6A66;
    font-weight: 300;
}



/*index*/

/*header*/
header {
    grid-area: header;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo img {
    height: 11vh;
    width: 150px;
}

header .btn-menu button {
    background: url('../images/icono-menu.png') center center no-repeat;
    background-size: 30px 30px;
    width: 44px;
    height: 44px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0;
    outline: none;
}

header .btn-menu button img {
    width: 30px;
    height: 30px;
}


header .logo img {
    height: 11vh;
    width: 150px;
}

header .btn-menu button.girar {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/*nav*/

.nav {

    position: absolute;
    top: 70px;
    /* Ajusta según la altura de tu header */
    left: 0;
    width: 100%;
    background: #F5EBE0;
    background: #e3d3b8;
    z-index: 1000;
    border-bottom: 2px solid #D2AE6D;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.nav.mostrar {

    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.nav ul li {
    margin: 0;
    padding: 0;
    height: 10vh;
    width: 100%;
    display: flex;
    align-items: center;
    /* centra verticalmente */
    justify-content: center;
}

.nav ul li a {
    text-decoration: none;
    color: #4A3A2A;
    font-weight: 500;
    font-size: 1.1em;
    padding: 8px 18px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    text-align: center;
}

.nav ul li:hover {
    background: #D2AE6D;
    color: white;
}




/*main*/
main {
    grid-area: main;
    width: 100%;
    overflow: hidden;
}

main .banner {
    background-image: url('../images/Banner.jpg');
    background-size: cover;
    background-position: 50% 20%;
    max-width: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 60vh;
}

main .banner .info-banner {
    width: 100%;
    max-width: 300px;
    margin: auto;
    background: rgba(255, 255, 255, 0.5);
    /* blanco semitransparente */
    border-radius: 12px;
    padding: 16px;
}

main .banner .info-banner h1 {
    margin: 0;

}

main .banner .info-banner p {
    color: #000;
}

main .banner .info-banner a {
    border-radius: 100px;
    border: 0;
    background-color: white;
    font-size: 100%;
    padding: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease, color 0.3s ease;

}

main .banner .info-banner a:hover {
    background-color: green;
}

main .banner .info-banner a {
    text-decoration: none;
    color: black;
}


/*Tarjetas*/
main .tratamientos-main {
    background-color: #F5EBE0;
    text-align: center;
    padding-top: 5vh;
}

main .tratamientos-main h2 {
    margin-top: 0;
}

main .tratamientos-main .contenedor-tarjetas {
    display: flex;
    flex-direction: column;
    background-color: #F5EBE0;
    align-items: center;
    width: 100%;

}

main .tratamientos-main .contenedor-tarjetas .tarjetas-tratamientos {
    text-align: center;
    background-color: white;
    min-height: 20vh;
    width: 50%;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 0;
    font-size: 100%;
    padding: 30px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);

}

main .tratamientos-main .contenedor-tarjetas .tarjetas-tratamientos a {
    text-decoration: none;
    color: white;
    background-color: #D2AE6D;
    border-radius: 10%;
    padding: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

/*Ver mas*/
main .vermas {
    visibility: hidden;
}

main .vermas .mostrar {
    visibility: visible;
}

/*Cirugia*/
.implante-cirugia-main {
    background-color: #ffffff;
    margin-top: 10px;
    width: 100%;
}

.implante-cirugia-main .info-implante-cirugia-main {
    text-align: center;
    margin-bottom: 30px;
    padding-inline: 15%;
}

.implante-cirugia-main .info-implante-cirugia-main a {
    border-radius: 100px;
    border: 0;
    background-color: white;
    font-size: 100%;
    padding: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    color: #000;
    white-space: nowrap;
}

.implante-cirugia-main .antesdespues-implante-cirugia-main {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    aspect-ratio: 4/3;
    margin-bottom: 0;
}

.implante-cirugia-main .antesdespues-implante-cirugia-main img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: top center;
}

.implante-cirugia-main .antesdespues-implante-cirugia-main .after {
    clip-path: inset(0 50% 0 0);
}

.implante-cirugia-main .antesdespues-implante-cirugia-main .slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fff;
    cursor: ew-resize;
    z-index: 2;
    transform: translateX(-50%);
    user-select: none;
    -webkit-user-select: none;

}

.antesdespues-implante-cirugia-main .slider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/*Nosotros*/

main .nosotros-main {
    width: 100%;
    background-color: #F5EBE0;
    padding-top: 20px;
    color: white;
}

main .nosotros-main .info {
    text-align: center;
    padding-inline: 25%;
}

main .nosotros-main .info h2 {
    margin-top: 0;
    font-size: xx-large;
}

main .nosotros-main .img-nosotros {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

main .nosotros-main .img-nosotros img {
    width: 300px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


/*nuestro equipo*/

main .nuestro-equipo {
    text-align: center;
    background-color: #ffffff;
    padding-top: 20px;
}

main .nuestro-equipo h2 {
    font-size: xx-large;
}

main .nuestro-equipo .integrantes {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

main .nuestro-equipo .integrante img {
    width: 30vh;
    height: 45vh;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

main .nuestro-equipo .integrante h3 {
    margin: 0;
}

main .nuestro-equipo .integrante p {
    margin-top: 0;
}




/*NUESTRAS INSTALACIONES*/

main .nuestro-consultorio {
    background-color: #ffffff;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}
main .nuestro-consultorio h2 {
    font-size: xx-large;
}
main .nuestro-consultorio .img-consultorio {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
main .nuestro-consultorio .img-consultorio img {
    width: 300px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}




/*DUDAS*/
main .dudas-main {
    background-color: #F5EBE0;
}

main .dudas-main h2 {
    text-align: center;
}

main .dudas-main .pregunta .pregunta-titulo {
    background: none;
    color: #000;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: left;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 300;

}

main .dudas-main .pregunta .pregunta-titulo:hover {
    color: #D2AE6D;
}

main .dudas-main .pregunta .respuesta {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    display: block;
    color: #6E6A66;
}

.flecha {
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.flecha.girar {
    transform: rotate(180deg);
}


/*footer*/

.footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 40px 20px;
    font-size: 0.9rem;
}

.footer-contenedor {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav a {
    text-decoration: none;
    color: #333;
}

.footer-legal {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #777;
}














/*TRATAMIENTOS*/
.btn-volver {
    margin: 20px;
}

.tratamientos-titulo-section {
    text-align: center;
    margin: 0;
    font-size: 1.4rem;
    color: #4A3A2A;
    font-weight: 600;
}

.tratamientos-titulo-section h2 {
    margin: 0;
}

.tratamientos-info {
    max-width: 900px;
    margin: 40px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(210, 174, 109, 0.07);
    padding: 28px 12px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    border: 1px solid #f0e3c6;
}

.tratamientos-info>div {
    padding-bottom: 16px;
    border-bottom: 1px solid #e5d6b8;
}

.tratamientos-info>div:last-child {
    border-bottom: none;
}

.tratamientos-info h2 {
    color: #D2AE6D;
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.tratamientos-info h3 {
    color: #4A3A2A;
    font-size: 1.2rem;
    margin-top: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.tratamientos-info p,
.tratamientos-info li {
    color: #6E6A66;
    font-size: 1.05rem;
    line-height: 1.7;
}

.tratamientos-info ul,
.tratamientos-info ol {
    margin-left: 1.2em;
    margin-bottom: 1em;
}

.tratamientos-info ul li,
.tratamientos-info ol li {
    margin-bottom: 0.5em;
}

.cirugia-tratamiento {
    max-width: 1100px;
    margin: 64px auto 64px auto;
    background: #f7f1e7;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 32px 0;
    border: none;
}

.cirugia-tratamiento h2 {
    color: #B88A44;
    font-size: 2.2rem;
    margin-bottom: 18px;
    font-weight: 700;
    text-align: left;
    margin-left: 10px;
}

.cirugia-tratamiento h3 {
    color: #4A3A2A;
    font-size: 1.25rem;
    margin-top: 22px;
    margin-bottom: 10px;
    font-weight: 600;
    margin-left: 10px;
}

.cirugia-tratamiento p,
.cirugia-tratamiento li {
    color: #4A3A2A;
    font-size: 1.08rem;
    line-height: 1.8;
    margin-left: 10px;
    margin-right: 10px;
}

.cirugia-tratamiento ul,
.cirugia-tratamiento ol {
    margin-left: 2.2em;
    margin-bottom: 1.2em;
}

.cirugia-tratamiento ul li,
.cirugia-tratamiento ol li {
    margin-bottom: 0.7em;
}

.cirugia-tratamiento .destacado {
    background: #fffbe7;
    border-left: 5px solid #D2AE6D;
    padding: 18px 20px;
    margin: 32px 10px 0 10px;
    border-radius: 12px;
    font-size: 1.1rem;
    color: #B88A44;
    font-weight: 600;
}

/* Imágenes de tratamientos */
.img-tratamiento {
    width: 100%;
    max-width: 100vh;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Botón volver */
.btn-volver {
    margin: 24px 0 0 16px;
}

.btn-volver a img {
    width: 36px;
    height: 36px;
    transition: transform 0.2s;
}

.btn-volver a img:hover {
    transform: scale(1.12) rotate(-10deg);
}



/*LINEA DE PRODUCTOS*/
.linea-productos {
    max-width: 1100px;
    margin: 0 auto 64px auto;
    background: #f7f1e7;
    border-radius: 0;
    box-shadow: none;
    padding: 32px 0 32px 0;
    border: none;
    text-align: center;
}   
.linea-productos h2 {
    color: #B88A44;
    font-size: 2.2rem;
    margin-bottom: 18px;
    font-weight: 700;
    margin-left: 10px;
}
.linea-productos p {
    color: #4A3A2A;
    font-size: 1.08rem;
    line-height: 1.8;
    margin-left: 30px;
    margin-right: 10px;
    margin-bottom: 32px;
    text-align: left;
}
.linea-productos .productos {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}


.linea-productos .productos-container .producto img {
    width: 200px;
    height: 260px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.linea-productos .productos-container .producto img:hover {
    transform: scale(1.05);
}
.linea-productos .productos-container .producto h3 {
    margin: 8px 0 0 0;
    font-size: 1rem;
    color: #4A3A2A;
}
.linea-productos .productos-container .producto p {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: #6E6A66;
    font-weight: 300;
    text-align: center;
}




/* Carrusel de tratamientos */
.carrousel-container {
    width: 100%;
    max-width: 400px;
    margin: 10px auto 32px auto;
    position: relative;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 16px 0 32px 0;
}

.carrousel-slides {
    position: relative;
    width: 100%;
    height: 400px;
}

.carrousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s;
    z-index: 1;
    border-radius: 12px;
}

.carrousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carrousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.carrousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d2ae6d55;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    border: 2px solid #d2ae6d;
}

.carrousel-dot.active {
    background: #D2AE6D;
    transform: scale(1.18);
}






@media (min-width: 1024px) {
    header {
        grid-area: header;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }


    header .logo img {
        height: 11vh;
        width: 150px;
    }


    header .btn-menu button img {
        width: 30px;
        height: 30px;
    }

    /*nav*/

    .nav {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #F5EBE0;
        box-shadow: 0 4px 16px rgba(210, 174, 109, 0.15);
        z-index: 1000;
        border-bottom: 2px solid #D2AE6D;
        font-family: 'Poppins', sans-serif;
        height: 10vh;
    }


    .nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }

    .nav ul li {
        margin: 0;
        padding: 0;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav ul li a {
        text-decoration: none;
        color: #4A3A2A;
        font-weight: 500;
        font-size: 1.1em;
        padding: 8px 18px;
        border-radius: 20px;
    }


    main .banner {
        min-width: 100%;
        align-items: start;
        min-height: 89vh;
    }

    main .banner .info-banner {
        margin-left: 20vh;
    }

    main .banner {
        background-position: 50% 50%;
    }

    main .tratamientos-main .contenedor-tarjetas {
        flex-direction: row;
        flex-wrap: nowrap;
        padding-bottom: 20px;
        justify-content: center;
    }

    main .tratamientos-main .contenedor-tarjetas .tarjetas-tratamientos {
        max-width: 30vh;
        min-height: 35vh;
        margin-inline: 10px;
    }

    main .tratamientos-main .contenedor-tarjetas .tarjetas-tratamientos img {
        height: 8vh;
        width: 8vh;
        margin-bottom: 20px;
    }

    main .tratamientos-main .contenedor-tarjetas .tarjetas-tratamientos h3 {
        min-height: 8vh;
        min-width: 4vh;
        margin-bottom: 3vh;
    }




    main .implante-cirugia-main {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        height: 50vh;
    }

    main .implante-cirugia-main .info-implante-cirugia-main {
        text-align: start;
    }

    main .implante-cirugia-main .info-implante-cirugia-main p {
        margin-bottom: 50px;
    }

    .implante-cirugia-main .antesdespues-implante-cirugia-main img {
        height: 90%;
        width: 100%;
    }

    main .nosotros-main {
        display: flex;
        flex-direction: row;
    }

    main .nosotros-main .info {
        text-align: start;
        padding-inline-start: 5%;
        padding-inline-end: 0;
    }

    main .nosotros-main .img-nosotros {
        height: 50vh;
        margin-bottom: 0;
    }

    main .nosotros-main .img-nosotros img {
        height: 90%;
        width: 70%;
    }

    main .nuestro-equipo .integrantes {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    main .nuestro-equipo .integrantes .integrante {
        margin-inline: 20px;
        width: 60vh;
        height: 70vh;
    }

    main .nuestro-equipo .integrantes .integrante img {
        width: 60%;
        height: 70%;
    }

    main .dudas-main {
        padding-bottom: 40px;
    }

    main .dudas-main h2 {
        text-align: start;
        margin-left: 15px;
    }

    main .dudas-main .pregunta .respuesta {
        margin-left: 10px;
    }

    .tratamientos-titulo-section {
        text-align: center;
        margin: 0;
        font-size: 2.5rem;
        color: #4A3A2A;
        font-weight: 600;
    }

    .tratamientos-titulo-section h2 {
        margin: 0;
    }

    .carrousel-container {
        width: 100%;
        max-width: 600px;
        margin: 10px auto 32px auto;
        position: relative;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        padding: 16px 0 32px 0;
    }

    .carrousel-slides {
        position: relative;
        width: 100%;
        height: 600px;
    }

    main .linea-productos .productos-container {
        padding-left: 20px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    main .linea-productos .productos-container .producto {
        margin-bottom: 20px;
        width: 33%;
    }

    main .linea-productos .productos-container .producto h3 {
        font-size: 1.2rem;
        height: 40px;
    }

    main .linea-productos .productos-container .producto p {
        font-size: 1rem;
        height: 40px;
        margin-bottom: 20px;
    }


    main .linea-productos .productos-container .producto img {
        width: 250px;
        height: 320px;

}

main .linea-productos .productos-container .producto hr{
    display: none;
}
}