/* =========================================================
   MISIGAD — ADMISIONES · Pantalla de acceso
   Archivo: css/acceso.css   (index.html)

   Misma estructura que login.misigad.com: barra superior,
   tarjeta partida (foto azul marino + panel blanco) y pie.
   Lo propio de admisiones: convocatoria, línea del proceso,
   selector "Soy nuevo / Ya tengo cuenta" y requisitos.
   Hoja independiente: no necesita admisiones.css.
   ========================================================= */

:root {
    --primary:        #1e267b;
    --primary-hover:  #161d63;
    --primary-light:  #eef0fb;
    --navy:           #0f143d;
    --oro:            #c9a14a;
    --oro-claro:      #e6c57c;

    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #64748b;
    --border:         #e2e8f0;
    --border-strong:  #cbd5e1;
    --surface:        #ffffff;
    --bg-body:        #f3f4f8;
    --surface-alt:    #f1f5f9;

    --success:        #15803d;
    --success-bg:     #dcfce7;
    --danger:         #b91c1c;
    --danger-bg:      #fee2e2;
    --warning:        #b45309;

    --radius-md:      8px;
    --radius-lg:      12px;
    --radius-xl:      16px;

    --font:           "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif:          "Libre Baskerville", Georgia, "Times New Roman", serif;
}


/* =========================================================
   BASE
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

[hidden], .hidden { display: none !important; }

body.acc {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.acc-contenedor {
    width: 100%;
    max-width: 1112px;
    margin: 0 auto;
    padding: 0 24px;
}


/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.acc-top {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.acc-top-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 62px;
}

.acc-marca {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    color: var(--navy);
    text-decoration: none;
}

.acc-marca-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.acc-marca strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.acc-marca-sep {
    width: 1px;
    height: 20px;
    margin: 0 0.35rem;
    background: var(--border-strong);
}

.acc-marca-sub {
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.82rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.acc-top-acciones {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.acc-top-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
}

.acc-top-link:hover { color: var(--primary); }

.acc-top-link svg,
.acc-top-boton svg { width: 17px; height: 17px; }

.acc-top-boton {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 38px;
    padding: 0 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.acc-top-boton:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}


/* =========================================================
   TARJETA PARTIDA
   ========================================================= */

.acc-main {
    display: flex;
    flex: 1;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.acc-tarjeta {
    display: grid;
    grid-template-columns: 52.5% 1fr;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 60px -30px rgba(15, 20, 61, 0.28), 0 2px 6px rgba(15, 23, 42, 0.04);
}


/* ---------- Lado azul ----------
   Sin foto: azul marino con cuadrícula de cuaderno, un brillo
   dorado arriba y anillos dorados muy tenues en la esquina.
   No depende de ninguna imagen, así que nunca sale vacío.    */

.acc-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 52px 52px 36px;
    overflow: clip;
    color: #ffffff;
    background-color: var(--navy);
    background-image:
        radial-gradient(110% 70% at 100% 0%, rgba(230, 197, 124, 0.13) 0%, transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(76, 90, 210, 0.30) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px, 28px 28px;
}

/* Anillos dorados decorativos */
.acc-brand::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(230, 197, 124, 0.22);
    border-radius: 50%;
    box-shadow:
        0 0 0 46px rgba(230, 197, 124, 0.035),
        0 0 0 47px rgba(230, 197, 124, 0.12),
        0 0 0 96px rgba(230, 197, 124, 0.02);
    pointer-events: none;
}

.acc-brand > * {
    position: relative;
    z-index: 1;
}

.acc-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--oro-claro);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Raya dorada antes del texto, como en el portal */
.acc-kicker::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--oro);
}

/* Punto verde = convocatoria abierta */
.acc-punto {
    position: relative;
    order: -1;
    display: none;
}

.acc-brand h1 {
    margin: 26px 0 0;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 3.6vw, 3.1rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.acc-oro { color: var(--oro); }

.acc-brand-desc {
    max-width: 30rem;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.7;
}


/* Línea del proceso */

.acc-linea {
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.acc-etapa {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.acc-etapa-num {
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.acc-etapa strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
}

.acc-etapa span:not(.acc-etapa-num) {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
}

.acc-etapa.actual .acc-etapa-num {
    border-color: var(--oro-claro);
    background: var(--oro-claro);
    color: var(--navy);
}

/* Etapa terminada (registro listo y Mi solicitud) */
.acc-etapa.hecho .acc-etapa-num {
    border-color: rgba(110, 231, 168, 0.5);
    background: rgba(110, 231, 168, 0.14);
    color: #8ff0bd;
}

.acc-etapa.hecho .acc-estado {
    background: rgba(110, 231, 168, 0.16);
    color: #8ff0bd;
}

/* Etapas que todavía no llegan */
.acc-etapa.pendiente strong { color: rgba(255, 255, 255, 0.7); }
.acc-etapa.pendiente .acc-etapa-num { color: rgba(255, 255, 255, 0.55); }

.acc-estado {
    margin-left: auto;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.acc-estado.abierto {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(110, 231, 168, 0.16);
    color: #8ff0bd;
}

.acc-estado.abierto::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #6ee7a8;
    box-shadow: 0 0 0 0 rgba(110, 231, 168, 0.6);
    animation: latido 2s ease-out infinite;
}

@keyframes latido {
    0%   { box-shadow: 0 0 0 0 rgba(110, 231, 168, 0.6); }
    100% { box-shadow: 0 0 0 7px rgba(110, 231, 168, 0); }
}

.acc-brand-pie {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.acc-brand-pie strong {
    color: #ffffff;
    font-weight: 800;
}

.acc-brand-pie-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
}


/* ---------- Lado blanco ---------- */

.acc-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 66px;
}

.acc-cabeza {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.acc-icono {
    display: grid;
    flex: 0 0 46px;
    place-items: center;
    height: 46px;
    border: 1px solid #dfe2f4;
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    color: var(--primary);
}

.acc-icono svg { width: 21px; height: 21px; }

.acc-cabeza-kicker {
    display: block;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.acc-cabeza h2 {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.25;
}

.acc-cabeza p {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 0.88rem;
}


/* Selector */

.acc-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 28px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
}

.acc-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.acc-tab svg { width: 17px; height: 17px; }

.acc-tab:hover { color: var(--text-primary); }

.acc-tab[aria-selected="true"] {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--border);
}

.acc-tab:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}


/* Avisos */

.acc-mensaje {
    margin-top: 18px;
    padding: 0.7rem 0.85rem;
    border: 1px solid #fecaca;
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-md);
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 0.84rem;
    font-weight: 500;
}

.acc-mensaje.success {
    border-color: #bbf7d0;
    border-left-color: var(--success);
    background: var(--success-bg);
    color: var(--success);
}

.acc-mensaje.info {
    border-color: #c7cbf3;
    border-left-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}


/* Contenido de cada opción */

.acc-contenido {
    margin-top: 22px;
    animation: aparecer 0.2s ease;
}

@keyframes aparecer {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

.acc-texto {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    font-weight: 500;
}

.acc-requisitos {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.acc-requisitos li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.acc-req-icono {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    height: 34px;
    border-radius: var(--radius-md);
    background: #fbf6ea;
    color: #8a6a26;
}

.acc-req-icono svg { width: 17px; height: 17px; }

.acc-requisitos strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
}

.acc-requisitos span:not(.acc-req-icono) {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}


/* Formulario */

.acc-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.acc-campo label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.84rem;
    font-weight: 500;
}

.acc-campo-fila {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.acc-campo-fila a {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.acc-campo-fila a:hover { text-decoration: underline; }

.acc-input { position: relative; }

.acc-input-icono {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transform: translateY(-50%);
    pointer-events: none;
}

.acc-input input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-primary);
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.acc-input input#password { padding-right: 48px; }

.acc-input input::placeholder { color: #94a3b8; }

.acc-input input:focus {
    border: 2px solid var(--primary);
    padding-left: 43px;
    box-shadow: 0 0 0 3px rgba(30, 38, 123, 0.12);
}

.acc-input:focus-within .acc-input-icono { color: var(--primary); }

.acc-input input[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.08);
}

.acc-ojo {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    transform: translateY(-50%);
    cursor: pointer;
}

.acc-ojo:hover { background: var(--surface-alt); color: var(--text-primary); }
.acc-ojo svg { width: 18px; height: 18px; }

.acc-caps {
    margin: 6px 0 0;
    color: var(--warning);
    font-size: 0.75rem;
    font-weight: 600;
}

.acc-recordar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
    font-size: 0.86rem;
    cursor: pointer;
    user-select: none;
}

.acc-recordar input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}


/* Botón principal (como el del portal) */

.acc-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 50px;
    padding: 0 1.2rem;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--primary);
    box-shadow: 0 10px 22px -10px rgba(30, 38, 123, 0.65);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.acc-boton:hover:not(:disabled) { background: var(--primary-hover); }
.acc-boton:active:not(:disabled) { transform: translateY(1px); }

.acc-boton:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.acc-boton:disabled { cursor: progress; opacity: 0.85; }

.acc-boton svg {
    width: 18px;
    height: 18px;
    transition: transform 0.15s ease;
}

.acc-boton:hover svg { transform: translateX(3px); }

.acc-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: girar 0.7s linear infinite;
}

@keyframes girar { to { transform: rotate(360deg); } }

.acc-cambio {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    text-align: center;
}

.acc-enlace {
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.acc-enlace:hover { text-decoration: underline; text-underline-offset: 2px; }


/* Ayuda (como "¿Primer acceso?") */

.acc-ayuda {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.acc-ayuda-icono {
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.acc-ayuda-icono svg { width: 17px; height: 17px; }

.acc-ayuda p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.55;
}

.acc-ayuda strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
}

.acc-ayuda a {
    color: var(--primary);
    font-weight: 600;
}


/* =========================================================
   PIE
   ========================================================= */

.acc-pie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 18px;
    padding-bottom: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.acc-pie-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.acc-pie-link svg { width: 17px; height: 17px; }


/* =========================================================
   VENTANA DE AYUDA (scripts/ayuda.js)
   ========================================================= */

.acc-dialogo {
    width: min(520px, calc(100% - 28px));
    max-height: min(640px, calc(100dvh - 40px));
    padding: 0;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: 0 30px 70px -20px rgba(15, 20, 61, 0.45);
}

.acc-dialogo::backdrop {
    background: rgba(15, 20, 61, 0.55);
    backdrop-filter: blur(2px);
}

.acc-dialogo[open] {
    animation: aparecer 0.18s ease;
}

.acc-dialogo-cabeza {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.acc-dialogo-cabeza h2 {
    margin: 4px 0 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
}

.acc-dialogo-cerrar {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
}

.acc-dialogo-cerrar:hover {
    background: var(--surface-alt);
    color: var(--text-primary);
}

.acc-dialogo-cerrar svg { width: 18px; height: 18px; }

.acc-dialogo-cuerpo {
    padding: 8px 24px;
}

.acc-dialogo details {
    border-bottom: 1px solid var(--border);
}

.acc-dialogo details:last-child { border-bottom: 0; }

.acc-dialogo summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 15px 0;
    font-size: 0.92rem;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.acc-dialogo summary::-webkit-details-marker { display: none; }

.acc-dialogo summary::after {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}

.acc-dialogo details[open] summary::after {
    transform: rotate(-135deg) translateY(-2px);
}

.acc-dialogo summary:hover { color: var(--primary); }

.acc-dialogo details p {
    margin: -4px 0 16px;
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.6;
}

.acc-dialogo-pie {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    background: #fafbfd;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.acc-dialogo-pie a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .acc-brand { padding: 44px 36px 30px; }
    .acc-panel { padding: 40px 40px; }
}

/* ---------- Tableta y celular ----------
   Igual que el portal en móvil: franja azul a todo lo
   ancho con el texto centrado y la tarjeta blanca
   montada encima.                                        */

@media (max-width: 880px) {

    /* Barra superior compacta */
    .acc-top-fila { min-height: 58px; }

    .acc-marca-sep,
    .acc-marca-sub,
    .acc-top-link span { display: none; }

    .acc-top-acciones { gap: 0.9rem; }

    .acc-top-link svg { width: 20px; height: 20px; }

    .acc-top-boton {
        min-height: 40px;
        padding: 0 0.85rem;
        border-radius: 10px;
    }

    /* La tarjeta deja de ser caja: la franja azul ocupa todo el ancho */
    .acc-main {
        display: block;
        max-width: none;
        padding: 0 0 28px;
    }

    .acc-tarjeta {
        display: block;
        min-height: 0;
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* Franja azul */
    .acc-brand {
        display: block;
        padding: 30px 22px 66px;
        text-align: center;
    }

    .acc-brand::after {
        top: -190px;
        right: -170px;
    }

    .acc-brand-cuerpo {
        max-width: 520px;
        margin: 0 auto;
    }

    /* Kicker con raya dorada a los dos lados */
    .acc-kicker {
        justify-content: center;
        gap: 0.9rem;
        font-size: 0.72rem;
        line-height: 1.5;
        letter-spacing: 0.14em;
    }

    .acc-kicker::before,
    .acc-kicker::after {
        content: "";
        flex: 0 0 34px;
        height: 1px;
        background: var(--oro);
    }

    .acc-brand h1 {
        margin-top: 14px;
        font-size: clamp(1.55rem, 6.4vw, 2.1rem);
        line-height: 1.22;
    }

    .acc-brand-desc {
        max-width: 26rem;
        margin: 12px auto 0;
        color: rgba(255, 255, 255, 0.85);
        font-size: 0.86rem;
        line-height: 1.65;
    }

    .acc-linea,
    .acc-brand-pie { display: none; }

    /* Tarjeta blanca encima de la franja */
    .acc-panel {
        position: relative;
        display: block;
        max-width: 560px;
        margin: -40px auto 0;
        padding: 26px 20px 26px;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: 0 24px 48px -28px rgba(15, 20, 61, 0.35), 0 2px 6px rgba(15, 23, 42, 0.04);
    }

    .acc-main .acc-panel {
        width: calc(100% - 28px);
    }

    .acc-tabs { margin-top: 22px; }

    /* Pie centrado en dos renglones */
    .acc-pie {
        flex-direction: column;
        gap: 0.5rem;
        width: calc(100% - 28px);
        padding: 18px 0 24px;
        text-align: center;
    }
}

@media (max-width: 560px) {

    .acc-contenedor { padding: 0 14px; }

    .acc-main.acc-contenedor { padding: 0 0 24px; }

    .acc-pie.acc-contenedor { padding: 18px 0 24px; }

    .acc-marca-logo { width: 34px; height: 34px; }

    .acc-cabeza { gap: 0.85rem; }

    .acc-icono {
        flex-basis: 42px;
        height: 42px;
    }

    .acc-cabeza h2 { font-size: 1.4rem; }

    .acc-cabeza p { margin-top: 8px; font-size: 0.84rem; }

    .acc-tab {
        gap: 0.4rem;
        font-size: 0.82rem;
    }

    .acc-requisitos li { padding: 9px 10px; }

    .acc-boton { min-height: 50px; border-radius: 10px; }

    /* Evita el zoom de iOS */
    .acc-input input { font-size: 16px; }

    .acc-ayuda { margin-top: 22px; padding-top: 20px; }
}

@media (max-width: 360px) {

    .acc-top-boton { padding: 0 0.65rem; font-size: 0.82rem; }

    .acc-tab svg { display: none; }

    .acc-kicker::before,
    .acc-kicker::after { flex-basis: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}