* {

    box-sizing: border-box;
    scroll-behavior: smooth;

}

h1 {

    color: #d93aaf;

}

body {

    margin: 0;
    font-family: sans-serif;
    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: 10;
    
}

.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 ----------------*/

/* -------------- OurTeam ---------------------------*/

.container {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;

}

.card {

    width: clamp(280px, 45%, 400px); 
    margin: 20px;
    background-color: var(--card-bg-color);
    position: relative;
    border-radius: 20px;
    overflow: hidden;

}

.card__back, .card__front {

    backface-visibility: hidden;
    transition: transform 1s ease;
    background-color: var(--secondary-color);

}

.card:hover .card__front {

    transform: perspective(1200px) rotateY(180deg);

}

.card:hover .card__back {

    transform: perspective(1200px) rotateY(360deg);

}

.card__front {

    transform: perspective(1200px) rotateY(0deg);

}

.card__profession{

    font-size: 0.8rem;
    padding: 5px;

}

.card__range {

    font-size: 1.3rem;
}

.card__back {

    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    padding: 12px;
    transform: perspective(1200px) rotateY(180deg);
    background: linear-gradient(135deg, var(--secondary-color), #ffffff10);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    text-align: justify;

}

.card__worker {

    max-height: 500px;
    overflow: hidden;
    display: block;
}

.card__worker img {

    max-width: 100%;

}

.card__data  {

    padding: 12px;
    color: var(--bg-color);

}

.card__data span {

    font-size: 1.4rem;
    margin: 6px 0;
    display: block;

}

/* ---------------OurTeam Ends -------------------*/

/* ---------- Profile Queries ----------------*/

@container profile (min-width:1000px) {

    h1{

        margin-top: 0;
        font-size: 4rem;
        text-wrap: balance;
    }

    .profile_wrapper {

        flex-direction: row;
        padding: 20px;
        background-color: transparent;
        height: 90vh;
        margin: auto;

    }

    .profile__data-container {

        background-color: #c095f060;
        display: flex;
        align-items: center;
        border-radius: 0 25px 25px 0;
        box-shadow: 0px 0px 9px #0002;

    }

    .profile__data {

        max-width: 620px;

    }

    .profile__img-container {

        max-height: initial;
        border-radius: 25px 0 0 25px;

    }

    .profile__img {

        height: 100%;
        object-fit: cover;
        width: 620px;

    }

}

/* ---------- Profile Queries ----------------*/



/* ----------------------- 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(--secondary-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: color-mix(in srgb, #ff0c 90%, #d93aaf 20%);

}

.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;

}