/* ============================================
   SISTEMA DE GESTIÓN DOCENTE
   Estiheader-logo-leftos Institucionales Profesionales
   ============================================ */

/* CSS Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1B2A4A;
    --primary-light: #2C4A7C;
    --primary-dark: #0F1A2E;
    --accent-gold: #3996F2;
    --accent-gold-light: #3996F2;
    --accent-gold-dark: #3996F2;
    --bg-main: #F0F2F8;
    --bg-card: #FFFFFF;
    --text-primary: #1B2A4A;
    --text-secondary: #5A6B8A;
    --text-light: #8A96AD;
    --border: #E2E6EF;
    --border-light: #EEF0F5;
    --success: #2E7D32;
    --success-light: #4CAF50;
    --blue-accent: #1565C0;
    --blue-light: #E3F2FD;
    --green-accent: #2E7D32;
    --green-light: #E8F5E9;
    --gold-accent: #B8860B;
    --gold-light: #FFF8E1;
    --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06);
    --shadow-md: 0 4px 12px rgba(27, 42, 74, 0.08);
    --shadow-lg: 0 8px 30px rgba(27, 42, 74, 0.12);
    --shadow-xl: 0 16px 48px rgba(27, 42, 74, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}







/* inter-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/inter-v20-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/inter-v20-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* merriweather-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/merriweather-v33-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* merriweather-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/merriweather-v33-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* merriweather-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/merriweather-v33-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* merriweather-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/merriweather-v33-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* merriweather-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/merriweather-v33-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* merriweather-800 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/merriweather-v33-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* merriweather-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/merriweather-v33-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}








/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary-dark);
    padding: 6px 0;
    border-bottom: 2px solid var(--accent-gold);
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.top-bar .separator {
    color: var(--accent-gold);
    font-weight: 300;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary) 100%);
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.header-logo-left,
.header-logo-right {
    flex-shrink: 0;
}

.logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    background-color: whitesmoke;
    padding: 4px;
    border: 2px solid #3996F2;
    transition: var(--transition);
}

.logo:hover {
    border-color: var(--accent-gold);
    transform: scale(1.05);
}

.header-center {
    text-align: center;
    flex: 1;
    padding: 0 24px;
}

.institution-name {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 26px;
    font-weight: 900;
    color: #FFFFFF;
    letter-spacing: 0.5px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.institution-subtitle {
    font-size: 15px;
    font-weight: 500;
    color: var(--accent-gold-light);
    margin-top: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.institution-subtitle-sm {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

/* ============================================
   WELCOME BAR
   ============================================ */
.welcome-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.welcome-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.welcome-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(27, 42, 74, 0.2);
}

.welcome-text {
    display: flex;
    flex-direction: column;
}

.welcome-greeting {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-name {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.welcome-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.welcome-date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.welcome-cedula {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #F24A51;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #DC2626;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 40px 0 60px;
}

.main-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
}

.section-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(27, 42, 74, 0.2);
}

.section-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.section-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

/* ============================================
   CARDS GRID
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 36px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-gold);
}

/* Card Image */
.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-image {
    transform: scale(1.08);
}

.card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(27, 42, 74, 0.1) 0%, rgba(27, 42, 74, 0.6) 100%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Body */
.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -54px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
}

.card-icon-blue {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    color: white;
}

.card-icon-green {
    background: linear-gradient(135deg, #2E7D32, #43A047);
    color: white;
}

.card-icon-gold {
    background: linear-gradient(135deg, #B8860B, #D4A843);
    color: white;
}

.card-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 16px;
    line-height: 1.3;
}

.card-description {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: 10px;
    line-height: 1.6;
    min-height: 66px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    width: 100%;
    justify-content: center;
}

.card-format,
.card-size {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Download Buttons */
.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 18px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-download:hover::before {
    left: 100%;
}

.btn-download-blue {
    background: linear-gradient(135deg, #1565C0, #1976D2);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.3);
}

.btn-download-blue:hover {
    background: linear-gradient(135deg, #0D47A1, #1565C0);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
    transform: translateY(-2px);
}

.btn-download-green {
    background: linear-gradient(135deg, #2E7D32, #43A047);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-download-green:hover {
    background: linear-gradient(135deg, #1B5E20, #2E7D32);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
    transform: translateY(-2px);
}

.btn-download-gold {
    background: linear-gradient(135deg, #B8860B, #D4A843);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.btn-download-gold:hover {
    background: linear-gradient(135deg, #966F09, #B8860B);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
    transform: translateY(-2px);
}

.btn-download:active {
    transform: translateY(0);
}

.btn-download:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-download:disabled::before {
    display: none;
}

/* ============================================
   RECIBO SELECTORS (Año y Mes)
   ============================================ */
.recibo-selectors {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}

.selector-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.selector-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.selector-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background-color: #FAFBFD;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A6B8A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.selector-input:hover {
    border-color: var(--primary-light);
    background-color: #F5F7FA;
}

.selector-input:focus {
    outline: none;
    border-color: var(--green-accent);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
    background-color: #FFFFFF;
}

.recibo-selected-period {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--green-light);
    border: 1px solid #A5D6A7;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--green-accent);
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.recibo-selected-period strong {
    color: #1B5E20;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Recibo form wrapper */
.recibo-form-wrapper {
    width: 100%;
}

/* No results message */
.recibo-no-results {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #F57F17;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* ============================================
   QUINCENA BUTTONS
   ============================================ */
.recibo-quincenas {
    width: 100%;
    margin-top: 14px;
    animation: fadeIn 0.3s ease;
}

.quincena-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-align: center;
}

.quincena-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}

.btn-quincena {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.btn-quincena:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-quincena-first {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
    border-color: #A5D6A7;
    color: #1B5E20;
}

.btn-quincena-first:hover {
    background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
    color: #1B5E20;
}

.btn-quincena-second {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-color: #90CAF9;
    color: #0D47A1;
}

.btn-quincena-second:hover {
    background: linear-gradient(135deg, #BBDEFB, #90CAF9);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
    color: #0D47A1;
}

.quincena-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-quincena-first .quincena-icon {
    background: rgba(46, 125, 50, 0.15);
}

.btn-quincena-second .quincena-icon {
    background: rgba(21, 101, 192, 0.15);
}

.quincena-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.quincena-text strong {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.quincena-text span {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 500;
}

/* Download button as link */
a.btn-download {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
}

a.btn-download:hover {
    text-decoration: none;
    color: #FFFFFF;
}

/* ============================================
   INFO NOTICE
   ============================================ */
.info-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    background: linear-gradient(135deg, #EFF6FF, #E3F2FD);
    border: 1px solid #BBDEFB;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-light);
}

.notice-icon {
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 1px;
}

.notice-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.notice-text strong {
    color: var(--text-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 0;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    border: 1.8px solid #3996F2;
    background: white;
}

.footer-brand-name {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.footer-brand-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.footer-contact {
    text-align: right;
}

.footer-contact-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-gold-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.footer-contact p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

.footer-divider {
    height: 2px;
    background: #3996F2;
}

.footer-bottom {
    padding: 16px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-version {
    margin-top: 4px;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.3) !important;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 26, 46, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto 20px;
    animation: pulse 2s infinite;
}

.modal-icon.success {
    background: linear-gradient(135deg, var(--success), var(--success-light));
    animation: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.modal-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.modal-progress {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.modal-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent-gold));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.modal-status {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 16px;
}

.modal-close:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: translateY(-1px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.25s; }
.card:nth-child(3) { animation-delay: 0.4s; }

.section-header {
    animation: fadeInUp 0.5s ease forwards;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-bar-inner {
        font-size: 9px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .header-logo-right {
        display: none;
    }

    .institution-name {
        font-size: 20px;
    }

    .institution-subtitle {
        font-size: 12px;
    }

    .welcome-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 16px;
    }

    .welcome-right {
        width: 100%;
        justify-content: space-between;
    }

    .welcome-info {
        align-items: flex-start;
    }

    .welcome-name {
        font-size: 15px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card:nth-child(3) {
        grid-column: auto;
        max-width: none;
    }

    .main-content {
        padding: 24px 0 40px;
    }

    .main-inner {
        padding: 0 16px;
    }

    .section-title {
        font-size: 22px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-contact {
        text-align: left;
    }

    .card-image-wrapper {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .top-bar .separator {
        display: none;
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 2px;
    }

    .institution-name {
        font-size: 17px;
    }

    .btn-logout span {
        display: none;
    }

    .btn-logout {
        padding: 10px;
    }

    .card-body {
        padding: 20px 16px;
    }

    .card-title {
        font-size: 17px;
    }

    .modal {
        padding: 28px 20px;
    }

    .quincena-buttons {
        flex-direction: column;
    }

    .recibo-selectors {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .top-bar,
    .welcome-bar,
    .footer,
    .btn-download,
    .btn-logout,
    .info-notice,
    .modal-overlay {
        display: none !important;
    }

    body {
        background: white;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    /* ============================================
   RESPONSIVE DESIGN (Añadir al final)
   ============================================ */

@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Header: Apilar logos y texto */
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-logo-right {
        display: none; /* Ocultamos un logo en móvil para ahorrar espacio */
    }

    .institution-name {
        font-size: 20px;
    }

    /* Welcome Bar: Apilar elementos */
    .welcome-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .welcome-left {
        flex-direction: column;
    }

    .welcome-right {
        flex-direction: column;
        width: 100%;
        border-top: 1px solid var(--border);
        padding-top: 15px;
    }

    .welcome-info {
        align-items: center;
    }

    .btn-logout {
        width: 100%;
        justify-content: center;
    }

    /* Grid: 1 sola columna en móviles */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

    
    
   