/* =============================================================================
   styles.css — Archivo Judicial de Santiago (ajs.cl)
   Adaptado a la Ley N° 21.772 (Reforma Notarial y Registral, abril 2026)
   ============================================================================= */

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Paleta */
    --navy:       #092b4c;
    --navy-light: #0e3d6b;
    --navy-pale:  #e8eef5;
    --gold:       #c49a3c;
    --gold-light: #f5e9ce;
    --text:       #1a1a2e;
    --muted:      #5a6478;
    --border:     rgba(9,43,76,0.12);
    --surface:    #f7f8fa;
    --white:      #ffffff;

    /* Estado */
    --success:    #0F6E56;
    --warning:    #b8860b;
    --danger:     #b93a3a;
    --info:       #185FA5;

    /* Radios */
    --radius-sm:  6px;
    --radius-md:  10px;
    --radius-lg:  16px;

    /* Tipografía */
    --sans:       'DM Sans', system-ui, -apple-system, sans-serif;
    --serif:      'Lora', Georgia, serif;

    /* Animación */
    --transition: 0.22s cubic-bezier(0.4,0,0.2,1);

    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(9,43,76,0.06);
    --shadow-md: 0 4px 14px rgba(9,43,76,0.08);
    --shadow-lg: 0 12px 32px rgba(9,43,76,0.12);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

/* Modo alto contraste (toggle por JS) */
body.high-contrast {
    --navy: #000000;
    --navy-light: #1a1a1a;
    --gold: #ffd700;
    --text: #000000;
    --muted: #333333;
    --border: rgba(0,0,0,0.4);
    --surface: #ffffff;
    background: #ffffff;
}

/* ============================================================
   ACCESIBILIDAD — Barra superior
============================================================ */
.ajs-a11y {
    background: #051a30;
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    padding: 4px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.a11y-skip {
    color: rgba(255,255,255,0.65);
    text-decoration: underline;
    font-size: 12px;
}
.a11y-skip:focus {
    background: var(--gold);
    color: var(--navy);
    padding: 2px 8px;
    border-radius: 4px;
    outline: 2px solid #fff;
}
.a11y-controls { display: flex; gap: 6px; }
.a11y-btn {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2px 10px;
    font-size: 11px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--sans);
    transition: background var(--transition), color var(--transition);
}
.a11y-btn:hover, .a11y-btn:focus {
    background: rgba(255,255,255,0.12);
    color: #fff;
    outline: none;
}

/* ============================================================
   TOPBAR
============================================================ */
.ajs-topbar {
    background: var(--navy);
    color: rgba(255,255,255,0.75);
    font-size: 12.5px;
    padding: 7px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.ajs-topbar a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color var(--transition);
}
.ajs-topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 24px; align-items: center; }

/* ============================================================
   NAVBAR
============================================================ */
.ajs-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 68px;
    box-shadow: var(--shadow-sm);
}
.ajs-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.ajs-logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}
.ajs-logo-sub {
    font-size: 11px;
    color: var(--muted);
    display: block;
    font-weight: 300;
    margin-top: 2px;
    white-space: nowrap;
}
.ajs-nav-links {
    display: flex;
    gap: 26px;
    list-style: none;
    align-items: center;
}
.ajs-nav-links a {
    font-size: 13.5px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 0.01em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.ajs-nav-links a:hover,
.ajs-nav-links a:focus {
    color: var(--navy);
    border-bottom-color: var(--gold);
    outline: none;
}
.ajs-nav-cta {
    background: var(--navy);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    border-bottom: none !important;
    white-space: nowrap;
}
.ajs-nav-cta:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    border-bottom: none !important;
}

/* Botón hamburguesa (móvil) */
.ajs-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.ajs-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: transform var(--transition), opacity var(--transition);
}
.ajs-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.ajs-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ajs-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   AVISO INFORMATIVO LEY 21.772 (banner pre-hero)
============================================================ */
.ajs-banner-ley {
    background: linear-gradient(90deg, var(--gold-light), #faf2dc);
    border-bottom: 1px solid rgba(196,154,60,0.3);
    padding: 12px 40px;
    text-align: center;
    font-size: 13px;
    color: #6d4e00;
}
.ajs-banner-ley strong { color: #4a3500; }
.ajs-banner-ley a {
    color: #6d4e00;
    text-decoration: underline;
    margin-left: 6px;
}

/* ============================================================
   HERO
============================================================ */
.ajs-hero {
    background:
        linear-gradient(to right, rgba(9,43,76,0.82) 40%, rgba(9,43,76,0.6) 100%),
        url('/assets/img/AJSFondo.jpg') center center / cover no-repeat;
    padding: 80px 40px 72px;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 60px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.ajs-hero::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 420px;
    height: 420px;
    border: 60px solid rgba(196,154,60,0.08);
    border-radius: 50%;
}
.ajs-hero::after {
    content: '';
    position: absolute;
    right: 100px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border: 40px solid rgba(196,154,60,0.05);
    border-radius: 50%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(196,154,60,0.15);
    border: 1px solid rgba(196,154,60,0.3);
    color: #e8c97a;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 22px;
}
.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}
.ajs-hero h1 {
    font-family: var(--serif);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.ajs-hero h1 em {
    font-style: normal;
    color: #e8c97a;
}
.ajs-hero p {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
    position: relative;
    z-index: 1;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.btn-hero-primary {
    background: var(--gold);
    color: var(--navy);
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn-hero-primary:hover {
    background: #d9ab4a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(196,154,60,0.4);
}
.btn-hero-secondary {
    background: transparent;
    color: rgba(255,255,255,0.85);
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.25);
    transition: border-color var(--transition), color var(--transition), background var(--transition);
    display: inline-block;
}
.btn-hero-secondary:hover {
    border-color: rgba(255,255,255,0.6);
    color: #fff;
    background: rgba(255,255,255,0.05);
}

/* Hero panel */
.hero-panel {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.hero-panel-title {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
    font-weight: 500;
}
.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.hero-stat {
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: background var(--transition);
}
.hero-stat:hover { background: rgba(255,255,255,0.08); }
.hero-stat-num {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    color: #e8c97a;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}
.hero-panel-info {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hero-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.hero-info-row svg {
    width: 14px; height: 14px;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    flex-shrink: 0;
}

/* ============================================================
   SERVICIOS / ACCIONES RÁPIDAS
============================================================ */
.ajs-actions {
    padding: 60px 40px;
    background: var(--white);
}
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}
.section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}
.section-header h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--navy);
    line-height: 1.2;
}
.section-link {
    font-size: 13px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}
.section-link:hover { gap: 8px; }

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.action-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}
.action-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-accent, var(--navy));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.action-card:hover::before { transform: scaleX(1); }
.action-card:hover {
    border-color: rgba(9,43,76,0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.action-card.c1 { --card-accent: #185FA5; }
.action-card.c2 { --card-accent: #3B6D11; }
.action-card.c3 { --card-accent: #0F6E56; }
.action-card.c4 { --card-accent: #854F0B; }

.action-icon-wrap {
    width: 46px; height: 46px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.action-icon-wrap svg { width: 22px; height: 22px; }
.ai-blue  { background: #E6F1FB; }
.ai-green { background: #EAF3DE; }
.ai-teal  { background: #E1F5EE; }
.ai-amber { background: #FAEEDA; }

.action-card h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.35;
}
.action-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}
.action-link {
    margin-top: 18px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0.7;
    transition: opacity var(--transition), gap var(--transition);
}
.action-card:hover .action-link { opacity: 1; gap: 8px; }

/* ============================================================
   TARIFAS — Nueva sección obligatoria (Ley 21.772)
============================================================ */
.ajs-tarifas {
    padding: 64px 40px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.tarifas-intro {
    max-width: 720px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.8;
    margin-bottom: 28px;
}
.tarifas-table-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.tarifas-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.tarifas-table thead {
    background: var(--navy);
    color: #fff;
}
.tarifas-table th {
    text-align: left;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.tarifas-table th:last-child { text-align: right; }
.tarifas-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.tarifas-table tbody tr:last-child { border-bottom: none; }
.tarifas-table tbody tr:hover { background: var(--navy-pale); }
.tarifas-table td {
    padding: 14px 20px;
    color: var(--text);
    vertical-align: middle;
}
.tarifas-table td:last-child {
    text-align: right;
    font-weight: 500;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}
.tarifa-detalle {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}
.tarifas-foot {
    background: var(--navy-pale);
    padding: 14px 20px;
    font-size: 12.5px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tarifa-badge {
    display: inline-block;
    background: var(--success);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ============================================================
   CALCULADORA DE CARILLAS
============================================================ */
.carillas-calc {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    border-top: 1px solid var(--border);
    padding: 28px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}
.calc-head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.calc-icon {
    width: 42px; height: 42px;
    background: rgba(196,154,60,0.15);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}
.calc-icon svg { width: 20px; height: 20px; }
.calc-head h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: #e8c97a;
    margin-bottom: 2px;
}
.calc-head p {
    font-size: 12.5px;
    color: rgba(255,255,255,0.6);
    margin: 0;
}
.calc-body {
    display: flex;
    align-items: center;
    gap: 20px;
}
.calc-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}
.calc-controls {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}
.calc-btn {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: background var(--transition);
    font-family: var(--sans);
}
.calc-btn:hover, .calc-btn:focus {
    background: var(--gold);
    color: var(--navy);
    outline: none;
}
.calc-input {
    width: 60px;
    background: transparent;
    border: none;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--sans);
    -moz-appearance: textfield;
}
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.calc-input:focus { outline: none; }
.calc-result {
    text-align: right;
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 20px;
}
.calc-result-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-bottom: 4px;
}
.calc-result-value {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--gold);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.calc-foot {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 14px;
    font-size: 12.5px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}
.calc-foot strong { color: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
    .carillas-calc {
        grid-template-columns: 1fr;
        padding: 24px 18px;
    }
    .calc-body {
        flex-wrap: wrap;
        gap: 16px;
    }
    .calc-result {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.15);
        padding-left: 0;
        padding-top: 12px;
        text-align: left;
        width: 100%;
    }
}


/* ============================================================
   ABOUT
============================================================ */
.ajs-about {
    background: var(--white);
    padding: 72px 40px;
    border-top: 1px solid var(--border);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-text .section-label { display: block; margin-bottom: 10px; }
.about-text h2 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 400;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 20px;
}
.about-text p {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 24px;
}
.about-text h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 14px;
}
.func-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.func-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--muted);
    padding: 10px 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.func-bullet {
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

.about-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.video-wrapper {
    background: var(--navy);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    box-shadow: var(--shadow-md);
}
.video-wrapper iframe,
.video-wrapper img {
    width: 100%; height: 100%;
    border: none;
    display: block;
    object-fit: cover;
}
.about-cta-card {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.about-cta-card p {
    font-family: var(--serif);
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    line-height: 1.4;
}
.about-cta-card a {
    background: var(--gold);
    color: var(--navy);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition);
    flex-shrink: 0;
}
.about-cta-card a:hover { background: #d9ab4a; }

/* ============================================================
   TRANSPARENCIA — Nueva sección Ley 21.772
============================================================ */
.ajs-transparencia {
    padding: 64px 40px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.transp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 28px;
}
.transp-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: box-shadow var(--transition), transform var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}
.transp-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.transp-card-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--navy-pale);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
}
.transp-card-icon svg {
    width: 20px; height: 20px;
    stroke: var(--navy);
    fill: none;
    stroke-width: 2;
}
.transp-card h4 {
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 6px;
    font-weight: 500;
}
.transp-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* ============================================================
   FRANJA INFORMATIVA LEY 21.772
============================================================ */
.ajs-ley {
    background: var(--navy);
    color: #fff;
    padding: 32px 40px;
}
.ley-inner {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 24px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}
.ley-icon {
    width: 48px; height: 48px;
    background: rgba(196,154,60,0.15);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
}
.ley-icon svg { width: 24px; height: 24px; }
.ley-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 16px;
    color: #e8c97a;
    margin-bottom: 4px;
    font-weight: 500;
}
.ley-text p {
    font-size: 13.5px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
}
.ley-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.ley-btn {
    background: var(--gold);
    color: var(--navy);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition);
}
.ley-btn:hover { background: #d9ab4a; }
.ley-btn-ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.25);
}
.ley-btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ============================================================
   FRANJA DE CONTACTO
============================================================ */
.ajs-contact-strip {
    padding: 0 40px;
    background: var(--white);
}
.contact-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: translateY(-36px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}
.contact-item {
    padding: 24px 26px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-right: 1px solid var(--border);
    transition: background var(--transition);
}
.contact-item:last-child { border-right: none; }
.contact-item:hover { background: var(--surface); }
.contact-icon {
    width: 36px; height: 36px;
    background: var(--navy-pale);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.contact-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--navy); stroke-width: 2; }
.contact-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
    display: block;
}
.contact-value {
    font-size: 13.5px;
    color: var(--navy);
    font-weight: 400;
    line-height: 1.45;
}

/* ============================================================
   UBICACIÓN / MAPA
============================================================ */
.ajs-location {
    padding: 20px 40px 72px;
    background: var(--white);
}
.location-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    margin-top: 32px;
    align-items: stretch;
}
.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    min-height: 360px;
    box-shadow: var(--shadow-sm);
}
.map-embed iframe {
    width: 100%; height: 100%;
    min-height: 360px;
    display: block;
    border: none;
}
.location-aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.location-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.loc-icon {
    width: 36px; height: 36px;
    background: var(--navy);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.loc-icon svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }
.loc-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
    display: block;
}
.loc-value { font-size: 14px; color: var(--text); line-height: 1.5; }

/* ============================================================
   FOOTER
============================================================ */
.ajs-footer {
    background: var(--navy);
    padding: 48px 40px 28px;
}
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 28px;
}
.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.footer-emblem {
    width: 38px; height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.footer-emblem svg { width: 20px; height: 20px; }
.footer-name {
    font-family: var(--serif);
    font-size: 15px;
    color: #fff;
    line-height: 1.3;
}
.footer-sub-name {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}
.footer-about {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    max-width: 320px;
}
.footer-col h4 {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a, .footer-col ul span {
    font-size: 13.5px;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-col ul a:hover { color: #e8c97a; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
    .ajs-nav-links { gap: 18px; }
    .ajs-nav-links a { font-size: 12.5px; }
}

@media (max-width: 1024px) {
    .ajs-a11y, .ajs-topbar, .ajs-banner-ley { padding-left: 24px; padding-right: 24px; }
    .ajs-nav { padding: 0 24px; }
    .ajs-nav-toggle { display: flex; }
    .ajs-nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0; right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 12px 24px;
        box-shadow: var(--shadow-md);
    }
    .ajs-nav-links.is-open { display: flex; }
    .ajs-nav-links li { width: 100%; }
    .ajs-nav-links a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    .ajs-hero { padding: 56px 24px; grid-template-columns: 1fr; }
    .hero-panel { display: none; }
    .ajs-actions, .ajs-tarifas, .ajs-transparencia { padding: 48px 24px; }
    .actions-grid { grid-template-columns: repeat(2, 1fr); }
    .transp-grid { grid-template-columns: repeat(2, 1fr); }
    .ajs-about { padding: 56px 24px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .ajs-contact-strip { padding: 0 24px; }
    .contact-strip-inner { grid-template-columns: repeat(2, 1fr); }
    .contact-item:nth-child(2) { border-right: none; }
    .contact-item:nth-child(3) { border-top: 1px solid var(--border); }
    .contact-item:nth-child(4) { border-top: 1px solid var(--border); }
    .ajs-location { padding: 20px 24px 56px; }
    .location-grid { grid-template-columns: 1fr; }
    .ajs-ley { padding: 28px 24px; }
    .ley-inner { grid-template-columns: 1fr; gap: 16px; text-align: center; justify-items: center; }
    .ley-actions { justify-content: center; flex-wrap: wrap; }
    .ajs-footer { padding: 40px 24px 24px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    .ajs-a11y { padding: 4px 16px; font-size: 11px; }
    .a11y-controls { gap: 4px; }
    .ajs-topbar { display: none; }
    .ajs-banner-ley { padding: 10px 16px; font-size: 12px; }
    .ajs-nav { padding: 0 16px; height: 60px; }
    .ajs-logo-sub { display: none; }
    .ajs-nav-cta { display: none; }
    .ajs-nav-links { top: 60px; padding: 8px 16px; }
    .ajs-hero { padding: 40px 16px 48px; gap: 24px; }
    .ajs-hero h1 { font-size: 26px; }
    .actions-grid { grid-template-columns: 1fr; }
    .transp-grid { grid-template-columns: 1fr; }
    .ajs-actions, .ajs-tarifas, .ajs-transparencia { padding: 40px 16px; }
    .ajs-about { padding: 40px 16px; }
    .contact-strip-inner { grid-template-columns: 1fr; transform: translateY(-24px); }
    .contact-item { border-right: none; border-bottom: 1px solid var(--border); }
    .contact-item:last-child { border-bottom: none; }
    .ajs-contact-strip { padding: 0 16px; }
    .ajs-location { padding: 12px 16px 48px; }
    .ajs-ley { padding: 24px 16px; }
    .ajs-footer { padding: 36px 16px 20px; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal { justify-content: center; flex-wrap: wrap; }
    .tarifas-table th, .tarifas-table td { padding: 10px 12px; font-size: 13px; }
    .about-cta-card { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   PRINT
============================================================ */
@media print {
    .ajs-a11y, .ajs-topbar, .ajs-nav, .ajs-banner-ley,
    .ajs-ley, .ajs-footer, .ajs-nav-toggle, .ley-actions { display: none !important; }
    body { color: #000; }
    a { color: #000; text-decoration: underline; }
    .ajs-hero { background: none; color: #000; padding: 20px 0; }
    .ajs-hero h1, .ajs-hero p { color: #000; }
}

/* ============================================================
   ACCESIBILIDAD — Reducción de movimiento
============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible para navegación con teclado */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}


/* ============================================================
   ACCESIBILIDAD — Escalado de texto
   Aplica zoom progresivo al contenido principal y a las barras
   secundarias. Las clases las pone JavaScript sobre <body>.
============================================================ */
body.fs-90  { zoom: 0.9; }
body.fs-100 { zoom: 1; }
body.fs-110 { zoom: 1.1; }
body.fs-120 { zoom: 1.2; }
body.fs-130 { zoom: 1.3; }

/* Firefox no soporta zoom, fallback con transform */
@supports (-moz-appearance: none) {
    body.fs-90  { transform: scale(0.9); }
    body.fs-110 { transform: scale(1.1); }
    body.fs-120 { transform: scale(1.2); }
    body.fs-130 { transform: scale(1.3); }
    body.fs-90, body.fs-110, body.fs-120, body.fs-130 {
        transform-origin: top left;
        width: 100%;
    }
}

/* ============================================================
   PAGE HERO COMPACTO (reutilizable en páginas internas)
============================================================ */
.ajs-page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    padding: 56px 40px;
    position: relative;
    overflow: hidden;
}
.ajs-page-hero::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border: 40px solid rgba(196,154,60,0.06);
    border-radius: 50%;
}
.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
}
.ajs-page-hero .section-label {
    color: var(--gold);
    margin-bottom: 8px;
}
.ajs-page-hero h1 {
    font-family: var(--serif);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 14px;
}
.page-hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 18px;
}
.page-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.page-hero-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 1px dashed rgba(196,154,60,0.4);
    padding-bottom: 2px;
    transition: gap var(--transition);
}
.page-hero-link:hover { gap: 10px; color: #f0d68a; }

/* ============================================================
   PÁGINA DE CONTACTO
============================================================ */
.ajs-contacto {
    padding: 56px 40px;
    background: var(--white);
}
.contacto-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Formulario */
.contacto-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-sm);
}
.contacto-form-head { margin-bottom: 24px; }
.contacto-form-head h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
}
.contacto-form-head p {
    font-size: 13px;
    color: var(--muted);
}

/* Alertas */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 13.5px;
    border: 1px solid transparent;
}
.alert-success {
    background: #e8f5ed;
    border-color: #c2e2cf;
    color: #1a5d39;
}
.alert-error {
    background: #fdecec;
    border-color: #f4c8c8;
    color: #9a2424;
}

/* Form base */
.form-ajs { display: flex; flex-direction: column; gap: 18px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 0.02em;
}
.form-group label .req { color: var(--danger); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--sans);
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9aa3b2; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(9,43,76,0.08);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-note {
    font-size: 12.5px;
    color: var(--muted);
    background: var(--surface);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
    line-height: 1.6;
}
.form-note a { color: var(--navy); font-weight: 500; }

.form-captcha { display: flex; justify-content: flex-start; }

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.btn-form-primary {
    background: var(--navy);
    color: #fff;
    padding: 12px 26px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--sans);
    transition: background var(--transition), transform var(--transition);
}
.btn-form-primary:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
}
.btn-form-ghost {
    background: transparent;
    color: var(--muted);
    padding: 12px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    cursor: pointer;
    font-family: var(--sans);
    transition: border-color var(--transition), color var(--transition);
}
.btn-form-ghost:hover {
    border-color: var(--navy);
    color: var(--navy);
}

/* Aside información */
.contacto-aside { display: flex; flex-direction: column; gap: 16px; }
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.info-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.info-icon {
    width: 36px; height: 36px;
    background: var(--navy);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.info-icon svg { width: 18px; height: 18px; }
.info-card-head h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
}
.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.info-list li {
    padding-bottom: 14px;
    border-bottom: 1px dashed var(--border);
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
}
.info-value {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}
.info-value a {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}
.info-value a:hover { border-bottom-color: var(--gold); }

.info-map {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
}
.info-map iframe {
    width: 100%; height: 100%;
    border: none;
    display: block;
}

/* Responsive */
@media (max-width: 900px) {
    .contacto-grid { grid-template-columns: 1fr; }
    .ajs-page-hero { padding: 48px 24px; }
    .ajs-contacto { padding: 48px 24px; }
    .contacto-form-wrap { padding: 28px 22px; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ajs-page-hero { padding: 40px 16px; }
    .ajs-contacto { padding: 40px 16px; }
    .contacto-form-wrap { padding: 22px 18px; }
    .form-actions { flex-direction: column; }
    .form-actions button { width: 100%; }
}

/* ============================================================
   CALCULADORA — Extensiones (campo, checkbox, detalle)
============================================================ */
.calc-field {
    display: flex;
    flex-direction: column;
}
.calc-body {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 24px;
    align-items: end;
}

/* Checkbox personalizado */
.calc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    padding: 6px 0;
}
.calc-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.calc-check-mark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 5px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition);
    position: relative;
}
.calc-check-mark::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid var(--navy);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform var(--transition);
    margin-bottom: 2px;
}
.calc-check input[type="checkbox"]:checked + .calc-check-mark {
    background: var(--gold);
    border-color: var(--gold);
}
.calc-check input[type="checkbox"]:checked + .calc-check-mark::after {
    transform: rotate(45deg) scale(1);
}
.calc-check input[type="checkbox"]:focus-visible + .calc-check-mark {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.calc-check-text {
    font-size: 13.5px;
    color: rgba(255,255,255,0.85);
    line-height: 1.3;
}
.calc-check-price {
    display: block;
    font-size: 11.5px;
    color: var(--gold);
    font-weight: 500;
    margin-top: 2px;
}

/* Detalle del cálculo */
.calc-result-detail {
    display: block;
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .calc-body {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .calc-result {
        text-align: left;
    }
}


/* ============================================================
   PÁGINA TARIFAS
============================================================ */
.ajs-tarifas-page {
    padding: 56px 40px;
    background: var(--white);
    max-width: 1100px;
    margin: 0 auto;
}
.tarifas-section { margin-bottom: 48px; }
.tarifas-h2 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.tarifas-section-intro {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: 20px;
}

/* Variante en página: la calculadora destaca más y se separa */
.carillas-calc-page {
    margin-top: 32px;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Aviso legal */
.tarifas-legal {
    background: var(--gold-light);
    border: 1px solid rgba(196,154,60,0.3);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 16px;
    align-items: start;
    margin-top: 32px;
}
.tarifas-legal-icon {
    width: 32px; height: 32px;
    color: #6d4e00;
    display: flex; align-items: center; justify-content: center;
}
.tarifas-legal-icon svg { width: 22px; height: 22px; }
.tarifas-legal-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 15px;
    color: #4a3500;
    margin-bottom: 4px;
}
.tarifas-legal-text p {
    font-size: 13.5px;
    color: #6d4e00;
    line-height: 1.7;
    margin: 0;
}
.tarifas-legal-text a {
    color: #4a3500;
    font-weight: 500;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .ajs-tarifas-page { padding: 40px 20px; }
    .tarifas-h2 { font-size: 20px; }
    .tarifas-legal {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .tarifas-legal-icon { display: none; }
}

/* ============================================================
   PÁGINA VALIDACIÓN DE DOCUMENTOS
============================================================ */
.ajs-validacion {
    padding: 56px 40px;
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}
.validacion-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Formulario */
.validacion-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.validacion-form-head { margin-bottom: 24px; }
.validacion-form-head h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
}
.validacion-form-head p {
    font-size: 13.5px;
    color: var(--muted);
}

/* Radio buttons como cards */
.origen-group {
    border: none;
    padding: 0;
    margin: 0 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.origen-legend {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 10px;
    grid-column: 1 / -1;
}
.origen-option {
    cursor: pointer;
    display: block;
    position: relative;
}
.origen-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.origen-card {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: border-color var(--transition), background var(--transition);
}
.origen-option:hover .origen-card {
    border-color: rgba(9,43,76,0.3);
    background: var(--surface);
}
.origen-option input[type="radio"]:checked + .origen-card {
    border-color: var(--navy);
    background: var(--navy-pale);
}
.origen-option input[type="radio"]:focus-visible + .origen-card {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.origen-icon {
    width: 36px; height: 36px;
    background: var(--navy-pale);
    color: var(--navy);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}
.origen-icon svg { width: 18px; height: 18px; }
.origen-option input[type="radio"]:checked + .origen-card .origen-icon {
    background: var(--navy);
    color: #fff;
}
.origen-text { display: flex; flex-direction: column; gap: 2px; }
.origen-text strong {
    font-size: 13.5px;
    color: var(--navy);
    font-weight: 500;
}
.origen-text small {
    font-size: 11.5px;
    color: var(--muted);
}

/* Tips */
.validar-tips {
    list-style: none;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.validar-tips li {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
    padding-left: 18px;
    position: relative;
}
.validar-tips li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
}
.validar-tips code {
    background: var(--surface);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--navy);
    font-family: ui-monospace, monospace;
}
.validar-tips strong { color: var(--navy); }

/* Ayuda visual lateral */
.validacion-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 88px;
}
.ayuda-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
}
.ayuda-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.ayuda-badge {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}
.ayuda-badge-alt { background: var(--gold); color: var(--navy); }
.ayuda-head h3 {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--navy);
    font-weight: 500;
    margin: 0;
}
.ayuda-text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 12px;
}
.ayuda-text code {
    background: var(--white);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--navy);
    font-family: ui-monospace, monospace;
    border: 1px solid var(--border);
}
.ayuda-image {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}
.ayuda-image img {
    width: 100%;
    height: auto;
    display: block;
}
.ayuda-note {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 10px;
    font-style: italic;
}
.ayuda-codigo-ejemplo {
    background: var(--white);
    border: 2px dashed var(--gold);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    text-align: center;
    font-family: ui-monospace, monospace;
    font-size: 16px;
    color: var(--navy);
    letter-spacing: 0.1em;
}
.ayuda-codigo-ejemplo span {
    color: var(--gold);
    font-weight: 600;
}

/* Respuesta del validador (donde el JS inyecta el resultado) */
.respuesta-validacion {
    margin-top: 24px;
}
.respuesta-validacion:empty { display: none; }

#framePDF {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Responsive */
@media (max-width: 900px) {
    .validacion-grid { grid-template-columns: 1fr; }
    .validacion-aside { position: static; }
    .ajs-validacion { padding: 40px 20px; }
    .validacion-form-wrap { padding: 24px 20px; }
    .origen-group { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ajs-validacion { padding: 32px 16px; }
    .validacion-form-wrap { padding: 22px 18px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn-form-primary,
    .form-actions .btn-form-ghost { width: 100%; text-align: center; }
}
/* Iframe del validador con tamaño generoso cuando aparece */
#framePDF {
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    /* Cuando display:block, ocupa el 80% del viewport con un mínimo */
    height: 80vh !important;
    min-height: 700px;
    background: #f0f0f0;
}

/* Header del PDF con acciones */
.pdf-toolbar {
    display: none;
    margin-top: 24px;
    padding: 12px 18px;
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pdf-toolbar.is-visible { display: flex; }
.pdf-toolbar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}
.pdf-toolbar-info svg {
    width: 16px; height: 16px;
    color: var(--gold);
}
.pdf-toolbar-actions { display: flex; gap: 8px; }
.pdf-action-btn {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition);
    font-family: var(--sans);
}
.pdf-action-btn:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.pdf-action-btn svg { width: 14px; height: 14px; }

/* Cuando hay toolbar, el iframe pierde la esquina superior redondeada */
.pdf-toolbar.is-visible + #framePDF {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: 0;
    border-top: none;
}

/* ============================================================
   PLAZOS Y HORARIOS DE RETIRO — Tarjetas tipo grid
============================================================ */
.plazos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 8px;
}
.plazo-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    transition: box-shadow var(--transition), transform var(--transition);
}
.plazo-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.plazo-icon {
    width: 38px;
    height: 38px;
    background: var(--navy-pale);
    color: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.plazo-icon svg {
    width: 18px;
    height: 18px;
}
.plazo-card h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 8px;
}
.plazo-card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}
.plazo-card strong {
    color: var(--navy);
    font-weight: 500;
}

@media (max-width: 768px) {
    .plazos-grid {
        grid-template-columns: 1fr;
    }
    .plazo-card {
        padding: 18px 20px;
    }
}
/* ============================================================
   PÁGINA DE ACCESO / LOGIN
============================================================ */
.ajs-acceso {
    padding: 56px 40px;
    background: var(--white);
    max-width: 1100px;
    margin: 0 auto;
}
.acceso-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* Formulario */
.acceso-form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
}
.acceso-form-head {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.acceso-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 14px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(9,43,76,0.15);
}
.acceso-icon-wrap svg {
    width: 24px;
    height: 24px;
}
.acceso-form-head h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
}
.acceso-form-head p {
    font-size: 13.5px;
    color: var(--muted);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Toggle de contraseña */
.form-password-wrap {
    position: relative;
}
.form-password-wrap input {
    padding-right: 44px;
}
.form-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    color: var(--muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), background var(--transition);
}
.form-password-toggle svg {
    width: 18px;
    height: 18px;
}
.form-password-toggle:hover,
.form-password-toggle:focus {
    color: var(--navy);
    background: var(--surface);
    outline: none;
}
.form-password-toggle.is-visible {
    color: var(--gold);
}

/* Botón ancho completo */
.btn-full {
    width: 100%;
    padding: 13px 24px;
    font-size: 14.5px;
}

/* Aside de información */
.acceso-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.acceso-aside-text {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 12px;
}
.acceso-aside-text:last-child {
    margin-bottom: 0;
}

/* Variante "warning" para info-card */
.info-card-warn {
    background: var(--gold-light);
    border-color: rgba(196,154,60,0.3);
    border-left: 3px solid var(--gold);
}
.info-card-warn .info-card-head h3 {
    color: #6d4e00;
}
.info-card-warn .acceso-aside-text {
    color: #6d4e00;
}
.info-icon-warn {
    background: var(--gold) !important;
    color: var(--navy) !important;
}

/* Otros accesos */
.acceso-otros-accesos {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
}
.acceso-otros-accesos h4 {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}
.acceso-otros-accesos ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}
.acceso-otros-accesos li a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--navy);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 6px;
    transition: background var(--transition);
}
.acceso-otros-accesos li a:hover {
    background: var(--white);
}
.acceso-otros-accesos li a svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .acceso-grid { grid-template-columns: 1fr; }
    .ajs-acceso { padding: 40px 24px; }
    .acceso-form-wrap { padding: 32px 24px; }
}
@media (max-width: 640px) {
    .ajs-acceso { padding: 32px 16px; }
    .acceso-form-wrap { padding: 26px 20px; }
    .acceso-form-head h2 { font-size: 19px; }
}

/* ============================================================
   PÁGINA HUB DE ACCESOS
============================================================ */
.ajs-accesos {
    padding: 56px 40px;
    background: var(--white);
    max-width: 1100px;
    margin: 0 auto;
}

/* Grid de tarjetas */
.accesos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.acceso-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}
.acceso-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-accent, var(--navy));
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.acceso-card:hover::before { transform: scaleX(1); }
.acceso-card:hover {
    border-color: rgba(9,43,76,0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Acentos por tarjeta */
.acceso-card-1 { --card-accent: var(--navy); }
.acceso-card-2 { --card-accent: var(--gold); }
.acceso-card-3 { --card-accent: var(--success); }

.acceso-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}
.acceso-card-icon {
    width: 48px;
    height: 48px;
    background: var(--navy-pale);
    color: var(--navy);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background var(--transition), color var(--transition);
}
.acceso-card-icon svg {
    width: 22px;
    height: 22px;
}
.acceso-card-1 .acceso-card-icon {
    background: var(--navy);
    color: var(--gold);
}
.acceso-card-2 .acceso-card-icon {
    background: var(--gold-light);
    color: #6d4e00;
}
.acceso-card-3 .acceso-card-icon {
    background: #e1f5ee;
    color: var(--success);
}

.acceso-card-tag {
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    background: var(--surface);
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.acceso-card h2 {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.3;
}
.acceso-card p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 18px;
}
.acceso-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    transition: gap var(--transition);
}
.acceso-card-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition);
}
.acceso-card:hover .acceso-card-link {
    gap: 10px;
}

/* Ayuda al pie */
.accesos-help {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    align-items: start;
}
.accesos-help-icon {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.accesos-help-icon svg {
    width: 18px;
    height: 18px;
}
.accesos-help-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 4px;
}
.accesos-help-text p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}
.accesos-help-text a {
    color: var(--navy);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color var(--transition);
}
.accesos-help-text a:hover {
    border-bottom-color: var(--gold);
}

/* Responsive */
@media (max-width: 900px) {
    .accesos-grid { grid-template-columns: 1fr; }
    .ajs-accesos { padding: 40px 24px; }
}
@media (max-width: 640px) {
    .ajs-accesos { padding: 32px 16px; }
    .acceso-card { padding: 22px 20px; }
    .accesos-help {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .accesos-help-icon { display: none; }
}

/* ============================================================
   PÁGINA PREGUNTAS FRECUENTES
============================================================ */
.ajs-faq {
    padding: 56px 40px;
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* Navegación lateral por categorías */
.faq-nav {
    position: sticky;
    top: 88px;
}
.faq-nav-title {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    font-weight: 500;
}
.faq-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.faq-nav li a {
    display: block;
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.faq-nav li a:hover {
    background: var(--surface);
    color: var(--navy);
    border-left-color: var(--gold);
}

/* Contenido principal */
.faq-content {
    min-width: 0;
}
.faq-cat {
    margin-bottom: 48px;
    scroll-margin-top: 88px;
}
.faq-cat-title {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

/* Item acordeón con <details>/<summary> */
.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item:hover {
    border-color: rgba(9,43,76,0.2);
}
.faq-item[open] {
    border-color: var(--navy);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--navy);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background var(--transition);
    line-height: 1.4;
}
.faq-item summary:hover {
    background: var(--surface);
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-right: 4px;
    margin-top: -3px;
}
.faq-item[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.faq-body {
    padding: 4px 20px 20px;
    border-top: 1px solid var(--border);
    margin-top: -1px;
    color: var(--text);
    line-height: 1.7;
    font-size: 13.5px;
}
.faq-body p {
    color: var(--muted);
    margin-bottom: 12px;
}
.faq-body p:last-child { margin-bottom: 0; }
.faq-body strong { color: var(--navy); font-weight: 500; }
.faq-body em { color: var(--text); font-style: italic; }

.faq-body h4 {
    font-family: var(--serif);
    font-size: 14.5px;
    color: var(--navy);
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 8px;
}

.faq-body ul, .faq-body ol {
    margin: 8px 0 12px 20px;
    color: var(--muted);
}
.faq-body ul li, .faq-body ol li {
    margin-bottom: 6px;
    line-height: 1.7;
}

.faq-body a {
    color: var(--navy);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color var(--transition);
}
.faq-body a:hover {
    border-bottom-color: var(--gold);
}

/* Listado de comunas en columnas */
.faq-comunas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: 6px;
}
.faq-comunas ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.faq-comunas li {
    font-size: 12.5px;
    color: var(--muted);
    padding: 3px 0;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .ajs-faq {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 24px;
    }
    .faq-nav {
        position: static;
        background: var(--surface);
        padding: 16px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
    }
    .faq-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .faq-nav li a {
        padding: 6px 12px;
        border-left: none;
        border: 1px solid var(--border);
        background: var(--white);
    }
    .faq-nav li a:hover {
        border-left: 1px solid var(--border);
        border-color: var(--navy);
    }
    .faq-comunas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ajs-faq { padding: 32px 16px; }
    .faq-cat-title { font-size: 20px; }
    .faq-item summary { padding: 14px 16px; font-size: 13.5px; }
    .faq-body { padding: 4px 16px 16px; font-size: 13px; }
    .faq-comunas { grid-template-columns: 1fr; }
}

/* ============================================================
   PÁGINA SOLICITUD DE ESCRITURA (PÚBLICA)
============================================================ */
.ajs-solicitud {
    padding: 56px 24px;
    background: var(--surface);
    min-height: 60vh;
}

/* Contenedor centrado, ancho controlado */
.solicitud-wrap {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-sm);
}

/* Disclaimer importante (con tipografía consistente) */
.solicitud-disclaimer {
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.65;
    color: #6d4e00;
    background: var(--gold-light);
    border-left: 3px solid var(--gold);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}
.solicitud-disclaimer strong {
    color: #4a3500;
    font-weight: 600;
}

/* Formulario */
.solicitud-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.solicitud-fieldset {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
}
.solicitud-fieldset legend {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    background: var(--white);
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

/* RUT mensaje de validación */
.form-rut-msg {
    display: block;
    font-size: 11.5px;
    margin-top: 4px;
    color: var(--muted);
    font-family: var(--sans);
}
.form-rut-msg.rut-msg-ok {
    color: var(--success);
    font-weight: 500;
}
.form-rut-msg.rut-msg-error {
    color: #b00020;
    font-weight: 500;
}

/* Estilos de input válido/inválido */
input.rut-valido {
    border-color: var(--success) !important;
}
input.rut-invalido {
    border-color: #b00020 !important;
}

/* Radios de vigencia */
.form-label-block {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 8px;
    font-family: var(--sans);
}
.form-radios {
    display: flex;
    gap: 12px;
}
.form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    transition: border-color var(--transition), background var(--transition);
    font-size: 13.5px;
    font-family: var(--sans);
}
.form-radio:hover {
    border-color: var(--navy);
}
.form-radio:has(input:checked) {
    border-color: var(--navy);
    background: var(--navy-pale);
}
.form-radio input[type="radio"] {
    margin: 0;
    accent-color: var(--navy);
}
.form-radio span {
    color: var(--text);
    font-weight: 500;
}

/* Notas explicativas al pie */
.form-notas {
    background: var(--surface);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-notas p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}
.form-notas strong {
    color: var(--navy);
    font-weight: 500;
}
.form-notas a {
    color: var(--navy);
    text-decoration: underline;
}

/* Form note al pie */
.form-note {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    margin: 0;
    text-align: center;
}
.form-note strong {
    color: var(--navy);
    font-weight: 500;
}

/* Captcha centrado */
.form-captcha {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

/* Acciones del formulario */
.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}
.form-actions .btn-form-primary {
    min-width: 220px;
    padding: 13px 32px;
}

/* Asterisco de campo requerido */
.req {
    color: #b00020;
    font-weight: 600;
    margin-left: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .ajs-solicitud { padding: 40px 16px; }
    .solicitud-wrap { padding: 26px 22px; }
    .solicitud-fieldset { padding: 20px 18px; }
    .form-actions .btn-form-primary { width: 100%; min-width: 0; }
}
@media (max-width: 480px) {
    .solicitud-wrap { padding: 22px 18px; }
    .form-radios { flex-direction: column; }
    .form-radio { width: 100%; }
}

/* ============================================================
   PÁGINA SOLICITUD ENVIADA (CONFIRMACIÓN)
============================================================ */
.ajs-enviada {
    padding: 56px 24px;
    background: var(--surface);
    min-height: 60vh;
}

.enviada-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 40px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

/* Icono de éxito */
.enviada-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: #e1f5ee;
    color: var(--success);
    border-radius: 50%;
    margin-bottom: 18px;
    animation: enviada-pop 0.5s ease-out;
}
.enviada-icon svg {
    width: 36px;
    height: 36px;
}
@keyframes enviada-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.enviada-titulo {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.3;
}
.enviada-mensaje {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.enviada-mensaje strong {
    color: var(--navy);
    font-weight: 500;
}

/* Pasos a seguir */
.enviada-pasos {
    text-align: left;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    margin-bottom: 28px;
}
.enviada-pasos h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.pasos-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    counter-reset: pasos;
}
.pasos-lista li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.paso-num {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 13px;
    font-weight: 600;
}
.paso-texto {
    flex: 1;
    padding-top: 2px;
}
.paso-texto strong {
    display: block;
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 4px;
}
.paso-texto p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}
.paso-texto em {
    color: var(--text);
    font-style: italic;
}

/* Aviso de contacto */
.enviada-contacto {
    background: var(--gold-light);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    align-items: start;
    text-align: left;
}
.enviada-contacto-icon {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.enviada-contacto-icon svg {
    width: 18px;
    height: 18px;
}
.enviada-contacto-texto strong {
    display: block;
    font-family: var(--serif);
    font-size: 14px;
    color: #4a3500;
    margin-bottom: 4px;
}
.enviada-contacto-texto p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: #6d4e00;
    line-height: 1.7;
    margin: 0;
}
.enviada-contacto-texto a {
    color: #4a3500;
    font-weight: 500;
    text-decoration: underline;
}

/* Acciones */
.enviada-acciones {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.enviada-acciones .btn-form-primary,
.enviada-acciones .btn-form-ghost {
    min-width: 180px;
}

/* Responsive */
@media (max-width: 640px) {
    .ajs-enviada { padding: 40px 16px; }
    .enviada-wrap { padding: 32px 22px; }
    .enviada-titulo { font-size: 20px; }
    .enviada-pasos { padding: 18px 18px; }
    .enviada-contacto {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .enviada-contacto-icon { display: none; }
    .enviada-acciones {
        flex-direction: column;
    }
    .enviada-acciones .btn-form-primary,
    .enviada-acciones .btn-form-ghost {
        width: 100%;
    }
}

/* ============================================================
   LINK DESTACADO DENTRO DE LOS PASOS
============================================================ */
.paso-link {
    color: var(--navy);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    transition: color var(--transition), border-color var(--transition);
    padding-bottom: 1px;
}
.paso-link:hover {
    color: var(--gold);
    border-bottom-color: var(--navy);
}

/* ============================================================
   CONVENIO — Login y barra de usuario
============================================================ */

/* Card de login del convenio */
.convenio-login-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 30px;
}

.convenio-login-head {
    text-align: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.convenio-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 12px;
    margin-bottom: 12px;
}
.convenio-login-icon svg {
    width: 22px;
    height: 22px;
}
.convenio-login-head h2 {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 4px;
}
.convenio-login-head p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

/* Toggle de contraseña */
.form-password-wrap {
    position: relative;
}
.form-password-wrap input {
    padding-right: 44px;
}
.form-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    color: var(--muted);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), background var(--transition);
}
.form-password-toggle svg {
    width: 18px;
    height: 18px;
}
.form-password-toggle:hover,
.form-password-toggle:focus {
    color: var(--navy);
    background: var(--surface);
    outline: none;
}
.form-password-toggle.is-visible {
    color: var(--gold);
}

/* Botón de ancho completo (login) */
.btn-full {
    width: 100%;
    padding: 13px 24px;
    font-size: 14.5px;
}

/* Barra de usuario logueado */
.convenio-user-bar {
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.convenio-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.convenio-user-icon {
    width: 34px;
    height: 34px;
    background: rgba(196,154,60,0.2);
    color: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.convenio-user-icon svg {
    width: 17px;
    height: 17px;
}
.convenio-user-info strong {
    display: block;
    font-family: var(--serif);
    font-size: 14.5px;
    color: #fff;
    margin-bottom: 2px;
    font-weight: 500;
}
.convenio-user-info small {
    font-family: var(--sans);
    font-size: 11.5px;
    color: rgba(255,255,255,0.65);
}

.btn-small {
    padding: 8px 14px !important;
    font-size: 12.5px !important;
}

/* Filas de 3 columnas (datos del convenio en solo lectura) */
.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.form-readonly {
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 6px;
    padding: 8px 12px;
}
.form-readonly-label {
    display: block;
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 2px;
}
.form-readonly-value {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--navy);
    word-break: break-word;
    font-weight: 500;
}

/* Nota mini de aclaración */
.form-notas-mini {
    font-family: var(--sans);
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 6px 0 0;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: 6px;
    border-left: 2px solid var(--gold);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row-3 { grid-template-columns: 1fr; }
    .convenio-user-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .convenio-login-card { padding: 26px 22px; }
}

/* ============================================================
   RESUMEN DE SOLICITUD (en pantalla de éxito convenio)
============================================================ */
.enviada-resumen {
    text-align: left;
    background: var(--navy-pale);
    border: 1px solid rgba(9, 43, 76, 0.15);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 24px;
}
.enviada-resumen h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(9, 43, 76, 0.12);
}

.resumen-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.resumen-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 14px;
    align-items: baseline;
}
.resumen-item dt {
    font-family: var(--sans);
    font-size: 11.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin: 0;
}
.resumen-item dd {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--navy);
    margin: 0;
    font-weight: 500;
    word-break: break-word;
}

.resumen-badge {
    display: inline-block;
    background: var(--gold-light);
    color: #6d4e00;
    border: 1px solid rgba(196, 154, 60, 0.4);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

/* Responsive */
@media (max-width: 640px) {
    .enviada-resumen {
        padding: 18px 18px;
    }
    .resumen-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .resumen-item dt {
        font-size: 10.5px;
    }
}
/* ============================================================
   PÁGINA DE PAGO EN LÍNEA (Servipag)
============================================================ */
.ajs-pago {
    padding: 56px 24px;
    background: var(--surface);
    min-height: 60vh;
}

.pago-wrap {
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 38px;
    box-shadow: var(--shadow-sm);
}

/* Encabezado del formulario */
.pago-head {
    text-align: center;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.pago-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 14px;
    margin-bottom: 14px;
}
.pago-head-icon svg {
    width: 24px;
    height: 24px;
}
.pago-head h2 {
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 6px;
}
.pago-head p {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* Texto de ayuda bajo inputs */
.form-help {
    display: block;
    font-family: var(--sans);
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 4px;
    font-style: italic;
}

/* Cards de info al pie */
.pago-info {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pago-info-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}
.pago-info-icon {
    width: 36px;
    height: 36px;
    background: var(--navy-pale);
    color: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pago-info-icon svg {
    width: 18px;
    height: 18px;
}
.pago-info-card strong {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 4px;
}
.pago-info-card p {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .ajs-pago { padding: 40px 16px; }
    .pago-wrap { padding: 30px 22px; }
    .pago-head h2 { font-size: 18px; }
}

/* ============================================================
   PÁGINA DE PAGO PASO 2 (Servipag)
============================================================ */
.pago2-wrap {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Indicador de pasos */
.pago-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}
.pago-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}
.pago-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
}
.pago-step-label {
    font-family: var(--sans);
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
}
.pago-step-done .pago-step-num {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}
.pago-step-done .pago-step-label {
    color: var(--success);
}
.pago-step-active .pago-step-num {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--gold);
}
.pago-step-active .pago-step-label {
    color: var(--navy);
    font-weight: 600;
}
.pago-step-line {
    flex: 0 1 60px;
    height: 2px;
    background: var(--border);
    margin-top: -18px;
}

/* Card principal */
.pago2-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm);
}

.pago2-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.pago2-card-head h2 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 4px;
}
.pago2-card-head p {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}
.pago2-servipag-logo {
    flex-shrink: 0;
}
.pago2-servipag-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Detalle del pago */
.pago2-detalle {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
}
.pago2-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--surface);
}
.pago2-item:last-of-type {
    border-bottom: none;
}
.pago2-item dt {
    font-family: var(--sans);
    font-size: 11.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin: 0;
}
.pago2-item dd {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--navy);
    margin: 0;
    font-weight: 500;
    word-break: break-word;
}
.pago2-item-total {
    background: var(--gold-light);
    border: 1px solid rgba(196, 154, 60, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    margin-top: 6px;
}
.pago2-item-total dt {
    color: #6d4e00;
    font-size: 12.5px;
}
.pago2-item-total dd {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--navy);
}

/* Aviso de seguridad */
.pago2-aviso {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
    background: var(--navy-pale);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
}
.pago2-aviso-icon {
    width: 32px;
    height: 32px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pago2-aviso-icon svg {
    width: 16px;
    height: 16px;
}
.pago2-aviso p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--navy);
    line-height: 1.65;
    margin: 0;
}
.pago2-aviso strong {
    font-weight: 600;
}

/* Form y acciones */
.pago2-form {
    margin: 0;
}
.pago2-acciones {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.pago2-acciones .btn-form-ghost {
    flex: 0 0 auto;
}
.btn-pagar {
    flex: 1;
    min-width: 200px;
    background: var(--success) !important;
    border-color: var(--success) !important;
}
.btn-pagar:hover {
    background: #1a8e6e !important;
    border-color: #1a8e6e !important;
}

/* Info al pie */
.pago2-info {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}
.pago2-info-icon {
    width: 36px;
    height: 36px;
    background: var(--navy-pale);
    color: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pago2-info-icon svg {
    width: 18px;
    height: 18px;
}
.pago2-info-texto strong {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--navy);
    margin-bottom: 4px;
}
.pago2-info-texto p {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}
.pago2-info-texto a {
    color: var(--navy);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .pago2-card { padding: 26px 22px; }
    .pago2-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .pago2-item-total {
        text-align: center;
    }
    .pago2-acciones {
        flex-direction: column-reverse;
    }
    .pago2-acciones .btn-form-ghost,
    .pago2-acciones .btn-pagar {
        width: 100%;
    }
    .pago-step-line {
        flex: 0 1 30px;
    }
    .pago-step {
        min-width: 60px;
    }
}

/* ============================================================
   PÁGINA RESPUESTA DE PAGO (vuelta de Servipag)
============================================================ */
.resp-wrap {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Variante de paso con error */
.pago-step-error .pago-step-num {
    background: #b00020;
    border-color: #b00020;
    color: #fff;
}
.pago-step-error .pago-step-label {
    color: #b00020;
    font-weight: 600;
}
.pago-step-line-done {
    background: var(--success);
}

/* Card principal */
.resp-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.resp-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.resp-card-ok::before {
    background: linear-gradient(90deg, var(--success), #2cc89c);
}
.resp-card-error::before {
    background: linear-gradient(90deg, #b00020, #d63a3a);
}

/* Icono grande de estado */
.resp-icon-wrap {
    margin-bottom: 18px;
}
.resp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    animation: resp-pop 0.5s ease-out;
}
.resp-icon svg {
    width: 42px;
    height: 42px;
}
.resp-icon-ok {
    background: #e1f5ee;
    color: var(--success);
}
.resp-icon-error {
    background: #fce8ea;
    color: #b00020;
}
@keyframes resp-pop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.resp-titulo {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.3;
}
.resp-mensaje {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Detalle */
.resp-detalle {
    text-align: left;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.resp-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 14px;
    align-items: baseline;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.resp-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}
.resp-item dt {
    font-family: var(--sans);
    font-size: 11.5px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin: 0;
}
.resp-item dd {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--navy);
    margin: 0;
    font-weight: 500;
    word-break: break-word;
}
.resp-item-total {
    background: var(--gold-light);
    border: 1px solid rgba(196, 154, 60, 0.3);
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 6px;
}
.resp-item-total dt {
    color: #6d4e00;
}
.resp-item-total dd {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--navy);
}
.resp-item-trx dd {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border);
    display: inline-block;
}

/* Acciones */
.resp-acciones {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.resp-acciones .btn-form-primary,
.resp-acciones .btn-form-ghost {
    min-width: 200px;
}

/* Card de ayuda (solo en error) */
.resp-ayuda {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    align-items: start;
}
.resp-ayuda-icon {
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.resp-ayuda-icon svg {
    width: 18px;
    height: 18px;
}
.resp-ayuda-texto strong {
    display: block;
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--navy);
    margin-bottom: 4px;
}
.resp-ayuda-texto p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}
.resp-ayuda-texto a {
    color: var(--navy);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .resp-card { padding: 30px 22px; }
    .resp-titulo { font-size: 20px; }
    .resp-icon {
        width: 68px;
        height: 68px;
    }
    .resp-icon svg {
        width: 34px;
        height: 34px;
    }
    .resp-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .resp-item-total { text-align: center; }
    .resp-acciones {
        flex-direction: column;
    }
    .resp-acciones .btn-form-primary,
    .resp-acciones .btn-form-ghost {
        width: 100%;
    }
}

/* ============================================================
   ESTILOS DE IMPRESIÓN — Solo el comprobante
============================================================ */
@media print {
    /* Ocultar todo lo que no es el comprobante */
    .ajs-a11y,
    .ajs-nav,
    .ajs-ley,
    .ajs-footer,
    .ajs-page-hero,
    .pago-steps,
    .hidden-print {
        display: none !important;
    }

    body, html {
        background: white !important;
    }

    main#contenido-principal {
        padding: 0 !important;
    }
    .ajs-pago {
        padding: 20px 0 !important;
        background: white !important;
    }
    .resp-card {
        box-shadow: none !important;
        border: 1px solid #333 !important;
        page-break-inside: avoid;
        padding: 30px !important;
    }
    .resp-card::before {
        display: none;
    }
    .resp-icon-ok {
        background: white !important;
        border: 3px solid var(--success);
    }
    .resp-detalle {
        background: white !important;
        border: 1px solid #ddd;
    }
    .resp-item {
        border-bottom-color: #ddd !important;
    }
    .resp-item-total {
        background: #f7f5f0 !important;
    }
    .resp-titulo {
        color: #000 !important;
    }
    @page {
        margin: 1cm;
    }
}
/* ============================================================
   PÁGINA INTERMEDIA DE PAGO (Persona / Empresa)
============================================================ */
.ajs-pagoonline {
    padding: 56px 24px;
    background: var(--surface);
    min-height: 60vh;
}

/* Grid de las dos opciones */
.pagoonline-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 980px;
    margin: 0 auto 36px;
}

/* Card de opción */
.pagoonline-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 30px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    position: relative;
    overflow: hidden;
}
.pagoonline-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: left;
}
.pagoonline-card-persona::before {
    background: var(--gold);
}
.pagoonline-card-empresa::before {
    background: var(--navy);
}
.pagoonline-card:hover::before {
    transform: scaleX(1);
}
.pagoonline-card:hover {
    border-color: rgba(9, 43, 76, 0.3);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Head de la card */
.pagoonline-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
}
.pagoonline-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pagoonline-icon svg {
    width: 24px;
    height: 24px;
}
.pagoonline-card-persona .pagoonline-icon {
    background: var(--gold-light);
    color: #6d4e00;
}
.pagoonline-card-empresa .pagoonline-icon {
    background: var(--navy);
    color: var(--gold);
}
.pagoonline-tag {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    background: var(--surface);
    padding: 5px 11px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Contenido */
.pagoonline-card h2 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 10px;
    line-height: 1.3;
}
.pagoonline-desc {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

/* Lista de features */
.pagoonline-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.pagoonline-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text);
}
.pagoonline-features svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.pagoonline-card-persona .pagoonline-features svg {
    color: var(--gold);
}
.pagoonline-card-empresa .pagoonline-features svg {
    color: var(--success);
}

/* Foot de la card */
.pagoonline-card-foot {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.pagoonline-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    transition: gap var(--transition);
}
.pagoonline-cta svg {
    width: 14px;
    height: 14px;
}
.pagoonline-card:hover .pagoonline-cta {
    gap: 10px;
}
.pagoonline-powered {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--muted);
}
.pagoonline-powered strong {
    color: var(--navy);
    font-weight: 600;
}

/* Info al pie */
.pagoonline-info {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.pagoonline-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pagoonline-info-icon {
    width: 36px;
    height: 36px;
    background: var(--navy-pale);
    color: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagoonline-info-icon svg {
    width: 18px;
    height: 18px;
}
.pagoonline-info-card strong {
    display: block;
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 4px;
}
.pagoonline-info-card p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}
.pagoonline-info-card em {
    font-style: italic;
    color: var(--navy);
    font-weight: 500;
}
.pagoonline-info-card strong em {
    font-weight: 600;
}
.pagoonline-info-card a {
    color: var(--navy);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .pagoonline-grid { grid-template-columns: 1fr; }
    .pagoonline-info { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ajs-pagoonline { padding: 40px 16px; }
    .pagoonline-card { padding: 26px 22px; }
    .pagoonline-card h2 { font-size: 20px; }
    .pagoonline-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
}/* ============================================================
   PÁGINA TRANSPARENCIA (Ley 21.772)
============================================================ */
.ajs-transparencia {
    padding: 56px 40px;
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* Nav lateral */
.transp-nav {
    position: sticky;
    top: 88px;
}
.transp-nav-title {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    font-weight: 500;
}
.transp-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.transp-nav li a {
    display: block;
    padding: 8px 12px;
    font-size: 13.5px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.transp-nav li a:hover {
    background: var(--surface);
    color: var(--navy);
    border-left-color: var(--gold);
}

/* Contenido */
.transp-content {
    min-width: 0;
}
.transp-section {
    margin-bottom: 56px;
    scroll-margin-top: 88px;
}
.transp-h2 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.transp-h3 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--navy);
    margin: 28px 0 12px;
}
.transp-intro {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 18px;
}
.transp-intro strong {
    color: var(--navy);
    font-weight: 500;
}

/* Titular destacado */
.transp-titular {
    background: var(--navy-pale);
    border-left: 3px solid var(--navy);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin-bottom: 20px;
}
.transp-badge {
    display: inline-block;
    background: var(--navy);
    color: var(--gold);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}
.transp-titular h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 8px;
}
.transp-titular p {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

/* Lista de suplentes */
.transp-suplentes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    counter-reset: suplentes;
}
.transp-suplentes li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}
.suplente-orden {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
}
.suplente-info {
    display: flex;
    flex-direction: column;
}
.suplente-info strong {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 2px;
}
.suplente-info span {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
}

/* Bodegas */
.transp-bodegas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}
.bodega-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    transition: border-color var(--transition);
}
.bodega-card:hover {
    border-color: rgba(9, 43, 76, 0.25);
}
.bodega-tag {
    display: inline-block;
    background: var(--gold-light);
    color: #6d4e00;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}
.bodega-card h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 4px;
}
.bodega-card > p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 12px;
}
.bodega-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bodega-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--text);
}
.bodega-info svg {
    width: 14px;
    height: 14px;
    color: var(--gold);
    flex-shrink: 0;
}

/* Estadísticas */
.transp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.stat-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.stat-num {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
}
.stat-label {
    font-family: var(--sans);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.35;
}

/* Normativa */
.transp-normativa {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.transp-normativa li {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--navy);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.65;
}
.transp-normativa strong {
    color: var(--navy);
    font-weight: 600;
    margin-right: 4px;
}

/* CTA cards (Tarifas, SERNAC) */
.transp-cta-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 18px;
    align-items: center;
    background: var(--navy-pale);
    border: 1px solid rgba(9, 43, 76, 0.15);
    border-radius: var(--radius-md);
    padding: 18px 22px;
}
.cta-card-icon {
    width: 56px;
    height: 56px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta-card-icon svg {
    width: 26px;
    height: 26px;
}
.cta-card-text strong {
    display: block;
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 4px;
}
.cta-card-text p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}
.cta-card-btn {
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    transition: background var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.cta-card-btn:hover {
    background: #051f3a;
    color: var(--gold);
}
.transp-cta-card-warn {
    background: var(--gold-light);
    border-color: rgba(196, 154, 60, 0.3);
}
.transp-cta-card-warn .cta-card-icon {
    background: var(--gold);
    color: var(--navy);
}
.transp-cta-card-warn .cta-card-text strong {
    color: #4a3500;
}
.transp-cta-card-warn .cta-card-text p {
    color: #6d4e00;
}

/* Personal */
.transp-personal {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.personal-area {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
}
.personal-area-titulo {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.personal-area-count {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
}
.personal-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.personal-lista li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid var(--border);
}
.personal-nombre {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--navy);
    font-weight: 500;
}
.personal-cargo {
    font-family: var(--sans);
    font-size: 11.5px;
    color: var(--muted);
}

/* Placeholders ("Próximamente") */
.transp-placeholder {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 32px 30px;
    text-align: center;
}
.placeholder-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--white);
    color: var(--navy);
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
}
.placeholder-icon svg {
    width: 26px;
    height: 26px;
}
.transp-placeholder strong {
    display: block;
    font-family: var(--serif);
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 8px;
    font-weight: 500;
}
.transp-placeholder p {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0 auto 8px;
    max-width: 540px;
}
.placeholder-contact {
    font-size: 12px !important;
    color: var(--muted);
    margin-top: 12px !important;
}
.placeholder-contact a {
    color: var(--navy);
    font-weight: 500;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .ajs-transparencia {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 24px;
    }
    .transp-nav {
        position: static;
        background: var(--surface);
        padding: 16px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
    }
    .transp-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .transp-nav li a {
        padding: 6px 12px;
        border-left: none;
        border: 1px solid var(--border);
        background: var(--white);
    }
    .transp-bodegas { grid-template-columns: 1fr; }
    .transp-stats { grid-template-columns: repeat(2, 1fr); }
    .personal-lista { grid-template-columns: 1fr; }
    .transp-cta-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 12px;
    }
    .cta-card-icon { margin: 0 auto; }
}

@media (max-width: 640px) {
    .ajs-transparencia { padding: 32px 16px; }
    .transp-h2 { font-size: 22px; }
    .transp-stats { grid-template-columns: 1fr; }
    .transp-titular { padding: 18px 20px; }
    .transp-titular h3 { font-size: 18px; }
}
/* ============================================================
   TABLA DE REMUNERACIONES
============================================================ */

/* Metadata superior */
.remun-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.remun-meta-item {
    background: var(--navy-pale);
    border: 1px solid rgba(9, 43, 76, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.remun-meta-label {
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}
.remun-meta-value {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--navy);
    font-weight: 600;
}

/* Tabla */
.remun-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--white);
}
.remun-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
    font-size: 13px;
}
.remun-table thead {
    background: var(--navy);
    color: var(--white);
}
.remun-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}
.remun-table th.remun-th-num {
    text-align: right;
}
.remun-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.remun-table tbody tr:hover {
    background: var(--surface);
}
.remun-table tbody tr:last-child {
    border-bottom: none;
}
.remun-table td {
    padding: 12px 16px;
    color: var(--text);
    vertical-align: middle;
}
.remun-rut {
    font-family: 'Courier New', monospace;
    font-size: 12.5px;
    color: var(--muted);
}
.remun-monto {
    text-align: right;
    font-family: var(--sans);
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}

/* Badge de estamento */
.remun-estamento {
    display: inline-block;
    background: var(--surface);
    color: var(--navy);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    border: 1px solid var(--border);
}

/* Disclaimer */
.remun-disclaimer {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.65;
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--surface);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
}
.remun-disclaimer strong {
    color: var(--navy);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .remun-meta {
        grid-template-columns: 1fr;
    }
    .remun-table {
        font-size: 12px;
    }
    .remun-table th,
    .remun-table td {
        padding: 10px 12px;
    }
}

/* ============================================================
   PÁGINAS LEGALES (privacidad, accesibilidad, términos)
============================================================ */
.ajs-legal {
    padding: 56px 40px;
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

/* Nav lateral */
.legal-nav {
    position: sticky;
    top: 88px;
}
.legal-nav-title {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    font-weight: 500;
}
.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.legal-nav li a {
    display: block;
    padding: 7px 12px;
    font-size: 12.5px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
    line-height: 1.4;
}
.legal-nav li a:hover {
    background: var(--surface);
    color: var(--navy);
    border-left-color: var(--gold);
}

/* Contenido */
.legal-content {
    min-width: 0;
    max-width: 760px;
}

/* Metadata superior */
.legal-meta {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    background: var(--surface);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin-bottom: 24px;
}
.legal-meta strong {
    color: var(--navy);
    font-weight: 600;
}

/* Lead (texto introductorio) */
.legal-lead {
    font-family: var(--sans);
    font-size: 15px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.legal-lead strong {
    color: var(--navy);
    font-weight: 500;
}

/* Secciones */
.legal-section {
    margin-bottom: 36px;
    scroll-margin-top: 88px;
}
.legal-section h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.legal-section h3 {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    margin: 22px 0 10px;
}

/* Texto general */
.legal-section p {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 14px;
}
.legal-section p strong {
    color: var(--navy);
    font-weight: 500;
}
.legal-section p:last-child {
    margin-bottom: 0;
}

/* Listas */
.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.legal-section ul li {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.7;
    padding-left: 22px;
    position: relative;
}
.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}
.legal-section ul li strong {
    color: var(--navy);
    font-weight: 600;
}

/* Links dentro del contenido */
.legal-section a {
    color: var(--navy);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color var(--transition);
    font-weight: 500;
}
.legal-section a:hover {
    border-bottom-color: var(--gold);
}

/* Card con info de contacto */
.legal-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--navy);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin: 14px 0;
}
.legal-card p {
    font-size: 13.5px;
    margin-bottom: 6px;
}
.legal-card p:last-child {
    margin-bottom: 0;
}
.legal-card strong {
    color: var(--navy);
    font-weight: 600;
}

/* Grid de derechos del usuario */
.legal-derechos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.derecho-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: border-color var(--transition), transform var(--transition);
}
.derecho-card:hover {
    border-color: rgba(9, 43, 76, 0.25);
    transform: translateY(-2px);
}
.derecho-card h3 {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 6px;
    font-weight: 500;
    padding: 0;
    border: none;
}
.derecho-card p {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .ajs-legal {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 24px;
    }
    .legal-nav {
        position: static;
        background: var(--surface);
        padding: 16px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
    }
    .legal-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .legal-nav li a {
        padding: 6px 12px;
        border-left: none;
        border: 1px solid var(--border);
        background: var(--white);
        font-size: 12px;
    }
    .legal-derechos { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .ajs-legal { padding: 32px 16px; }
    .legal-section h2 { font-size: 18px; }
    .legal-lead { font-size: 14px; }
    .legal-derechos { grid-template-columns: 1fr; }
}

/* ============================================================
   PÁGINA ACCESIBILIDAD — Estilos específicos
============================================================ */

/* Principios POUR */
.acc-principios {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 16px 0 8px;
}
.acc-principio-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    transition: border-color var(--transition);
}
.acc-principio-card:hover {
    border-color: rgba(9, 43, 76, 0.25);
}
.acc-principio-letra {
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
}
.acc-principio-card h3 {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--navy);
    margin-bottom: 4px;
    font-weight: 500;
    padding: 0;
    border: none;
}
.acc-principio-card p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Herramientas del sitio */
.acc-herramientas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 16px 0;
}
.acc-tool-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: center;
}
.acc-tool-icon {
    width: 36px;
    height: 36px;
    background: var(--gold-light);
    color: #6d4e00;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.acc-tool-icon svg {
    width: 18px;
    height: 18px;
}
.acc-tool-card strong {
    display: block;
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 2px;
}
.acc-tool-card p {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

/* Compatibilidad — 3 columnas */
.acc-compatibilidad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 16px 0;
}
.acc-compat-grupo {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}
.acc-compat-grupo h3 {
    font-family: var(--serif);
    font-size: 14px;
    color: var(--navy);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}
.acc-lista-mini {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.acc-lista-mini li {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--text);
    padding-left: 14px;
    position: relative;
    line-height: 1.5;
}
.acc-lista-mini li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 7px;
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

/* Código inline en texto */
.legal-section code {
    font-family: 'Courier New', monospace;
    font-size: 12.5px;
    background: var(--surface);
    color: var(--navy);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 900px) {
    .acc-principios { grid-template-columns: 1fr; }
    .acc-herramientas { grid-template-columns: 1fr; }
    .acc-compatibilidad { grid-template-columns: 1fr; }
}

/* ============================================================
   SECCIÓN COBERTURA TERRITORIAL (Comunas + Tribunales)
============================================================ */
.ajs-cobertura {
    padding: 56px 40px;
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}

.cobertura-intro {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 0 32px;
}

.cobertura-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
    align-items: start;
}

.cobertura-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 30px;
}

.cobertura-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gold);
}
.cobertura-icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cobertura-icon svg {
    width: 22px;
    height: 22px;
}
.cobertura-card h3 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
}

/* Lista de comunas */
.comunas-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.comunas-list li {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text);
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-align: center;
    transition: border-color var(--transition), color var(--transition);
}
.comunas-list li:hover {
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 500;
}

/* Lista de tribunales */
.tribunales-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tribunales-list li {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.tribunales-list strong {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--navy);
    font-weight: 600;
}
.tribunales-list span {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
    .cobertura-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ajs-cobertura { padding: 40px 20px; }
    .cobertura-card { padding: 22px 20px; }
    .comunas-list { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PLAZOS EN INDEX — Wrapper específico de la sección
============================================================ */
.plazos-wrap-index {
    margin-top: 28px;
    padding: 28px 24px 0;
    border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
    .plazos-wrap-index {
        padding: 24px 16px 0;
    }
}

.plazos-head {
    margin-bottom: 24px;
}
.plazos-head .section-label {
    margin-bottom: 8px;
}
.plazos-head h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.plazos-intro {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
    max-width: 720px;
}
/* ============================================================
   CTA AYUDA CON TRÁMITES (antes de la tabla de tarifas)
============================================================ */
.tramites-help {
    margin-bottom: 28px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 30px;
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 20px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.tramites-help::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(196, 154, 60, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.tramites-help-icon {
    width: 52px;
    height: 52px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}
.tramites-help-icon svg {
    width: 26px;
    height: 26px;
}

.tramites-help-text {
    z-index: 1;
}
.tramites-help-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}
.tramites-help-text p {
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    max-width: 540px;
}

.tramites-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
}
.tramites-help-btn:hover {
    background: #d4a847;
    color: var(--navy);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .tramites-help {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
        padding: 24px 22px;
    }
    .tramites-help-icon {
        margin: 0 auto;
    }
    .tramites-help-text p {
        margin: 0 auto;
    }
    .tramites-help-btn {
        justify-self: center;
    }
}

/* ============================================================
   MODAL GENÉRICO (¿Cómo descargar el PDF?)
============================================================ */
.ajs-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ajs-modal.is-open {
    display: flex;
    animation: modalFadeIn 0.2s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ajs-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 43, 76, 0.6);
    backdrop-filter: blur(4px);
}

.ajs-modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease-out;
}
@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.ajs-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 26px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.ajs-modal-head h3 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
}
.ajs-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--muted);
    transition: background var(--transition), color var(--transition);
}
.ajs-modal-close:hover {
    background: var(--surface);
    color: var(--navy);
}
.ajs-modal-close svg {
    width: 18px;
    height: 18px;
}

.ajs-modal-body {
    padding: 24px 26px;
    overflow-y: auto;
    flex: 1;
}

.modal-intro {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 16px;
}

.modal-pasos {
    list-style: none;
    counter-reset: pasos;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-pasos li {
    counter-increment: pasos;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.6;
}
.modal-pasos li strong {
    color: var(--navy);
    font-weight: 600;
}

.modal-image-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}
.modal-image-wrap img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.modal-tip {
    background: var(--gold-light);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--sans);
    font-size: 13px;
    color: #6d4e00;
    line-height: 1.6;
    margin: 0;
}
.modal-tip strong {
    color: #4a3500;
    font-weight: 600;
}

.ajs-modal-foot {
    padding: 16px 26px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .ajs-modal-content {
        max-height: 95vh;
    }
    .ajs-modal-head { padding: 16px 20px; }
    .ajs-modal-body { padding: 20px; }
    .ajs-modal-foot { padding: 14px 20px; }
    .ajs-modal-head h3 { font-size: 16px; }
}
/* ============================================================
   TABLA REMUNERACIONES SIMPLE (solo RUT y monto)
============================================================ */
.remun-table-wrap-simple {
    max-width: 560px;
}

.remun-table-simple {
    width: 100%;
}

.remun-table-simple th,
.remun-table-simple td {
    padding: 14px 20px;
}

.remun-table-simple .remun-rut {
    font-family: 'Courier New', monospace;
    font-size: 13.5px;
    color: var(--text);
    width: 50%;
}

.remun-table-simple .remun-monto {
    font-size: 15px;
    width: 50%;
}

/* Responsive */
@media (max-width: 640px) {
    .remun-table-wrap-simple {
        max-width: 100%;
    }
    .remun-table-simple th,
    .remun-table-simple td {
        padding: 12px 14px;
    }
}
/* ============================================================
   SECCIÓN ABOUT — Rediseño con funciones por categoría
============================================================ */
.ajs-about {
    padding: 64px 40px;
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 28px;
}
.about-header .section-label {
    margin-bottom: 10px;
}
.about-header h2 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
}

.about-intro {
    max-width: 920px;
    margin-bottom: 48px;
}
.about-intro p {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.75;
    margin: 0 0 14px;
}
.about-intro p:last-child {
    margin-bottom: 0;
}
.about-intro strong {
    color: var(--navy);
    font-weight: 600;
}

/* Grid de funciones */
.funciones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.funcion-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.funcion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(9, 43, 76, 0.08);
}

.funcion-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.funcion-icon {
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.funcion-icon svg {
    width: 22px;
    height: 22px;
}
.funcion-tag {
    display: block;
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
}
.funcion-card-head h3 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
    line-height: 1.3;
}

.funcion-desc {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0 0 18px;
}

.funcion-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}
.funcion-list li {
    padding-left: 16px;
    position: relative;
    border-left: 2px solid var(--gold);
}
.funcion-list li strong {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--navy);
    font-weight: 600;
    margin-bottom: 3px;
}
.funcion-list li span {
    display: block;
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--text);
    line-height: 1.6;
}

/* CTA al final */
.about-cta-strip {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.about-cta-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 220px;
    height: 220px;
    background: rgba(196, 154, 60, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.about-cta-text {
    z-index: 1;
}
.about-cta-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}
.about-cta-text p {
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    max-width: 580px;
}
.about-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
}
.about-cta-btn:hover {
    background: #d4a847;
    color: var(--navy);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1000px) {
    .funciones-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .ajs-about {
        padding: 48px 24px;
    }
    .about-header h2 {
        font-size: 26px;
    }
    .about-intro p {
        font-size: 14px;
    }
    .about-cta-strip {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
    }
    .about-cta-btn {
        justify-self: center;
    }
    .about-cta-text p {
        margin: 0 auto;
    }
}
@media (max-width: 480px) {
    .funcion-card {
        padding: 22px 20px;
    }
    .funcion-card-head {
        gap: 12px;
    }
    .funcion-icon {
        width: 44px;
        height: 44px;
    }
}

/* ============================================================
   POPOVERS INFORMATIVOS DE CAMPOS
============================================================ */
.form-help-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    vertical-align: middle;
    transition: color var(--transition), transform var(--transition);
}
.form-help-trigger svg {
    width: 16px;
    height: 16px;
}
.form-help-trigger:hover,
.form-help-trigger.active {
    color: var(--navy);
    transform: scale(1.15);
}
.form-help-trigger:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 50%;
}

.form-group {
    position: relative;
}

.form-popover {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--navy);
    color: var(--white);
    border-radius: 10px;
    padding: 16px 18px 16px 18px;
    box-shadow: 0 14px 36px rgba(9, 43, 76, 0.28);
    animation: popover-in 0.18s ease-out;
}
@keyframes popover-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.form-popover-arrow {
    position: absolute;
    top: -7px;
    left: 24px;
    width: 14px;
    height: 14px;
    background: var(--navy);
    transform: rotate(45deg);
    border-radius: 2px;
}
.form-popover-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}
.form-popover-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}
.form-popover-close svg {
    width: 16px;
    height: 16px;
}
.form-popover-title {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--gold);
    margin: 0 30px 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(196, 154, 60, 0.25);
}
.form-popover-content p {
    font-family: var(--sans);
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 8px;
}
.form-popover-content p:last-child {
    margin-bottom: 0;
}
.form-popover-content strong {
    color: var(--gold);
    font-weight: 600;
}
.form-popover-content em {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}
.form-popover-content ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}
.form-popover-content ul li {
    font-family: var(--sans);
    font-size: 12.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    padding: 4px 0 4px 14px;
    position: relative;
}
.form-popover-content ul li::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* ============================================================
   TÉRMINOS Y CONDICIONES (checkbox + link)
============================================================ */
.form-terminos {
    margin: 20px 0;
    padding: 16px 18px;
    background: rgba(196, 154, 60, 0.06);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
}
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text);
}
.form-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.form-check-mark {
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 4px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition);
    margin-top: 1px;
}
.form-check input[type="checkbox"]:checked + .form-check-mark {
    background: var(--navy);
    border-color: var(--navy);
}
.form-check input[type="checkbox"]:checked + .form-check-mark::after {
    content: '';
    display: block;
    width: 5px;
    height: 9px;
    border: solid var(--gold);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
.form-check input[type="checkbox"]:focus-visible + .form-check-mark {
    box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.3);
}
.form-check-text {
    flex: 1;
    padding-top: 1px;
}
.form-terminos-link {
    background: none;
    border: none;
    color: var(--navy);
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 1.5px;
    transition: color var(--transition);
}
.form-terminos-link:hover {
    color: var(--gold);
}
.form-terminos-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ============================================================
   MODAL TÉRMINOS Y CONDICIONES
============================================================ */
.modal-terminos-content {
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.modal-terminos-header {
    padding: 32px 36px 22px;
    border-bottom: 1px solid var(--border);
}
.modal-terminos-header .section-label {
    display: block;
    margin-bottom: 8px;
}
.modal-terminos-header h2 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 12px;
    line-height: 1.25;
}
.modal-terminos-header p {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}
.modal-terminos-header a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 2px;
}

.modal-terminos-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 36px;
}
.modal-terminos-body::-webkit-scrollbar {
    width: 8px;
}
.modal-terminos-body::-webkit-scrollbar-track {
    background: var(--surface);
}
.modal-terminos-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.modal-terminos-body::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

.terminos-section {
    margin-bottom: 28px;
}
.terminos-section:last-child {
    margin-bottom: 0;
}
.terminos-section h3 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}
.terminos-section p {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.75;
    margin: 0 0 12px;
    text-align: justify;
}
.terminos-section p:last-child {
    margin-bottom: 0;
}
.terminos-section strong {
    color: var(--navy);
    font-weight: 600;
}
.terminos-section em {
    color: var(--muted);
    font-style: italic;
}
.terminos-section a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 2px;
}
.terminos-section ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px;
}
.terminos-section ul li {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.7;
    padding: 4px 0 4px 16px;
    position: relative;
}
.terminos-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
}

.modal-terminos-footer {
    padding: 18px 36px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    background: var(--surface);
}

/* Responsive */
@media (max-width: 640px) {
    .modal-terminos-header,
    .modal-terminos-body,
    .modal-terminos-footer {
        padding-left: 22px;
        padding-right: 22px;
    }
    .modal-terminos-header h2 {
        font-size: 22px;
    }
    .form-popover {
        font-size: 12px;
    }
    .form-popover-content p,
    .form-popover-content ul li {
        font-size: 12px;
    }
}

/* ============================================================
   CONSULTA DE EXPEDIENTES
============================================================ */
.ajs-consulta {
    padding: 40px 40px 64px;
    background: var(--white);
    max-width: 1200px;
    margin: 0 auto;
}
.consulta-wrap {
    max-width: 920px;
    margin: 0 auto;
}

/* Card del formulario inicial */
.consulta-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
}
.consulta-help {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
    margin: 0 0 28px;
    padding: 16px 20px;
    background: rgba(196, 154, 60, 0.06);
    border-left: 3px solid var(--gold);
    border-radius: 6px;
}
.consulta-help strong {
    color: var(--navy);
    font-weight: 600;
}
.form-hint {
    display: block;
    font-family: var(--sans);
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 4px;
    font-style: italic;
}
.btn-form-secondary {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 500;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.btn-form-secondary:hover {
    border-color: var(--gold);
    background: rgba(196, 154, 60, 0.06);
}

/* Card del detalle */
.consulta-detalle-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: 0 4px 14px rgba(9, 43, 76, 0.04);
}
.detalle-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 22px;
    margin-bottom: 28px;
    border-bottom: 2px solid var(--gold);
}
.detalle-head .section-label {
    display: block;
    margin-bottom: 6px;
}
.detalle-head h2 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
}
.detalle-sub {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--muted);
    margin: 6px 0 0;
}
.detalle-back-form { flex-shrink: 0; }

.detalle-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 28px;
    margin-bottom: 36px;
}
.detalle-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.detalle-item-full { grid-column: 1 / -1; }
.detalle-label {
    font-family: var(--sans);
    font-size: 11.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}
.detalle-value {
    font-family: var(--sans);
    font-size: 14.5px;
    color: var(--text);
    line-height: 1.5;
}

/* Timeline de cambios de estado */
.detalle-cambios {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.detalle-cambios h3 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 20px;
}
.detalle-sin-cambios {
    font-family: var(--sans);
    font-size: 13.5px;
    color: var(--muted);
    font-style: italic;
    padding: 16px;
    background: var(--surface);
    border-radius: 6px;
    text-align: center;
}
.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    padding-left: 32px;
    padding-bottom: 18px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
    position: absolute;
    left: 2px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 2.5px solid var(--gold);
    border-radius: 50%;
    z-index: 1;
}
.timeline-item-current .timeline-dot {
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(196, 154, 60, 0.2);
}
.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.timeline-titulo {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}
.timeline-item-current .timeline-titulo { color: var(--gold); }
.timeline-fecha {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--muted);
}

/* Listado de resultados */
.consulta-listado-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    box-shadow: 0 4px 14px rgba(9, 43, 76, 0.04);
}
.listado-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--gold);
}
.listado-head .section-label { display: block; margin-bottom: 6px; }
.listado-head h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--navy);
    margin: 0;
    line-height: 1.2;
}
.listado-sub {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    margin: 6px 0 0;
}
.listado-table-wrap {
    overflow-x: auto;
    margin-bottom: 22px;
}
.listado-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--sans);
}
.listado-table thead th {
    text-align: left;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 14px;
    border-bottom: 1.5px solid var(--border);
}
.listado-table tbody td {
    padding: 14px;
    font-size: 13.5px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.listado-table tbody tr:hover { background: rgba(196, 154, 60, 0.04); }
.listado-th-action, .listado-td-action {
    text-align: right;
    white-space: nowrap;
}
.listado-link {
    color: var(--navy);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition);
}
.listado-link:hover { color: var(--gold); }

/* Paginación */
.listado-paginacion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.pagina-btn {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.pagina-btn:hover {
    border-color: var(--gold);
    background: var(--surface);
    color: var(--gold);
}
.pagina-info {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
}
.pagina-info strong { color: var(--navy); }

/* Responsive */
@media (max-width: 768px) {
    .ajs-consulta { padding: 32px 22px 48px; }
    .consulta-card,
    .consulta-detalle-card,
    .consulta-listado-card { padding: 24px 22px; }
    .detalle-head,
    .listado-head {
        flex-direction: column;
        gap: 16px;
    }
    .detalle-grid { grid-template-columns: 1fr; gap: 14px; }

    /* Tabla responsive cards */
    .listado-table { display: block; }
    .listado-table thead { display: none; }
    .listado-table tbody, .listado-table tr { display: block; }
    .listado-table tr {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 14px;
        margin-bottom: 10px;
    }
    .listado-table tr:hover { background: transparent; }
    .listado-table td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        padding: 6px 0;
        border: none;
        text-align: right;
    }
    .listado-table td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 11.5px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-right: 12px;
    }
    .listado-td-action { justify-content: flex-end !important; padding-top: 10px !important; border-top: 1px solid var(--border) !important; margin-top: 6px; }
    .listado-td-action::before { display: none; }
}

/* ============================================================
   BANNER CONSULTA DE EXPEDIENTES (index)
============================================================ */
.ajs-consulta-banner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 24px;
}
.consulta-banner-inner {
    background: linear-gradient(135deg, var(--navy) 0%, #0d2845 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 26px 32px;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 22px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.consulta-banner-inner::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 240px;
    height: 240px;
    background: rgba(196, 154, 60, 0.08);
    border-radius: 50%;
    pointer-events: none;
}
.consulta-banner-icon {
    width: 56px;
    height: 56px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}
.consulta-banner-icon svg { width: 26px; height: 26px; }
.consulta-banner-text { z-index: 1; }
.consulta-banner-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 4px;
}
.consulta-banner-text p {
    font-family: var(--sans);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
    max-width: 560px;
}
.consulta-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 1;
}
.consulta-banner-btn:hover {
    background: #d4a847;
    color: var(--navy);
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .ajs-consulta-banner { padding: 0 22px 24px; }
    .consulta-banner-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
    }
    .consulta-banner-icon { margin: 0 auto; }
    .consulta-banner-text p { margin: 0 auto; }
    .consulta-banner-btn { justify-self: center; }
}

/* ============================================================
   PAGO ONLINE — ALTERNATIVA TRANSFERENCIA BANCARIA
============================================================ */
.pagoonline-alt {
    grid-column: 1 / -1;     /* ← ocupa las 2 columnas del grid padre */
    padding: 22px 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: 48px 1fr auto;
    gap: 22px;
    align-items: center;
}
.pagoonline-alt-icon {
    width: 48px;
    height: 48px;
    background: var(--surface);
    color: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.pagoonline-alt-icon svg {
    width: 22px;
    height: 22px;
}
.pagoonline-alt-text strong {
    display: block;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 4px;
}
.pagoonline-alt-text p {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    max-width: 680px;
}
.pagoonline-alt-text p strong {
    color: var(--navy);
    font-weight: 600;
    display: inline;
    margin: 0;
    font-family: var(--sans);
    font-size: inherit;
}
.pagoonline-alt-btn {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.pagoonline-alt-btn:hover {
    background: var(--navy);
    color: var(--gold);
}

@media (max-width: 768px) {
    .pagoonline-alt {
        grid-column: auto;       /* en mobile el grid padre ya es 1 columna */
        grid-template-columns: 1fr;
        text-align: center;
        padding: 20px 22px;
        gap: 14px;
    }
    .pagoonline-alt-icon { margin: 0 auto; }
    .pagoonline-alt-text p { margin: 0 auto; }
    .pagoonline-alt-btn { justify-self: center; }
}

/* ============================================================
   MODAL TRANSFERENCIA — Datos bancarios
============================================================ */
.modal-transferencia-content {
    max-width: 560px;
}

.transf-datos {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.transf-dato {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.transf-dato-label {
    font-family: var(--sans);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.transf-dato-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--sans);
    font-size: 14px;
    color: var(--navy);
    font-weight: 500;
}
.transf-cuenta {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 1px;
    font-weight: 700;
}

.transf-copy-btn {
    background: var(--white);
    border: 1px solid var(--border);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: all var(--transition);
    flex-shrink: 0;
}
.transf-copy-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}
.transf-copy-btn.is-copied {
    background: #2d8a4e;
    border-color: #2d8a4e;
    color: var(--white);
}
.transf-copy-btn svg {
    width: 15px;
    height: 15px;
}

/* Recordatorio importante */
.transf-importante {
    background: rgba(196, 154, 60, 0.1);
    border: 1px solid rgba(196, 154, 60, 0.3);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 18px;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
}
.transf-importante-icon {
    width: 32px;
    height: 32px;
    background: var(--gold);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.transf-importante-icon svg {
    width: 18px;
    height: 18px;
}
.transf-importante strong {
    display: block;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}
.transf-importante p {
    font-family: var(--sans);
    font-size: 12.5px;
    color: var(--text);
    line-height: 1.55;
    margin: 0;
}
.transf-importante p strong {
    display: inline;
    margin: 0;
    color: var(--navy);
    font-weight: 600;
}

/* Toast de feedback */
.transf-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--navy);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 13.5px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 10000;
}
.transf-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.transf-toast svg {
    width: 18px;
    height: 18px;
    color: #5cd97a;
}

/* Responsive */
@media (max-width: 640px) {
    .transf-dato {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 12px;
    }
    .transf-importante {
        grid-template-columns: 1fr;
    }
    .transf-importante-icon {
        margin-bottom: 4px;
    }
}