/* =====================================================
   CSS PARA PÁGINAS INTERNAS
   Este archivo complementa estilos.css
   ===================================================== */

/* =====================================================
   BREADCRUMB (Migas de pan)
   ===================================================== */
.breadcrumb {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 600;
}

/* =====================================================
   CONTENIDO DE PÁGINA
   ===================================================== */
.page-content {
    min-height: 60vh;
    padding: var(--spacing-2xl) 0;
}

.page-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* =====================================================
   ENCABEZADO DE PÁGINA
   ===================================================== */
.page-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 3px solid var(--primary);
}

.page-header h1 {
    font-size: 2.75rem;
    color: var(--text);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.page-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =====================================================
   SECCIONES DE CONTENIDO
   ===================================================== */
.content-section {
    margin-bottom: var(--spacing-2xl);
}

.content-section h2 {
    font-size: 2rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--border);
}

.content-section h3 {
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 600;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.content-section p {
    font-size: 1.0625rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.content-section ul,
.content-section ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.content-section li {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-xs);
    color: var(--text);
}

/* =====================================================
   TARJETAS DE CONTENIDO
   ===================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.content-card {
    background: white;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--border);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-md);
}

.content-card h3 {
    font-size: 1.375rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    margin-top: 0;
}

.content-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

/* =====================================================
   CAJAS DE INFORMACIÓN
   ===================================================== */
.info-box {
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin: var(--spacing-lg) 0;
}

.info-box.success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.info-box.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.info-box.error {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.info-box h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text);
}

.info-box p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* =====================================================
   TABLAS
   ===================================================== */
.table-responsive {
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

tbody tr:hover {
    background: var(--bg-alt);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* =====================================================
   LISTA DE DOCUMENTOS
   ===================================================== */
.documents-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.document-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-normal);
}

.document-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--shadow);
}

.document-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.document-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.document-details h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.document-details p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

/* =====================================================
   IMAGEN CON ZOOM
   ===================================================== */
.image-container {
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: transform var(--transition-normal);
    cursor: pointer;
}

.image-container img:hover {
    transform: scale(1.02);
}

.image-caption {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-top: var(--spacing-sm);
    font-style: italic;
}

/* =====================================================
   RESPONSIVE - PÁGINAS INTERNAS
   ===================================================== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.625rem;
    }
    
    .content-section h3 {
        font-size: 1.25rem;
    }
    
    .content-section p,
    .content-section li {
        font-size: 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .document-item {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .document-info {
        flex-direction: column;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
    }
}