/* ============================================================
   SIGED · Solicitud de Evaluación de Títulos — flujo v2
   Diseño propio (sin AdminLTE). Bootstrap 4 solo para modales/utilidades.
   ============================================================ */

:root {
    --navy:   #0a1a5c;
    --blue:   #2563eb;
    --indigo: #4f46e5;
    --purple: #7c3aed;
    --teal:   #0d9488;
    --green:  #16a34a;
    --amber:  #f59e0b;
    --orange: #ea580c;
    --rose:   #e11d48;
    --ink:    #1f2937;
    --muted:  #6b7280;
    --line:   #e5e7eb;
    --bg:     #f1f5fb;
    --card:   #ffffff;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(10, 26, 92, .10);
    --shadow-sm: 0 2px 10px rgba(10, 26, 92, .08);
    --wrap: 1400px;      /* ancho máximo del contenido */
    --px: 2.8rem;        /* relleno lateral de la tarjeta */
    --pb: 2.4rem;        /* relleno inferior de la tarjeta */
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }
body.et-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
a:hover { color: var(--indigo); }

/* ───────────── Barra superior ───────────── */
.et-topbar {
    background: var(--navy);
    color: #fff;
    position: sticky; top: 0; z-index: 1030;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.et-topbar-in {
    max-width: var(--wrap); margin: 0 auto; padding: .6rem 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.et-brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; }
.et-brand:hover { color: #fff; text-decoration: none; }
.et-brand img { width: 46px; height: 46px; border-radius: 50%; background: transparent; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.et-brand b { display: block; font-size: 1.05rem; letter-spacing: .5px; line-height: 1.1; }
.et-brand small { display: block; font-size: .72rem; opacity: .8; font-weight: 400; }
.et-chip {
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px; padding: .3rem .8rem; font-size: .8rem; white-space: nowrap;
}
.et-chip i { margin-right: .35rem; color: #fcd34d; }

/* ───────────── Hero ───────────── */
.et-hero {
    position: relative; overflow: hidden; color: #fff;
    background: linear-gradient(118deg, #0a1a5c 0%, #1d4ed8 52%, #0d9488 100%);
    padding: 2.4rem 1rem 5.6rem;
}
.et-hero::before, .et-hero::after {
    content: ''; position: absolute; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), rgba(255,255,255,0) 70%);
}
.et-hero::before { width: 420px; height: 420px; right: -90px; top: -160px; }
.et-hero::after  { width: 300px; height: 300px; left: -80px; bottom: -170px; }
.et-hero-in { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 .5rem; }
.et-crumb {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: .5rem;
    font-size: .8rem; background: rgba(255, 255, 255, .15); border-radius: 999px; padding: .3rem .9rem; margin-bottom: .9rem;
}
.et-crumb a { color: #fff; text-decoration: underline; }
.et-crumb i { font-size: .6rem; opacity: .7; }
.et-hero h1 { font-size: 2rem; font-weight: 700; margin: 0 0 .35rem; letter-spacing: -.3px; }
.et-hero p { margin: 0; max-width: 640px; opacity: .92; font-size: 1.02rem; }

/* ───────────── Tarjeta principal ───────────── */
.et-main { max-width: var(--wrap); margin: -3.6rem auto 2.5rem; padding: 0 1.5rem; position: relative; }
.et-card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 2rem var(--px) var(--pb);
}

/* ───────────── Stepper ───────────── */
.et-steps { list-style: none; margin: 0 0 1.8rem; padding: 0; display: flex; align-items: flex-start; }
.et-steps li { flex: 1; position: relative; text-align: center; color: #9ca3af; }
.et-steps li::before {
    content: ''; position: absolute; top: 22px; left: -50%; width: 100%; height: 4px;
    background: var(--line); z-index: 0; border-radius: 4px;
}
.et-steps li:first-child::before { display: none; }
.et-steps li.done::before, .et-steps li.current::before { background: var(--c); }
.et-steps .dot {
    position: relative; z-index: 1; width: 46px; height: 46px; margin: 0 auto .45rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    background: #fff; border: 3px solid var(--line); color: #9ca3af; transition: all .25s;
}
.et-steps li.done .dot    { background: var(--c); border-color: var(--c); color: #fff; }
.et-steps li.current .dot { background: #fff; border-color: var(--c); color: var(--c); box-shadow: 0 0 0 6px rgba(0,0,0,.05), 0 6px 16px rgba(0,0,0,.12); transform: scale(1.08); }
.et-steps li.current { color: var(--ink); font-weight: 600; }
.et-steps li.done { color: var(--muted); }
.et-steps .lbl { font-size: .82rem; display: block; }
.et-steps li:nth-child(1) { --c: var(--blue); }
.et-steps li:nth-child(2) { --c: var(--purple); }
.et-steps li:nth-child(3) { --c: var(--teal); }
.et-steps li:nth-child(4) { --c: var(--amber); }

/* ───────────── Títulos de sección ───────────── */
.et-h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .25rem; color: var(--navy); }
.et-lead { color: var(--muted); margin: 0 0 1.4rem; }

/* ───────────── Paso 1: cédula ───────────── */
.et-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.6rem; align-items: stretch; }
.et-need {
    border-radius: 14px; padding: 1.5rem; color: #fff;
    background: linear-gradient(150deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 8px 22px rgba(79, 70, 229, .35);
}
.et-need h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 1rem; }
.et-need ul { list-style: none; margin: 0; padding: 0; }
.et-need li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .95rem; font-size: .95rem; }
.et-need li:last-child { margin-bottom: 0; }
.et-need li i {
    flex: 0 0 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.et-need li b { display: block; font-weight: 600; }
.et-need li span { opacity: .85; font-size: .85rem; }

.et-panel { border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; display: flex; flex-direction: column; justify-content: center; }

/* ───────────── Campos ───────────── */
.et-field { margin-bottom: 1.4rem; min-width: 0; }
.et-field > label { display: block; font-size: .86rem; font-weight: 600; color: #374151; margin-bottom: .5rem; line-height: 1.3; }
.et-field > label a { color: var(--orange); }
.et-input {
    display: flex; align-items: stretch; background: #fff; border: 2px solid var(--line);
    border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.et-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.et-input .ic {
    flex: 0 0 52px; display: flex; align-items: center; justify-content: center;
    background: #f8fafc; color: var(--orange); font-size: 1.05rem; border-right: 1px solid var(--line);
}
.et-input input, .et-input select {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink);
    padding: .9rem 1.05rem; font-size: 1rem; width: 100%;
}
.et-input select {
    appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.2rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .9rem center;
}
.et-input input[readonly] { background: #f3f4f6; color: #4b5563; }
.et-input input::placeholder { color: #a8afbb; }
.et-input.et-big input { font-size: 1.15rem; padding: .95rem 1rem; letter-spacing: .5px; }
.et-input.et-big .ic { flex-basis: 56px; font-size: 1.25rem; color: var(--blue); }
.et-input.is-filled { border-color: #86efac; }
.et-input.is-filled .ic { background: #f0fdf4; color: var(--green); }
.et-hint { font-size: .78rem; margin-top: .3rem; min-height: 1rem; color: var(--green); }
.et-hint.bad { color: var(--rose); }
.et-hint.warn { color: #b45309; }
.et-hint.wait { color: var(--muted); }

/* Ojo para mostrar/ocultar contraseña */
.et-eye { flex: 0 0 46px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.et-eye:hover { color: var(--blue); }

/* Requisitos de la contraseña de seguimiento */
.et-pwreq { grid-column: 1 / -1; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.et-pwreq h4 { font-size: .95rem; font-weight: 700; color: var(--navy); margin: 0 0 .7rem; }
.et-pwreq h4 i { color: var(--purple); margin-right: .35rem; }
.et-pwreq ul { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .35rem 1.2rem; }
.et-pwreq li { font-size: .88rem; color: var(--muted); }
.et-pwreq li i { width: 1.2rem; color: var(--rose); }
.et-pwreq li.ok { color: #166534; }
.et-pwreq li.ok i { color: var(--green); }
.et-strength { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.et-strength i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--rose); transition: width .3s, background .3s; }
.et-strength-txt { font-size: .8rem; font-weight: 600; margin-top: .4rem; color: var(--muted); }

/* ───────────── Botones ───────────── */
.et-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border: 0; border-radius: 12px; padding: .8rem 1.4rem; font-weight: 600; font-size: .98rem;
    color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, opacity .15s;
    background: linear-gradient(135deg, var(--blue), var(--indigo)); box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.et-btn:hover { color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(37, 99, 235, .4); }
.et-btn:active { transform: translateY(0); }
.et-btn:disabled, .et-btn.disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.et-btn.block { display: flex; width: 100%; }
.et-btn.purple { background: linear-gradient(135deg, var(--purple), #a855f7); box-shadow: 0 6px 16px rgba(124, 58, 237, .35); }
.et-btn.green  { background: linear-gradient(135deg, var(--green), var(--teal)); box-shadow: 0 6px 16px rgba(22, 163, 74, .35); }
.et-btn.amber  { background: linear-gradient(135deg, var(--amber), var(--orange)); box-shadow: 0 6px 16px rgba(234, 88, 12, .35); }
.et-btn.ghost  { background: #fff; color: var(--blue); border: 2px solid #c7d2fe; box-shadow: none; }
.et-btn.ghost:hover { background: #eef2ff; color: var(--indigo); box-shadow: none; }
.et-link { background: none; border: 0; color: var(--blue); padding: 0; cursor: pointer; text-decoration: underline; }

.et-alert { border-radius: 12px; padding: .75rem 1rem; margin-bottom: 1rem; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: .92rem; }
.et-alert i { margin-right: .4rem; }

/* ───────────── Paso 2: foto ───────────── */
.et-photo { text-align: center; max-width: 440px; margin: 0 auto; }
.et-avatar-wrap { position: relative; width: 190px; height: 190px; margin: .5rem auto 1.4rem; }
.et-avatar-wrap::before {
    content: ''; position: absolute; inset: -8px; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--blue), var(--purple), var(--rose), var(--amber), var(--teal), var(--blue));
}
.et-avatar-wrap img {
    position: relative; width: 190px; height: 190px; border-radius: 50%; object-fit: cover;
    border: 6px solid #fff; background: #e5e7eb; display: block;
}
.et-avatar-cam {
    position: absolute; right: 2px; bottom: 6px; width: 48px; height: 48px; border-radius: 50%; border: 4px solid #fff;
    background: linear-gradient(135deg, var(--purple), var(--indigo)); color: #fff; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm);
}
.et-photo .stack { display: grid; gap: .8rem; margin-top: 1rem; }
.et-note { font-size: .88rem; color: var(--muted); }

/* ───────────── Paso 3: elegir formulario ───────────── */
.et-forms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.et-fcard {
    position: relative; overflow: hidden; border-radius: 16px; padding: 1.4rem 1.2rem 1.2rem; color: #fff;
    display: flex; flex-direction: column; min-height: 250px; text-decoration: none;
    background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 8px 22px var(--sh);
    transition: transform .2s, box-shadow .2s;
}
.et-fcard:hover { color: #fff; text-decoration: none; transform: translateY(-6px); box-shadow: 0 16px 32px var(--sh); }
.et-fcard::after {
    content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -60px; bottom: -70px;
    background: rgba(255, 255, 255, .15);
}
.et-fcard .big { font-size: 2.3rem; margin-bottom: .8rem; opacity: .95; }
.et-fcard .code { display: inline-block; align-self: flex-start; background: rgba(255,255,255,.22); border-radius: 999px; padding: .15rem .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .5px; margin-bottom: .6rem; }
.et-fcard p { margin: 0 0 1rem; font-size: .98rem; line-height: 1.35; flex: 1; }
.et-fcard .go { font-weight: 600; font-size: .9rem; position: relative; z-index: 1; }
.et-fcard .go i { margin-left: .3rem; transition: transform .2s; }
.et-fcard:hover .go i { transform: translateX(5px); }
.et-fcard.f1 { --c1: #2563eb; --c2: #4f46e5; --sh: rgba(37, 99, 235, .35); }
.et-fcard.f2 { --c1: #16a34a; --c2: #0d9488; --sh: rgba(22, 163, 74, .35); }
.et-fcard.f3 { --c1: #f59e0b; --c2: #ea580c; --sh: rgba(234, 88, 12, .35); }
.et-fcard.f4 { --c1: #e11d48; --c2: #be185d; --sh: rgba(225, 29, 72, .35); }

/* ───────────── Paso 4: formulario ───────────── */
.et-formhead {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-radius: 14px; padding: 1.2rem 1.6rem;
    margin-bottom: 2rem; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2));
}
.et-formhead .code { background: rgba(255,255,255,.22); border-radius: 999px; padding: .2rem .8rem; font-weight: 700; font-size: .8rem; }
.et-formhead h2 { margin: 0; font-size: 1.15rem; font-weight: 600; flex: 1 1 260px; }
.et-formhead.f1 { --c1: #2563eb; --c2: #4f46e5; }
.et-formhead.f2 { --c1: #16a34a; --c2: #0d9488; }
.et-formhead.f3 { --c1: #f59e0b; --c2: #ea580c; }
.et-formhead.f4 { --c1: #e11d48; --c2: #be185d; }

.et-section {
    border: 1px solid var(--line); border-radius: 14px; padding: 1.9rem 2.2rem .8rem; margin-bottom: 2rem;
    border-top: 5px solid var(--c);
}
.et-section.s1 { --c: var(--blue); }
.et-section.s2 { --c: var(--purple); }
.et-section.s3 { --c: var(--teal); }
.et-section-title { display: flex; align-items: center; gap: .75rem; font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 0 0 1.6rem; }
.et-section-title .n {
    width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--c); font-size: .9rem;
    display: inline-flex; align-items: center; justify-content: center;
}
.et-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .2rem 2rem; }
.et-grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .2rem 1.6rem; }

/* Documentos */
.et-progress { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.et-progress .bar { flex: 1 1 200px; height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.et-progress .bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--green)); transition: width .4s; }
.et-progress .txt { font-weight: 600; font-size: .9rem; color: var(--navy); white-space: nowrap; }

.et-doc {
    display: grid; grid-template-columns: 54px 1fr auto; gap: 1rem 1.3rem; align-items: center;
    border: 2px solid var(--line); border-radius: 14px; padding: 1.15rem 1.4rem; margin-bottom: 1.1rem; background: #fff;
    transition: border-color .2s, background .2s;
}
.et-doc .num {
    width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), var(--indigo));
}
.et-doc.decl .num { background: linear-gradient(135deg, var(--rose), var(--orange)); }
.et-doc.trad .num { background: linear-gradient(135deg, var(--purple), #a855f7); }
.et-doc .ttl { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.et-doc .ttl a { text-decoration: none; }
.et-doc .sub { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.et-doc .files, .et-doc .stage { grid-column: 2 / 4; }
.et-doc .files:empty, .et-doc .stage:empty { display: none; }
.et-doc .drop-hint { font-size: .78rem; color: #6b7280; margin-top: .35rem; }
.et-doc .drop-hint i { color: var(--blue); margin-right: .25rem; }
.et-doc.drag-over { border-color: var(--blue); border-style: dashed; background: #eff6ff; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.et-doc.drag-over .drop-hint { color: var(--blue); font-weight: 600; }

/* Solicitudes empezadas */
.et-hr { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }
.et-drafts .et-h2 i { color: var(--amber); margin-right: .4rem; }
.et-draft {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    background: linear-gradient(135deg, #fffbeb, #fff7ed); border: 2px solid #fcd34d; border-radius: 14px;
    padding: 1.1rem 1.3rem; margin-bottom: .9rem;
}
.et-draft .body { flex: 1 1 340px; min-width: 0; }
.et-draft .top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .25rem; }
.et-draft .code { background: var(--amber); color: #fff; border-radius: 999px; padding: .15rem .7rem; font-size: .75rem; font-weight: 700; }
.et-draft .meta { font-size: .86rem; color: #4b5563; }
.et-draft .stat { font-size: .82rem; color: #92400e; margin-top: .35rem; }
.et-draft .acts { display: flex; gap: .6rem; flex-wrap: wrap; }
.et-draft .et-btn { padding: .6rem 1.1rem; font-size: .9rem; }
.et-resume {
    display: flex; gap: .8rem; align-items: flex-start; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a;
    border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1.4rem; font-size: .92rem;
}
.et-resume > i { font-size: 1.2rem; margin-top: .1rem; }

/* Archivo elegido, aún sin subir */
.et-stage-item {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
    background: #fffbeb; border: 2px dashed #fcd34d; border-radius: 12px; padding: .6rem .8rem; margin-bottom: .5rem;
}
.et-stage-item .nm { display: flex; align-items: center; gap: .6rem; min-width: 0; flex: 1 1 220px; }
.et-stage-item .nm > i { color: var(--rose); font-size: 1.4rem; }
.et-stage-item .nm b { display: block; font-size: .9rem; word-break: break-all; }
.et-stage-item .nm small { color: #92400e; font-size: .76rem; }
.et-stage-item .acts { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.et-stage-item .et-btn { padding: .45rem .9rem; font-size: .85rem; }
.et-doc .act { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.et-badge { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .2rem .65rem; background: #fef3c7; color: #92400e; white-space: nowrap; }
.et-doc.is-ok { border-color: #86efac; background: #f0fdf4; }
.et-doc.is-ok .et-badge { background: #dcfce7; color: #166534; }
.et-doc-item { display: flex; align-items: center; justify-content: space-between; gap: .6rem; background: #fff; border: 1px solid #d1fae5; border-radius: 10px; padding: .4rem .6rem; margin-bottom: .4rem; font-size: .88rem; }
.et-doc-item .nm { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.et-doc-item .nm i { color: var(--rose); font-size: 1.1rem; }
.et-mini { border: 0; border-radius: 8px; width: 34px; height: 34px; color: #fff; cursor: pointer; transition: transform .15s; }
.et-mini:hover { transform: scale(1.1); }
.et-mini.view { background: var(--blue); }
.et-mini.del  { background: var(--rose); }
.et-doc-add { white-space: nowrap; padding: .55rem 1rem; font-size: .88rem; }
.et-docs-aviso { background: #eff6ff; border: 1px dashed #93c5fd; color: #1e40af; border-radius: 12px; padding: .7rem 1rem; font-size: .88rem; margin-bottom: .9rem; }
.et-docs-aviso i { margin-right: .4rem; }
.et-tradnote { font-size: .85rem; color: #6d28d9; margin: .2rem 0 1rem; }

/* Barra de acciones inferior */
.et-actionbar {
    position: sticky; bottom: 0; z-index: 20; margin: 1.4rem calc(var(--px) * -1) calc(var(--pb) * -1); padding: 1rem var(--px);
    background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    box-shadow: 0 -8px 20px rgba(10, 26, 92, .06);
}
.et-actionbar .msg { color: var(--muted); font-size: .88rem; }
.et-actionbar .msg i { color: var(--amber); margin-right: .4rem; }

/* Pie */
.et-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 0 1rem 2rem; }

/* Modales y SweetAlert */
.modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.modal-header { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; border: 0; }
.modal-header .close { color: #fff; opacity: .9; text-shadow: none; }
.swal2-popup { border-radius: 18px !important; font-family: 'Inter', system-ui, sans-serif !important; }

/* ───────────── Responsive ───────────── */
@media (max-width: 991.98px) {
    :root { --px: 1.8rem; --pb: 1.8rem; }
    .et-section { padding: 1.5rem 1.5rem .6rem; }
    .et-forms { grid-template-columns: repeat(2, 1fr); }
    .et-split { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    :root { --px: 1rem; --pb: 1.3rem; }
    .et-grid { grid-template-columns: 1fr; }
    .et-hero { padding: 1.6rem 1rem 4.8rem; }
    .et-hero h1 { font-size: 1.45rem; }
    .et-hero p { font-size: .92rem; }
    .et-card { padding: 1.1rem 1rem 1.3rem; }
    .et-main { margin-top: -3.2rem; padding: 0 .6rem; }
    .et-steps .lbl { display: none; }
    .et-steps li.current .lbl { display: block; position: absolute; left: 50%; transform: translateX(-50%); top: 52px; white-space: nowrap; }
    .et-steps { margin-bottom: 2.6rem; }
    .et-steps .dot { width: 40px; height: 40px; }
    .et-steps li::before { top: 19px; }
    .et-forms { grid-template-columns: 1fr; }
    .et-fcard { min-height: 0; }
    .et-section { padding: 1rem 1rem .3rem; }
    .et-doc { grid-template-columns: 46px 1fr; }
    .et-doc .act, .et-doc .files, .et-doc .stage { grid-column: 1 / 3; justify-content: space-between; }
    .et-actionbar { margin: 1rem -1rem -1.3rem; padding: .8rem 1rem; }
    .et-actionbar .et-btn { width: 100%; }
    .et-chip { display: none; }
}

/* ============================================================
   Catálogo de trámites disponibles (?paso=tramites)
   ============================================================ */
.et-nav { display: flex; gap: .4rem; margin-left: auto; margin-right: 1rem; }
.et-nav a { color: rgba(255, 255, 255, .85); text-decoration: none; padding: .45rem .9rem; border-radius: 999px; font-size: .88rem; font-weight: 500; transition: background .15s; }
.et-nav a i { margin-right: .35rem; opacity: .85; }
.et-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.et-nav a.on { background: rgba(255, 255, 255, .2); color: #fff; }

.et-hero.compact { padding-bottom: 3.2rem; }
.et-main.flat { margin-top: 0; padding-top: 2rem; }

.et-strip {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-radius: 16px; padding: 1rem 1.3rem; margin-bottom: 1.6rem;
    background: #ecfdf5; border: 1px solid #a7f3d0; box-shadow: var(--shadow-sm);
}
.et-strip.warn { background: #fffbeb; border-color: #fcd34d; }
.et-strip .ic { width: 46px; height: 46px; border-radius: 14px; background: #16a34a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; }
.et-strip.warn .ic { background: var(--amber); }
.et-strip div { flex: 1 1 260px; }
.et-strip b { display: block; color: var(--navy); }
.et-strip span:not(.ic) { color: var(--muted); font-size: .88rem; }

.et-tr-head { margin-bottom: 1.6rem; }
.et-tr-head h2 { font-size: 1.6rem; font-weight: 700; color: var(--navy); margin: 0 0 .3rem; }
.et-tr-head p { color: var(--muted); margin: 0; max-width: 680px; }

.et-tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.et-tr {
    position: relative; overflow: hidden; display: flex; flex-direction: column; background: #fff; border-radius: 20px;
    padding: 1.5rem 1.5rem 1.4rem; box-shadow: var(--shadow); border-top: 6px solid var(--c); transition: transform .2s, box-shadow .2s;
}
.et-tr:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10, 26, 92, .18); }
.et-tr::after { content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%; right: -70px; top: -80px; background: var(--c); opacity: .08; }
.et-tr .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; position: relative; z-index: 1; }
.et-tr .badge-ic { width: 62px; height: 62px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 8px 18px var(--sh); }
.et-tr .nuevo { background: #fef3c7; color: #92400e; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .25rem .7rem; }
.et-tr h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 0 0 .5rem; line-height: 1.3; position: relative; z-index: 1; }
.et-tr .desc { color: #4b5563; font-size: .92rem; line-height: 1.55; flex: 1; margin: 0 0 1rem; position: relative; z-index: 1; }
.et-tr .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0 0 1.1rem; padding: .8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; position: relative; z-index: 1; }
.et-tr .stats dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.et-tr .stats dd { margin: .1rem 0 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.et-tr .acts { display: grid; gap: .6rem; position: relative; z-index: 1; }
.et-tr .et-btn { background: linear-gradient(135deg, var(--c), var(--c2)); box-shadow: 0 6px 16px var(--sh); }
.et-link2 { text-align: center; font-size: .88rem; font-weight: 600; color: var(--blue); text-decoration: none; padding: .3rem; }
.et-link2:hover { text-decoration: underline; }
.et-tr.c1 { --c: #2563eb; --c2: #4f46e5; --sh: rgba(37, 99, 235, .35); }
.et-tr.c2 { --c: #16a34a; --c2: #0d9488; --sh: rgba(22, 163, 74, .35); }
.et-tr.c3 { --c: #f59e0b; --c2: #ea580c; --sh: rgba(234, 88, 12, .35); }
.et-tr.c4 { --c: #e11d48; --c2: #be185d; --sh: rgba(225, 29, 72, .35); }
.et-tr.c5 { --c: #7c3aed; --c2: #a855f7; --sh: rgba(124, 58, 237, .35); }
.et-tr.c6 { --c: #0d9488; --c2: #0891b2; --sh: rgba(13, 148, 136, .35); }

.et-tr-vacio { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px dashed #cbd5e1; border-radius: 18px; color: var(--muted); }
.et-tr-vacio i { font-size: 2.6rem; margin-bottom: .8rem; }

.et-how { margin: 2.6rem 0 1.6rem; background: #fff; border-radius: 20px; padding: 1.6rem 1.8rem 1.8rem; box-shadow: var(--shadow-sm); }
.et-how h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 0 0 1.3rem; }
.et-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.et-how li { position: relative; text-align: center; padding: 0 .4rem; }
.et-how li::after { content: ''; position: absolute; top: 26px; left: calc(50% + 34px); width: calc(100% - 68px); height: 3px; background: var(--line); }
.et-how li:last-child::after { display: none; }
.et-how li span { display: flex; width: 54px; height: 54px; margin: 0 auto .7rem; border-radius: 50%; align-items: center; justify-content: center; color: #fff; font-size: 1.25rem; background: var(--c); position: relative; z-index: 1; box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.et-how li b { display: block; font-size: .95rem; color: var(--ink); }
.et-how li small { color: var(--muted); font-size: .8rem; }
.et-how .s1 { --c: var(--blue); } .et-how .s2 { --c: var(--purple); } .et-how .s3 { --c: var(--teal); } .et-how .s4 { --c: var(--amber); }

.et-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; color: #fff; border-radius: 20px; padding: 1.6rem 1.8rem;
    background: linear-gradient(118deg, #0a1a5c 0%, #1d4ed8 55%, #0d9488 100%); box-shadow: var(--shadow);
}
.et-cta h3 { margin: 0 0 .3rem; font-size: 1.2rem; font-weight: 700; }
.et-cta p { margin: 0; opacity: .9; max-width: 640px; font-size: .94rem; }
.et-cta .et-btn { background: #fff; color: var(--navy); box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.et-cta .et-btn:hover { color: var(--blue); }

@media (max-width: 991.98px) {
    .et-how ol { grid-template-columns: repeat(2, 1fr); }
    .et-how li::after { display: none; }
}
@media (max-width: 575.98px) {
    .et-nav a span { display: none; }
    .et-nav { margin-right: 0; }
    .et-nav a { padding: .5rem .7rem; }
    .et-tr-grid { grid-template-columns: 1fr; }
    .et-how ol { grid-template-columns: 1fr; }
    .et-cta .et-btn { width: 100%; }
    .et-tr-head h2 { font-size: 1.35rem; }
}
