:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --secondary: #ec4899;
    --bg-body: #f3f4f6;
    --bg-surface: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --sidebar-width: 260px;
    --header-height: 80px;

    /* Specific Colors from Screenshots */
    --color-dashboard: #4f46e5;
    --color-ratificacion: #a855f7;
    /* Purple */
    --color-salud: #ef4444;
    /* Red */
    --color-familia: #f97316;
    /* Orange */
    --color-sacramentos: #8b5cf6;
    /* Violet */
    --color-documentos: #ea580c;
    /* Deep Orange */
    --color-final: #10b981;
    /* Green */
    --color-dark-blue: #1e293b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 14px;
}

/* Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-surface);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform 0.3s ease, width 0.3s ease;
    overflow-y: auto;
    /* FIX: Scroll vertical */
    overflow-x: hidden;
}

/* Estilos de scrollbar para sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* Sidebar colapsado */
.sidebar.collapsed {
    transform: translateX(-100%);
}

/* Overlay para mÂ¨Â®vil */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 45;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text h1 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.logo-text span {
    color: var(--primary);
}

/* BOTON CERRAR SIDEBAR MOVIL */
.sidebar-close-btn {
    display: none;
    background: #f1f5f9;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-close-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

@media (max-width: 768px) {
    .sidebar-close-btn {
        display: flex;
    }
}

/* BUSCADOR PREMIUM */
.search-container-premium {
    display: flex;
    gap: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s;
    width: 100%;
}

.search-container-premium:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.search-input-fancy {
    flex: 1;
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    min-width: 0;
}

.btn-search-fancy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 1.5rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.btn-search-fancy:hover {
    background: var(--primary-hover);
}

.nav-section {
    padding: 0 1rem;
    margin-top: 1rem;
}

.nav-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    padding-left: 0.8rem;
    letter-spacing: 0.05em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-item:hover {
    background: #f8fafc;
    color: var(--primary);
}

.nav-item.active {
    background: var(--color-ratificacion);
    /* Default active for this demo flow */
    color: white;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.nav-item i,
.nav-item svg {
    width: 20px;
    height: 20px;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

/* Main content expandido (sidebar colapsado) */
.main-content.expanded {
    margin-left: 0;
}

.top-header {
    height: var(--header-height);
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 40;
    gap: 1rem;
}

/* BotÂ¨Â®n Toggle Sidebar */
.sidebar-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.sidebar-toggle:hover {
    background: #f8fafc;
    color: var(--primary);
    border-color: var(--primary);
}

.sidebar-toggle svg {
    transition: transform 0.3s ease;
}

.school-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.school-icon {
    width: 40px;
    height: 40px;
    background: #eef2ff;
    border-radius: 12px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-badge {
    text-align: right;
    line-height: 1.2;
}

.admin-badge small {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.admin-tag {
    background: var(--primary);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}

.logout-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--danger);
    cursor: pointer;
    background: white;
}

/* Content Area */
.content-wrapper {
    padding: 2rem;
    max-width: 1400px;
    /* Wide layout */
    margin: 0 auto;
    width: 100%;
}

/* Wizard / Tabs */
.wizard-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.8rem;
    transition: all 0.3s;
}

.wizard-step.active {
    color: white;
}

.wizard-step.active.step-salud {
    background: var(--color-salud);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.wizard-step.active.step-familia {
    background: var(--color-familia);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.wizard-step.active.step-sacramentos {
    background: var(--color-sacramentos);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.wizard-step.active.step-documentos {
    background: var(--color-documentos);
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
}

.wizard-step.active.step-fin {
    background: var(--color-final);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.wizard-step.active.step-estudiante {
    background: var(--primary);
}

/* Forms */
.form-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow);
    min-height: 500px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns by default */
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-label.required::after {
    content: " *";
    color: var(--color-salud);
}

.form-control {
    height: 50px;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    border-radius: 16px;
    /* High radius */
    padding: 0 1.5rem;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-main);
    width: 100%;
    transition: all 0.2s;
    font-weight: 500;
}

.form-control:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.05);
}

.select-wrapper {
    position: relative;
}

/* Alert Box */
.alert-box {
    background: #fff1f2;
    /* Light red */
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    color: #be123c;
    font-weight: 700;
    border: 1px solid #ffe4e6;
}

/* Action Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.btn {
    height: 50px;
    padding: 0 2.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-muted);
    text-decoration: none;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.btn-success {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    text-decoration: none;
}

.btn-success:hover {
    background: #059669;
}

/* Contacto Familiar Card */
.contact-card {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 800;
}

/* Hermanas Section */
.hermanas-card {
    background: #ecfdf5;
    /* Light green */
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #d1fae5;
}

.hermanas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hermanas-title {
    color: #047857;
    font-weight: 800;
    display: flex;
    flex-direction: column;
}

.hermanas-title small {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.8;
    margin-top: 4px;
}

.btn-add {
    background: #059669;
    color: white;
    font-size: 11px;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 800;
    border: none;
    cursor: pointer;
}

/* Parents Card */
.parent-card {
    background: #fffbeb;
    /* Yellowish for Madre */
    border: 1px solid #fef3c7;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.parent-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #b45309;
}

.tag-checked {
    background: #d97706;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 10px;
    text-transform: uppercase;
}

/* --- New Styles for Sacraments & Documents --- */

.section-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.section-title.purple {
    color: var(--color-sacramentos);
}

.section-title.orange {
    color: var(--color-documentos);
}

.toggle-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.toggle-btn {
    flex: 1;
    background: #f3f4f6;
    /* Default gray */
    padding: 1.25rem;
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid transparent;
    /* default */
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: #8b5cf6;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.toggle-info {
    display: flex;
    flex-direction: column;
}

.toggle-title {
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.toggle-sub {
    font-size: 0.75rem;
    opacity: 0.8;
}

.check-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sacramentos);
}

.document-item {
    background: #fff7ed;
    /* Light orange tint */
    border: 1px solid #ffedd5;
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.doc-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #9a3412;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.doc-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fdba74;
    appearance: none;
    cursor: pointer;
    background: white;
    transition: all 0.2s;
}

.doc-checkbox:checked {
    background: #f97316;
    border-color: #f97316;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Final Steps Card */
.commitment-card {
    background: var(--color-dark-blue);
    border-radius: 24px;
    padding: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

.commitment-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.commitment-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.accept-btn {
    background: #10b981;
    /* Green */
    color: white;
    font-weight: 800;
    font-size: 1rem;
    padding: 1.5rem 3rem;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.2s;
}

.accept-btn:hover {
    background: #059669;
    transform: scale(1.02);
}

.accept-icon {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 4px;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success Screen */
.success-card {
    background: white;
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.success-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.btn-download {
    background: #1e293b;
    color: white;
    width: 100%;
    padding: 1.25rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-download:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

.btn-new {
    background: #4f46e5;
    color: white;
    width: 100%;
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-new:hover {
    background: #4338ca;
    transform: translateY(-2px);
}

/* Table Views (Directorio / Traslado) */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.filters-bar {
    background: white;
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.search-field {
    flex: 2;
    position: relative;
    display: flex;
    gap: 0.5rem;
}

.search-field input {
    flex: 1;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
}

.btn-search-inline {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: none; /* Oculto en PC por defecto si se usa Enter */
}

@media (max-width: 768px) {
    .btn-search-inline {
        display: block;
        height: 50px;
    }
}

.search-icon-inside {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    width: 16px;
    height: 16px;
}

.filter-select {
    flex: 1;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.data-table th {
    text-align: left;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1.5rem 0.5rem 1.5rem;
}

.data-table td {
    background: white;
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
}

.data-table tr td:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.data-table tr td:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.student-info {
    display: flex;
    flex-direction: column;
}

.student-name {
    font-weight: 700;
    color: var(--text-main);
}

.student-dni {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.student-dni::before {
    content: "DNI: ";
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.status-pending {
    background: #fef9c3;
    color: #b45309;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
}

.status-new {
    background: #dbeafe;
    color: #1e40af;
}

.status-section {
    background: #eff6ff;
    color: #2563eb;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.status-section:hover {
    background: #1d4ed8;
    color: white;
}

.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-light);
    transition: all 0.2s;
    cursor: pointer;
}

.action-btn:hover {
    background: #f1f5f9;
    color: var(--primary);
}

.btn-export {
    background: #1e293b;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* Search Input Container */
.search-input-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 1.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-main);
}

.search-input:focus {
    outline: none;
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* Parent Cards */
.parent-card {
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.parent-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.tag-checked {
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}

.contact-card {
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Toggle Buttons */
.toggle-group {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.toggle-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.toggle-btn.active {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-color: #4f46e5;
    color: white;
}

.toggle-info {
    flex: 1;
}

.toggle-title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.toggle-sub {
    font-size: 0.75rem;
    opacity: 0.7;
}

.check-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #9ca3af;
}

.toggle-btn.active .check-circle {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Document Items */
.document-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.document-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.doc-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.doc-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Section Titles */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
}

.section-title.purple {
    background: #f3e8ff;
    color: #7c3aed;
}

.section-title.orange {
    background: #fff7ed;
    color: #ea580c;
}
/* Grids Responsivos Adicionales */
.grid-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.grid-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

@media (max-width: 1024px) {
    .grid-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-stats {
        grid-template-columns: 1fr;
    }
    .grid-main {
        grid-template-columns: 1fr;
    }
    .filters-bar {
        flex-direction: column !important;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    align-items: end;
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}
