body{
    padding: 0;
    margin: 0;
    background-color: #e2eaff;
    font-family: 'Verdana, Geneva, Tahoma, sans-serif';
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/*----------------------------barra de navegación---------------------------*/
header{
    width: 100%;
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
    justify-content: space-between;
    align-items: center;
    animation: nav-mov both;
    animation-timeline: scroll();
    animation-range: 10px 250px;
    box-shadow: 0px 0px 20px #000e;
}

.logo{
    color: #fff;
    font-weight: bold;
    font-size: 25px;
}

nav{
    display: flex;
    gap: 20px;
}

nav a{
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: 0.7s;
    border: #fff 2px solid;
    padding: 3px 8px;
    border-radius: 20px;
    opacity: 0.7;
}

nav a:hover{
    color: #0e3379;
    background-color: #fff;
    transition-duration: 0.2s;
    text-shadow: 0px 0px 4px #0e3379aa;
    box-shadow: 0px 0px 15px #fffa;
    opacity: 1;
}

@keyframes nav-mov{
    from{
        background-color: #0e3379;
        padding: 20px 8px;
    }
    to{
        background-color: #0e337999;
        padding: 8px 4px;
    }
}
/*----------------------------cuerpo banner-----------------------------*/
h1{
    z-index: 10;
    text-align: center;
    position: absolute;
    color: #ccc;
    font-size: 40px;
    text-shadow: 0px 0px 10px #42a6;
    top: 50%;
    left: 10%;
    view-timeline-axis: block;
    animation-name: slideIn;
    animation-duration: 1s;
    animation-fill-mode: both;
}
.banner__wrap{
    display: flex;
    justify-content: center;
    margin: 0;
}
.banner__container-p{
    margin: 0;
    max-height: 563px;
    width: 100%;
}
.banner__img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}
/*------------------------------cuerpo productos-----------------------------*/
.faq{
    background-color: #1b233f;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    container-name: faq;
    container-type: inline-size;
    justify-content: space-evenly;
}
.faq__titulo{
    font-size: 3rem;
    margin-bottom: 0;
}
.faq__container{
    display: grid;
    grid-template-columns: 1fr;
    max-width: 90vw;
    margin: auto;
    width: 100%;
    gap: 12px;
    padding: 12px;
    min-height: 90vh;
}
.faq__box{
    background-image: linear-gradient(#0009,#0009), url("Pagina_preguntas.jpg");
    background-position: center;
    background-size: cover;
    display: grid;
    place-content: center;
    border-radius: 10px;
    animation: mostrar both;
    animation-timeline: view();
    animation-range: cover 10% cover 40%;
}
.faq__box:hover{
    opacity: 0.75;
    outline: 2px solid #fff9;
}
.faq__pregunta{
    padding: 0;
}
/*-----------------------------circulo-------------------------*/

.circulo__wrap{
    height: 115vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: radial-gradient(#0003, #000a),url(Pagina_preguntas.jpg);
    background-position: center;
    background-size: contain;
}

.caja {
    width: 90%;
    height: 80%;
    background-color: transparent;
    border: 1px solid #aaa;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0px 0px 10px #fff7;
}

.circulo-grande {
    width: 250px;
    height: 250px;
    background-color: #01a2ff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 10px #fff7;
    cursor: pointer;
    z-index: 2;
    overflow: hidden;
    background-image: url("Pagina_farmacia.png");
    background-position: center;
    background-size: cover;
}

.circulo-pequeno {
    width: 125px;
    height: 125px;
    background-color: #01a2ff44;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 0 6px #0002;
    overflow: hidden;
    z-index: 10;
}

.circulo-pequeno:hover{
    width: 225px;
    height: 225px;
    box-shadow: 0 0 10px #0008;

}

.circulo-pequeno img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.circulo-pequeno.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/*--------------------cuerpo servicios-------------------*/

.caja__servicios {
    display: flex;
    flex-wrap: wrap;
    min-height: 300px;
    background-color: #1b233f;
    justify-content: center;
    width: 100%;
    gap: 25px;
    padding: 35px 0;
}
.servicios__carta {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 300px;
    view-timeline-name: --cajaTimeline;
    view-timeline-axis: block;
    animation-timeline: --cajaTimeline;
    animation-name: slideIn;
    animation-duration: .3s;
    animation-fill-mode: both;
    animation-range: entry 0% cover 40%;
    overflow: hidden;
}
.servicios__carta img{
    max-width: 100%;
    height: auto;
}

.servicios__carta:nth-child(2) {
    animation-delay: 0.15s;
}
.servicios__carta:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateX(-100vw);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
.servicios__carta:hover{
    box-shadow: 5px 5px 12px #000a;
}
/*--------------------servicios banner-------------------*/

.banner-container {
    width: 100%;
    max-width: 1000px;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin: 0px auto;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.banner-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.banner-container img.active {
    opacity: 1;
}

.controls {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.controls button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    }

    .indicators {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
}

.indicators span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicators span.active {
    background-color: white;
}

/*------------------------pie contactos---------------*/
.footer{
    margin: 0;
    min-height: 200px;
    background-color: #0e3379;
    bottom: 0;
    color: #ffff;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.contactos{
    padding: 20px 10px;
    border: 3px #fff solid;
    border-radius: 12px;
    width: 90%;
    margin: auto;
    text-align: center;
}
.contactos__list{
    gap: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    justify-content: center;
}
.contactos__list-item{
    border: 1px #fff solid;
    border-radius: 15px;
    view-timeline-name: --desplasar-y;
    view-timeline-axis: block;
    animation-timeline: --desplasar-y;
    animation-name: desplasar-y;
    animation-duration: .9s;
    animation-fill-mode: both;
    animation-range: entry 0% cover 30%;
}
.contactos__list-item a{
    font-size: 20px;
    text-decoration: none;
    color: #fff;
}

.item-full{
    grid-column: span 3;
}

.item-circle{
    position: relative;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    margin: auto;
    overflow: hidden;

}

.contactos__list-item a img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer__infbol{
    background-color: #1b233f;
    height: 25vh;
    text-align: center;
    color: #fffc;
    padding: 25px 0;
    font-size: 25px;
}
/*---------------------------animaciones--------------------------*/
@keyframes mostrar{
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

@keyframes desplasar-y{
    from{
        opacity: 0;
        transform: translateY(50vh);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}