/* ============================================
   ESTILOS GLOBALES - GOBIERNO DE MÉXICO
   Color principal: #56112B (guinda/vino)
   Fuente: Nunito + Poppins
============================================ */

:root {
    --primary:     #56112B;
    --primary-dark:#3d0c1f;
    --primary-light:#7a2040;
    --accent:      #c8942a;
    --accent-light:#f0b84a;
    --success:     #2e7d32;
    --warning:     #f57c00;
    --danger:      #c62828;
    --info:        #0277bd;
    --white:       #ffffff;
    --pearl:       #f7f4f1;
    --pearl-dark:  #efe9e3;
    --gray-100:    #f8f9fa;
    --gray-200:    #e9ecef;
    --gray-300:    #dee2e6;
    --gray-400:    #ced4da;
    --gray-500:    #adb5bd;
    --gray-600:    #6c757d;
    --gray-700:    #495057;
    --gray-800:    #343a40;
    --gray-900:    #212529;
    --text-main:   #2c1a10;
    --text-light:  #6c757d;
    --shadow-sm:   0 1px 3px rgba(0,0,0,.12);
    --shadow-md:   0 4px 12px rgba(86,17,43,.15);
    --shadow-lg:   0 8px 30px rgba(86,17,43,.2);
    --radius-sm:   6px;
    --radius-md:   12px;
    --radius-lg:   20px;
    --transition:  all .25s ease;
}

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

html { scroll-behavior:smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--pearl);
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.main-content { flex: 1; }

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

/* ============================================
   TOPBAR GOB.MX
============================================ */
.gob-topbar {
    background: var(--primary-dark);
    padding: 6px 0;
    border-bottom: 2px solid var(--accent);
}

.gob-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.gob-logo-top { height: 28px; }

.gob-logo-text-fallback {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
}

.gob-escudo { font-size: 22px; }
.gob-text-top { font-size: 14px; color: white; }

.gob-topbar-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}

.gob-topbar-links a {
    color: #ddd;
    text-decoration: none;
    transition: var(--transition);
}
.gob-topbar-links a:hover { color: var(--accent-light); }
.gob-topbar-links .separator { color: #888; }

/* ============================================
   HEADER PRINCIPAL
============================================ */
.main-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #2a0815 100%);
    padding: 18px 0;
    box-shadow: 0 4px 20px rgba(86,17,43,.4);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header-logo-area { flex: 1; }

.logo-emblema {
    display: flex;
    align-items: center;
    gap: 14px;
}

.escudo-wrapper {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.25);
    flex-shrink: 0;
    overflow: hidden;
}

.escudo-img { width: 40px; height: 40px; object-fit: contain; }
.escudo-fallback { color: var(--accent-light); font-size: 26px; }

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

.logo-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: white;
    line-height: 1.2;
    letter-spacing: .3px;
}

.logo-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,.75);
    letter-spacing: .5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* NAV */
.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    padding: 9px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255,255,255,.2);
    color: white;
}

.nav-toggle {
    display: none;
    background: rgba(255,255,255,.15);
    border: none;
    color: white;
    font-size: 20px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,.25); }

/* ============================================
   BANNER INSTITUCIONAL
============================================ */
.institutional-banner {
    background: linear-gradient(90deg, #f0f8ff, #fff8f0);
    border-bottom: 3px solid var(--primary);
    padding: 8px 0;
}

.institutional-banner .container-gob {
    display: flex;
    align-items: center;
    gap: 12px;
}

.banner-flags {
    display: flex;
    height: 20px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.flag-stripe {
    width: 8px;
    height: 100%;
}
.flag-stripe.red   { background: #CE1126; }
.flag-stripe.white { background: #FFFFFF; border: 1px solid #ddd; }
.flag-stripe.green { background: #006847; }

.institutional-banner p {
    font-size: 13px;
    color: var(--gray-700);
    margin: 0;
}

.institutional-banner a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.institutional-banner a:hover { text-decoration: underline; }

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 50%, #1a0510 100%);
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: white;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200,148,42,.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200,148,42,.25);
    border: 1px solid rgba(200,148,42,.4);
    color: var(--accent-light);
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.hero-title span { color: var(--accent-light); }

.hero-subtitle {
    font-size: clamp(15px, 2vw, 18px);
    opacity: .9;
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,.15);
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    opacity: .8;
    margin-top: 4px;
}

/* ============================================
   BOTONES
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200,148,42,.4);
    color: white;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,.15);
    border-color: white;
    color: white;
}

.btn-secondary {
    background: var(--gray-200);
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.btn-secondary:hover {
    background: var(--gray-300);
    color: var(--gray-800);
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}
.btn-success:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46,125,50,.4);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}
.btn-danger:hover { background: #b71c1c; }

.btn-sm {
    padding: 7px 16px;
    font-size: 13px;
    border-radius: 20px;
}

.btn-lg {
    padding: 15px 36px;
    font-size: 17px;
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   SECCIONES DE PROGRAMAS
============================================ */
.section-title-area {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    background: rgba(86,17,43,.1);
    color: var(--primary);
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.25;
}

.section-sub {
    font-size: 16px;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
}

.programas-section {
    padding: 80px 0;
    background: var(--pearl);
}

.programas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

/* TARJETA DE PROGRAMA */
.programa-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.programa-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.programa-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 28px 24px 22px;
    position: relative;
    overflow: hidden;
}

.programa-card-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
}

.programa-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    color: white;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 10px;
}

.programa-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin-bottom: 6px;
}

.programa-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200,148,42,.3);
    color: var(--accent-light);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.programa-card-body {
    padding: 24px;
    flex: 1;
}

.programa-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.programa-requisitos {
    background: var(--pearl);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.programa-requisitos h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.programa-requisitos ul {
    list-style: none;
    padding: 0;
}

.programa-requisitos ul li {
    font-size: 13px;
    color: var(--gray-700);
    padding: 3px 0;
    padding-left: 18px;
    position: relative;
}

.programa-requisitos ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.programa-costo-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(90deg, rgba(86,17,43,.06), rgba(200,148,42,.08));
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 3px solid var(--accent);
}

.programa-costo-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
}

.programa-costo-valor {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.programa-card-footer {
    padding: 0 24px 24px;
}

/* ============================================
   CÓMO FUNCIONA
============================================ */
.como-funciona {
    padding: 70px 0;
    background: linear-gradient(180deg, white 0%, var(--pearl) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 18px;
    box-shadow: 0 4px 15px rgba(86,17,43,.3);
}

.step-icon {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 14px;
}

.step-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================================
   FORMULARIO DE REGISTRO
============================================ */
.registro-container {
    max-width: 820px;
    margin: 50px auto;
    padding: 0 20px;
}

/* PROGRESS STEPS */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 16px;
    transition: var(--transition);
    z-index: 2;
    border: 3px solid var(--gray-300);
    position: relative;
}

.step-circle.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(86,17,43,.4);
}

.step-circle.done {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
    margin-top: 8px;
    line-height: 1.3;
}

.step-label.active { color: var(--primary); font-weight: 700; }
.step-label.done   { color: var(--success); }

.step-connector {
    flex: 1;
    height: 3px;
    background: var(--gray-300);
    transition: var(--transition);
    margin-bottom: 28px;
}

.step-connector.done { background: var(--success); }
.step-connector.active { background: var(--primary); }

/* TARJETA DE REGISTRO */
.registro-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.registro-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 24px 32px;
}

.registro-card-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.registro-card-header p {
    color: rgba(255,255,255,.8);
    font-size: 14px;
    margin: 6px 0 0;
}

.registro-card-body { padding: 36px 32px; }

/* FORM STYLES */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width { grid-column: 1 / -1; }

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: 7px;
}

label .required {
    color: var(--danger);
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    color: var(--gray-800);
    background: var(--gray-100);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(86,17,43,.1);
}

.form-control::placeholder { color: var(--gray-400); }

.form-control.is-invalid {
    border-color: var(--danger);
    background: #fff5f5;
}

.invalid-feedback {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

select.form-control {
    cursor: pointer;
}

/* UPLOAD AREAS */
.upload-section {
    margin-bottom: 28px;
}

.upload-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-section .upload-info {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.upload-area {
    border: 2px dashed var(--gray-400);
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--pearl);
    position: relative;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(86,17,43,.04);
}

.upload-area.uploaded {
    border-color: var(--success);
    background: rgba(46,125,50,.05);
}

.upload-icon {
    font-size: 40px;
    color: var(--gray-400);
    margin-bottom: 10px;
    display: block;
}

.upload-area.uploaded .upload-icon { color: var(--success); }

.upload-text {
    font-size: 14px;
    color: var(--gray-600);
}

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

.upload-formats {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 6px;
}

.upload-preview {
    margin-top: 14px;
    display: none;
}

.upload-preview.show { display: flex; align-items: center; gap: 10px; }

.upload-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 2px solid var(--success);
}

.upload-preview-name {
    font-size: 13px;
    color: var(--success);
    font-weight: 600;
}

input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* ============================================
   FOLIO / CITA
============================================ */
.folio-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    padding: 60px 40px;
    max-width: 600px;
    margin: 60px auto;
}

.folio-success-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--success), #4caf50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 42px;
    color: white;
    box-shadow: 0 8px 25px rgba(46,125,50,.35);
}

.folio-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 12px;
}

.folio-desc {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.folio-number-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    padding: 22px 30px;
    margin-bottom: 30px;
}

.folio-number-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,.7);
    margin-bottom: 8px;
}

.folio-number {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-light);
    letter-spacing: 4px;
}

.folio-cita-info {
    background: var(--pearl);
    border-radius: var(--radius-sm);
    padding: 18px;
    margin-bottom: 24px;
    text-align: left;
}

.folio-cita-info p {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.folio-cita-info p:last-child { margin-bottom: 0; }

/* ============================================
   SELECCIÓN DE PROGRAMA
============================================ */
.programa-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.programa-option {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.programa-option:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.programa-option.selected {
    border-color: var(--primary);
    background: rgba(86,17,43,.04);
    box-shadow: 0 0 0 3px rgba(86,17,43,.15);
}

.programa-option input[type="radio"] {
    display: none;
}

.programa-option-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    margin-bottom: 12px;
}

.programa-option-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 6px;
}

.programa-option-costo {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent);
}

/* ============================================
   PAGO INFO
============================================ */
.pago-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pago-tab {
    padding: 10px 22px;
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    background: white;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pago-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.pago-tab:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.pago-content { display: none; }
.pago-content.active { display: block; }

.pago-box {
    background: var(--pearl);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 4px solid var(--accent);
}

.pago-numero {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--primary);
    background: white;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    display: inline-block;
    border: 2px dashed var(--primary);
    margin: 10px 0;
    user-select: all;
}

.copy-btn {
    background: none;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
    margin-left: 10px;
}

.copy-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============================================
   ALERT / MESSAGES
============================================ */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.alert-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid var(--success); }
.alert-danger   { background: #ffebee; color: #b71c1c; border-left: 4px solid var(--danger);  }
.alert-warning  { background: #fff8e1; color: #e65100; border-left: 4px solid var(--warning); }
.alert-info     { background: #e3f2fd; color: #01579b; border-left: 4px solid var(--info);    }

/* ============================================
   PANEL ADMIN
============================================ */
.admin-body { background: var(--gray-100); }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    flex-shrink: 0;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    text-align: center;
}

.admin-sidebar-header .logo-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: white;
    margin: 0 auto 10px;
}

.admin-sidebar-header h3 {
    color: white;
    font-size: 15px;
    font-weight: 700;
}

.admin-sidebar-header p {
    color: rgba(255,255,255,.6);
    font-size: 12px;
}

.admin-nav { padding: 16px 0; flex: 1; }

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-nav-item:hover,
.admin-nav-item.active {
    background: rgba(255,255,255,.12);
    color: white;
    border-left-color: var(--accent);
}

.admin-nav-item i { width: 18px; text-align: center; }

.admin-nav-section {
    padding: 14px 20px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,.4);
    font-weight: 700;
}

.admin-main {
    margin-left: 260px;
    flex: 1;
    min-width: 0;
}

.admin-topbar {
    background: white;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.admin-topbar h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.admin-content { padding: 30px; }

/* ADMIN STATS */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 18px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

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

.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }
.stat-card.info    { border-left-color: var(--info);    }
.stat-card.accent  { border-left-color: var(--accent);  }

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(86,17,43,.1);
    color: var(--primary);
}

.stat-card.success .stat-icon { background: rgba(46,125,50,.1); color: var(--success); }
.stat-card.warning .stat-icon { background: rgba(245,124,0,.1); color: var(--warning); }
.stat-card.info    .stat-icon { background: rgba(2,119,189,.1); color: var(--info);    }
.stat-card.accent  .stat-icon { background: rgba(200,148,42,.1); color: var(--accent); }

.stat-info { flex: 1; }

.stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--gray-800);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* TABLAS ADMIN */
.admin-table-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 30px;
}

.admin-table-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-table-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-responsive { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead th {
    background: var(--gray-100);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--gray-600);
    white-space: nowrap;
    border-bottom: 2px solid var(--gray-200);
}

tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background .15s;
}

tbody tr:hover { background: var(--pearl); }
tbody tr:last-child { border-bottom: none; }

tbody td {
    padding: 12px 16px;
    color: var(--gray-700);
    vertical-align: middle;
}

/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-pendiente { background: #fff3e0; color: #e65100; }
.badge-revisando { background: #e3f2fd; color: #0277bd; }
.badge-aprobado  { background: #e8f5e9; color: #2e7d32; }
.badge-rechazado { background: #ffebee; color: #c62828; }

/* LOGIN ADMIN */
.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 20px;
}

.admin-login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    text-align: center;
}

.admin-login-card .login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(86,17,43,.35);
}

.admin-login-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.admin-login-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 30px;
}

/* ============================================
   FOOTER
============================================ */
.main-footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,.8);
    margin-top: auto;
}

.footer-top { padding: 50px 0; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.escudo-fallback-small {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    font-size: 20px;
    flex-shrink: 0;
}

.footer-logo strong {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.footer-logo span {
    color: rgba(255,255,255,.6);
    font-size: 12px;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,.6);
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a:hover { color: var(--accent-light); }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    margin-bottom: 8px;
}

.footer-contact li strong { color: var(--accent-light); }

.footer-contact i { color: var(--accent); width: 16px; text-align: center; }

.footer-bottom {
    background: rgba(0,0,0,.3);
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
}

.footer-bottom-inner p { margin: 0; color: rgba(255,255,255,.5); }

.sello-mexico {
    background: rgba(200,148,42,.2);
    border: 1px solid rgba(200,148,42,.3);
    color: var(--accent-light);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 11px;
    letter-spacing: 1px;
}

.footer-legal a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    transition: var(--transition);
}
.footer-legal a:hover { color: var(--accent-light); }

/* ============================================
   FORM ACTIONS
============================================ */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
    gap: 14px;
    flex-wrap: wrap;
}

/* ============================================
   UTILITIES
============================================ */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }

.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 24px 0;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .main-nav { display: none; flex-direction: column; }
    .main-nav.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--primary-dark);
        padding: 12px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .nav-toggle { display: block; }
    .main-header { position: relative; }

    .form-row { grid-template-columns: 1fr; }
    .registro-card-body { padding: 24px 20px; }

    .programas-grid { grid-template-columns: 1fr; }
    .programa-selector { grid-template-columns: 1fr; }

    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }

    .progress-steps { gap: 0; }
    .step-label { display: none; }
    .step-connector { flex: none; width: 30px; }

    .hero-stats { gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .pago-tabs { flex-direction: column; }

    .folio-card { padding: 40px 20px; }
    .folio-number { font-size: 20px; letter-spacing: 2px; }
}

@media (max-width: 480px) {
    .gob-topbar-links { display: none; }
    .hero-section { padding: 50px 0 60px; }
    .admin-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   TOOLTIP / POPOVER
============================================ */
[data-tooltip] {
    position: relative;
    cursor: help;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-800);
    color: white;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 9999;
}

[data-tooltip]:hover::after { opacity: 1; }

/* SPINNER */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ANIMACIONES */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.fade-in-up { animation: fadeInUp .5s ease forwards; }

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