@import url('https://fonts.googleapis.com/css2?family=Dancing+Script&display=swap');
/* Estilos generales */
body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    box-sizing: border-box;
}

* {
    font-family: 'Nunito', sans-serif;
}

h1, h2, h3, nav, button {
    font-family: 'Poppins', sans-serif;
}

.container-subject {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
    border-top: 100px;
}
/* Asegura que cada tarjeta sea posicionada correctamente */
.container-subject .subject-link div {
    position: relative;
    overflow: hidden;
}

/* VELO para tarjetas en construcción */
.container-subject .subject-link div:has(.portfolio__status) {
    position: relative;
}

.container-subject .subject-link div:has(.portfolio__status)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.55); /* neblina */
    backdrop-filter: blur(2px);
    z-index: 1;
}

.portfolio__status {
    display: inline-block;
    background-color: #F266AB; /* rosa MiniSapiens */
    color: white;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.25);
    position: relative;
    z-index: 2;
}
.container-subject h2 {
    position: relative;
    z-index: 2;
}

.subject-english,
.subject-ciencia,
.subject-history,
.subject-math,
.subject-len {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 10px #2e0248;
    margin: 0 auto;
    padding: 10px;
    width: 300px;
    height: 400px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    word-wrap: break-word;
    overflow: hidden;
}

.subject-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 20px;
    width: 305px;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px #2e0248;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Añade transición */
}

.subject-link:hover {
    transform: translateY(-5px); /* Eleva la tarjeta al pasar el mouse */
    box-shadow: 0 4px 20px rgba(46, 2, 72, 0.3); /* Aumenta la sombra */
}

.subject-len {
    background-image: url(Lenguaje/Lenguaje.png);
    background-size: cover;
    background-position: center;
}

.subject-math {
    background-image: url(matematica/Matematicas.png);
    background-size: cover;
    background-position: center;
}

.subject-history {
    background-image: url(Historia/Historia.webp);
    background-size: cover;
    background-position: center;
}

.subject-ciencia {
    background-image: url(Ciencias/Ciencias.webp);
    background-size: cover;
    background-position: center;
}

.subject-english {
    background-image: url(ingles/Ingles.webp);
    background-size: cover;
    background-position: center;
}

h2 {
    font-size: 22px;
    text-overflow: ellipsis;
    color: #fff;
    text-shadow: 0 0 5px black, 0 0 10px cyan, 0 0 15px lightblue;
}

/* Estilos responsivos */
@media (max-width: 1024px) {
    .subject {
        width: calc(50% - 40px);
    }
}

@media (max-width: 600px) {
    .subject {
        width: calc(90% - 40px);
    }
}

/* ----------  SECTION LANGUAGUE/HITORY/MATHEMATIC AND CIENCIE NATURA ----------- */

/* Estilo del contenedor de la barra de progreso */
#contact-languague {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #fff;
    margin: 0;
    height: 100px;
}
#contact-languague .logo-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
}
#contact-languague .logo-button img {
    width: 60px; /* Tamaño del logo */
    height: auto;
    margin-right: 8px; /* Espacio entre el logo y el texto "Inicio" */
}

#contact-languague .progress-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    width: 100%;
    height: 100px;
    padding: 20px;
    margin-left: 90px;
}

#contact-languague .menssaje {
    font-size: 14px;
    color: #2e0248; 
    white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    margin: auto;
    text-align: end;
}

/* Estilo de la barra de progreso */
#contact-languague .progress-bar {
    width: 100%;
    height: 15px;
    background-image: linear-gradient(to right, #2cd3e1, #a459d1, #f266ab, #ffb84c);
    border-radius: 5px; /* Bordes redondeados */
    transition: width 0.3s ease; /* Animación suave */
}

nav ul {
    list-style-type: none;
    margin: -5px;
    padding: 0;
    background-color: #2cd3e1;
    overflow: visible;
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se envuelvan en pantallas pequeñas */
    justify-content: left; /* Centra los elementos */
}

nav ul li {
    margin: 0;
    position: relative;
}

li {
    font-size: 15px;
}

nav ul li a {
    display: block;
    color: white;
    text-align: center;
    padding: 20px 30px;
    text-decoration: none;
    
}

nav ul li a:hover {
    background-color: #a459d1;
}

li .star {
    text-decoration: none;
    color: #323e3f;
    border-bottom: 1px solid #2cd3e1;
    font-size: 15px;
}

li .star:hover {
    background-color: #a459d1;
    border-radius: 6px;
    color: #fff;
}
/* Contenedor para el enlace y el letrero */
.proximamente-container {
    position: relative; /* Permite posicionar el letrero dentro del contenedor */
}

.proximamente-container a {
    text-decoration: none;
    color: #fff;
}

/* Estilo del letrero "Próximamente" */
.proximamente {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #a459d1f1;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    pointer-events: none;
    animation: fadeIn 2s infinite; /* Animación de desvanecimiento */
}

/* Contenedor derecho: Unidades y Temas */
.container-units {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    background-color: #FDF6EC;
    padding: 30px;
    border-radius: 12px;
    width: fit-content;
    margin: 5% auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.unit-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    margin: 20% auto;
    padding: 20px;
    border-radius: 20px;
    width: 40%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.close {
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.unit-button {
    background-color: #2CD3E1;
    color: white;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.unit-button:hover {
    transform: scale(1.05);
    background-color: #25b6c1;
}

.unit-progress {
    width: 100px;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 0%;
    background-color: #A459D1;
    transition: width 0.5s ease;
}

.title-languague {
    color: #a459d1;
    text-align: center;
    font-size: 3.5rem;
    padding: 20px;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    filter: brightness(0.8) contrast(1.2);
    text-shadow:
        0 0 5px #fff,       /* Brillo cercano */
        0 0 10px #fff,      /* Brillo medio */
        0 0 5px #ff4da6,   /* Color neón rosa */
        0 0 20px #ff4da6,   /* Brillo más intenso */
        0 0 30px #ff4da6,   /* Brillo extendido */
        0 0 50px #fff;   /* Brillo máximo */
}


/* Media query para pantallas pequeñas */
/* y medianos*/
/* Media query para pantallas pequeñas (celulares) */
@media (max-width: 1024px) {
    .container-units{
        flex-direction: column; /* Apila los elementos verticalmente */
        width: 70%; /* Ancho completo en pantallas pequeñas */
        gap: 10px; /* Reduce el espacio entre elementos */
        justify-content: center;
    }

    #main-container {
        height: auto;
        justify-content: center;
    }
    
    nav ul {
        justify-content:space-around;
    }
}

@media (max-width: 768px) {
    #contact-languague {
        flex-direction: column; /* Apila los elementos verticalmente */
        align-items: center; /* Centra los elementos */
        text-align: center; /* Centra el texto */
        padding: 10px; /* Reduce el padding */
        height: auto;
    }

    #contact-languague .logo-button img {
        width: 40px; /* Reduce aún más el tamaño del logo */
    }

    #contact-languague .progress-container {
        width: 90%; /* Reduce el ancho para pantallas pequeñas */
        padding: 5px; /* Reduce el padding */
    }

    #contact-languague .menssaje {
        font-size: 10px; /* Reduce aún más el tamaño del texto */
    }

    nav ul {
        flex-direction: column; /* Apila los elementos verticalmente */
        justify-content: center;
        margin-top: 40px;
    }

    nav ul li a {
        padding: 10px 15px; /* Ajusta el padding para pantallas pequeñas */
    }

    .container-units {
        flex-direction: column; /* Apila los elementos verticalmente */
        width: 90%; /* Ancho completo en pantallas pequeñas */
        gap: 10px; /* Reduce el espacio entre elementos */
        justify-content: center;
    }

    .title-languague {
        font-size: 2rem; /* Reduce el tamaño del título */
        padding: 10px; /* Reduce el padding */
    }
}

/* Media query para pantallas muy pequeñas (móviles antiguos) */
@media (max-width: 480px) {

    #contact-languague {
        height: 100px;
    }

    #contact-languague .logo-button img {
        width: 30px; /* Reduce el tamaño del logo al mínimo */
    }

    #contact-languague .menssaje {
        font-size: 8px; /* Reduce el tamaño del texto al mínimo */
    }

    .progress-container {
        top: -70px;
        margin: 0 80px;
    }

    nav  ul {
        margin-top: 25px;
    }

    .container-units {
        gap: 5px; /* Reduce el espacio entre elementos */
        margin-top: 20px;
    }

    .title-languague {
        font-size: 1.5rem; /* Reduce el tamaño del título al mínimo */
        padding: 5px; /* Reduce el padding */
    }

    #main-container {
        height: auto;
        justify-content: center;
        align-items: center;
        margin-right: 50px;
        margin-left: 20px;
    }
}

/* ---------------- START ------------------- */

.title {
    font-size: 1.5rem;
    white-space: nowrap;
    margin-left: -300px;
    color: #323e3f;
}

.logo-lenguague {
    width: 22%;
    border-radius: 50%;
}

.logo {
    width: 18%;
    border-radius: 50%;
}

.title-unit {
    font-size: 1rem;
    margin-left: 10px;
}

h3 {
    font-size: 1rem;
    color: #698385;
}

.container-title {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.unit-container {
display: flex;
padding: 20px;
background-image:linear-gradient(to bottom,#fff ,#ffb84c, transparent);
}

.unit-left {
    width: 25%;
    padding: 10px;
}

.menu {
    gap: 10px;
    border-bottom: 1px solid #a459d1;
    padding: 10px;
    
}

.menu:hover {
    background-color: #2cd2e130;
    border-left: 8px solid #2cd3e1;
}

.unit-left ul {
    list-style-type: none;
    gap: 10px;
}

.unit-left li a {
    text-decoration: none;
    text-shadow: 2px 0px 1px #b5b5b5;
    font-size: 1rem;
}

.container-right {
    width: 90%;
    padding: 100px 20px;
    overflow-y:scroll;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    background-image: url(../4_basico/Lenguaje/Lenguaje.png);
    gap: 15px;
    border: 15px solid #8B4513; /* Marrón oscuro */
    border-top: 10px solid #CD853F; /* Marrón claro */
    border-left: 10px solid #CD853F; /* Marrón claro */
}

.OA{
    text-decoration: none;
    padding: 10px;
    border-radius: 5px;
    grid-column: 1 / 3;
    justify-items:start;
}

.OA ul {
    list-style: none; /* Sin viñetas */
    padding: 0;
    margin: 0;
    display: flex; /* Distribuye los elementos en línea */
    justify-content: space-around; /* Espacio entre los elementos */
    gap: 10px;
}

.OA li a {
    text-decoration: none; /* Sin subrayado */
    color: #b5b5b5; /* Color del texto */
    font-weight: bold;
    font-size: 10px;
}
.unit-right {
    background-color: #f9f9f9f1;
    width: 95%;
    justify-content: center;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
div .content-section {
    background-color: #fff; /* Fondo blanco */
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra suave */
    width: 100%;
}

.content-section h3 {
    margin-top: 0; /* Sin margen superior en el título */
}
.learn-content,.practice-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 10px;
    justify-content:flex-start;
    position:relative;
    align-items:center;
}

.practice-content {
    border: 20px;
    padding: 20px;
}

.practice {
    padding: 20px;
    display: grid;
    width: 400px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    background-color: #f4e7fb;
    justify-content: center;
    border-radius: 6px;
    margin: 6px;
}

.grid-item:last-child {  /* Selecciona el último elemento */
    grid-column: 2; 
    grid-row: 1 / 4; 
    border-left: 1px solid #a459d1;
    padding: 5px;
}

.grid-item_1 {
    font-weight: bold;
    text-align: center;
}

.grid-item_2 {
    font-size: 12px;
    line-height: 1.4;
}

h4 {
    padding: 10px;
    margin-left: -60px;
    font-weight: normal;
    font-size: 16px;
    font-family: 'Times New Roman', Times, serif;
}

.video {
    width: 30%;
}

.return {
    text-align: right;
    margin: 10px 20px 0 0;
}

.return a {
    display: inline-block;
    background-color: #F266AB; /* Rosa de tu paleta */
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.return a:hover {
    background-color: #d94f96;
    transform: scale(1.1);
}


/* Media Queries para dispositivos pequeños (teléfonos móviles) */
@media (max-width: 768px) {
    #contact-languague {
        height: 15%;
    }
    .progress-container{
        margin-top: -30px;
    }
    .title {
        font-size: 1.2rem;
        margin-left: 0;
        white-space: normal;
    }
    .logo-lenguague {
        width: 15%;
    }
    .logo {
        width: 15%;
    }
    div .return {
        font-size: 0.5rem;
        top: -40px;
    }
    .container-title {
        flex-direction: column;
        align-items: center;
    }
    .unit-container {
        flex-direction: column;
        margin-top: -16px;
    }
    .unit-left {
        width: 100%;
    }
    .menu {
        padding: 5px;
    }
    .unit-left li a {
        font-size: 0.9rem;
    }
    .container-right {
        padding: 5px;
        width: 100%;
    }
    .content-section{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
    .OA ul {
        flex-direction: row;
        gap: 5px;
    }
    .OA li a {
        font-size: 0.8rem;
    }
    .unit-right {
        grid-template-columns: 1fr;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .learn-content,
    .practice-content {
        gap: 1px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .practice {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    h4 {
        margin-left: 0;
        font-size: 14px;
    }
    .video {
        width: 20%;
    }
    .grid-item {
        padding: 8px;
    }

    .grid-item_1 {
        font-size: 1rem;
        width: 100%;
        overflow: auto;
    }

    .grid-item_2 {
        font-size: 10px;
    }
}

/* Media Queries para dispositivos medianos (tablets como iPad) */
@media (min-width: 769px) and (max-width: 1024px) {
    #tema_1 {
        font-size: 1.3rem;
        margin-left: 10px;
    }
    a .logo-button {
        width: 50%;
    }
    .logo-lenguague {
        width: 40%;
    }
    .logo {
        width: 20%;
        text-align: center;
    }
    .unit-left {
        width: 35%;
        display: flex;
        flex-direction: column;
    }
    .menu {
        padding: 8px;
    }
    .unit-left li a {
        font-size: 0.95rem;
    }
    .container-right {
        padding: 50px 20px;
    }
    .OA li a {
        font-size: 0.9rem;
    }
    .unit-right {
        grid-template-columns: 1fr;
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .learn-content,
    .practice-content {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .practice {
        grid-template-columns: repeat(2, 1fr);
    }
    h4 {
        margin-left: -50px;
        font-size: 15px;
    }
    .video {
        width: 40%;
    }
    .grid-item_1 {
        font-size: 1.1rem;
    }
    .grid-item_2 {
        font-size: 11px;
    }
}
