:root {
    --gob-red: #d91b23;
    --gob-red-dark: #8a1015;
    --gob-red-light: #ffeced;
    --gob-dark: #1a1a1a;
    --gob-muted: #666;
    --gob-border: #e8e8e8;
    --gob-bg: #fafafa;
    --gob-green: #1a7a45;
    --gob-green-light: #edfaf3;
    --gob-amber: #b45309;
    --gob-amber-light: #fffbeb;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    color: var(--gob-dark);
}

/* ========================================
   MODAL ANTI-TAMPER
   ======================================== */
body.modal-open-lock {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 15, 15, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modalFadeIn 0.4s ease;
}

.modal-overlay.modal-closing {
    animation: modalFadeOut 0.35s ease forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modalFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.modal-box {
    background: white;
    border-radius: 18px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from { transform: translateY(40px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-header-band {
    background: linear-gradient(135deg, var(--gob-red), var(--gob-red-dark));
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modal-header-band i {
    font-size: 1.05rem;
}

.modal-body-content {
    padding: 1.8rem 1.8rem 1.2rem;
}

.modal-body-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gob-dark);
    margin: 0 0 0.8rem;
    line-height: 1.25;
}

.modal-divider {
    height: 3px;
    width: 48px;
    background: var(--gob-red);
    border-radius: 2px;
    margin-bottom: 1rem;
}

.modal-main-text {
    font-size: 1rem;
    color: var(--gob-dark);
    line-height: 1.6;
    margin: 0 0 1rem;
}

.modal-highlight-box {
    background: var(--gob-amber-light);
    border-left: 4px solid #d97706;
    border-radius: 0 10px 10px 0;
    padding: 0.9rem 1rem;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.modal-highlight-box i {
    color: var(--gob-amber);
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.modal-highlight-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

.modal-sub-text {
    font-size: 0.82rem;
    color: var(--gob-muted);
    margin: 0;
    line-height: 1.5;
}

.modal-footer {
    padding: 1rem 1.8rem 1.6rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.modal-timer-section {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.modal-timer-section.timer-done .timer-ring-progress {
    stroke: #16a34a;
}

.timer-ring-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.timer-ring {
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: #f0f0f0;
    stroke-width: 5;
}

.timer-ring-progress {
    fill: none;
    stroke: var(--gob-red);
    stroke-width: 5;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear, stroke 0.4s ease;
}

.timer-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gob-dark);
}

.timer-label {
    font-size: 0.8rem;
    color: var(--gob-muted);
    margin: 0;
    line-height: 1.4;
}

.modal-close-btn {
    width: 100%;
    padding: 13px 20px;
    background: #d1d5db;
    color: #6b7280;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: not-allowed;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn.btn-enabled {
    background: var(--gob-red);
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(217, 27, 35, 0.35);
}

.modal-close-btn.btn-enabled:hover {
    background: var(--gob-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 27, 35, 0.45);
}

/* ========================================
   HERO - CABECERA ROJA
   ======================================== */
.hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gob-red) 0%, var(--gob-red-dark) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/logo_becap.svg');
    background-size: 45%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.06;
    filter: grayscale(100%) invert(1);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 3rem 2rem;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 8px 22px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1.1;
    margin: 0 0 1rem;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}

.hero-closed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 8px 20px;
    border-radius: 30px;
}

/* ========================================
   CONTENIDO PRINCIPAL
   ======================================== */
.main-content {
    background: var(--gob-bg);
    padding: 2.5rem 1.5rem;
}

.content-container {
    max-width: 760px;
    margin: 0 auto;
}

/* ========================================
   ALERTA AMPLIACIÓN
   ======================================== */
.ampliacion-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, var(--gob-green-light), #d1fae5);
    border: 1.5px solid #86efac;
    border-left: 5px solid var(--gob-green);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 2rem;
}

.ampliacion-icon {
    background: var(--gob-green);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ampliacion-text strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--gob-green);
    margin-bottom: 2px;
}

.ampliacion-text span {
    font-size: 0.83rem;
    color: #166534;
    line-height: 1.4;
}

/* ========================================
   SECCIONES CON PASOS
   ======================================== */
.step-section {
    position: relative;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    background: var(--gob-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.section-block {
    margin-bottom: 0.5rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    margin-bottom: 1.4rem;
}

.section-icon {
    width: 46px;
    height: 46px;
    background: var(--gob-red-light);
    color: var(--gob-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 1.22rem;
    font-weight: 700;
    margin: 0;
    color: var(--gob-dark);
}

.section-header p {
    font-size: 0.87rem;
    color: var(--gob-muted);
    margin: 3px 0 0;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--gob-border);
    margin: 2rem 0;
}

/* ========================================
   DUAL LIST GRID
   ======================================== */
.lists-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.list-card {
    background: white;
    border: 1.5px solid var(--gob-border);
    border-radius: 16px;
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: box-shadow 0.2s ease;
}

.list-card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
}

.list-card-primary {
    border-top: 4px solid var(--gob-red);
}

.list-card-new {
    border-top: 4px solid var(--gob-green);
    background: linear-gradient(160deg, #ffffff, #f0fdf4);
}

.list-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}

.list-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--gob-red-light);
    color: var(--gob-red);
}

.list-badge-new {
    background: var(--gob-green-light);
    color: var(--gob-green);
}

.list-count {
    font-size: 0.75rem;
    color: var(--gob-muted);
}

.list-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gob-dark);
    margin: 0;
    line-height: 1.3;
}

.list-card p {
    font-size: 0.82rem;
    color: var(--gob-muted);
    margin: 0;
}

.list-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

/* ========================================
   PDF / BUTTON ACTIONS
   ======================================== */
.btn-main,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.87rem;
    text-decoration: none;
    transition: all 0.22s ease;
    text-align: center;
}

.btn-main {
    background: var(--gob-red);
    color: white;
    box-shadow: 0 3px 10px rgba(217, 27, 35, 0.25);
}

.btn-main:hover {
    background: var(--gob-red-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(217, 27, 35, 0.35);
}

.btn-main.btn-new {
    background: var(--gob-green);
    box-shadow: 0 3px 10px rgba(26, 122, 69, 0.25);
}

.btn-main.btn-new:hover {
    background: #145f35;
    box-shadow: 0 5px 16px rgba(26, 122, 69, 0.35);
}

.btn-outline {
    background: white;
    color: var(--gob-red);
    border: 2px solid var(--gob-red);
}

.btn-outline:hover {
    background: var(--gob-red-light);
    color: var(--gob-red-dark);
    transform: translateY(-2px);
}

.btn-outline.btn-outline-new {
    color: var(--gob-green);
    border-color: var(--gob-green);
}

.btn-outline.btn-outline-new:hover {
    background: var(--gob-green-light);
    color: #145f35;
}

/* ========================================
   NOTICE BOX
   ======================================== */
.notice-box {
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.notice-box-top {
    background: var(--gob-amber-light);
    border: 1.5px solid #fcd34d;
    border-left: 5px solid #d97706;
}

.notice-box-top .notice-icon {
    color: var(--gob-amber);
    background: #fef3c7;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notice-box-top .notice-text h4 {
    font-weight: 700;
    font-size: 0.9rem;
    color: #92400e;
    margin: 0 0 4px;
}

.notice-box-top .notice-text p {
    font-size: 0.85rem;
    color: #78350f;
    margin: 0;
    line-height: 1.55;
}

/* ========================================
   SCHEDULE - MEJORADO
   ======================================== */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border: 1.5px solid var(--gob-border);
    border-radius: 12px;
    padding: 14px 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.schedule-item:hover {
    border-color: #f9a8a8;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.schedule-item-new {
    background: linear-gradient(135deg, #f0fdf4, white);
    border-color: #86efac;
}

.schedule-item-new:hover {
    border-color: #4ade80;
}

.schedule-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    text-align: center;
    border-right: 2px solid var(--gob-border);
    padding-right: 16px;
}

.schedule-item-new .schedule-date-col {
    border-color: #86efac;
}

.schedule-weekday {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gob-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-item-new .schedule-weekday {
    color: var(--gob-green);
}

.schedule-day-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gob-dark);
    line-height: 1;
}

.schedule-month {
    font-size: 0.68rem;
    color: var(--gob-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.schedule-info-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.schedule-range-label {
    font-size: 0.72rem;
    color: var(--gob-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.schedule-range {
    background: var(--gob-red-light);
    color: var(--gob-red);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 5px 14px;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-block;
}

.schedule-range-new {
    background: var(--gob-green-light);
    color: var(--gob-green);
}

.schedule-footnote {
    text-align: center;
    font-size: 0.78rem;
    color: var(--gob-muted);
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px dashed var(--gob-border);
    line-height: 1.5;
}

/* ========================================
   DOCUMENT CARDS
   ======================================== */
.docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.doc-card {
    background: white;
    border: 1.5px solid var(--gob-border);
    border-radius: 14px;
    padding: 1.3rem;
    transition: box-shadow 0.2s ease;
}

.doc-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.doc-card-label {
    font-weight: 700;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gob-red);
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gob-red-light);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.doc-card-sublabel {
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--gob-muted);
}

.doc-card-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.doc-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gob-dark);
    padding: 7px 0;
    line-height: 1.4;
    border-bottom: 1px dashed #f2f2f2;
}

.doc-card-list li:last-child {
    border-bottom: none;
}

.doc-card-list li i {
    color: var(--gob-green);
    font-size: 0.75rem;
    margin-top: 5px;
    flex-shrink: 0;
}

/* ========================================
   LEGAL DOCS
   ======================================== */
.legal-docs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.legal-doc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: white;
    border: 1.5px solid var(--gob-border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.legal-doc-item:hover {
    background: var(--gob-red-light);
    border-color: #f9c3c5;
    color: inherit;
}

.legal-doc-item > i {
    color: var(--gob-red);
    font-size: 1.1rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.legal-doc-item .legal-ext {
    font-size: 0.75rem;
    color: var(--gob-muted);
    opacity: 0.5;
}

.legal-doc-item div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.legal-doc-item strong {
    font-size: 0.87rem;
    font-weight: 700;
}

.legal-doc-item span {
    font-size: 0.76rem;
    color: var(--gob-muted);
}

/* ========================================
   CONTACT FOOTER
   ======================================== */
.contact-footer {
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 1px solid var(--gob-border);
    margin-top: 2rem;
}

.contact-footer p {
    font-size: 0.88rem;
    color: var(--gob-muted);
    margin: 0 0 0.5rem;
}

.contact-footer a {
    color: var(--gob-red);
    font-weight: 700;
    text-decoration: none;
}

.contact-footer a:hover {
    text-decoration: underline;
}

.contact-footer span {
    font-size: 0.72rem;
    color: #bbb;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 620px) {
    .lists-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
    }

    .hero-content {
        padding: 2.5rem 1.5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .main-content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 45vh;
    }

    .hero-content {
        padding: 2rem 1rem;
    }

    .hero-badge {
        font-size: 0.65rem;
        letter-spacing: 2px;
        padding: 6px 16px;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.88rem;
    }

    .hero-closed-badge {
        font-size: 0.7rem;
    }

    .section-header h2 {
        font-size: 1.05rem;
    }

    .section-header p {
        font-size: 0.8rem;
    }

    .schedule-item {
        gap: 12px;
    }

    .schedule-date-col {
        min-width: 48px;
        padding-right: 12px;
    }

    .schedule-day-num {
        font-size: 1.5rem;
    }

    .doc-card {
        padding: 1rem;
    }

    .doc-card-list li {
        font-size: 0.86rem;
    }

    .modal-body-content {
        padding: 1.4rem 1.2rem 0.8rem;
    }

    .modal-footer {
        padding: 0.8rem 1.2rem 1.2rem;
    }

    .modal-body-content h2 {
        font-size: 1.15rem;
    }

    .ampliacion-alert {
        flex-direction: column;
        gap: 8px;
    }
}