:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #aab7bb;
    --text-color: #2c3e50;
    --success-color: #2ecc71;
    --drive-color: #4285f4;
    --background-image: url('../assets/images/VICO2.jpeg');
    
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(60, 83, 213, 0.5); /* Azulito clarito transparente */
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    transition: background-color 0.8s ease;
}

.back-to-main {
    order: 1;
    margin-right: 20px;
}

.logo-container {
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-access {
    order: 3;
    margin-left: 20px;
}

header:hover {
    background-color: rgba(137, 145, 170, 0.8); /* Azulito clarito un poco menos transparente al pasar el mouse */
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 200px;
    margin-right: 0px;
}

.header-text {
    text-align: center;
    position: relative;
}

.header-text h1 {
    font-size: 2.5rem;
    color: #00ffff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #00ffff;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    animation: typewriter 3s steps(40) 1s 1 normal both;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #00ffff;
}

.header-text .subtitle {
    font-size: 1.3rem;
    color: #00bfff;
    text-shadow: 
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 8px #00bfff,
        0 0 16px #00bfff;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
    animation: typewriter 2.5s steps(30) 4.5s 1 normal both;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #00bfff;
}

.header-text .teacher {
    font-size: 1.1rem;
    color: #ff00ff;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        0 0 6px #ff00ff,
        0 0 12px #ff00ff;
    font-weight: 500;
    letter-spacing: 0.5px;
    animation: typewriter 2s steps(25) 7.2s 1 normal both;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid #ff00ff;
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Efecto de cursor parpadeante */
.header-text h1::after,
.header-text .subtitle::after,
.header-text .teacher::after {
    content: '';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


body {
    padding-top: 205px;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    
    background-image: var(--background-image);
    background-size: 35%; /* Reduce el tamaño de la imagen 45 */
   /* background-repeat: no-repeat; /* Evita que se repita */
    background-position: center top; /* Centra y mueve la imagen hacia arriba */
    background-attachment: fixed;
    background-blend-mode: overlay;
   
    padding: 230px; /* Agrega espacio alrededor del contenido */
}


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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.4rem;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.teacher {
    font-size: 1.1rem;
    color: #000000;
}

.navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nav-button {
    background: linear-gradient(135deg, #00ffff, #0080ff, #8000ff);
    color: #000;
    border: 2px solid #00ffff;
    padding: 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.5s ease;
}

.nav-button:hover {
    background: linear-gradient(135deg, #00ffff, #00bfff, #ff00ff);
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.8),
        0 0 40px rgba(0, 191, 255, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    border-color: #00bfff;
}

.nav-button:hover::before {
    left: 100%;
}

.nav-button:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 0 25px rgba(0, 255, 255, 0.6),
        inset 0 0 25px rgba(255, 255, 255, 0.15);
}

.nav-button i {
    font-size: 2rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.8));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 1));
    }
}

.icon {
    font-size: 2rem;
}

.back-button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

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

.content-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
}

.content-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5;
}

.content-card h4 {
    color: var(--secondary-color);
    margin: 1rem 0;
}

.material-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.material-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.material-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.material-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.material-button.download {
    background-color: var(--success-color);
}

.material-button.drive {
    background-color: var(--drive-color);
}

.material-button .icon {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

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

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

    .material-buttons {
        flex-direction: column;
    }
}

footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-icons {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons li {
    display: inline-block;
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #383a83; /* Dorado */
    color: rgb(5, 5, 34);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
}

.social-icons a i {
    font-size: 20px;
}

.social-icons a:hover {
    background: #b8860b; /* Dorado más oscuro */
    transform: scale(1.1);
}

/* Tablets grandes */
@media (max-width: 1024px) {
    body {
        padding: 100px 50px;
        background-size: 60%;
    }

    .navigation {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* Móviles medianos */
@media (max-width: 780px) {
    body {
        padding: 205px 50px;
        background-size: 100%;
    }

    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .teacher {
        font-size: 0.9rem;
    }

    .social-icons {
        flex-direction: column;
        align-items: center;
    }

    .social-icons a {
        width: 100%;
        justify-content: center;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    :root {
        /* --background-color: #1a1a1a; */
        --text-color: #ffffff;
        --primary-color: #4a9eff;
        --secondary-color: #62b6ff;
    }

    .content-card {
        background-color: #2d2d2d;
        color: #ffffff;
    }

    .material-item {
        background-color: #333333;
        color: #ffffff;
    }
}

/* Animaciones reducidas */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }

    /* .nav-button:hover, */
    .content-card:hover,
    .material-button:hover {
        transform: none;
    }
}

.schedule-card {
    margin: 20px;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid #243d57;

}
/* Mejoras para orientación horizontal en móviles */
@media (orientation: landscape) and (max-height: 10px) {
    body {
        padding: 20px;
    }

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

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}


/* Dispositivos con pantalla táctil */
@media (hover: none) {
    .nav-button,
    .content-card,
    .material-button {
        transition: none;
    }

    .nav-button:active,
    .content-card:active,
    .material-button:active {
        transform: scale(0.98);
    }
}

/* Estilos para el modal */
  /* Estilos del modal */
  .modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    align-items: baseline;
    z-index: 1000;
}

.modal-content {
    background: rgb(6, 63, 161);
    padding: 0px;
    border-radius: 30px;
    text-align: center;
    max-width: 700px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 17px;
    font-size: 44px;
    font-weight: bold;
    color: #fff; /* Color del icono */
    background-color: rgb(10, 17, 42); /* Fondo rojo llamativo */
    border: none;
    width: 50px; /* Tamaño del botón */
    height: 60px;
    border-radius: 70%; /* Forma redonda */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5); /* Sombra para resaltar */
}

.close:hover {
    background-color: rgb(0, 14, 139); /* Color más oscuro al pasar el mouse */
    transform: scale(1.1); /* Efecto de agrandado */
}

.close:active {
    transform: scale(0.9); /* Efecto al presionar */
}


/* Ajustes para el video */
.video-container {
    margin-top: 20px;
}

iframe {
    display: block;
    margin: auto;
    max-width: 100%;
    border-radius: 10px;
}

.modal .logo {
    width: 100px; /* Tamaño inicial */
    height: auto; /* Mantiene la proporción */
    display: block; /* Centra la imagen */
    margin: 0 auto 10px; /* Centra horizontalmente */
    border-radius: 50px; /* Bordes redondeados */
    box-shadow: 10px 4px 8px rgba(0, 0, 0, 0.3); /* Sombra inicial */
    transition: transform 0.4s ease-in-out, box-shadow 0.3s ease-in-out;
    transform-origin: center bottom; /* Hace que el crecimiento sea hacia abajo */
}

.modal .logo:hover {
    transform: translateY(100px) scale(1.8); /* Baja y crece */
    box-shadow: 20px 10px 15px rgba(0, 0, 0, 0.6); /* Sombra más intensa */
}


/* Estilos para el menú desplegable */
.submenu {
    display: none;
    position: absolute;
    background: #295eb3;
    border: 0px solid #0a2696;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    top: 290px; /* Ajusta la posición */
    right: 0;
    left: auto; /* Esto evita que el valor de 'left' interfiera */
    z-index: 1000;
    transform: translateX(-10px); /* Mueve 100px a la izquierda */
    
    
}

/* Mostrar el menú cuando se quite la clase 'hidden' */
.submenu:not(.hidden) {
    display: block;
}

.submenu button {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    background-color: #227ee1;
    color: rgb(27, 24, 24);
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.submenu button:hover {
    background-color: #0056b3;
}

/* Clase para ocultar */
.hidden {
    display: none;
}

/* Estilos para el botón de volver */
.back-to-main {
    position: relative;
}

.back-btn {
    background: linear-gradient(135deg, #00d4aa, #00b894, #00a085);
    color: #fff;
    border: 2px solid #00d4aa;
    padding: 10px 18px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 
        0 0 15px rgba(0, 212, 170, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.back-btn:hover {
    background: linear-gradient(135deg, #00b894, #00a085, #00d4aa);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 0 25px rgba(0, 212, 170, 0.6),
        0 0 35px rgba(0, 184, 148, 0.4),
        inset 0 0 25px rgba(255, 255, 255, 0.15);
    border-color: #00b894;
}

.back-btn:hover::before {
    left: 100%;
}

.back-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 0 20px rgba(0, 212, 170, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.back-btn i {
    font-size: 1.1rem;
    animation: backIconFloat 2.5s ease-in-out infinite;
    text-shadow: 
        0 0 8px rgba(255, 255, 255, 0.8),
        0 0 15px rgba(0, 212, 170, 0.6);
    filter: drop-shadow(0 0 10px rgba(0, 212, 170, 0.8));
    transition: all 0.3s ease;
}

.back-btn:hover i {
    animation: backIconBounce 0.8s ease-in-out infinite;
    color: #fff;
    text-shadow: 
        0 0 12px rgba(255, 255, 255, 1),
        0 0 20px rgba(0, 212, 170, 0.8);
    filter: drop-shadow(0 0 15px rgba(0, 212, 170, 1));
}

@keyframes backIconFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
    }
    50% { 
        transform: translateY(-3px) rotate(2deg);
    }
}

@keyframes backIconBounce {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
    }
    50% { 
        transform: scale(1.2) rotate(5deg);
    }
}

/* Estilos para el botón de administrador */
.admin-access {
    position: relative;
}

.admin-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
}

.admin-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.admin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


