* {

    box-sizing: border-box;
    scroll-behavior: smooth;

}

h1 {

    color: #d93aaf;
}

body {

    margin: 0;
    font-family: sans-serif;
    background-color: #e2eaff;
    color: #101632dd;
    background: 
    /* Diagonal slices */
    radial-gradient(
        circle at 100% 50%,
        #ff00cc 0% 2%,
        #D75EA6 3% 5%,
        transparent 6%
    ),
    /* Offset dots */
    radial-gradient(
        circle at 0% 50%,
        #ff00cc 0% 2%,
        #D75EA6 3% 5%,
        transparent 6%
    ),
    /* Wave-like pattern */
    radial-gradient(ellipse at 50% 0%, #3300ff 0% 3%, transparent 4%) 10px
    10px,
    /* Scattered elements */
    radial-gradient(
        circle at 50% 50%,
        #D75EA6 0% 1%,
        #ff00cc 2% 3%,
        #cc00ff 4% 5%,
        transparent 6%
    )
    20px 20px,
    /* Background texture */
    repeating-linear-gradient(
        45deg,
        #fff6,
        #fff6 10px,
        #fff6 10px,
        #fff6 20px
    );
    background-size:
    50px 50px,
    50px 50px,
    40px 40px,
    60px 60px,
    100% 100%;
    animation: shift 15s linear infinite;
    
}

@keyframes shift {

    0% {

        background-position:
        0 0,
        0 0,
        10px 10px,
        20px 20px,
        0 0;

    }

    100% {

        background-position:
        50px 50px,
        -50px -50px,
        60px 60px,
        80px 80px,
        0 0;
    }

}


div, ul, nav, header, footer, a, li, label, p, h2, span {

    margin: 0;
    padding: 0;

}

:root {

    --primary-color: #009B57;
    --secondary-color: #B54A9F;
    --accent-color: #F9C915;
    --text-color: #222222;
    --bg-color: #FFFFFF;
    --highlight-color: #D75EA6;
    --card-bg-color: #FFF6;

}

/* ------ Header Section ----*/

.header {

    background-color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    container-type: inline-size;
    container-name: header;
    position: relative;
    z-index: 10;
    text-align: center;
    font-size: 20px;
    user-select: none;

}

.header__logo-container {

    max-width: 50%;
    width: 64px;
    margin: 10px 20px;
    border-radius: 500px;

}

.header__logo {

    height: 64px;
    width: 64px;
    border-radius: 100px;

}

.header__open-nav-button {

    color: var(--accent-color);
    font-size: 4rem;
    font-weight: 600;
    position: absolute;
    right: 10px;
    transition: background-color 0.5s ease;

}

.header__checkbox {

    display: none;

}

.header__open-nav-button:hover {

    background-color: var(--card-bg-color);
    border-radius: 12px;

}

.hover-underline {

    font-size: 2rem;
    color: #ffffff;
    position: relative;
    display: inline-block;

}

.hover-underline::after,
.hover-underline::before {

    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #cd8, #B54A9F);
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;

}

.hover-underline::before {

    top: -5px;
    transform-origin: left;

}

.hover-underline:hover::after,
.hover-underline:hover::before {

    transform: scaleX(1);

}


.header__nav {

    display: none;
    background-color: var(--primary-color);
    position: absolute;
    height: 100vh;
    width: 100vw;
    top: 0;
    z-index: -1;
    
}

.header__checkbox:checked ~ .header__nav {

    display: flex;

}

.header__nav-list {
    
    display: flex;
    flex-direction: column;
    height: 40vh;
    margin: auto;
    justify-content: space-evenly;

}

.header__nav-item {

    list-style: none;
    font-size: 1.5rem;

}
.header__nav-item a {

    color: var(--bg-color);
    text-decoration: none;
    transition: text-decoration 0.5s ease;

}

/* ------ Header Queries ------*/

@container header (min-width: 1000px) {

    .header__nav {

        display: block;
        position: static;
        height: auto;
        width: auto;
        justify-content: space-between;
        
    }

    .header__nav-list {

        flex-direction: row;
        height: auto;
        width: auto;
        gap: 20px;
        margin-right: 40px;

    }

    .header__open-nav-button {

        display: none;
    }

}

/* ---------- Header Ends ----------------*/

/* -------------- About us ---------------------------*/

.services-section {

    font-family: "Nunito", sans-serif;
    display: flex;
    justify-content: center;
    padding: 40px 0;
    padding-bottom: 0px;

}

.container {

    max-width: 1440px;
    padding: 0 20px;

}

.services__card {

    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fffc;
    border-radius: 12px;

}

.services__card-info {

    max-width: 900px;

}

.services__card-info h2 {

    font-size: 2rem;
    font-weight: 900;
    color: var(--highlight-color);
    margin-bottom: 1rem;

}

.services__card-info p {


    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;

}

.services__card-card {

    display: flex;
    justify-content: center;

}

.services__list {

    padding: 0 50px;
    list-style: linear-gradient(45deg, cyan, yellow);

}

.services__item {

    text-align: justify;

}

.services__item1 {

    text-align: left;
}

.service__card {

    width: 400px;
    border: 5px solid var(--accent-color);
    margin: 3rem 1rem;
    padding: 2rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    background-color: lightcyan;

}

.service__card i {

    font-size: 56px;
    color: var(--primary-color);

}

.service__card h3 {

    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);

}

.service__card ul li {

    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 1rem;

}

.service__card:hover {

    opacity: 0.75;

}

/* --- New Services----- */ 

.container__cards {
    
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    
}

.cards {

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;

}

.card:first-child {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/Conferencias.jpg");
    background-position: center;
    background-size: cover;

}

.card:nth-child(2) {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/trasper.jpg");
    background-position: center;
    background-size: cover;
    
}

.card:nth-child(3) {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/superacionpersonal.jpg");
    background-position: center;
    background-size: cover;
    
}

.card:nth-child(4) {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/problemasdeinfancia.jpg");
    background-position: center;
    background-size: cover;
    
}

.card:nth-child(5) {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/orientacionprofesional.jpg");
    background-position: center;
    background-size: cover;
    
}

.card:nth-child(6) {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/TDAH.jpg");
    background-position: center;
    background-size: cover;
    
}

.card:nth-child(7) {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/Autismo.jpg");
    background-position: center;
    background-size: cover;
    
}

.card:nth-child(8) {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/DMP.jpg");
    background-position: center;
    background-size: cover;
    
}

.card:nth-child(9) {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/Conferencias.jpg");
    background-position: center;
    background-size: cover;
    
}

.card:nth-child(10) {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/Tareasdirigidas.jpg");
    background-position: center;
    background-size: cover;
    
}

.card:nth-child(11) {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/Nivelacion.jpg");
    background-position: center;
    background-size: cover;
    
}

.card:last-child {

    background: linear-gradient(#FFF6,#fff9), url("../Servicios/serim/Vacacionales.jpg");
    background-position: center;
    background-size: cover;
    
}

/*.cards .red{

    background-color: var(--primary-color);

}


.cards .blue {

    background-color: var(--primary-color);

}

.cards .green {

    background-color: var(--secondary-color);

}*/

.cards .card {

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    height: 200px;
    width: 280px;
    border-radius: 10px;
    color: #000;
    cursor: grabbing;
    transition: 400ms;

}

.cards .card p.tip {

    font-size: 1.2em;
    font-weight: 700;

}

.cards .card p.second-text {

    font-size: .9em;

}

.cards .card:hover {

    transform: scale(1.1, 1.1);
}

.cards:hover > .card:not(:hover) {

    filter: blur(10px);
    transform: scale(0.9, 0.9);

}


/* ---------- Services Queries ----------------*/


@media screen and (max-width: 850px) {

    .services__card-card {

        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 900px;

    }
    
}

/* ----------------------- Portfolio Queries ---------------------*/

@container portfolio (min-width: 900px) {

    .portfolio__project-container {

        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));

    }

    .portfolio__project:first-child {

        grid-column: span 2;

    }

}

@container portfolio (min-width: 900px) {

    .portfolio__project-container {

        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));

    }

    .portfolio__project:first-child {

        grid-column: span 2;

    }
    
}

@container portfolio (min-width: 900px) {

    .portfolio__project-container {

        grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));

    }

    .portfolio__project:first-child {

        grid-column: span 2;

    }

}

@container portfolio (min-width: 81.25rem) {

    .portfolio__project-container {

        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    }

    .portfolio__project:first-child {

        grid-column: span 2;
        grid-row: span 2;

    }
    
}

/* ------------------ Portfolio Ends ----------------------*/


/* ------------------ footer-section ----------------------*/

.footer {

    background-color: var(--highlight-color);
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    container-name: footer;
    container-type: inline-size;


}

.footer__container {

    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;

}

.footer__info {

    max-height: 500px;
    font-size: 1.1rem;
    color: #e2eaff;
    border-left: 5px solid var(--accent-color);
    margin: 5px;
    padding: 20px;

}

.footer__info h2 {

    text-align: center;
    color: var(--bg-color);

}

.footer__logo-container {

    display: flex;
    justify-content: center;
    gap: 20px;

}
        
.footer__logo-container a img {

    width: 50px; /* Tamaño de los logotipos */
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: contain;
    align-items: center;

}

.footer__logo-container a img:hover {
    
    transform: scale(1.1);

}

/* ------------------ footer-Queries ----------------------*/

@container footer (min-width: 56.25rem) {

    .footer__container {

        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "info map"
            "logos map";
        gap: 24px;

    }

    .footer__info {

        grid-area: info;

    }

    .footer__map {

        grid-area: map;
        height: 80%;
        
    }

    .footer__logo-container {

        grid-area: logos;
        
    }
    
    iframe {
        width: 100%;
        height: 100%;
    }

}

/* ------------------ footer-ends ----------------------*/

@font-face {

   font-family: 'Material Symbols Outlined';
   font-style: normal;
   src: url(https://example.com/material-symbols.woff) format('woff');

}

.material-symbols-outlined {

   font-family: 'Material Symbols Outlined';
   font-weight: normal;
   font-style: normal;
   font-size: 24px;  /* Preferred icon size */
   display: inline-block;
   line-height: 1;
   text-transform: none;
   letter-spacing: normal;
   word-wrap: normal;
   white-space: nowrap;
   direction: ltr;

}

@keyframes aparecer {

    from {

        opacity: 0.5;
        
    }

    to {

        opacity: 1;

    }
    
}

/* ---------------- Fonts ----------------------*/

