@import url('https://fonts.googleapis.com/css2?family=Margarine&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playpen+Sans:wght@100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap');


h1,
h2 {
    font-family: Margarine;
}

h3 {
    font-family: "Sour Gummy", sans-serif;
    font-weight: 800;
    color: #ec4899;
}

p {
    font-family: "Playpen Sans", cursive;
    font-weight: 500;
}

.options:hover {
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;

}

a {
    text-decoration: none;
    font-family: "Sour Gummy", sans-serif;
}


.sub-menu {
    list-style: none;
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
    padding: 0.4rem 0;
    z-index: 20;
}

.matriculas:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.sub-menu li {
    width: 100%;
    margin: 0;
}

.sub-menu li button {
    width: 100%;
    border: none;
    background: transparent;
    color: #111827;
    font-family: inherit;
    font-size: 0.95rem;
    text-align: left;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.sub-menu li:hover {
    background: rgba(236, 72, 153, 0.1);
}

.drop-down {
    position: relative;
}

.drop-down > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.drop-down > .nav-link::after {
    content: "▾";
    font-size: 0.8rem;
    opacity: 0.85;
}

.drop-down:hover .sub-menu {
    display: block;
}

.hero img.movil {
    display: none !important;
}

.nav #menu-open-button,
.nav #menu-close-button {
    display: none;
}


@media only screen and (max-width: 768px) {
    .nav :where(#menu-close-button, #menu-open-button) {
        font-size: 28px;
        cursor: pointer;
    }

    .nav #menu-open-button {
        color: #ec4899;
        display: block;
        margin-left: auto;
    }

    .nav #menu-close-button {
        position: absolute;
        top: 20px;
        right: 20px;
        color: #a21c5f;
        display: block;
        z-index: 110;
    }

    .nav .nav-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 0;
        top: 0;
        margin: 0;
        padding: 0;
        width: 280px;
        height: 100vh;
        background-color: #f6f6f6;
        z-index: 100;
        box-shadow: 10px 0 20px rgba(0,0,0,0.1);
        gap: 20px;
    }

    .nav .nav-menu.open {
        display: flex;
    }

    .nav .nav-menu.open .nav-item {
        background: #ec4899;
        width: 85%;
        height: 50px;
        border-radius: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .nav .nav-menu.open .nav-item:nth-child(even) {
        background: #16a34a;
    }

    .nav .nav-menu.open .nav-link {
        color: white !important;
        font-weight: 600;
        font-size: 16px;
        text-align: center;
        font-family: "Margarine", cursive;
        margin-top: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav .nav-link {
        text-transform: uppercase;
    }

    html,
    body {
        width: 100vw;
        min-width: 0;
        max-width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    #top {
        width: 100vw;
        min-width: 0;
        max-width: 100vw;
        height: auto;
        gap: 10px;
        padding: 0 10px;
        justify-content: flex-start;
    }

    .logo {
        gap: 15px;
        flex-direction: row;
        align-items: center;
    }

    .logo h1 {
        font-size: 20px;
        text-align: center;
        width: 100%;
    }

    .logo img {
        height: 60px;
        width: auto;
    }

    #top > a {
        display: none !important;
    }

    .logo a {
        display: flex !important;
        align-items: center;
        gap: 8px;
    }

    svg.cloud {
        width: 100vw !important;
        margin-top: -3px;
    }

    /*hero*/
    .hero {
        height: auto;
        width: auto;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin-top: 0;
    }


    .hero img.cLogo {
        height: auto;
        width: 20%;
        margin-left: 30px;
        margin-top: 0px;
    }

    .hero h1 {
        font-size: 50px;
        text-align: center;
        margin-top: 50px;
    }

    .hero p {
        width: 200px;
        text-align: center;
        margin-top: 200px;
        font-weight: 400;
        font-size: 12px;
    }

    .items {
        height: auto;
        max-height: 150vh;
        margin-top: 50vh;
    }

    /*contenido del contenido de la imagen que contiene las crayolas que contienen los titulos de los servicios*/

    .items {
        height: auto;
        min-height: 90vh;
        margin-top: -140px;
        gap: 10px;
    }

    .items .crayola img {
        width: auto;
        height: 60px;
        margin-left: 400px;
    }

    .crayola h2 {
        padding-bottom: 5px;
        margin-top: 15px;
        padding-inline: 10px;
        font-size: 10px;
        width: auto;
        margin-left: 400px;
        height: auto;
    }

    .crayola hr {
        width: auto;
        margin-left: 5px;
    }

    /*footer*/

    footer svg.cloud-bottom {
        width: 100vw;
        margin-top: 140px;
        padding-top: 5px;
    }


    footer a {
        margin-top: 30px;
        height: 25px;
        width: 25px;
    }

    #social {
        gap: 10px;
        margin-top: 40px;
    }

    .logof {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 40px;
        margin-top: -100px;
    }

    .logof img {
        width: 30px;
        height: auto;
    }

    .logof p {
        margin-top: 90px;
        font-size: 8px;
        width: 150px;
    }

    .phrase {
        display: none;
    }

    /* Modal responsive */
    #modal-container > div {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 90vw;
        right: auto;
        max-height: 80vh;
        overflow-y: auto;
    }

    #modal-container p{
        font-size: 15px;
    }

    #modal-close {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 24px;
    }
}