:root {
    --primary-blue: #003F87;
    --secondary-blue: #002D6B;
    --accent-red: #C41E3A;
    --accent-gold: #FFCC00;
    --accent-light: #F0F4FF;
    --accent-blue-soft: #e8eeff;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-green: #2ecc71;
    --discount-green: #27ae60;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.10);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 920px;
    margin: 0 auto;
    padding: 20px;
}


.main-header {
    background: var(--white);
    color: var(--text-dark);
    padding: 0;
    text-align: center;
    margin-bottom: 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}


.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #1a1a1a 33%, var(--accent-red) 33%, var(--accent-red) 66%, var(--accent-gold) 66%);
    z-index: 2;
}

.header-top {
    padding: 1.2rem 2rem 1rem;
    display: flex;
    justify-content: center;
    padding-top: calc(1.2rem + 5px);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    color: var(--primary-blue);
    text-align: left;
    line-height: 1.2;
}

.logo-text h2 {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: left;
}

.header-title {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1.2rem 1rem;
    margin-top: 0;
    border-top: none;
}

.header-title h3 {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--white);
}

.header-title p {
    opacity: 0.85;
    font-size: 0.9rem;
    margin-top: 0.2rem;
    color: var(--accent-gold);
    font-weight: 500;
    letter-spacing: 0.5px;
}


.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-title {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    border-left: 4px solid var(--accent-gold);
    padding-left: 1rem;
}


.form-group {
    margin-bottom: 1.5rem;
}

.section-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
    font-size: 1rem;
}

.helper-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--white);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}


select.form-control,
input[type="date"].form-control,
input[type="month"].form-control {
    cursor: pointer;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.12);
}

.form-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 1.5rem 0;
}


.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    transition: all var(--transition);
    background: var(--white);
}

.radio-option:hover {
    border-color: var(--primary-blue);
    background: var(--accent-light);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: var(--primary-blue);
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked+.radio-text {
    color: var(--primary-blue);
    font-weight: 500;
}

.radio-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-text small {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}


.payment-method-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-option {
    flex-direction: row;
    align-items: flex-start;
    padding: 1rem;
    text-align: left;
}

.payment-option.selected {
    border-color: var(--primary-blue);
    background: var(--accent-light);
    box-shadow: 0 0 0 2px rgba(0, 71, 186, 0.15);
}

.payment-option-disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
}

.payment-option-disabled:hover {
    border-color: var(--border-color);
    background: var(--white);
}


.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.summary-item {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition);
}

.summary-item:hover {
    transform: translateY(-2px);
}

.summary-item.final {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--accent-gold);
}

.summary-item.total .value {
    color: var(--text-dark);
}

.summary-item.discount .value {
    color: var(--discount-green);
}

.summary-item .label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.summary-item .value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}


.payment-details {
    animation: slideDown 0.35s ease-out;
}

.payment-details.hidden {
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.details-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-light);
}


.contado-breakdown {
    background: #fafbfc;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row.highlight {
    background: #f0fff4;
}

.breakdown-row.total-row {
    background: var(--accent-light);
    font-size: 1.05rem;
}

.breakdown-value {
    font-weight: 600;
    white-space: nowrap;
}

.discount-val {
    color: var(--discount-green);
}


.cuotas-selector {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    background: var(--accent-light);
    border-radius: 10px;
    border: 1.5px solid rgba(0, 71, 186, 0.18);
    animation: slideDown 0.3s ease-out;
}

.cuotas-selector.hidden {
    display: none !important;
}


.personalizado-input-group {
    background: #fafbfc;
    border-radius: 10px;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.personalizado-input-group input[type="number"] {
    background-image: none;
}

.pers-readonly {
    background: #f0f2f5 !important;
    color: var(--text-muted) !important;
    cursor: not-allowed !important;
    border-color: var(--border-color) !important;
    font-weight: 600;
    background-image: none !important;
}

.label-max {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 0.3rem;
}


.cuotas-info {
    margin-bottom: 1rem;
}

.cuotas-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-badge {
    background: var(--accent-light);
    color: var(--primary-blue);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 71, 186, 0.15);
}


.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table th,
.payment-table td {
    padding: 10px 14px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.92rem;
}

.payment-table th {
    background: var(--primary-blue);
    color: white;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-table th:first-child,
.payment-table td:first-child {
    text-align: center;
    width: 50px;
}

.payment-table th:nth-child(2),
.payment-table td:nth-child(2) {
    text-align: left;
}

.payment-table tbody tr {
    transition: background var(--transition);
}

.payment-table tbody tr:hover {
    background-color: #f1f7ff;
}

.payment-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.payment-table tbody tr:nth-child(even):hover {
    background-color: #f1f7ff;
}

.matricula-row {
    background: var(--accent-blue-soft) !important;
    font-weight: 500;
}

.matricula-row td {
    border-bottom: 2px solid var(--primary-blue);
}

.payment-table tfoot td {
    font-weight: 700;
    font-size: 1rem;
    background: #f8f9fa;
    color: var(--primary-blue);
    border-top: 2px solid var(--primary-blue);
    padding: 12px 14px;
}


.info-banner {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    color: #856404;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid #ffeeba;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

.hidden {
    display: none !important;
}


.cuota-input-cell {
    padding: 4px 8px !important;
}

.cuota-editable-input {
    width: 100%;
    padding: 7px 10px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    text-align: right;
    font-weight: 600;
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    -moz-appearance: textfield;
}

.cuota-editable-input::-webkit-inner-spin-button,
.cuota-editable-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cuota-editable-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 71, 186, 0.12);
}

.cuota-input-error {
    border-color: var(--accent-red) !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.12) !important;
}


.pers-verification-bar {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1.5px solid;
    transition: all var(--transition);
}

.verification-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.verification-status {
    font-weight: 600;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.verification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.verification-ok {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #86efac;
    color: #166534;
}

.verification-ok .verification-icon {
    background: #166534;
    color: #fff;
}

.verification-pending {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
    color: #92400e;
}

.verification-pending .verification-icon {
    background: #92400e;
    color: #fff;
}

.verification-over {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
    color: #991b1b;
}

.verification-over .verification-icon {
    background: #991b1b;
    color: #fff;
}

.verification-error {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #fca5a5;
    color: #991b1b;
}

.verification-error .verification-icon {
    background: #991b1b;
    color: #fff;
}


.pers-notes-container {
    margin-bottom: 1rem;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1px solid #fcd34d;
    border-radius: 8px;
}

.pers-note {
    font-size: 0.84rem;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

.pers-note + .pers-note {
    margin-top: 0.4rem;
}


.cuota-month-cell {
    padding: 4px 8px !important;
}

.cuota-month-select {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    min-width: 160px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23003F87' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    padding-right: 2rem;
    color: var(--primary-blue);
}

.cuota-month-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: var(--text-muted);
    background-color: #f0f2f5;
}


.sim-date-group {
    background: linear-gradient(135deg, #f0f4ff, #e8eeff);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    border: 1.5px solid rgba(0, 71, 186, 0.18);
}

.sim-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.sim-date-header .section-label {
    margin-bottom: 0;
}

.sim-date-reset-btn {
    background: transparent;
    border: 1.5px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
}

.sim-date-reset-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.sim-date-input {
    background-image: none !important;
    padding-right: 1rem !important;
    font-weight: 500;
    color: var(--primary-blue);
}

.sim-date-notice {
    margin-top: 0.75rem;
    background: #fff8e1;
    border: 1px solid #ffe082;
    color: #7d5a00;
    border-radius: 8px;
    padding: 0.55rem 0.9rem;
    font-size: 0.84rem;
    animation: slideDown 0.25s ease-out;
}



.summary-total-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    border-top: 3px solid var(--accent-gold);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 1.1rem 1.6rem;
    margin-bottom: 2rem;
}

.summary-total-bar .label {
    font-size: 1rem;
    opacity: 0.9;
}

.summary-total-bar .total-values {
    text-align: right;
    margin-left: auto;
}

.summary-total-bar .value {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.15;
}



details.otros-cobros-row {
    display: block;
    padding: 0;
}

details.otros-cobros-row > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.2rem;
    cursor: pointer;
    list-style: none;
}

details.otros-cobros-row > summary::-webkit-details-marker {
    display: none;
}


details.otros-cobros-row > summary > span:first-child::before {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 0.55rem;
    vertical-align: 0.05em;
    border-left: 5px solid var(--primary-blue);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform var(--transition);
}

details.otros-cobros-row[open] > summary > span:first-child::before {
    transform: rotate(90deg);
}
details.otros-cobros-row > summary:hover > span:first-child {
    color: var(--primary-blue);
}

details.otros-cobros-row > ul {
    list-style: none;
    margin: 0;
    padding: 0.2rem 1.2rem 0.9rem 2.4rem;
    font-size: 0.88rem;
    background: #f8f9fa;
}

details.otros-cobros-row > ul > li {
    position: relative;
    padding: 0.28rem 0 0.28rem 0.9rem;
    border-bottom: 1px dashed var(--border-color);
}

details.otros-cobros-row > ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95em;
    width: 4px;
    height: 1px;
    background: var(--text-muted);
}

details.otros-cobros-row > ul > li:last-child {
    border-bottom: none;
}
.summary-item .summary-note {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    font-style: italic;
    opacity: 0.85;
}

.prices-notice-banner p {
    margin: 0;
}

.prices-notice-banner p + p {
    margin-top: 0.65rem;
}

.prices-notice-banner {
    background: linear-gradient(135deg, #e8f0fe, #dce8fd);
    border: 1.5px solid rgba(0, 71, 186, 0.2);
    color: #1a3a8f;
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}


.projection-note {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0 0.5rem;
}

.projection-note p+p {
    margin-top: 0.3rem;
}


@media (max-width: 640px) {
    .main-header {
        padding: 2rem 1rem 1.5rem;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 12px;
    }

    .card {
        padding: 1.25rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .payment-method-group {
        grid-template-columns: 1fr;
    }

    .summary-item .value {
        font-size: 1.2rem;
    }

    .breakdown-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .cuotas-meta {
        flex-direction: column;
    }

    .cuota-editable-input {
        font-size: 0.85rem;
        padding: 6px 8px;
    }

    .pers-verification-bar {
        font-size: 0.82rem;
        padding: 0.8rem 1rem;
    }

    .cuota-month-select {
        min-width: 130px;
        font-size: 0.82rem;
    }

    .pers-notes-container {
        padding: 0.6rem 0.8rem;
    }

    .pers-note {
        font-size: 0.78rem;
    }
}


.debug-toggle-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0.5rem 0 1rem;
    padding: 0 0.5rem;
}

.debug-toggle-btn {
    background: #2d2d2d;
    color: #f0f0f0;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    font-family: 'Roboto', monospace;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}

.debug-toggle-btn:hover {
    background: #444;
}

.debug-toggle-btn.active {
    background: #7c3aed;
    color: #fff;
}

.debug-badge {
    background: #7c3aed;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.debug-panel {
    background: #111827;
    border-radius: 14px;
    margin-bottom: 2rem;
    overflow: hidden;
    border: 2px solid #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
    animation: slideDown 0.3s ease-out;
}

.debug-panel.hidden {
    display: none !important;
}

.debug-header {
    background: #7c3aed;
    color: white;
    padding: 0.85rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.debug-label {
    font-size: 0.72rem;
    opacity: 0.8;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.debug-content {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.debug-section {
    background: #1f2937;
    border-radius: 10px;
    overflow: hidden;
}

.debug-section-title {
    background: #374151;
    color: #e5e7eb;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-bottom: 1px solid #4b5563;
}

.debug-rows {
    padding: 0.75rem 0;
}

.debug-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.45rem 1rem;
    font-size: 0.87rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 1rem;
}

.debug-row:last-child {
    border-bottom: none;
}

.debug-row-label {
    color: #9ca3af;
    flex: 1;
}

.debug-row-formula {
    color: #60a5fa;
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    text-align: center;
    flex: 1.2;
}

.debug-row-value {
    color: #f9fafb;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    text-align: right;
    flex: 0.8;
    white-space: nowrap;
}

.debug-row.highlight-green .debug-row-value {
    color: #34d399;
}

.debug-row.highlight-amber .debug-row-value {
    color: #fbbf24;
}

.debug-row.highlight-red .debug-row-value {
    color: #f87171;
}

.debug-row.highlight-blue .debug-row-value {
    color: #60a5fa;
}

.debug-row.highlight-purple .debug-row-label,
.debug-row.highlight-purple .debug-row-value {
    color: #c4b5fd;
    font-weight: 700;
    font-size: 0.93rem;
}

.debug-divider {
    height: 1px;
    background: #4b5563;
    margin: 0.2rem 1rem;
}




.pdf-export-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 1.5rem;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(135deg, #f5f7ff 0%, #eef2ff 100%);
    border-radius: 12px;
    border: 1.5px solid rgba(33, 82, 155, 0.18);
}

.pdf-export-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #C03928 0%, #9a2d1f 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.4rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(192, 57, 40, 0.3);
    position: relative;
    overflow: hidden;
}


.pdf-export-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #000000 25%, #C03928 25%, #C03928 50%, #F0CE2D 50%, #F0CE2D 75%, #21529B 75%);
}

.pdf-export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(192, 57, 40, 0.4);
    background: linear-gradient(135deg, #d44030 0%, #b03320 100%);
}

.pdf-export-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(192, 57, 40, 0.25);
}

.pdf-export-btn-disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    pointer-events: none;
    filter: grayscale(0.5);
}

.pdf-btn-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.pdf-export-hint {
    font-size: 0.82rem;
    color: #5a6a8a;
    font-style: italic;
}

@media (max-width: 640px) {
    .pdf-export-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .pdf-export-hint {
        display: none;
    }
}


.birthdate-feedback {
    margin-top: 0.5rem;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    background: var(--accent-blue-soft);
    color: var(--primary-blue);
    font-size: 0.85rem;
    border: 1px solid #cdd9f5;
}

.birthdate-feedback.warn {
    background: #fff3cd;
    color: #7a5400;
    border-color: #ffe49a;
}

.second-year-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-radius: 12px;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.second-year-btn {
    background: var(--accent-gold);
    color: var(--text-dark);
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.3rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.second-year-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    background: #ffd633;
}

.second-year-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #d4d6d9;
    color: var(--text-muted);
}

.second-year-icon {
    font-size: 1.15rem;
    font-weight: 700;
}

.second-year-hint {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    flex: 1 1 220px;
    text-align: right;
}

.second-year-section {
    border-top: 5px solid var(--accent-gold);
}

.second-year-header {
    margin-bottom: 1.5rem;
}

.back-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-blue);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 0.88rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background 0.15s, border-color 0.15s;
}

.back-btn:hover {
    background: var(--accent-light);
    border-color: var(--primary-blue);
}

.second-year-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.second-year-config {
    margin-bottom: 1.5rem;
}

.readonly-group .pers-readonly {
    background: var(--accent-light);
    color: var(--primary-blue);
    font-weight: 600;
}

.sy-notes-list {
    margin: 0.5rem 0 0 1.2rem;
    padding: 0;
    color: var(--text-dark);
    font-size: 0.88rem;
    line-height: 1.55;
}

.sy-notes-list li {
    margin-bottom: 0.35rem;
}



.otros-cobros-footnote,
.sy-footnote {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0 0 1.25rem;
    padding: 0 0.3rem;
}

.sy-info-note {
    font-size: 0.86rem;
    color: var(--primary-blue);
    background: var(--accent-blue-soft);
    border: 1px solid #cdd9f5;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0 0 1.25rem;
    line-height: 1.55;
}

@media (max-width: 640px) {
    .second-year-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .second-year-hint {
        text-align: left;
    }
}