
/* Variables de colores suaves */
:root {
    --color-text: #1e293b;
    --color-primary: #073260;
    --color-primary-light: #1e4b8a;
    --color-secondary: #408ad9;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-hover: #f1f5f9;
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}


.container-moderna {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header con título */
.header-section {
    margin-bottom: 2rem;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.header-title i {
    color: var(--color-primary);
    font-size: 2rem;
}

.header-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-left: 3rem;
}

/* Card de la tabla */
.table-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Tabla moderna */
.table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-modern thead {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.table-modern thead th {
    padding: 1rem;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.table-modern thead th i {
    margin-right: 0.5rem;
    color: var(--color-primary);
}

.table-modern tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color);
}

.table-modern tbody tr:hover {
    background: var(--bg-hover);
    transform: scale(1.001);
}

.table-modern tbody td {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    vertical-align: middle;
}

/* ID con estilo especial */
.id-badge {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    display: inline-block;
}

/* Badge para parentesco */
.badge-parentesco {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--color-info);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Badge para edad */
.badge-age {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--color-warning);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Estilos para nombres */
.nombre-completo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nombre-principal {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.nombre-secundario {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Icono de teléfono */
.telefono-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.telefono-container i {
    color: var(--color-success);
    font-size: 0.85rem;
}

/* Footer de la tabla */
.table-modern tfoot {
    background: var(--bg-hover);
    border-top: 2px solid var(--border-color);
}

.table-modern tfoot th {
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* Indicador de relación */
.relation-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 8px;
    border-left: 3px solid var(--color-primary);
}

.relation-indicator i {
    color: var(--color-primary);
    font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container-moderna {
        padding: 1rem;
    }
    
    .table-card {
        overflow-x: auto;
    }
    
    .table-modern {
        min-width: 800px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-card {
    animation: fadeInUp 0.5s ease;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}
