/* Fondo degradado moderno */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 20px;
}
/* Contenedor del menú flotante en la esquina superior derecha */
.menu-top-right {
    position: fixed;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 15px;
    background-color: rgba(255,255,255,0.9);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    align-items: center;
    font-family: sans-serif;
    z-index: 1000;
}

/*Pantalla Empezar*/
#tapToStart {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: black;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 9999;
    cursor: pointer;
}

/* Estilo de cada botón del menú */
.menu-top-right a {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 8px;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}

/* Efecto hover */
.menu-top-right a:hover {
    background-color: #007BFF;
    color: white;
}

/* Tamaño y color de los iconos SVG */
.menu-top-right svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}




/* Contenedor principal */
.inicio_contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;

}

.inicio_img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.inicio_contenedor h1 {
    font-size: 2.5em;
    color: #000;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

/* Grid de carpetas */
.inicio_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 900px;
}

/* Tarjetas con efecto glassmorphism */
.inicio_card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    font-size: 1.1em;
    color: #000;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.3);
}

.inicio_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.35);
}

/* Links */
.inicio_card_link {
    text-decoration: none;
}

/* Íconos de carpeta más grandes */
.inicio_card::before {
    /*content: "📁";*/
    display: block;
    font-size: 2em;
    margin-bottom: 10px;
}

/* Responsivo */
@media screen and (max-width: 500px) {
    .inicio_contenedor h1 {
        font-size: 2em;
    }
    .inicio_card {
        padding: 20px;
        font-size: 1em;
    }
}


.login_body {
    overflow: hidden;
}

.login {
    background: #fff;
    padding: 40px 50px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    width: 350px;
    text-align: center;
}

.login_h1 {
    margin-bottom: 30px;
    font-size: 2em;
    color: #333;
    letter-spacing: 1px;
}

.login form input[type="text"],
.login form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0 20px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: 0.3s;
}

.login form input[type="text"]:focus,
.login form input[type="password"]:focus {
    border-color: #4facfe;
    box-shadow: 0 0 8px rgba(79,172,254,0.5);
    outline: none;
}

.login form button {
    width: 100%;
    padding: 12px;
    background: #4facfe;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: 0.3s;
}

.login form button:hover {
    background: #00f2fe;
}

.login p {
    margin-top: 15px;
    font-size: 0.9em;
    color: red;
}



/* Título de carpeta */
.carpeta_h1 {
    font-size: 2em;
    color: #000;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
    margin: 20px 0;
    text-align: center;
}

/* Lista de documentos */
.carpeta_lista {
    list-style: none;
    padding: 0;
    margin: 20px;
}

.carpeta_lista li {
    padding: 10px 15px;
    background: rgba(255,255,255,0.25);
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-weight: bold;
}

/* Contenedor principal para carpetas */
.carpeta_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    width: 90%; /* o el ancho deseado */
    max-width: 1000px;
    margin: 0 auto 40px auto; /* centrado horizontal */
}

.carpeta_card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Indicar que un elemento está seleccionado */
.carpeta_card.seleccionado {
    border: 3px solid #007BFF;
    background: rgba(0, 123, 255, 0.2);
}

/* Tarjetas para cada media */
.carpeta_card {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

/* Media dentro de la tarjeta */
.carpeta_media {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Nombre del archivo */
.carpeta_nombre {
    font-size: 0.9em;
    color: #000;
    word-break: break-word;
}

/* Modal lightbox */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.modal-contenido img,
.modal-contenido video {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
}

.cerrar {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    color: white;
    font-size: 50px;
    padding: 10px;
    margin-top: -25px;
    user-select: none;
    background: rgba(0,0,0,0.3);
    border: none;
    border-radius: 50%;
}

.prev { left: 30px; }
.next { right: 30px; }

.descargar {
    position: absolute;
    bottom: 30px;
    background: #4facfe;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}







.editor {
    width: 90%;
    height: auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.editor_h1 {
    font-size: 2em;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.editor textarea {
    width: 98%;
    height: 400px;
    margin: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-family: monospace;
    font-size: 1em;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.editor textarea:focus {
    border-color: #4facfe;
    box-shadow: 0 0 8px rgba(79,172,254,0.5);
    outline: none;
}

.editor button {
    display: block;
    width: 98%;
    padding: 12px;
    margin: 15px;
    background: #4facfe;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: 0.3s;
}

.editor button:hover {
    background: #00f2fe;
}

.editor_h3{
    margin: 15px;
}

.editor ul {
    list-style: none;
    padding: 0;
    margin: 15px;
}

.editor ul li {
    margin-bottom: 10px;
}

.editor ul li a {
    text-decoration: none;
    color: #4facfe;
    transition: 0.3s;
}

.editor ul li a:hover {
    text-decoration: underline;
}

.editor p {
    margin-top: 15px;
    font-size: 0.95em;
    color: green;
    text-align: center;
}