﻿body {
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
}

#desktop-header {
    top: 0;
    left: 0;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-color: #06ca94;
    background: linear-gradient( 105deg, rgba(67, 67, 113, 1) 0%, rgba(83, 83, 210, 1) 100% );
}

#mobile-header {
    top: 0;
    left: 0;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-color: #06ca94;
    background: linear-gradient( 105deg, rgba(67, 67, 113, 1) 0%, rgba(83, 83, 210, 1) 100% );
    animation-name: aparecerVertical;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

.animacion {
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animacion.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: none;
}

.animacion:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

.onfarma-largo {
    height: 55px;
    background-size: 100% 100%;
    width: 20%;
}

.navbar {
    width: 60%;
}

.navbar a {
    width: 46px;
    color: #e8f1f2;
    font-size: 16px;
    letter-spacing: 0;
    line-height: normal;
    white-space: nowrap;
    margin-left: 2%;
    margin-right: 2%;
}

.text-wrapper-10 {
    font-weight: 800;
    color: var(--colecci-n-variable-color-texto);
    font-size: 18px;
    letter-spacing: 0;
    line-height: normal;
    margin-bottom: 0.8em;
}

.text-wrapper-11 {
    font-weight: 400;
    color: var(--colecci-n-variable-color-texto);
    font-size: 18px;
    letter-spacing: 0;
    line-height: normal;
}

.carg-tu-receta-en {
    margin-top: 1em;
    margin-left: 4%;
    font-weight: 400;
    color: #ffffff;
    font-size: 2em;
    letter-spacing: 0;
    line-height: normal;
}

.carg-tu-receta-en .text-wrapper {
    font-weight: 800;
}

.ingres-f-cilmente {
    margin-left: 4%;
    font-family: "Plus Jakarta Sans-Regular", Helvetica;
    font-weight: 400;
    color: #ffffff;
}

.ingres-f-cilmente .text-wrapper-2 {
    font-weight: 400;
    color: #ffffff;
    font-size: 1em;
    letter-spacing: 0;
}

.ingres-f-cilmente .text-wrapper-3 {
    font-weight: 600;
}

.text-wrapper-4 {
    font-weight: 400;
    color: #e8f1f2;
    font-size: 1em;
    letter-spacing: 0;
    line-height: normal;
    white-space: nowrap;
    cursor: pointer;
}

text-wrapper-8 {
    font-size: 1em;
}

group-8 {
    margin-top: 1%;
    font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
}

titulo-farmacia {
    padding: 2em;
    border-bottom: 1em;
}

.text-wrapper-16 {
    font-weight: 800;
    font-size: 1.374em;
    color: #5151c9;
}

.text-wrapper-17 {
    font-weight: 800;
    color: #30304a;
}

.text-wrapper-18 {
    font-size: 1.375em;
    color: #30304a;
    line-height: normal;
}

.text-wrapper-19 {
    font-weight: 400;
    color: var(--colecci-n-variable-color-texto);
    font-size: 1em;
    letter-spacing: 0;
    line-height: normal;
}

.text-wrapper-21 {
    font-weight: 800;
    color: var(--colecci-n-variable-bot-n-primario);
    font-size: 1.563em;
    letter-spacing: 0;
}

.text-wrapper-mobile-21 {
    font-weight: 800;
    color: var(--colecci-n-variable-bot-n-primario);
    font-size: 1.2em;
    letter-spacing: 0;
    line-height: normal;
    margin-bottom: 0.6em;
}

.en-onfarma {
    font-weight: 400;
    color: var(--colecci-n-variable-color-texto);
    letter-spacing: 0;
    margin-top: 0.6em;
    line-height: 1.2;
}

.en-onfarma .text-wrapper-22 {
    color: #5151c9;
}

.en-onfarma .text-wrapper-23 {
    font-weight: 800;
    color: #5151c9;
}

.en-onfarma .text-wrapper-24 {
    color: #30304a;
}

.en-onfarma .text-wrapper-25 {
    font-weight: 700;
    color: #30304a;
}

.text-wrapper-26 {
    font-weight: 700;
    font-style: italic;
    color: #30304a;
}

.text-wrapper-29 {
    font-weight: 400;
    color: var(--colecci-n-variable-color-texto);
    font-size: 18px;
    text-align: center;
    letter-spacing: 0;
    line-height: normal;
}

.logo {
    justify-content: center;
    align-items: center;
    text-align: center;
    display: grid
}

.logo .logotipo {
    padding-bottom: 5%;
}

.app {
    display: flex;
    justify-content: center;
    object-fit: cover;
    padding-bottom: 10%
}

.app .appstore {
    width: 175px;
    height: 79px;
}

.app .google-play-badge {
    width: 186px;
    height: 76px;
}

.button {
    width: 100%;
    position: relative;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    background-color: #fff;
    height: 2.688em;
    padding: 3% 8% 3% 8%;
}

button span {
    position: relative;
    font-size: 1em;
    font-weight: 500;
    color: #484890;
    text-align: left;
    display: inline-block;
    height: 1.438em;
}

.navbar1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
}

@media(min-width: 900px) {

    .logo .titulo {
        font-weight: 800;
        color: #4a4a9a;
        font-size: 1.563em;
        letter-spacing: 0;
        line-height: normal;
        padding-bottom: 3%;
    }

    .logo .subtitulo {
        font-style: italic;
        color: var(--colecci-n-variable-color-texto);
        font-size: 1.125em;
        font-weight: 400;
        letter-spacing: 0;
        line-height: normal;
        padding-bottom: 5%;
    }

    footer {
        background-color: #30304b;
        color: #FFFFFF;
        height: 126px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    footer .col-1 {
        width: 30%;
    }

    footer .col-2 {
        width: 40%;
    }

    footer .col-3 {
        width: 30%;
    }

    .rectangle-2 {
        width: 20%;
    }

    summary {
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5em 0.8em;
        font-weight: bold;
        border-bottom: 1px solid #CACACA;
        font-size: 1em;
    }

    summary::after {
        content: '';
        width: 1em;
        height: 0.6em;
        background: url('../svg/flecha-abajo.svg') no-repeat;
        background-size: cover;
        transition: 0.2s;
    }

    .preguntas-frecuentes {
        margin-top: 8%;
        margin-left: 15%;
        margin-right: 15%;
    }

    .preguntas-frecuentes .titulo {
        color: #5151c9;
        font-weight: 800;
        font-size: 1.563em;
        text-align: left;
        margin-bottom: 2%;
    }

    .preguntas-frecuentes .label {
        text-align: left;
        margin-bottom: 2%;
        margin-top: 2%;
        padding: 2%;
        background-color: #F4F4F4;
        border-radius: 4px;
        line-height: normal;
    }

    #desktop-header {
        display: display;
    }

    #mobile-header {
        display: none;
    }


    .floating-button {
        display: none;    
    }
}

@media(max-width: 900px) {

    #initial-button {
        padding: 1em 1em 1em 1em;
        border-radius: 4px;
        background-color: #FFF;
        margin: 0 auto 0 auto;
        margin-top: -1.4em;
        width: fit-content;
        display: block;
        color: white;
        border: none;
        border-radius: 4px;
        font-size: 1em;
        cursor: pointer;
        transition: background-color 0.3s;
        box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    }

    #floating-button {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #FFF;
        border: none;
        border-radius: 4px;
        font-size: 1em;
        cursor: pointer;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
        padding: 1em 1em 1em 1em;
        border-radius: 4px;
    }

    .show-floating {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    #desktop-header {
        display: none;
    }

    #mobile-header {
        display: block;
    }

    .preguntas-frecuentes {
        margin-top: 8%;
    }

    summary {
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 400;
        border-bottom: 1px solid #CACACA;
        font-size: 1em;
        padding-top: 1em;
        padding-bottom: 1em;
    }

    summary::after {
        content: '';
        width: 0.6em;
        height: 0.4em;
        background: url('../svg/flecha-abajo.svg') no-repeat;
        background-size: cover;
        transition: 0.2s;
    }


    .logo .titulo {
        font-weight: 800;
        color: #4a4a9a;
        font-size: 1.2em;
        letter-spacing: 0;
        line-height: 0.5;
    }

    .logo .subtitulo {
        font-style: italic;
        color: var(--colecci-n-variable-color-texto);
        font-size: 0.9em;
        font-weight: 200;
        letter-spacing: 0;
        line-height: 0.3;
    }

    footer {
        background-color: #30304b;
        color: #FFFFFF;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-weight: 300;
        font-size: 0.9em;
    }

    footer .col-1 {
        width: 100%;
    }

    footer .col-2 {
        width: 100%;
        margin-top: 1em;
    }

    footer .col-3 {
        width: 100%;
    }

    .rectangle-2 {
        width: 100%;
    }

    .preguntas-frecuentes {
        margin-top: 8%;
        margin-left: 1em;
        margin-right: 1em;
    }

    .preguntas-frecuentes .titulo {
        color: #5151c9;
        font-weight: 800;
        font-size: 1.357em;
        text-align: left;
        margin-bottom: 2%;

    }

    .preguntas-frecuentes .label {
        text-align: left;
        margin-bottom: 3%;
        margin-top: 3%;
        padding: 2%;
        background-color: #F4F4F4;
        border-radius: 4px;
        font-size: 1em;
        font-weight: 400;
        line-height: normal;
    }

    .main-header {
        padding: 1rem;
        color: white;
        position: sticky; 
        top: 0;
        z-index: 1000;
    }

    .main-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 0 1rem;
    }

    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        position: relative;
        z-index: 1100;
    }

    .hamburger-menu .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-menu::after active .bar {
        color: red;
    }

    .hamburger-menu {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        background: #FFF;
        width: 100%;
        height: 100vh;
        padding: 4rem 1rem 1rem;
        transition: right 0.4s ease-in-out;
        z-index: 1050;
        display: flex;
        align-items: center;
        padding-top: 5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.no-scroll {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .nav-list li {
        margin-bottom: 0;
    }

    .nav-list li:not(.menu-footer-item) {
        margin-bottom: 3rem;
    }

    .nav-list li a:not(.hace-pedido, #terminosCondiciones) {
        color: #5151c9;
        text-align: center;
        padding: 1rem;
        background-color: #F6F6F6;
        border-radius: 4px;
        font-weight: 600;
        gap: 5px;
        text-decoration: none;
        width: 300px;
        align-items: center;
        display: inline-block
    }

    .nav-list li a:not(.link, #terminosCondiciones) {
        color: #FFF;
        background-color: #5151c9;
        padding: 1em;
        text-align: center;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 5px;
        text-decoration: none;
        border-radius: 4px;
        display: inline-block;
        width: 300px;
    }

    .icono-desplegable {
        width: 1em;
        height: 1em;
    }

    .nav-list li:last-child a {
        border-bottom: 1px solid #444;
    }

    .menu-footer-item a {
        border-bottom: none !important;
    }

    .menu-footer-item {
        margin-top: auto;
        padding-top: 1rem;
    }

    .menu-footer-item a {
        border-radius: 0;
        color: #5151c9;
    }

    .nav-list.active {
        right: 0;
    }

    .img-desplegable {
        opacity: 0;
    }

    .img-desplegable.active {
        opacity: 1;
        z-index: 1100;
        visibility: visible;
        position: relative;
        transition: all 0.5s ease-in-out;
    }

    .img-header {
        opacity: 1;
    }

    .img-header.none {
        display: none;
    }

    .hamburger-menu.active ~ .img-desplegable {
        opacity: 1;
        visibility: visible;
    }

    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #5151c9;
    }

    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #5151c9;
    }


    details[open] > summary {
        color: #30353b;
        border-bottom: 1px solid #CACACA;
    }

    details[open] > summary::after {
        transform: rotate(-180deg);
    }

    summary::-webkit-details-marker {
        display: none;
    }

    summary {
        color: #30353b;
    }

    details[open] summary {
        border-radius: 0 0 0 0;
    }

    details {
    }

    * {
        box-sizing: border-box;
    }

    article > *:first-child {
        margin: 0;
    }

    article > * + * {
        margin: 0 0 0 0;
    }

    pre {
        color: white;
        padding: 1em;
        border-radius: 5px;
    }

    article {
        padding: 1em;
        margin: 0;
    }

    details code {
        font-size: 1.1em;
    }
}
