* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}


body {
    font-family: sans-serif;
    color: #101632dd;
    animation: aparecer 3s -.6s both;

}

div,
ul,
nav,
header,
footer,
a,
li,
label,
body {
    margin: 0;
    padding: 0;
}

/*Header Secction*/

.header {
    background-color: #0d1c3b;
    position: sticky;
    height: 70px;
    top: 0;
    container-type: inline-size;
    container-name: header;
    z-index: 10;

}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    text-align: center;
    font-size: 20px;
}

.header__logo {
    min-width: 100%;
    width: 50px;
    margin: 10px 20px;
}

.header__open-nav-button {
    color: #ffffff;
    position: absolute;
    right: 15px;
    cursor: pointer;
}

.header__checkbox {
    display: none;
}

.header__checkbox:checked+.header__nav-list {
    height: calc(100dvh - 70px);
}

.header__nav-list {
    width: 100%;
    background-color: #df4938;
    position: absolute;
    top: 70px;
    left: 0;
    height: 0;
    overflow: hidden;
    /*height: calc(100dvh - 80px);*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: all .3s;
    list-style: none;
}


.header__nav-item a {
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    list-style: none;
}

.header__nav-item :is(:hover) {
    color: #efb810;
}

/* Make the label cover the entire link area */
.header__nav-item label {
    display: block;
    width: 100%;
    cursor: pointer;
}

/* Ensure links still look and behave like links */
.header__nav-item label a {
    display: block;
    width: 100%;
}

/*Header querys*/

@container header (min-width: 800px) {


    .navbar {
        justify-content: space-between;
    }

    .header__nav-list {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        gap: 1.5rem;
        padding-right: 1rem;
        background-color: #0d1c3b;
    }

    .header__nav-item a {
        font-size: 1.5rem;
    }

    .header__open-nav-button {
        display: none;
    }

}


/*Header Ends*/


/*profile section*/

.inicio {
    container-name: inicio;
    container-type: inline-size;
}

.inicio__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #fff;
    padding-bottom: 0px;
    background-image: linear-gradient(to top, #0d1c3b 1%, transparent);
    width: 100%;
}

.background-changer {
    width: 100%;
    height: 90dvh;
    background-size: cover;
    background-position: center;
    animation: changeBackground 30s infinite;
    display: flex;
}


.inicio__tittle {
    text-align: center;
    margin-top: 0;
    font-size: 3rem;
    text-wrap: balance;
    display: flex;
}

.abajo-span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

.boton-down {
    background-color: #df4938;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.boton-down:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #efb810;
    transition: height 0.3s ease;
    z-index: -1;
}

.boton-down:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.boton-down:hover:before {
    height: 100%;
    background-color: #efb810;
    color: #000;
}

.boton-down:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.boton-down:focus {
    outline: 3px solid rgba(239, 184, 16, 0.5);
    outline-offset: 2px;
}

@keyframes changeBackground {
    0% {

        background-image: url("img/img1.jpg");

    }

    25% {
        background-image: url("img/img2.jpg");

    }

    50% {
        background-image: url("img/img3.jpg");

    }

    75% {
        background-image: url("img/img4.jpg");

    }

    100% {
        background-image: url("img/img1.jpg");

    }
}

/*animacion apaerecer inicio*/
@keyframes aparecer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/*profile query*/

@container inicio (min-width:700px) {
    .inicio__tittle {
        font-size: 4rem;
    }
}

/*profile end*/


/*about section*/
.about {
    background-color: #fffd;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    text-align: center;
    container-name: about;
    container-type: inline-size;
    justify-content: space-evenly;
    animation: aparecer both;
    animation-timeline: view();
    animation-range: cover 10% contain 80%;
}

.about__tittle {
    color: #efb810;
    font-size: 3rem;
    padding-top: 40px;
    margin-bottom: 0;
}

.about__project-container {
    display: grid;
    grid-template-columns: 1fr;
    margin: auto;
    width: 100%;
    gap: 18px;
    padding: 12px;
    min-height: 80vh;

}

.about__cart {
    border-left: 25px solid #0d1c3b;
    border-radius: 12px;
    background-color: #df4938;
    color: #fff;
    display: grid;
    place-content: center;

}

.about__cart-name {
    text-align: start;
    margin-bottom: 5px;
    margin-left: 30px;
    margin-right: 30px;
}

.pmv {
    text-align: start;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 0px;
    font-size: 1rem;
}

.pmv::first-letter {
    initial-letter: 2;
    color: #efb810;
}

.description::first-letter {
    initial-letter: 2;
    color: #efb810;
}


/*Linea de tiempo*/

.container-tl {
    display: flex;
    min-height: 50dvh;
    padding: 40px;
    padding-top: 0px;
}

/* Contenido principal */
.content-tl {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    padding-right: 40px;
}

.year-highlight {
    font-weight: bold;
    font-size: 3rem;
    color: #efb810;
}

.title {
    font-size: 2rem;
    color: white;
    font-weight: bold;
    margin: 10px;
}

.description {
    color: #fff;
    text-align: start;
    font-size: 1.5rem;
    margin: 0;
}

/* Timeline */

.timeline-items {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
}

.timeline-items::-webkit-scrollbar {
    width: 1px;
}

.timeline-items::-webkit-scrollbar-thumb {
    background-color: transparent;
}



.timeline-item {
    position: relative;
    margin: 10px 0;
    cursor: pointer;

    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.timeline-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.timeline-item.active {
    background-color: rgba(243, 156, 18, 0.1);
}

.timeline-year {
    color: #efb810;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 300;
}

.timeline-item:hover .timeline-year {
    color: #e67e22;
}

.timeline-item.active .timeline-year {
    color: #e67e22;
    font-size: 2rem;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .container-tl {
        padding: 5px;
    }

    .content-tl {
        max-width: 100%;
        padding: 10px 0;
        order: 2;
        justify-content: start;
    }

    .timeline-item {
        margin: 0 0;
        padding: 5px;
    }

    .timeline-year {
        text-align: left;
        font-size: 1.5rem;
    }

    .year-highlight {
        font-size: 2.5rem;
    }

    .title {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .content-tl {
        padding: 15px 0;
    }

    .year-highlight {
        font-size: 2rem;
    }

    .title {
        font-size: 1.8rem;
    }

    .timeline-year {
        font-size: 1.5rem;
    }

    .timeline-item.active .timeline-year {
        font-size: 1.5rem;
    }
}


/*Galeria Section*/
.gallery-section {
    text-align: center;
    padding: 2rem 1rem;
    container-name: gallery;
    container-type: inline-size;

}

.gallery-section h1 {
    color: #efb810;
    font-size: 3rem;
    margin-bottom: 0;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 0 auto;
    padding: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay p {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    cursor: pointer;
    /* Esto indica que el fondo es interactivo */
}

.lightbox img {
    pointer-events: auto;
    /* Evita que el clic en la imagen cierre el lightbox */
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    pointer-events: all;
    /* Permite clics en el botón de cierre */
}



/*about query*/

@container about (min-width: 700px) {


    .about__project-container {

        grid-template-columns: 1fr 1fr;
    }

    .pmv {
        font-size: 1.5rem;
    }

    .phistoria {
        font-size: 1.5rem;
    }
}

@container gallery (min-width: 700px) {

    .gallery {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .gallery :first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/*about End*/

/*programacion section*/

.programacion {
    background-color: #fffd;
    min-height: 100vh;
    flex-direction: column;
    text-align: center;
    justify-content: space-evenly;
    container-name: programacion;
    container-type: inline-size;
    animation: aparecer both;
    animation-timeline: view();
    animation-range: cover 5% contain 40%;
}

.programacion__tittle {
    font-size: 3rem;
    padding-top: 40px;
    margin-bottom: 0;
    color: #efb810;
}

.progra__project-container {
    display: grid;
    grid-template-columns: 1fr;
    margin: auto;
    width: 100%;
    gap: 18px;
    padding: 12px;
    min-height: 80vh;

}

.progra__cart {
    overflow: hidden;
    border-left: 25px solid #0d1c3b;
    border-radius: 12px;
    background-color: #df4938;
    color: #fff;
    display: grid;
    grid-template-rows: 1fr 1fr;

}

.progra-img-uno {
    background-image: url(img/preimg1.jpg);
    width: 100%;
    background-size: cover;
    background-position: center;
}

.progra-img-dos {
    background-image: url(img/primimg1.jpg);
    width: 100%;
    background-size: cover;
    background-position: center;
}

.progra-img-tres {
    background-image: url(img/highimg1.jpg);
    width: 100%;
    background-size: cover;
    background-position: center;
}

.progra-img-cuatro {
    background-image: url(img/extraimg1.webp);
    width: 100%;
    background-size: cover;
    background-position: center;
}

.progra__cart-content {
    top: 0;
    text-align: start;
    margin-left: 30px;
    margin-right: 30px;
}

.progra__cart-name {
    margin-bottom: 5px;
}

.progra-p {
    font-size: 1rem;
}

.info-span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 20px;
}

.boton-info {
    background-color: #0d1c3b;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.boton-info:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #efb810;
    transition: height 0.3s ease;
    z-index: -1;
}

.boton-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.boton-info:hover:before {
    height: 100%;
    background-color: #efb810;
    color: #000;
}

.boton-info:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.boton-info:focus {
    outline: 3px solid rgba(239, 184, 16, 0.5);
    outline-offset: 2px;
}




/*programacion query*/
@container programacion (min-width: 700px) {
    .progra__project-container {
        grid-template-columns: 1fr 1fr;
    }

    .progra-p {
        font-size: 1.2rem;
    }

    .progra__cart {
        grid-template-rows: none;
        grid-template-columns: 1fr 1fr;
    }

}


/*cv section*/

.cv {
    background-color: #fffd;
    min-height: 60vh;
    flex-direction: column;
    text-align: center;
    justify-content: space-evenly;
    container-name: programacion;
    container-type: inline-size;
    animation: aparecer both;
    animation-timeline: view();
    animation-range: cover 5% contain 40%;
}

.cv__tittle {
    font-size: 3rem;
    padding-top: 40px;
    margin-bottom: 0;
    color: #efb810;
}

.cv__project-container {
    display: grid;
    grid-template-columns: 1fr;
    margin: auto;
    width: 100%;
    gap: 18px;
    padding: 12px;
    min-height: 50vh;

}

.cv__cart {
    overflow: hidden;
    border-left: 25px solid #0d1c3b;
    border-radius: 12px;
    background-color: #df4938;
    color: #fff;
    display: grid;
    grid-template-rows: 1fr 1fr;

}

.cv-img-uno {
    background-image: url(img/abeka.jpg);
    width: 100%;
    background-size: cover;
    background-position: center;
}

.cv-img-dos {
    background-image: url(img/ace.jpg);
    width: 100%;
    background-size: cover;
    background-position: center;
}

.cv__cart-content {
    top: 0;
    text-align: start;
    margin-left: 30px;
    margin-right: 30px;
}

.cv__cart-name {
    margin-bottom: 5px;
}

.cv-p {
    font-size: 1rem;
}


/*cv query*/
@container programacion (min-width: 700px) {
    .cv__project-container {
        grid-template-columns: 1fr 1fr;
    }

    .cv-p {
        font-size: 1.2rem;
    }

    .cv__cart {
        grid-template-rows: none;
        grid-template-columns: 1fr 1fr;
    }

}


/*cv end*/

/*eventos section*/

.eventos {
    background-color: #fffd;
    flex-direction: column;
    text-align: center;
    justify-content: space-evenly;
    container-name: eventos;
    container-type: inline-size;
}

.eventos__tittle {
    font-size: 3rem;
    padding-top: 40px;
    margin-bottom: 0;
    color: #efb810;
}

/* Contenedor del slider */
.slider-container {
    max-width: 800px;
    margin: auto;
    margin-left: 10px;
    margin-right: 10px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    justify-content: center;
}

.swiper {
    width: 100%;
    height: 100%;
}

.slide-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #444;
    position: relative;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-next,
.swiper-button-prev {
    color: #df4938;
    /* cambia el color de la flecha */
    fill: #df4938;
    /* asegura que cambie en algunos navegadores */
    stroke: #df4938;
}

/* Paginación (los bullets) */
.swiper-pagination-bullet {
    background: gray;
    /* color normal */
    opacity: 1;
    /* evita que se vean transparentes */
}

.swiper-pagination-bullet-active {
    background: #df4938;
    /* color del bullet activo */
}



/* Overlay degradado con texto */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    color: white;
    text-align: left;
}

.slide-overlay h2 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.slide-overlay h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #df4938;
}

.slide-overlay p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
}


/*evento query*/
@container eventos (min-width: 700px) {
    .slider-container {
        margin-top: 10px;
        margin-left: 100px;
        margin-right: 100px;
        max-width: 1500px;
        height: 550px;
    }

}


/* Mobile: hasta 480px */
@media (max-width: 480px) {
    .slider-container {
        max-width: 100%;
        margin-left: 10px;
        margin-right: 10px;
    }

    .swiper-slide {
        height: 300px;
        /* menos altura para móviles */
    }

    .slide-overlay {
        padding: 10px;
        /* menos padding */
    }

    .slide-overlay h2 {
        font-size: 16px;
        /* más pequeño */
    }

    .slide-overlay p {
        font-size: 12px;
        /* más pequeño */
        line-height: 1.3;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 18px;
        /* flechas más pequeñas */
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

/* Tablets: hasta 768px */
@media (max-width: 768px) {
    .swiper-slide {
        height: 400px;
    }

    .slide-overlay h2 {
        font-size: 18px;
    }

    .slide-overlay p {
        font-size: 13px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 20px;
    }
}

/*evento end*/

/*Contact Section*/

.contact {
    color: #efb810;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    container-name: contact;
    container-type: inline-size;
    background-color: #fffd;
    animation: aparecer both;
    animation-timeline: view();
    animation-range: cover 20% contain 40%;
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 80dvh;
    width: 90%;
}

.contact__card {
    color: #fff;
    background-color: #0d1c3b;
    border-left: 25px solid #df4938;
    border-radius: 12px;
    display: grid;
    margin-bottom: 30px;
    min-width: 90%;
    padding: 60px;
    grid-template-columns: 1fr;
    justify-content: center;
    align-items: center;
}

.contact__info {
    display: grid;
    gap: 2rem;
}

.contact__img {
    display: none;
}

.contact__tittle {
    font-size: 3rem;
    padding-top: 40px;
    margin-bottom: 0;
}

.ubicar {
    color: #fff;
    text-decoration: none;
}

.ubicar:hover {
    color: #efb810;
}

.redes {
    padding-top: 30px;
}

.social-links {
    display: flex;
    gap: 25px;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    color: white;
    font-size: 22px;
    text-decoration: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.7;
    z-index: -2;
    transform: scale(1.3);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: blur(10px);
}

.social-icon i {
    transition: all 0.4s ease;
}

/* Efectos hover avanzados */
.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.social-icon:hover::before {
    transform: rotate(45deg) scale(1.5);
}

.social-icon:hover::after {
    transform: scale(1.6);
    filter: blur(20px);
}

.social-icon:hover i {
    transform: scale(1.2);
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.3);
    }

}

/* Colores de marca para cada red social */
.facebook {
    background-color: #1877F2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.4);
}

.tiktok {
    background: linear-gradient(45deg, #000000, #ff0050, #00f2ea);
    box-shadow: 0 5px 15px rgba(255, 0, 80, 0.4);
}

/* Animaciones específicas para cada red social */
.facebook:hover i {
    animation: spin 0.7s ease-in-out;
}

.instagram:hover i {
    animation: pulse 0.7s ease infinite alternate;
}

.tiktok:hover i {
    animation: dance 0.8s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*contact querys*/

@container contact (min-width: 1020px) {

    .contact__container {
        grid-template-columns: 2fr 1fr;
        max-width: 80%;
    }

    .contact__card {
        grid-template-columns: 1fr 1fr;
    }

    .contact__img {
        width: 100%;
        display: grid;
        align-items: center;
        justify-content: center;
    }

    .leon__img {
        width: 100%;
        height: auto;
        display: block;
    }


}

/*contact end*/

/*futter section*/
.footer {
    border-top: #df4938 solid 5px;
    background-color: #0d1c3b;
    padding: 10px 0;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.copyright {
    color: #6c757d;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.bye {
    color: #efb810;
}









/*Niveles*/


.background__nivel-pre {
    background-image: url(img/preimg2.jpg);
    width: 100%;
    height: 90dvh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    top: 0px;
}

.background__nivel-prim {
    background-image: url(img/primimg2.jpeg);
    width: 100%;
    height: 90dvh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    top: 0px;
}

.background__nivel-high {
    background-image: url(img/highimg2.jpg);
    width: 100%;
    height: 90dvh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    top: 0px;
}

.background__nivel-extra {
    background-image: url(img/extraimg2.webp);
    width: 100%;
    height: 90dvh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    top: 0px;
}

.background__nivel-instalaciones {
    background-image: url(img/juegosdos.webp);
    width: 100%;
    height: 90dvh;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    display: flex;
    top: 0px;
}

.nivel {
    background-color: #fffd;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    text-align: center;
    container-name: nivel;
    container-type: inline-size;
    justify-content: space-evenly;
}

/*Boton back*/
.back-span {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 1rem;
}

.boton-back {
    background-color: #df4938;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.boton-back:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #efb810;
    transition: height 0.3s ease;
    z-index: -1;
}

.boton-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.boton-back:hover:before {
    height: 100%;
    background-color: #efb810;
    color: #000;
}

.boton-back:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.boton-back:focus {
    outline: 3px solid rgba(239, 184, 16, 0.5);
    outline-offset: 2px;
}

.nivel__tittle {
    margin-top: 0;
    font-size: 4rem;
    text-wrap: balance;
    display: flex;
    justify-content: center;
}

.nivel__tittle-extra {
    margin-top: 0;
    font-size: 3rem;
    text-wrap: balance;
    display: flex;
    justify-content: center;
}

.nivel__tittle-insta {
    margin-top: 0;
    font-size: 3rem;
    text-wrap: balance;
    display: flex;
    justify-content: center;
}



.about__nivel-container {
    display: grid;
    grid-template-columns: 1fr;
    margin: auto;
    width: 100%;
    gap: 18px;
    padding: 12px;
    padding-top: 40px;
    padding-bottom: 20px;
}

.info__cart {
    background-color: #fffd;
    padding: 20px;
    padding-left: 0;
    padding-right: 0;
}

.general__cart {
    border-radius: 12px;
    background-color: #0d1c3b;
    color: #fff;
    padding: 20px;
    padding-left: 0;
    padding-right: 0;
}

.nivel__cart-name {
    text-align: start;
    margin-left: 30px;
    margin-right: 30px;
    font-size: 2rem;
}

.nivel-p {
    text-align: start;
    margin-left: 30px;
    margin-right: 30px;
    margin-top: 0px;
    font-size: 1.5rem;
}

.nivel__list {
    display: grid;
    text-align: start;
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 0px;
    font-size: 1.5rem;
    gap: 1rem;
}


.breadcrumb {
    display: none;
}



@container nivel (min-width: 700px) {


    .about__nivel-container {

        grid-template-columns: 1fr 1fr;
        padding-top: 0;

    }

    .about__nivel-container :last-child {

        align-items: flex-start;
        height: max-content;
        padding-bottom: 20px;
    }


    .nivel-p {
        font-size: 1.5rem;
    }

    .nivel__list {
        font-size: 1.5rem;
    }


    .breadcrumb {
        display: flex;
        list-style: none;
        padding-left: 40px;
        padding-top: 70px;
        margin: 1rem 0;
        font-size: 1.5rem;
    }

    .breadcrumb li {
        margin-right: 0.5rem;
    }

    .breadcrumb li a {
        font-weight: bold;
        text-decoration: none;
        color: #0d1c3b;
    }

    .breadcrumb li a:hover {
        color: #efb810;
    }

    .breadcrumb li::after {
        content: '>';
        margin-left: 0.5rem;
        color: #0d1c3b;
    }

    .breadcrumb li:last-child::after {
        content: '';
    }

    .breadcrumb li:last-child {
        color: #0d1c3b;
        font-weight: bold;
        pointer-events: none;
    }

}