/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos base */
body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
#header {
    background: #fff;
    border-bottom: 3px solid #2c5aa0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#site-title {
    padding: 20px 0 10px;
    margin: 0;
}

#site-title a {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 28px;
    font-weight: 300;
    transition: color 0.3s ease;
}

#site-title a:hover {
    color: #1d4082;
}

.header-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

/* Contenido principal */
#main {
    flex: 1;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

#content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Sección de Actas */
.acta-section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.acta-section h2 {
    color: #2c5aa0;
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f2ff;
}

.acta-content {
    background: #fafbfc;
    border-radius: 8px;
    padding: 25px;
    border-left: 4px solid #2c5aa0;
}

.acta-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.acta-header h3 {
    color: #2c5aa0;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
}

.fecha-convocatoria {
    background: #2c5aa0;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    display: inline-block;
    font-weight: 500;
    font-size: 16px;
}

.empresa-nombre {
    font-weight: 700;
    font-size: 16px;
    color: #2c5aa0;
    text-align: center;
    margin-bottom: 20px;
}

.acta-body p {
    margin-bottom: 15px;
    text-align: justify;
}

.acta-body h4 {
    color: #2c5aa0;
    font-size: 18px;
    font-weight: 500;
    margin: 25px 0 15px 0;
    text-align: center;
}

.acta-body ol {
    margin: 0 0 20px 20px;
    padding-left: 0;
}

.acta-body li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.nota-legal {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    font-size: 13px;
    color: #856404;
}

.firma {
    text-align: right;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.firma p {
    margin-bottom: 5px;
}

/* Actas Anteriores */
.actas-anteriores {
    padding: 30px;
}

.accordion-toggle {
    width: 100%;
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-toggle:hover {
    background: #1d4082;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.accordion-icon {
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion-content {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    animation: slideDown 0.3s ease;
}

.acta-anterior {
    padding: 15px;
    background: white;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 3px solid #6c757d;
    transition: all 0.3s ease;
}

.acta-anterior:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.acta-anterior:last-child {
    margin-bottom: 0;
}

.acta-anterior h4 {
    color: #495057;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.acta-anterior p {
    margin-bottom: 5px;
    font-size: 13px;
}

.acta-anterior em {
    color: #6c757d;
    font-size: 12px;
}

/* Sidebar - Oculto ya que no se usa */
#sidebar {
    display: none;
}

.widget {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.widget h3 {
    color: #2c5aa0;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f2ff;
}

.contact-info p {
    margin-bottom: 8px;
    line-height: 1.5;
}

.contact-info p:first-child {
    font-weight: 600;
    color: #2c5aa0;
    font-size: 15px;
}

/* Footer */
#footer {
    background: #2c5aa0;
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: auto;
}

#footer p {
    margin-bottom: 5px;
    font-size: 13px;
}

/* Animaciones */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #main {
        padding: 20px 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    #site-title a {
        font-size: 22px;
    }
    
    .header-image {
        height: 150px;
    }
    
    .acta-section, .actas-anteriores {
        padding: 20px;
    }
    
    .acta-content {
        padding: 20px;
    }
    
    .acta-section h2 {
        font-size: 20px;
    }
    
    .acta-header h3 {
        font-size: 18px;
    }
    
    .fecha-convocatoria {
        font-size: 14px;
        padding: 6px 15px;
    }
}

@media (max-width: 480px) {
    #site-title a {
        font-size: 18px;
    }
    
    .acta-section h2 {
        font-size: 18px;
    }
    
    .accordion-toggle {
        font-size: 14px;
        padding: 12px 15px;
    }
    
    .acta-body {
        font-size: 13px;
    }
}