/* Base de las páginas internas: guías, costos, rescate y libro de reclamaciones */

:root {
    --accent: #7F5B18;
    --accent-ink: #7A5716;
    --accent-strong: #6B4C13;
    --bg: #FAFAF8;
    --surface: #F4F2EE;
    --surface-2: #EDEAE4;
    --surface-3: #E4E0D8;
    --ink-3: #5C5448;
    --ink-2: #3D352A;
    --ink: #2A231A;
    --ink-strong: #1A1410;
    --line: rgba(127, 91, 24, 0.18);
    --font-brand: 'Cinzel', serif;
    --font-display: 'Cormorant Garamond', serif;
    --font-text: 'DM Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    font-size: 17px;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── LANG ── */
.lang {
    position: fixed;
    top: 14px;
    right: 2.5rem;
    z-index: 1000;
    display: flex;
    gap: 0.4rem;
}

.lang a {
    text-decoration: none;
    display: inline-block;
    line-height: 1.5;
    background: none;
    border: 1px solid rgba(127, 91, 24, 0.35);
    color: var(--ink-2);
    padding: 0.2rem 0.55rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
    font-family: var(--font-text);
}

.lang a.on {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}

/* ── NAV ── */
nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 999;
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    background: var(--bg);
    box-shadow: 0 8px 20px -16px rgba(26, 20, 16, 0.35);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.nav-brand span {
    font-family: var(--font-brand);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.18em;
}

.nav-back {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--ink-3);
    text-decoration: none;
    margin-right: 5rem;
    transition: color 0.25s;
}

@media(hover:hover) and (pointer:fine) {
    .nav-back:hover {
        color: var(--accent);
    }
}

/* ── HEADER ── */
header {
    padding: 9rem 0 3.5rem;
    background: var(--surface);
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    font-weight: 600;
    color: var(--ink-strong);
    line-height: 1.1;
    max-width: 22ch;
    letter-spacing: -0.01em;
    margin-bottom: 1.4rem;
}

h1 em {
    font-style: normal;
    color: inherit;
}

.lede {
    font-family: var(--font-text);
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 62ch;
}

/* la accion principal se ve en el primer pantallazo de cada guia */
.cab-acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.4rem;
    margin-top: 2rem;
}

.cab-alt {
    color: var(--accent-ink);
    font-size: 0.95rem;
    text-underline-offset: 3px;
}

@media(hover:hover) and (pointer:fine) {
    .cab-alt:hover {
        color: var(--ink-strong);
    }
}

/* ── SECTIONS ── */
section {
    padding: 3.8rem 0;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.8vw, 2.35rem);
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 0.7rem;
    line-height: 1.15;
}

.sec-sub {
    color: var(--ink-2);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 66ch;
    line-height: 1.6;
}

/* ── TABLE ── */
.tabla-scroll {
    overflow-x: auto;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

thead th {
    font-family: var(--font-text);
    font-size: 0.85rem;
    color: var(--ink-2);
    text-align: left;
    padding: 0 1rem 0.8rem;
    border-bottom: 1px solid var(--accent);
    font-weight: 600;
}

thead th.num,
td.num {
    text-align: right;
}

tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    vertical-align: top;
}

@media(hover:hover) and (pointer:fine) {
    tbody tr:hover {
        background: var(--surface);
    }
}

.tramite {
    color: var(--ink-strong);
    font-weight: 500;
}

.nota {
    display: block;
    font-size: 0.8rem;
    color: var(--ink-3);
    margin-top: 0.25rem;
    line-height: 1.45;
}

.monto {
    font-family: var(--font-text);
    font-size: 1.05rem;
    color: var(--accent-ink);
    white-space: nowrap;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.monto-sec {
    color: var(--ink-3);
    font-size: 0.9rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* ── DESTACADOS ── */

.norma {
    max-width: 68ch;
    border-left: 2px solid var(--accent);
    padding: 0.2rem 0 0.2rem 1.4rem;
    margin: 1.5rem 0;
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--ink-2);
}

.norma cite {
    display: block;
    margin-top: 0.7rem;
    font-family: var(--font-text);
    font-size: 0.85rem;
    color: var(--ink-3);
    font-style: normal;
}

.tasa-dato {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem;
    margin: 1.8rem 0 0.4rem;
}

.tasa-dato div {
    min-width: 150px;
}

.tasa-dato .n {
    font-family: var(--font-brand);
    font-size: 1.9rem;
    color: var(--accent);
    line-height: 1.1;
}

.tasa-dato .l {
    font-size: 0.85rem;
    color: var(--ink-3);
    margin-top: 0.3rem;
    line-height: 1.5;
}

.destacados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.4rem;
    margin-top: 1rem;
}

.card {
    background: var(--surface);
    padding: 1.5rem;
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink-strong);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-2);
}

.card strong {
    color: var(--accent-ink);
}

/* ── AVISO: un dato que el lector no suele conocer ── */
.aviso {
    max-width: 76ch;
    margin-top: 2rem;
    padding: 1.3rem 1.5rem;
    background: #fff;
    border: 1px solid var(--accent);
}

.aviso-tit {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 0.5rem;
}

.aviso p:not(.aviso-tit) {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-2);
}

.aviso strong {
    color: var(--ink-strong);
}

.aviso a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── HONORARIOS ── */
.honorarios {
    background: var(--surface-2);
}

.honorarios p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-2);
    max-width: 66ch;
    margin-bottom: 1rem;
}

.honorarios strong {
    color: var(--ink-strong);
}

/* ── CTA ── */
.cta {
    text-align: center;
    padding: 4rem 0;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    padding: 0.9rem 2.2rem;
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid var(--accent);
    display: inline-block;
    transition: background-color 0.2s, color 0.2s, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1);
}

@media(hover:hover) and (pointer:fine) {
    .btn-primary:hover {
        background: var(--accent-strong);
        color: var(--bg);
    }
}

/* ── FUENTE ── */
.fuente {
    background: var(--surface);
    padding: 2rem 0;
}

.fuente p {
    font-size: 0.875rem;
    color: var(--ink-3);
    line-height: 1.7;
    max-width: 78ch;
}

.fuente a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media(hover:hover) and (pointer:fine) {
    .fuente a:hover {
        text-decoration: underline;
    }
}

/* ── WHATSAPP ── */
.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.wa-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

@media(max-width:700px) {
    nav {
        padding: 0 1.2rem;
    }

    .nav-back {
        margin-right: 6.5rem;
        font-size: 0.85rem;
    }

    .lang {
        right: 1.2rem;
    }

    .wrap {
        padding: 0 1.2rem;
    }

    header {
        padding: 7rem 0 2.5rem;
    }

    /* las tablas se adaptan al ancho en vez de forzar scroll lateral */
    table {
        min-width: 0;
    }

    thead th {
        font-size: 0.78rem;
        padding: 0 0.35rem 0.6rem;
    }

    tbody td {
        padding: 0.85rem 0.35rem;
        font-size: 0.85rem;
    }

    .monto {
        font-size: 0.95rem;
    }

    .monto-sec {
        font-size: 0.85rem;
    }

    .nota {
        font-size: 0.8rem;
    }

    .lede {
        font-size: 1.05rem;
    }

    .cab-acciones .btn-primary {
        width: 100%;
        text-align: center;
    }

    /* el boton de WhatsApp flota sobre el contenido: se achica y el pie deja espacio para que no tape el final */
    .wa-float {
        width: 50px;
        height: 50px;
        bottom: 14px;
        right: 14px;
    }
}

/* en escritorio amplio el texto sube un 9%: el contenido rondaba los 13-15px,
   pequeño para un lector que evalua documentos tecnicos */
@media(min-width:1250px) {
    html {
        font-size: 17.5px;
    }
}
