/* ============================= */
/*       MOVIL FIRST             */
/* ============================= */

/* ============================= */
/*    HEADER Y MENÚ              */
/* ============================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(22, 51, 74, 0.8);
    backdrop-filter: blur(8px);
    padding: 1rem;
    z-index: 1001;
}

.logo img {
    height: 60px;
    width: auto;
}

.menu-toggle {
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--color-white);
    z-index: 1002;
}

.no-scroll {
    overflow: hidden;
    height: 100vh;
}

nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-primary);
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 1rem;
    transition: right 0.3s ease;
    z-index: 1003;
}

.nav-open nav {
    right: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 1rem;
}

nav a {
    position: relative;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    padding: 0.6rem;
    border-radius: var(--border-radius);
    transition: background var(--transition);
    font-family: var(--fiont-man);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 3px;
    background: var(--color-bg);
    left: 0;
    bottom: 7px;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

nav a.active {
    color: #04c0f5;
}

nav a.active::after {
    width: 100%;
    background: #04c0f5;
}

.login-btn:hover::after {
    width: 0%;
}

.login-btn {
    color: var(--color-white);
    font-weight: bold;
    padding-left: 10px;
    border-left: none;
    transition: color 0.3s ease;
}

.login-btn:hover {
    color: #04c0f5;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9;
    display: none;
}

#overlay.activo {
    display: block;
}

/* ====== EFECTO SHRINK ====== */
header.shrink {
    padding: 0.3rem 0.8rem;
    background-color: rgb(22 51 74 / 79%);
    transition: all 0.3s ease;
}

header.shrink .logo img {
    height: 60px;
    transition: height 0.3s ease;
}

header.shrink nav a {
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 400;
}

    /* ============================= */
    /*    WHATSAPP-ICON              */
    /* ============================= */

.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.8s ease;
    transition: transform 0.3s ease;
}

.fa-xl {
    font-size: 2.5em;
}

/* Ocultar tooltip en mobile/tablet */
.tooltipp {
    display: none !important;
}

/* === ANIMACIÓN === */
@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==================================== */
/*    Sección introducción orden online */
/* ==================================== */
.seccion-introduccion-orden {
    margin-top: 6rem;
    padding: 2rem 1rem;
    text-align: center;
}
/* ============================= */
/*    Sección Orden Online       */
/* ============================= */
.my-3 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
.me-4 {
    border-radius: 6px;
    font-size: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    
}
.me-4 p{
    margin: 0;
    padding: 0;
    display: flex;
    font-size: 0.5;
    
}
.accordion-body {
    display: flex;
    
    justify-content: center;
    flex-direction: column;
}
.fila-numeros input {
    display: none;
}
.fila-numeros-16 input {
    display: none;
}
.fila-numeros {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0px;
    justify-content: center;
    max-width: 180px;
    margin: auto;
    
}
.fila-numeros-16 {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    justify-content: center;
    align-items: center;
    max-width: 250px;
    margin: auto;
}
.fila-numeros-16 label {
    border: 1px solid #66acb2;
    
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: #3a3957;
    border: 1px solid #66acb2;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background-color: #fcfcfd;
    transition: background 0.3s, border-color 0.3s;
    

}
.fila-numeros label {
    border: 1px solid #66acb2;
    width: 25px;
    height: 25px;
    color: #3a3957;
    border: 1px solid #66acb2;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}
input[type="checkbox"] {
    margin-right: 5px;
    width: 15px;
    height: 15px;
    background-color: #fcfcfd;
    border: solid 1px #66acb2 !important;
    border-radius: 3px;
    
}
.text-start {
    text-align: center;
}
.col-md {
    display: flex;
    flex-direction: column;
}
.col-md input {
    flex: 1;
    border: 1px solid #99d6dd;
    border-radius: 6px;
    font-size: 1rem;
}
.seccion-ordenonline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5rem;
    padding: 2rem 1rem;
    background: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(22, 51, 74, 0.12);
    max-width: 900px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.seccion-ordenonline h1,
.seccion-ordenonline h2,
.seccion-ordenonline h3,
.seccion-ordenonline h4 {
    color: #16334a;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.seccion-ordenonline h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

.seccion-ordenonline h2 {
    font-size: 1.4rem;
    margin-top: 1.5rem;
}

.seccion-ordenonline h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
}

.seccion-ordenonline p {
    color: #2d3e50;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.seccion-ordenonline form {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(22, 51, 74, 0.1);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.seccion-ordenonline label {
    font-family: 'Roboto', Arial, sans-serif;
    color: #16334a;
    font-size: 1rem;
    display: inline-block;
}
.caja-ingresar-orden {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;

    align-items: center;
}
#estudio-cefalo-compu label {
    font-size: 0.9rem;
    padding: 5px;
}
#modelos-digitales {
    font-size: 0.9rem;
    padding: 5px;
}

.seccion-ordenonline input[type="text"],
.seccion-ordenonline input[type="email"],
.seccion-ordenonline input[type="tel"],
.seccion-ordenonline input[type="date"],
.seccion-ordenonline textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #99d6dd;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: #f4f8fb;
    transition: border-color 0.2s;
}

.seccion-ordenonline input[type="text"]:focus,
.seccion-ordenonline input[type="email"]:focus,
.seccion-ordenonline input[type="tel"]:focus,
.seccion-ordenonline input[type="date"]:focus,
.seccion-ordenonline textarea:focus {
    border-color: #04c0f5;
    outline: none;
}

.seccion-ordenonline input[type="checkbox"] {
    accent-color: #04c0f5;
    margin-right: 0.3rem;
    transform: scale(1.2);
    vertical-align: middle;
}

.sacar-color {
    background-color: transparent !important;
    
}


.seccion-ordenonline .my-3,
.seccion-ordenonline .row,
.seccion-ordenonline .col-md,
.seccion-ordenonline .bg-primary-subtle {
    margin-bottom: 1rem;
}

.seccion-ordenonline button[type="submit"] {
    background: #04c0f5;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.8rem 1.6rem;
    font-size: 1.1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    box-shadow: 0 2px 8px rgba(22, 51, 74, 0.08);
    transition: background 0.2s;
}

.seccion-ordenonline button[type="submit"]:hover {
    background: #16334a;
}

@media (min-width: 768px) {
    .seccion-ordenonline {
        padding: 3rem 2rem;
    }
    .seccion-ordenonline form {
        padding: 2.5rem 2rem;
    }
}


/* ============================= */
/*    FOOTER                     */
/* ============================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer {
    position: relative;
    background-image: url('../images/img21.JPG');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    font-family: var(--fiont-man);
    padding: 2rem 1rem;
    z-index: 0;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgb(0 0 0 / 78%);
    z-index: -1;
}

.footer-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-section {
    border-top: 1px solid var(--color-primary);
    padding-top: 1rem;
}

.footer-toggle {
    background: none;
    border: none;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
    cursor: pointer;
    color: var(--color-white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    font-family: var(--fiont-man);
}

.footer-content-sobre,
.footer-content-contacto {
    display: none;
    margin-top: 0.5rem;
    animation: fadeIn var(--transition);
}

.footer-section.active .footer-content-sobre,
.footer-section.active .footer-content-contacto {
    display: block;
}

.footer-text {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: var(--color-white);
}

.footer-link {
    position: relative;
    display: inline-block;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
    margin-bottom: 1rem;
    font-family: var(--font-secondary);
    font-weight: 300;
    letter-spacing: 2px;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #99d6dd;
    transition: width 0.4s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* Estilo cuando está en la página activa */
.footer-link.active {
    color: #00bcd4; /* Color del texto al estar activo */
}

.footer-link.active::after {
    width: 100%;
    background-color: #00bcd4;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-form input,
.footer-form textarea {
    padding: 0.5rem;
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--color-white);
    color: var(--text-primary);
}

.footer-form textarea {
    resize: none;
    height: 120px;
}

.footer-form button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.6rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
    margin-top: 0.5rem;
    transition: background-color var(--transition);
    width: 100px;
    font-family: var(--font-secondary);
    font-size: 1rem;
}

.footer-form button:hover {
    background-color: var(--color-hover-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.social-icons a {
    color: var(--color-white);
    transition: color var(--transition);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.social-icons a:hover {
    color: var(--color-hover-primary);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--color-white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* ============================= */
/*    TABLET                     */
/* ============================= */

@media (min-width: 768px) and (max-width: 1023px) {

    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .footer-section {
        width: 45%;
        border-top: none;
        margin-right: 30px;
        margin-left: 30px;
    }

    .footer-toggle {
        font-size: 1.7rem;
        cursor: default;
    }

    .footer-content-sobre,
    .footer-content-contacto {
        display: block !important;
    }

    .footer-logo {
        text-align: left;
    }

    .footer-toggle i {
        display: none;
    }

    .footer-link{
        font-size: 1.4rem;
    }

    .footer-text{
        font-size: 1.3rem;
    }

    .social-icons{
        font-size: 2rem;
        gap: 2rem;    
    }
}

/* ============================= */
/*    ESCRITORIO                 */
/* ============================= */

@media (min-width: 1024px) {
    /* ============================= */
    /*    WHATSAPP-ICON              */
    /* ============================= */

    .tooltipp {
        display: inline-block !important;
        position: absolute;
        right: 70px;
        background-color: #25d366;
        color: var(--color-white);
        padding: 6px 12px;
        border-radius: 6px;
        white-space: nowrap;
        font-size: 14px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(10px);
        transition: all 0.3s ease;
        margin-right: 20px;
        font-weight: bold;
    }


    .whatsapp-float{
        width: 75px;
        height: 75px;
    }

    .fa-xl {
    font-size: 3.5em;
    }

    .whatsapp-float:hover .tooltipp {
        opacity: 1;
        transform: translateY(0);
    }

    .whatsapp-float:hover {
        transform: scale(1.1);
    }
    .menu-toggle,
    .close-btn,
    #overlay {
        display: none !important;
    }
    nav {
        position: static;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 2rem;
        background-color: transparent;
        height: auto;
        width: auto;
        padding: 0;
        right: auto;
        transition: none;
    }
    nav a{
        font-size: 1rem;
    }

    nav a.active {
        color: #04c0f5;
    }

    nav a.active::after {
        width: 100%;
        background: #04c0f5;
    }

    .menu-toggle,
    .close-btn,
    .overlay {
        display: none !important;
    }

    .logo img {
        height: 70px;
    }
    .login-btn {
        border-left: 3px solid rgba(255, 255, 255, 0.6);
        padding-left: 1rem;
        border-radius: 0px;
    }
    /* ==================================== */
    /*  Sección introducción orden online   */
    /* ==================================== */
    .seccion-ordenonline {
        margin-bottom: 5vh;
    }
    .intro-section {
        padding: 2rem 0;
        background-color: var(--color-background);
    }

    .intro-section h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: var(--text-primary);
    }

    .intro-section p {
        font-size: 1.2rem;
        color: var(--text-secondary);
    }

    /* ============================= */
    /*    FOOTER                     */
    /* ============================= */
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        gap: 3rem;
    }

    .footer-section {
        width: 45%;
        border-top: none;
        margin-right: 30px;
        margin-left: 30px;
    }

    .footer-toggle {
        font-size: 1.7rem;
        cursor: default;
    }

    .footer-link{
        font-size: 1.5rem;
    }

    .footer-text{
        font-size: 1.3rem;
    }

    .social-icons{
        font-size: 2rem;
        gap: 2rem;    
    }

    .footer-content-sobre,
    .footer-content-contacto {
        display: block !important;
    }

    .footer-logo {
        text-align: left;
    }

    .footer-toggle i {
        display: none;
    }
}
