* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f1117;
    color: #ffffff;
}

.app {
    display: flex;
    min-height: 100vh;
}


/* BARRA LATERAL */

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #0f1117 20%, #9cabd1 100%);
    border-right: 1px solid #292e3a;
    padding: 25px 18px;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 60%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 25px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

nav a {
    color: #aeb4c0;
    text-decoration: none;

    padding: 12px 14px;

    border-radius: 8px;

    transition: 0.2s;
}

nav a:hover {
    background: #202532;
    color: white;
}

nav a.active {
    background: #262c39;
    color: white;
}


/* CONTENIDO */

.main {
    flex: 1;
}

.topbar {
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 40px;

    border-bottom: 1px solid #292e3a;
}

.topbar h1 {
    font-size: 20px;
}

.search {
    color: #8f96a3;

    background: #181c25;

    border: 1px solid #292e3a;

    padding: 10px 18px;

    border-radius: 8px;
}


/* CONTENIDO PRINCIPAL */

.content {
    padding: 50px;
    max-width: 1200px;
}

.welcome span,
.small-title {
    color: #1519f0;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1px;
}

.welcome h2 {
    font-size: 38px;

    margin: 12px 0;
}

.welcome p {
    color: #3275e9;

    max-width: 650px;

    font-size: 16px;

    line-height: 1.6;
}


/* TARJETAS */

.cards {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 40px;
}

.card {
    background: #151821;

    border: 1px solid #292e3a;

    border-radius: 12px;

    padding: 25px;

    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);

    border-color: #0a3083;
}

.card-icon {
    font-size: 30px;

    margin-bottom: 20px;
}

.card h3 {
    margin: 0 0 10px;
}

.card p {
    color: #9299a6;

    line-height: 1.5;

    min-height: 70px;
}

button {
    background: #1d4db4;

    color: white;

    border: none;

    padding: 10px 15px;

    border-radius: 7px;

    cursor: pointer;

    font-weight: bold;
}

/* =================================
   SECCIÓN: ACTUALIZACIONES
================================= */

/*Timeline de actualizaciones*/

.actualizaciones {
    margin-top: 40px;
    padding: 30px;
    background: #151821;
    border: 1px solid #292e3a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.update-box {
    padding: 25px;
    background: #1b1f2c;
    border: 1px solid #292e3a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.update-box h3 {
    margin: 10px 0;
}

.update-box p {
    color: #9299a6;
}

.status {
    color: #1aff05;

    font-weight: bold;
}
/* EQUIPO */

.team {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 40px;
}

.member {
    background: #151821;

    border: 1px solid #292e3a;

    border-radius: 12px;

    padding: 25px;

    text-align: center;

    transition: 0.2s;
}

.member:hover {
    transform: translateY(-5px);

    border-color: #0a3083;
}

.member img {
    width: 130px;

    height: 130px;

    object-fit: cover;

    border-radius: 50%;

    border: 3px solid #292e3a;

    margin-bottom: 15px;
}

.member h3 {
    margin: 5px 0;

    font-size: 18px;
}

.member p {
    color: #9299a6;

    margin: 5px 0;
}

.project-info {
    margin-top: 30px;
}
/* Programas */

.software-card {
    margin-top: 40px;

    display: flex;

    gap: 25px;

    padding: 30px;

    background: linear-gradient(288.97deg, #0B1F3A 0%, #1A3A5F 100%);

    border: 1px solid #292e3a;

    border-radius: 12px;

    transition: 0.2s;
}

.software-card:hover {
    transform: translateY(-3px);

    border-color: #e0eaff;
}

.software-icon {
    width: 70px;
    height: 70px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #202532;

    border-radius: 12px;

    font-size: 32px;
}

.software-info {
    flex: 1;
}

.software-type {
    color: #e1e4e9;

    font-size: 15px;

    font-weight: bold;

    letter-spacing: 1px;
}

.software-info h3 {
    margin: 8px 0;

    font-size: 24px;
}

.software-info p {
    color: #9299a6;

    line-height: 1.5;

    max-width: 700px;
}

.software-details {
    display: flex;

    gap: 20px;

    margin: 20px 0;

    color: #aeb4c0;

    font-size: 14px;
}
/* =================================
   ACTUALIZACIONES
================================= */

.updates-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 25px;
}


.update-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;

    background: #161922;

    border: 1px solid #292d38;

    border-radius: 16px;

    padding: 24px;

    min-height: 210px;

    box-sizing: border-box;

    transition: transform 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}


.update-card:hover {
    transform: translateY(-4px);

    border-color: #0a3083;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}


.update-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f3f4f6;

    border-radius: 14px;

    font-size: 26px;
}


.update-info {
    flex: 1;
}


.update-type {
    display: block;

    margin-bottom: 8px;

    color: #0a3083;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 1px;
}


.update-info h3 {
    margin: 0 0 12px 0;

    color: #ffffff;

    font-size: 19px;

    line-height: 1.3;
}


.update-info p {
    margin: 0 0 16px 0;

    color: #aab2c0;

    line-height: 1.5;
}


.update-date {
    color: #7f8796;

    font-size: 13px;

    font-weight: bold;
}


/* RESPONSIVE */

@media (max-width: 900px) {

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

}


@media (max-width: 600px) {

    .update-card {
        flex-direction: column;
    }

}

/* =================================
   CÓDIGO QR
================================= */

.qr-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 25px;
}


/* TARJETA PRINCIPAL */

.qr-card {
    background: #111827;

    border: 1px solid #26344d;

    border-radius: 18px;

    padding: 30px;

    text-align: center;
}


.qr-card h3 {
    color: white;

    font-size: 22px;

    margin: 10px 0;
}


.qr-card > p {
    color: #94a3b8;

    line-height: 1.5;
}


/* IMAGEN DEL QR */

.qr-image {
    width: 260px;
    height: 260px;

    margin: 25px auto;

    padding: 12px;

    box-sizing: border-box;

    background: white;

    border-radius: 14px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.qr-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


.qr-help {
    font-size: 13px;
}


/* INSTRUCCIONES */

.qr-info {
    display: flex;

    flex-direction: column;

    gap: 15px;
}


.qr-info-card {
    background: #111827;

    border: 1px solid #26344d;

    border-radius: 16px;

    padding: 20px;

    transition: transform 0.2s ease,
                border-color 0.2s ease;
}


.qr-info-card:hover {
    transform: translateX(0px);

    border-color: #2563eb;
}


.qr-info-icon {
    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #172554;

    border: 1px solid #1d4ed8;

    border-radius: 12px;

    font-size: 22px;

    margin-bottom: 10px;
}


.qr-info-card h3 {
    color: white;

    margin: 5px 0 8px;
}


.qr-info-card p {
    color: #94a3b8;

    line-height: 1.5;

    margin: 0;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .qr-section {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 500px) {

    .qr-image {
        width: 210px;
        height: 210px;
    }

}
/* =================================
   SECCIÓN PROGRAMAS Y DESCARGAS
================================= */

.program-category {
    margin-top: 40px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.category-title h2 {
    font-size: 22px;
    margin: 0;
}

.software-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #292e3a;
}

.program-status {
    color: #1aff05;
    font-size: 12px;
    font-weight: bold;
}

.download-button {
    display: inline-block;
    background: #1d4db4;
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.download-button:hover {
    background: #1d4db4;
    transform: translateY(-2px);
}
/* =================================
   SECCIÓN TUTORIALES Y GUÍAS
================================= */

.welcome {
    background: #151821;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #1d4db4;
}

.welcome span {
    color: #1d4db4;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.welcome h2 {
    margin: 10px 0;
    font-size: 24px;
    color: #ffffff;
}

.welcome p {
    color: #aeb4c0;
    line-height: 1.5;
    margin: 0;
}

.tutorial-grid {
    display: grid;
    /* Esto crea columnas automáticas que se adaptan al tamaño de la pantalla */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.tutorial-card {
    background: #151821;
    border: 1px solid #292e3a;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    border-color: #1449bb;
}

.tutorial-icon {
    font-size: 30px;
    background: #0f1117;
    height: 60px;
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}

.tutorial-info .tutorial-type {
    color: #9299a6;
    font-size: 11px;
    font-weight: bold;
}

.tutorial-info h3 {
    margin: 8px 0;
    font-size: 16px;
    color: #ffffff;
}

.tutorial-info p {
    font-size: 13px;
    color: #aeb4c0;
    line-height: 1.4;
    margin-bottom: 15px;
}

.tutorial-info button {
    background: transparent;
    color: #1d4db4;
    border: 1px solid #1d4db4;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
    font-weight: bold;
    font-size: 13px;
}

.tutorial-info button:hover {
    background: #1d4db4;
    color: #ffffff;
}

/*barra de inicio  */
.update-box {
    background: #151821 !important;
    border: 1px solid #292e3a !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-top: 30px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.update-box div {
    display: block;
}

.update-box .status {
    color: #1aff05 !important;
    font-weight: bold !important;
    font-size: 14px !important;
}

/* =========================================
   SECCIÓN: RED DEL AULA (Bloque de Galería Actualizado)
   ========================================= */

/* ... (mantén el resto del código anterior igual y solo cambia este fragmento) ... */

/* Galería de Imágenes - Con efecto de desplazamiento */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-card {
    background: #10131c;
    border: 1px solid #1e2538;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer; 
}

/* Efecto al pasar el ratón (Hover) */
.gallery-card:hover {
    transform: translateY(8px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: #3b82f6; 
}

.gallery-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-card:hover img {
    transform: scale(1.1); 
    transition: transform 0.3s ease;
}

.gallery-caption {
    padding: 15px;
}

/* =========================================
   SECCIÓN: RED DEL AULA
   ========================================= */

/* Contenedores generales */
.welcome,
.network-topology,
.network-gallery,
.network-status {
    background: #151821;
    border: 1px solid #1e2538;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

/* Textos destacados */
.welcome span,
.network-type,
.small-title {
    font-size: 11px;
    font-weight: bold;
    color: #3b82f6; 
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

/* Grid de Componentes (Red LAN, Switch, etc.) */
.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.network-card {
    background: #151821;
    border: 1px solid #1e2538;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.network-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Topología de la Red */
.topology {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.network-node {
    background: #10131c;
    border: 1px solid #1e2538;
    border-radius: 8px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

/* Nodo Principal */
.main-node {
    background-color: #0a3083; 
    border-color: #0a3083;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(10, 48, 131, 0.4); /* Resplandor tecnológico sutil */
}

.network-line {
    width: 2px;
    height: 30px;
    background-color: #3b82f6; 
}

.computers {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Galería de Imágenes */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-card {
    background: #10131c;
    border: 1px solid #1e2538;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    padding: 15px;
}

.gallery-caption h4 {
    margin-bottom: 5px;
    font-size: 14px;
}

.gallery-caption p {
    font-size: 13px;
    color: #8b949e;
}

/* Estado de la Red */
.network-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.status {
    background: rgba(10, 48, 131, 0.2); 
    color: #09ff00;
    border: 1px solid #0a3083; 
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}
/* FORZAR POSICIÓN SUPERIOR ABSOLUTA PARA LA PÁGINA DE CONFIGURACIÓN */
.main-content {
    position: absolute;
    top: 0;
    left: 250px;
    right: 0;
    padding: 30px;
    box-sizing: border-box;
    margin: 0 !important;
}

/* CONTENEDOR RECTILÍNEO DE TARJETAS */
.config-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
    max-width: 900px;
}

/* tamaño de logo*/
.sidebar-logo {
    width: 80px;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* borde de tarjetas */
.software-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 10px; 
}

/* =========================================
   SECCIÓN: VIDEOTUTORIALES
   ========================================= */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* proporción de 16:9 */
    height: 0;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: show;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/*visor de imagenes modal*/

.modal-viewer {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(5px); 
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.planta1 {
    background: #151821;
    border: 1px solid  #1e2538;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 15px;
    text-align: center;
 }

 .fecha {
   background: none;
    color: #09ff00;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
 
  @keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px#09ff00;
        text-shadow:0 0 8px rgba(9, 255, 0, 0.6);
    }
    14% {
        box-shadow: 0 0 10px #00ff88;
        text-shadow: 0 0 8px rgba(9, 255, 0, 0.6);
    }
    28% {
        box-shadow: 0 0 10px #00f0ff;
        text-shadow: 0 0 8px rgba(9, 255, 0, 0.6);
    }
    42% {
        box-shadow: 0 0 15px #0077ff;
        text-shadow: 0 0 8px rgba(9, 255, 0, 0.6);
     }
    57% {
        box-shadow: 0 0 20px #7000ff;
        text-shadow: 0 0 8px rgba(9, 255, 0, 0.6);
    }
    71% {
        box-shadow: 0 0 10px #b800ff;
        text-shadow: 0 0 8px rgba(9, 255, 0, 0.6);
    }
    85% {
        box-shadow: 0 0 10px #ff007f;
        text-shadow: 0 0 8px rgba(9, 255, 0, 0.6);
    }
    100% {
        box-shadow: 0 0 5px #09ff00;
        text-shadow: 0 0 8px rgba(9, 255, 0, 0.6);
    }
    
 }
 .fecha strong{
    background-color: rgba(10, 48, 131, 0.2);
    color: #f0f4f8;
    border: none;
    padding: 6px 13px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: pulse-glow 6s infinite;
 }