.html,
body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

.enlaces a {
    color: black;
}

body a {
    text-decoration: none;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
}

body {
    background: #f0f0f0;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.no-color {
    color: black;
}

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
    gap: 60px;
}

.welcome {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 48px 40px;
    width: auto;
    text-align: left;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
}

.welcome h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 8px;
    color: #222;
}

.welcome p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 32px;
}

.actions {
    display: flex;
    gap: 16px;
}

.btn-principal,
.btn-secundario {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.25s, color 0.2s;
}

.btn-principal {
    background: #6030fc;
    color: #fff;
    border: none;
    transition: all 0.25s ease;
}

.btn-principal:hover {
    transform: scale(1.05);

}

.btn-secundario {
    background: #e5e5e5;
    color: #6030fc;
    border: none;
    transition: all 0.25s ease;
}

.btn-secundario:hover {
    transform: scale(1.05);
}

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 70px);
    /* Ajusta según el alto de tu barra superior */
    padding: 40px 20px;
    gap: 60px;
}



.main-illustration {
    max-width: 420px;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: 24px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    object-fit: cover;
    display: block;
}

.up-bar {
    background-color: #6030fc;
    height: 75px;
    display: flex;
    align-items: center;
    padding: 5px 25px;
    justify-content: space-between;
    position: fixed;
    left: 0;
    right: -1px;
    z-index: 1000;
}

.izq {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    margin-top: 5px;
    width: 105px;
    height: auto;
}

.comunidad {
    padding: 10px 10px;
}

.btn-login {
    display: inline-block;
    padding: 10px 20px;
}

.logo {
    padding: 0px 10px;
}

.boton {
    border-radius: 25px;
    transition: all 0.25s ease;
}

.boton:hover {
    transform: scale(1.1);
}

/* Estilos para la barra de búsqueda */
.search-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 400px;
    margin: 0 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 350px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 25px 0 0 25px;
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    background: #6030fc;
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: #5025d1;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
    margin-top: 8px;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.file-icon {
    color: #6030fc;
    font-size: 18px;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 500;
    color: #000 !important;
    margin-bottom: 2px;
}

/* Regla adicional para asegurar que el texto sea negro */
.search-result-item .file-info .file-name {
    color: #000 !important;
    font-weight: 600;
}

/* Anular el estilo global de enlaces blancos para los resultados de búsqueda */
.search-results a,
.search-results .file-name,
.search-result-item .file-name,
.search-result-item * {
    color: #000 !important;
    text-transform: none !important;
}

.search-results .file-path {
    color: #666 !important;
}

.file-path {
    font-size: 12px;
    color: #666;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-result-item {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar personalizado para los resultados */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsivo para la barra de búsqueda */
@media (max-width: 768px) {
    .up-bar {
        padding: 5px 15px;
    }
    
    .search-container {
        max-width: 180px;
        margin: 0 8px;
    }
    
    .search-bar {
        max-width: 180px;
    }
    
    .search-input {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .search-btn {
        padding: 8px 12px;
    }
    
    .izq .comunidad {
        display: none; /* Ocultar "Comunidad" en móviles para dar más espacio */
    }
}

@media (max-width: 480px) {
    .search-container {
        max-width: 140px;
        margin: 0 5px;
    }
    
    .search-bar {
        max-width: 140px;
    }
    
    .search-input::placeholder {
        content: "Buscar...";
    }
}

.menu {
    background-color: #6030fc;
    width: auto;
    min-width: 20%;
    height: 100%;
    position: absolute;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    margin-top: 85px;
    padding: 3px 0px 0px 0px;
    z-index: 1000;
}

.menu.open {
    transform: translateX(0);
}

.menu-icon {
    width: 40px;
    height: 40px;
    margin-left: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.menu-icon .bar {
    height: 4px;
    width: 30px;
    background: #ffffff;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.25s cubic-bezier(.68, -0.55, .27, 1.55);
}

.menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.menu-nav li {
    margin-bottom: 0px;
    width: 96%;
    margin-left: -3%;
}

.menu-nav a {
    color: #fff;
    font-weight: bold;
    padding: 12px 24px;
    margin-top: 0px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition:
        background 0.2s cubic-bezier(.4, 2, .6, 1),
        box-shadow 0.25s cubic-bezier(.4, 2, .6, 1),
        transform 0.18s cubic-bezier(.4, 2, .6, 1),
        color 0.2s;
    position: relative;
}

.menu-nav li:first-child a {
    color: #fff;
    font-weight: bold;
    padding: 12px 60px;
    margin-top: 0px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    transition:
        background 0.2s cubic-bezier(.4, 2, .6, 1),
        box-shadow 0.25s cubic-bezier(.4, 2, .6, 1),
        transform 0.18s cubic-bezier(.4, 2, .6, 1),
        color 0.25s;
    position: relative;
}

.menu-nav a:hover {
    background: #fff;
    color: #6030fc;
    box-shadow: 0 4px 24px 0 rgba(255, 255, 255, 0.25);
    transform: translateX(6px) scale(1.04);
    z-index: 2;
}

.menu-icon.material-symbols-outlined {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    transition: color 0.25s;
}

.menu-nav a:hover .menu-icon {
    color: #6030fc;
}

.arrow {
    margin-left: auto;
    font-size: 1.3em;
    opacity: 0.5;
    transform: translateX(-8px);
    transition:
        opacity 0.2s cubic-bezier(.4, 2, .6, 1),
        transform 0.3s cubic-bezier(.4, 2, .6, 1),
        color 0.2s;
    color: #fff;
    pointer-events: none;
}

.menu-nav a:hover .arrow {
    opacity: 1;
    transform: translateX(8px) scale(1.2);
    color: #6030fc;
}

.menu-icon:hover .bar:nth-child(1) {
    transform: translateY(4px) rotate(35deg);
}

.menu-icon:hover .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-icon:hover .bar:nth-child(3) {
    transform: translateY(-4px) rotate(-35deg);
}



.menu-icon.active .bar:nth-child(1) {
    transform: scale(1.2) translateY(10px) rotate(45deg);
}

.menu-icon.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active .bar:nth-child(3) {
    transform: scale(1.2) translateY(-10px) rotate(-45deg);
}


.menu-icon.active:hover .bar:nth-child(1) {
    transform: scale(1) translateY(4px) rotate(-35deg);
}

.menu-icon.active:hover .bar:nth-child(2) {
    opacity: 0;
}

.menu-icon.active:hover .bar:nth-child(3) {
    transform: scale(1) translateY(-4px) rotate(35deg);
}

.perfil-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.login-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    max-width: 400px;
    width: 100%;
}

.login-card h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1rem;
    position: relative;
}

.input-group .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #999;
}

.input-group input {
    width: 85%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: none;
    border-radius: 8px;
    background-color: #f3f3f6;
    font-size: 0.95rem;
}

.btn-login2 {
    width: 100%;
    padding: 0.75rem;
    border: none;
    background-color: #6030fc;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 0.5rem;
}

.btn-login2:hover {
    background-color: rgb(64, 29, 192);
}

.register-text {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #333;
}

.register-text a {
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.register-text a:hover {
    text-decoration: underline;
}

.perfil-menu-item:hover .perfil-nombre {
    transition: all 0.25s ease;
    color: #6030fc !important;
}

.perfil-menu-item:hover .perfil-avatar {
    transition: all 0.25s ease;
    background-color: #6030fc !important;
}

.perfil-menu-item:hover .perfil-avatar .material-symbols-outlined {
    transition: all 0.25s ease;
    color: #fff !important;
}

.perfil-container {
    min-width: 420px;
    width: auto;
    margin: 40px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px #0003;
    padding: 40px 32px 32px 32px;
    text-align: center;
}

.perfil-burbuja {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #0002;
    overflow: hidden;
}

.perfil-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.perfil-nombre {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.perfil-bio {
    color: #b0b3c6;
    font-size: 1.1rem;
    margin-bottom: 24px;
    min-height: 48px;
}

.btn-editar {
    background: #6030fc;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 28px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-editar:hover {
    transform: scale(1.1);
}

.modal-editar {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 99vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-contenido {
    background: #fff;
    padding: 32px 24px;
    border-radius: 14px;
    min-width: 350px;
    width: auto;
    position: relative;
    color: #000;
    box-shadow: 0 4px 24px #0005;
}

.modal-cerrar {
    position: absolute;
    top: 12px;
    right: 18px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-contenido label {
    display: block;
    margin: 12px 0 4px 0;
    font-weight: 500;
}

.modal-contenido textarea {
    background-color: #ebebeb;
    width: 90%;
    border-radius: 8px;
    border: none;
    padding: 8px;
    margin-bottom: 16px;
    resize: vertical;
}

.btn-guardar {
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-guardar:hover {
    background: #388e3c;
}

.modal-editar-perfil {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.btn-guardar-cambios {
    background: #6030fc;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 28px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 18px;
    transition: all 0.25s;
}

.btn-guardar-cambios:hover {
    transform: scale(1.1);
    background: #6030fc;
}

.avatar-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
    position: relative;
}

.avatar-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.avatar-center {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #6030fc;
    background: #f5f5f5;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid transparent;
    object-fit: cover;
    background: #fff;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    transition:
        left 0.5s cubic-bezier(.68, -0.55, .27, 1.55),
        top 0.5s cubic-bezier(.68, -0.55, .27, 1.55),
        opacity 0.3s,
        border 0.2s,
        transform 0.2s;
}

.avatar-circle.open .avatar-option {
    opacity: 1;
    pointer-events: auto;
}

.avatar-option.selected,
.avatar-option:hover {
    border: 2px solid #6030fc;
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 3;
}
#form-editar-perfil {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

}

#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}
#menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* REGLAS ESPECÍFICAS PARA BÚSQUEDA - PRIORIDAD MÁXIMA */
.search-result-item .file-name,
.search-result-item .file-info .file-name,
div.search-result-item div.file-info div.file-name {
    color: #000 !important;
    font-weight: 600 !important;
    text-transform: none !important;
    text-decoration: none !important;
}

.barra_busqueda{
    padding: 12px 0;

}

.busqueda-input {
    background: #e5e5e5;
    color: #000;
    border: none;
    transition: all 0.25s ease;
    border-radius: 8px 0 0 8px;
    padding: 10px 16px;
    font-size: 14px;
    width: 350px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.busqueda-input::placeholder {
    color: #666;
}
.busqueda-input:focus {
    outline: none;
    background: #d1d1d1;
}
.busqueda-btn {
    background: #6030fc;
    border: none;
    color: white;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-left: -4px;
}
.busqueda-btn:hover {
    background: #5025d1;
    transform: scale(1.08);
}

.resultado{
    margin: 0;
    padding: 16px;
    background-color: #e5e5e5;
    border-radius: 8px;
    gap: 8px;
    display: flex;
    flex-direction: column;
}

.resultado a{
    color: #111;
}

.resultado p{
    margin: 0;
}

.resultado-busqueda{
    margin: 12px 0;
    gap: 8px;
    display:  flex;
    flex-direction: column;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Estilos para el sistema de reportes */
.resultado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.resultado:hover {
    background-color: #f5f5f5;
}

.archivo-info {
    flex: 1;
}

.btn-reportar {
    background-color: #ff4757;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-left: 10px;
}

.btn-reportar:hover {
    background-color: #ff3742;
}

/* Estilos para el modal de reporte */
.modal-reporte {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-contenido-reporte {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    position: relative;
}

.cerrar-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
}

.cerrar-modal:hover,
.cerrar-modal:focus {
    color: #333;
}

.modal-reporte h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.modal-reporte p {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.opciones-reporte {
    margin-bottom: 20px;
}

.opcion-reporte {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.opcion-reporte:hover {
    background-color: #f8f9fa;
}

.opcion-reporte input[type="radio"] {
    margin-right: 10px;
    accent-color: #ff4757;
}

.opcion-reporte label {
    cursor: pointer;
    font-weight: 500;
    color: #333;
}

.comentarios-reporte {
    margin-bottom: 20px;
}

.comentarios-reporte label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.comentarios-reporte textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}

.comentarios-reporte textarea:focus {
    outline: none;
    border-color: #ff4757;
}

.botones-modal {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-cancelar {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-cancelar:hover {
    background-color: #5a6268;
}

.btn-enviar-reporte {
    background-color: #ff4757;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-enviar-reporte:hover {
    background-color: #ff3742;
}

.btn-enviar-reporte:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Mensaje de confirmación */
.mensaje-confirmacion {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    display: none;
}

.mensaje-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    display: none;
}