/* Archivo styles.css: Contiene los estilos CSS para el diseño y la apariencia del sitio web. */
/* Variables CSS: Definen colores y estilos reutilizables en todo el sitio */
:root {
    --primary-color: hsl(220, 70%, 50%); /* Color principal del tema, usado para resaltar elementos interactivos */
    --second-color : hsl(220, 100%, 74%); 
    --text-color: #fff; /* Color del texto principal */
    --background-color: #1a1a1a; /* Color de fondo principal del sitio */
    --card-background: #2a2a2a; /* Color de fondo de las tarjetas en secciones como 'features' */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Asegura que el contenedor principal ocupe al menos toda la altura de la ventana */
body, html {
    height: 100%; /* Asegura que el cuerpo y el HTML ocupen toda la altura */
    margin: 0;
    display: flex;
    flex-direction: column; /* Permite que los elementos hijos se apilen verticalmente */
}

body {
    font-family: system-ui, sans-serif;
    color: var(--text-color); /* Color del texto */
    background-color: var(--background-color); /* Color de fondo */
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    flex: 1; /* Permite que el contenedor principal crezca y ocupe el espacio restante */
}

/* Navbar: Glassmorphism with rounded corners */
.navbar {
    background: linear-gradient(135deg, rgba(87, 121, 218, 0.904), rgb(0, 0, 0));
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

/* Estilo para ocultar la navbar */
.navbar.hidden {
    transform: translateY(-100%); /* Mueve la navbar fuera de la vista */
    transition: transform 0.3s ease-in-out; /* Animación suave */
}

.navbar .logo img {
    height: 80px; /* Adjust logo size */
    transition: transform 0.3s ease;
}

.navbar .logo img:hover {
    transform: scale(1.1); /* Slight zoom effect on hover */
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 0;
}

.nav-links a:hover::before {
    left: 0; /* Mueve el fondo animado al centro */
}

.nav-links a:hover {
    color: #00bfff; /* Cambia el color del texto al pasar el mouse */
    transform: scale(1.1); /* Aumenta ligeramente el tamaño */
    z-index: 1;
}

.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    list-style: none;
    padding: 0.5rem 0;
    box-shadow: 0 4px 8px rgba(214, 206, 206, 0.2);
    z-index: 1000;
}

.nav-links .dropdown-menu li {
    padding: 0.5rem 1rem;
}

.nav-links .dropdown-menu li a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.nav-links .dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #000000;
}

.nav-links .dropdown:hover .dropdown-menu {
    display: block; /* Show dropdown on hover */
}

/* Responsive Design for Navbar */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        text-align: left;
    }
}

.hero {
    position: relative;
    height: 100vh; /* Ocupa toda la altura de la ventana */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), 
                url('https://i.ibb.co/h14y9Q8h/Whats-App-Image-2025-04-15-at-3-56-23-PM.jpg');
    background-size: cover; /* Asegura que la imagen completa sea visible */
    background-position: center center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.15); /* Menos opacidad para ver más la imagen */
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3rem;
    background: linear-gradient(90deg,white ,white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #f0f0f0;
}

/* Features Section */
.features {
    padding: 2rem 0;
    background-color: var(--background-color);
    color: #f5f5f5;
    font-family: 'Segoe UI', sans-serif;
}   

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0, 191, 255, 0.3);
}

.feature-card h3 {
    color: #00bfff;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #d0d0d0;
}

.theme-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

.features {
    padding: 2rem;
    background-color: #1a1a1a; /* Fondo oscuro */
    color: #f5f5f5;
    font-family: 'Segoe UI', sans-serif;
}

.features .feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-evenly;
    align-items: flex-start;
}

.feature-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 300px; /* Asegura ancho constante para mantener alineación */
    flex-shrink: 0;
}

.feature-card {
    background: #2b2b2b;
    border: 1px solid #3d3d3d;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    width: 100%; /* Para que el card no se estire más allá del link */
    color: #f0f0f0;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: #00bfff;
    box-shadow: 0 6px 20px rgba(0,191,255,0.3);
    background-color: #333;
}

.feature-card h3 {
    color: #00bfff;
    margin-bottom: 1rem;
}

.feature-card p,
.feature-card li {
    color: #d0d0d0;
}

.extra-info {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.feature-card:hover .extra-info {
    opacity: 1;
    max-height: 300px;
    margin-top: 1rem;
}

.arrow {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .arrow {
    transform: translateX(5px); /* mueve la flecha un poco al pasar el mouse */
}

#Redes {
    display: flex;
        align-items: flex-start;
        justify-content: space-evenly;
        list-style: none;
        position: fixed;
        gap: 2rem;
        margin-left: 7%;
}

#Redes li {
    list-style: none;
    margin-right: 0.5rem;
}

.feature-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 300px; /* Asegura ancho constante para mantener alineación */
    flex-shrink: 0;
}

.feature-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 300px; /* Asegura ancho constante para mantener alineación */
    flex-shrink: 0;
    margin-bottom: 1rem;
}

#Redes li a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#Redes li a:hover {
    color: var(--primary-color);
    cursor: pointer;
}

/* Efecto blanco y animación para el icono del libro en la navbar */
#Redes img {
    filter: brightness(0) invert(1); /* Convierte la imagen a blanco */
    transition: transform 0.3s, filter 0.3s;
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

#Redes img:hover {
    transform: scale(1.18) rotate(-8deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px #fff);
}

.copyright {
    text-align: center;
    color: var(--text-color);
    font-size: 0.9rem;
}

.copyright {
    text-align: center;
    color: var(--text-color);
    font-size: 0.9rem;
    margin-top: 0;
    padding-bottom: 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column; /* Cambia la dirección a vertical */
        align-items: center; /* Centra los elementos */
        padding: 1rem; /* Reduce el padding */
    }

    .nav-links {
        flex-direction: column; /* Cambia los enlaces a una columna */
        gap: 1rem; /* Espaciado entre enlaces */
        text-align: center; /* Centra los enlaces */
        margin-top: 1rem; /* Añade espacio superior */
    }

    .nav-links a {
        font-size: 1rem; /* Ajusta el tamaño del texto */
        padding: 0.5rem 1rem; /* Espaciado interno */
        white-space: nowrap; /* Evita que el texto se divida en varias líneas */
    }

    #Redes {
        display: flex;
        flex-wrap: wrap; /* Permite que los íconos se ajusten en varias líneas si es necesario */
        gap: 1rem; /* Espaciado entre íconos */
        justify-content: center; /* Centra los íconos */
        margin-top: 1rem; /* Añade espacio superior */
    }

    #Redes li a {
        font-size: 1.5rem; /* Ajusta el tamaño de los íconos */
        padding: 0.5rem; /* Espaciado interno */
    }

    .dropdown-menu {
        position: static; /* Asegura que el menú desplegable no se superponga */
        width: 100%; /* Ocupa todo el ancho disponible */
        text-align: center; /* Centra el contenido */
        margin-top: 0.5rem; /* Añade espacio superior */
    }

    .dropdown-menu li {
        padding: 0.5rem 0; /* Espaciado interno para los elementos del menú */
    }

    .dropdown-menu li a {
        font-size: 1rem; /* Ajusta el tamaño del texto */
    }

    .hero {
        height: auto; /* Ajusta la altura automáticamente */
        padding: 2rem 1rem;
        text-align: center; /* Centra el texto */
    }

    .hero h1 {
        font-size: 1.8rem; /* Reduce el tamaño del título */
        line-height: 1.4; /* Mejora la legibilidad */
        margin-bottom: 1rem; /* Añade espacio debajo del título */
    }

    .hero p {
        font-size: 1rem; /* Ajusta el tamaño del texto */
        margin-top: 1rem; /* Añade espacio debajo del título */
    }

    .feature-grid {
        grid-template-columns: 1fr; /* Cambia a una sola columna */
        gap: 1.5rem; /* Ajusta el espacio entre tarjetas */
    }

    .feature-card {
        font-size: 1rem; /* Ajusta el tamaño del texto */
        padding: 1.5rem; /* Reduce el padding */
        text-align: center; /* Centra el contenido */
    }

    .feature-card h3 {
        font-size: 1.2rem; /* Ajusta el tamaño del título */
    }

    .feature-card p {
        font-size: 0.9rem; /* Ajusta el tamaño del texto */
    }

    .programs-grid {
        display: grid;
        grid-template-columns: 1fr; /* Cambia a una sola columna */
        gap: 1rem; /* Ajusta el espacio entre tarjetas */
    }

    .card {
        padding: 1rem; /* Reduce el padding */
        text-align: center; /* Centra el contenido */
    }

    footer .copyright {
        font-size: 0.9rem; /* Ajusta el tamaño del texto del footer */
        text-align: center; /* Centra el texto */
        padding: 1rem; /* Añade padding para mejor separación */
    }
}

/* Media Queries para dispositivos móviles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* Cambia la dirección a vertical */
        align-items: center; /* Centra los elementos */
        padding: 1rem; /* Reduce el padding */
    }

    .nav-links {
        display: none; /* Oculta los enlaces por defecto */
        flex-direction: column; /* Cambia los enlaces a una columna */
        gap: 1rem; /* Espaciado entre enlaces */
        text-align: center; /* Centra los enlaces */
        width: 100%; /* Ocupa todo el ancho disponible */
        margin-top: 1rem; /* Añade espacio superior */
    }

    .nav-links.active {
        display: flex; /* Muestra los enlaces cuando el menú está activo */
    }

    .nav-links a {
        font-size: 1rem; /* Ajusta el tamaño del texto */
        padding: 0.5rem 1rem; /* Espaciado interno */
        white-space: nowrap; /* Evita que el texto se divida en varias líneas */
        width: 100%; /* Asegura que los enlaces ocupen todo el ancho */
    }

    .toggle-button {
        display: flex; /* Muestra el botón de menú */
        align-items: center;
        justify-content: center;
        background-color: var(--primary-color); /* Color de fondo del botón */
        color: var(--text-color); /* Color del ícono */
        border: none;
        border-radius: 5px;
        padding: 0.5rem 1rem;
        cursor: pointer;
        font-size: 1.2rem;
        margin-top: 1rem;
    }

    .toggle-button:hover {
        background-color: var(--second-color); /* Cambia el color al pasar el mouse */
    }
}

/* Media Queries para tabletas */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar .container {
        flex-wrap: wrap; /* Permite que los elementos se ajusten */
    }

    .nav-links {
        gap: 2rem; /* Ajusta el espacio entre los enlaces */
    }

    .hero h1 {
        font-size: 2rem; /* Ajusta el tamaño del título */
    }

    .hero p {
        font-size: 1.1rem; /* Ajusta el tamaño del texto */
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr); /* Cambia a dos columnas */
        gap: 1.5rem;
    }

    .feature-card {
        font-size: 1rem; /* Ajusta el tamaño del texto */
    }
}

/* Programs section styles */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--card-background);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    color: #f0f0f0;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #00bfff;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.685);
    background-color: #333;
}

.card h2 {
    color: #e2eaec;
    margin-bottom: 1rem;
}

.card p,
.card ul,
.card li {
    color: #d0d0d0;
}

/* Animation for fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Hidden class for read more content */
.hidden {
    display: none;
}

/* Read more button styles */
.read-more-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.read-more-btn:hover {
    background-color: var(--second-color);
}

body {
    margin: 0;
    background: linear-gradient(to right, #3f59a3, #252323);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
  }

  .footer_Index {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    color: white;
    padding: 0rem 1rem;
    text-align: center;
}

.footer_Index p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.footer_Index a {
    color: #00bfff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.carrusel_fondo {
    background-color: #1A1A1A;
    color: white; /* Para que el texto sea legible sobre el fondo oscuro */
}

/* Estilos para la galería */
.gallery {
    padding: 2rem 0;
    background: linear-gradient(to right, #3f59a3, #252323);
    color: #333;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

.image-container {
    margin-top: 1rem;
    text-align: center; /* Centra el contenido dentro del contenedor */
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
    height: 200px; /* Ajusta la altura del contenedor según sea necesario */
    overflow: hidden; /* Oculta cualquier parte de la imagen que sobresalga */
}

.image-container img {
    max-width: 100%; /* Asegura que la imagen no exceda el ancho del contenedor */
    max-height: 100%; /* Asegura que la imagen no exceda la altura del contenedor */
    object-fit: cover; /* Ajusta la imagen para que cubra completamente el contenedor */
    border-radius: 10px; /* Bordes redondeados para las imágenes */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para un efecto visual atractivo */
    transition: transform 0.3s ease; /* Transición suave para el hover */
}

.image-container img:hover {
    transform: scale(1.05); /* Efecto de zoom al pasar el mouse */
}

/* Estilo para el footer */
.footer {
    background: linear-gradient(135deg, #000000, #000000);
    color: white;
    padding: 1rem 1rem;
    text-align: center;
    margin-top: auto; /* Empuja el footer hacia la parte inferior */
}

/* Estilos para el botón de selección de pestañas */
.tab-selector-btn {
    display: none;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tab-selector-btn:hover {
    background-color: var(--second-color);
}

/* Estilos para el menú desplegable */
.tab-selector-menu {
    display: none;
    list-style: none;
    padding: 0.5rem;
    background-color: var(--background-color);
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    position: absolute;
    z-index: 1000;
}

.tab-selector-menu li {
    margin: 0.5rem 0;
}

.tab-selector-menu input {
    margin-right: 0.5rem;
}

/* Mostrar el botón y el menú en dispositivos móviles */
@media (max-width: 768px) {
    .tab-selector-btn {
        display: block;
    }

    .tab-selector-menu {
        display: block;
    }
}

/* Estilos para el botón hamburguesa */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Mostrar el botón hamburguesa en dispositivos móviles */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        background-color: var(--background-color);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        text-align: left;
    }
}

/* Estilos para la navbar en dispositivos móviles */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Oculta la navbar por defecto */
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        background-color: var(--background-color);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Muestra la navbar cuando tiene la clase "active" */
    }
}

.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out; /* Transición suave entre imágenes */
    width: 100%;
}

.carousel img {
    width: 100%;
    height: 400px; /* Ajusta la altura según tus necesidades */
    object-fit: cover; /* Asegura que las imágenes se ajusten al contenedor */
    flex-shrink: 0;
    display: none; /* Oculta las imágenes por defecto */
}

.carousel img.active {
    display: block; /* Muestra solo la imagen activa */
}

.controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.controls button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.controls button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.indicators {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: white;
}

