/* Estilos generales y estructura base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    padding-top: 80px;
    background-color: #f9f9f9;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    color: white;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #FFD700;
}

/* Navegación principal */
nav {
    background-color: #001a33;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-logo {
    margin-left: 30px;
    margin-right: 40px;
}

.nav-logo img {
    height: 60px;
    width: auto;
    transition: transform 0.3s;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-grow: 1;
}

nav ul li {
    margin: 0 20px;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 1.1rem;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #FFD700;
    color: #001a33;
}

/* Encabezados de secciones */
header {
    background: linear-gradient(rgba(0, 26, 51, 0.5), rgba(0, 26, 51, 0.5)), 
                url('Fotos/portada.png') no-repeat center center;
    background-size: cover;
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    transition: background-image 1s ease-in-out;
}

header p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.logo-header {
    width: 250px;
    height: auto;
    margin-top: 30px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

/* Sección Misión y Visión */
.mision-vision {
    background-color: #001a33;
    color: white;
    padding: 100px 0;
}

.mision-vision h2 {
    color: white;
}

.mision-vision h2::after {
    background-color: #FFD700;
}

.mision-vision-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-top: 50px;
}

.mision, .vision {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s;
}

.mision:hover, .vision:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.mision-vision-img-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background-color: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.mision-vision-img-container i {
    font-size: 3rem;
    color: #001a33;
}

.mision h3, .vision h3 {
    text-align: center;
    color: #FFD700;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Sección Áreas Municipales */
.areas {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.area-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    cursor: pointer;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #001a334c;
}

.area-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    background-color: #001a33;
    color: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s;
}

.area-card:hover .area-icon {
    background-color: #FFD700;
    color: #001a33;
    transform: rotate(15deg) scale(1.1);
}

.area-card h3 {
    color: #001a33;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.area-more {
    margin-top: 15px;
    color: #001a33;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
    font-size: 0.9rem;
    opacity: 0.8;
}

.area-card:hover .area-more {
    color: #FFD700;
    opacity: 1;
    transform: translateX(5px);
}

/* Modal de Áreas */
.modal-area {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    overflow-y: auto;
}

.modal-area-content {
    background-color: white;
    margin: 50px auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    position: relative;
}

.close-area {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: #001a33;
    cursor: pointer;
    transition: all 0.3s;
}

.close-area:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.area-schedule {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.area-schedule i {
    font-size: 1.2rem;
    color: #001a33;
    margin-right: 10px;
}

.area-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.gallery-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Sección Noticias */
.noticias {
    background: linear-gradient(135deg, #36d600 0%, #004d00 100%);
    color: white;
    padding: 100px 0;
}

.noticias h2 {
    color: white;
}

.noticias h2::after {
    background-color: #FFD700;
}

.noticias-slider {
    position: relative;
    max-width: 1200px;
    margin: 50px auto 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.noticias-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.noticia-slide {
    min-width: 100%;
    padding: 0;
    position: relative;
}

.noticia-img-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.noticia-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.noticia-slide:hover .noticia-img-container img {
    transform: scale(1.05);
}

.noticia-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.noticia-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 40px;
    color: white;
    z-index: 1;
}

.noticia-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.noticia-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.noticia-meta i {
    margin-right: 5px;
    color: #FFD700;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #001a33;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0.7;
}

.slider-btn:hover {
    background-color: white;
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.slider-dots {
    text-align: center;
    margin-top: 30px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background-color: white;
    transform: scale(1.3);
}

.ver-mas-container {
    text-align: center;
    margin-top: 40px;
}

.ver-mas {
    display: inline-block;
    padding: 15px 35px;
    background-color: white;
    color: #006000;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: 2px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ver-mas:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Sección Contacto en Inicio */
.contacto-inicio {
    background-color: #001a33;
    padding: 80px 0;
}

.contacto-inicio h2 {
    color: white;
}

.contacto-inicio h2::after {
    background-color: #FFD700;
}

.contacto-grid-compacto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.contacto-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contacto-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.contacto-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contacto-card-icon {
    width: 60px;
    height: 60px;
    background-color: #FFD700;
    color: #001a33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    transition: all 0.3s;
}

.contacto-card:hover .contacto-card-icon {
    transform: rotate(15deg) scale(1.1);
}

.contacto-card-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
}

.contacto-card-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.redes-sociales-compacto {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.red-social-item-compacto {
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
}

.red-social-icon-compacto {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    transition: all 0.3s;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.red-social-item-compacto:hover .red-social-icon-compacto {
    background: #FFD700;
    color: #001a33;
    transform: translateY(-5px);
}

.red-social-label {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s;
}

.red-social-item-compacto:hover .red-social-label {
    opacity: 1;
    color: #FFD700;
}

/* Footer */
footer {
    background-color: #001a33;
    color: white;
    text-align: center;
    padding: 30px 0;
}

/* Sección Información Pública */
.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1rem;
    width: 100%; /* Asegura que ocupe todo el ancho */
    display: block; /* Para que el text-align center funcione */
}

.documentos-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.documentos-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.categoria {
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.categoria-header {
    padding: 18px 25px;
    background-color: #001a33;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.categoria-header:hover {
    background-color: #002b5a;
}

.categoria-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    background-color: white;
}

.categoria-contenido.activo {
    max-height: 5000px;
    padding: 20px;
}

.carpeta {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.carpeta-header {
    padding: 15px;
    background-color: #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: #001a33;
}

.carpeta-contenido {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
}

.carpeta-contenido.activo {
    max-height: 5000px;
    padding: 15px;
}

.documento-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
}

.documento-item:hover {
    background-color: #f9f9f9;
}

.documento-item i {
    font-size: 1.8rem;
    color: #001a33;
    margin-right: 15px;
}

.documento-info h4 {
    margin: 0 0 5px 0;
    color: #001a33;
    font-size: 1rem;
}

.documento-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #777;
}

.descargar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #001a33;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.descargar-btn:hover {
    background-color: #002b5a;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.sin-documentos {
    padding: 20px;
    text-align: center;
    color: #777;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 6px;
    margin: 10px 0;
}

/* Sección Sobre Nosotros */
.historia-section {
    padding: 80px 0;
    background-color: white;
}

.historia-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.historia-img {
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.historia-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.historia-text h2 {
    color: #001a33;
    text-align: left;
}

.historia-text h2::after {
    left: 0;
    transform: none;
}

/* Sección Valores */
.valores-section {
    background-color: #f5f5f5;
    padding: 80px 0;
}

.valores-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.valor-item {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s;
    border: 1px solid #e0e0e0;
}

.valor-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.valor-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-color: #001a33;
    color: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.valor-item h3 {
    color: #001a33;
    margin-bottom: 15px;
}

/* Sección Contacto */
.contacto-form {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.formulario-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #001a33;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 17px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #001a33;
    box-shadow: 0 0 0 3px rgba(0, 26, 51, 0.1);
}

.form-group textarea {
    min-height: 220px;
    resize: vertical;
}

.btn-enviar {
    background-color: #001a33;
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-enviar:hover {
    background-color: #002b5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contacto-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contacto-detalle {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.contacto-detalle:hover {
    background-color: #f5f5f5;
}

.contacto-detalle i {
    font-size: 1.2rem;
    color: #001a33;
    margin-right: 15px;
    background-color: #f0f0f0;
    padding: 12px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.contacto-detalle:hover i {
    background-color: #001a33;
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.mapa-container {
    margin: 25px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.mapa-direccion {
    display: flex;
    align-items: center;
    background-color: #f0f0f0;
    padding: 12px 15px;
    border-radius: 0 0 8px 8px;
}

.redes-sociales {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.red-social-item {
    color: #001a33;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.red-social-icon {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    transition: all 0.3s;
    font-size: 1.3rem;
}

.red-social-item:hover .red-social-icon {
    background-color: #001a33;
    color: white;
    transform: translateY(-5px);
}

/* Responsividad */
@media (max-width: 1200px) {
    .areas-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .areas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mision-vision-container, .historia-content {
        flex-direction: column;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
    }
    
    .historia-img {
        order: -1;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    nav {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .nav-logo {
        margin: 0 0 15px 0;
    }
    
    .noticia-img-container {
        height: 350px;
    }
    
    .redes-sociales {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .noticia-img-container {
        height: 300px;
    }
    
    .noticia-content {
        padding: 20px;
    }
    
    .historia-img, .transparencia-img {
        width: 100%;
        height: auto;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
























/* Estilos para el árbol de documentos */
.document-tree {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.document-folder, .document-file {
    margin-left: 20px;
    position: relative;
}

.folder-header {
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin: 5px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.folder-header:hover {
    background-color: #e0e0e0;
}

.folder-header i.fa-folder {
    color: #FFD700;
    margin-right: 10px;
    font-size: 1.2rem;
}

.folder-header i.folder-toggle {
    margin-left: auto;
    transition: transform 0.2s;
}

.folder-name {
    font-weight: 600;
    color: #001a33;
}

.folder-contents {
    margin-left: 25px;
    padding-left: 15px;
    border-left: 2px solid #e0e0e0;
    display: none;
}

.document-file {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    margin: 3px 0;
    border-radius: 5px;
    transition: all 0.2s;
}

.document-file:hover {
    background-color: #f9f9f9;
}

.file-icon {
    width: 25px;
    text-align: center;
    margin-right: 10px;
    color: #555;
    font-size: 1.1rem;
}

.file-name {
    flex-grow: 1;
    color: #333;
    font-size: 0.95rem;
}

.file-size {
    color: #777;
    font-size: 0.85rem;
    margin: 0 15px;
}

.file-download {
    color: #001a33;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-download:hover {
    background-color: #001a33;
    color: white;
}

.loading-docs, .error-docs, .no-documents {
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 10px 0;
}

.loading-docs {
    background-color: #f5f5f5;
    color: #555;
}

.error-docs {
    background-color: #ffeeee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.no-documents {
    background-color: #f5f5f5;
    color: #777;
    font-style: italic;
}

.btn-reintentar {
    background-color: #001a33;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reintentar:hover {
    background-color: #002b5a;
}

.loading-contents, .error-contents {
    padding: 10px;
    font-size: 0.9rem;
    color: #555;
}

.error-contents {
    color: #d32f2f;
}

.fa-spinner {
    margin-right: 8px;
}












/* Estados de documentos */
.document-state {
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.document-state.loading {
    background-color: #f8f9fa;
    color: #6c757d;
}

.document-state.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.document-state.error.small {
    padding: 10px;
    font-size: 0.9rem;
}

.document-state.empty {
    background-color: #e2e3e5;
    color: #383d41;
}

.document-state i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.error-message {
    max-width: 500px;
    word-break: break-word;
}

.btn-retry {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-retry:hover {
    background-color: #c82333;
}

.btn-retry i {
    margin: 0;
    font-size: 0.9rem;
}