/* Página Términos y Condiciones — requiere /styles.min.css antes (variables tipográficas) */

.terms-static {
    --terms-link: #1559a7;
    --terms-text: #000000;
    --terms-max: 720px;
    --terms-header-offset: 112px;
    background: #ffffff;
    color: var(--terms-text);
    font-family: var(--font-family-text);
    font-weight: 600;
    -webkit-font-smoothing: antialiased;
    padding: calc(var(--terms-header-offset) + var(--spacing-xl)) 1.25rem 4rem;
}

@media (max-width: 767px) {
    .terms-static {
        padding: calc(100px + var(--spacing-lg)) 1.25rem 4rem;
    }
}

.terms-static__inner {
    max-width: var(--terms-max);
    margin: 0 auto;
}

/* Énfasis: peso bold de la familia tipográfica del cuerpo (sin <strong>) */
.terms-static__b {
    font-family: inherit;
    font-weight: 700;
}

.terms-static__inner h1 {
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 1.5rem;
    color: var(--terms-text);
}

.terms-static__pdf {
    margin: 0 0 2rem;
}

.terms-static__pdf a {
    font-size: 0.9375rem;
    color: var(--terms-link);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.terms-static__pdf a:hover {
    text-decoration: underline;
}

.terms-static h1 {
    font-family: var(--font-family-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    color: var(--terms-text);
}

.terms-static__dates {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 2.5rem;
    color: var(--terms-text);
}

.terms-static__dates .terms-static__b {
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.terms-static__dates p {
    margin: 0;
}

/* Solo el índice lleva numeración 1. 2. … */
.terms-static__toc {
    margin: 0 0 3rem;
    padding-left: 1.75rem;
    list-style: decimal;
    list-style-position: outside;
}

.terms-static__toc > li {
    margin-bottom: 0.65rem;
    padding-left: 0.35rem;
    line-height: 1.45;
}

.terms-static__toc > li::marker {
    color: var(--terms-link);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.terms-static__toc a {
    color: var(--terms-link);
    text-decoration: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.terms-static__toc a:hover {
    text-decoration: underline;
}

.terms-static__intro {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
}

.terms-static__lead p,
.terms-static__lead li {
    font-family: var(--font-family-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75;
    margin: 0 0 1rem;
    color: var(--terms-text);
}

.terms-static__lead ul {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.terms-static__lead li {
    margin-bottom: 0.5rem;
}

.terms-static__important {
    margin: 1.25rem 0 1.5rem;
    padding: var(--spacing-md) var(--spacing-lg);
    border-left: 4px solid var(--color-primary, #242c4f);
    background: rgba(36, 44, 79, 0.04);
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    line-height: 1.65;
}

.terms-static__important-title {
    display: block;
    margin-bottom: 0.35rem;
    font-family: inherit;
    font-weight: 700;
}

.terms-static__note {
    font-size: 1rem;
    color: #000000;
    line-height: 1.7;
    margin: 0 0 3rem;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: transparent;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    box-sizing: border-box;
}

.terms-static__note a {
    color: var(--terms-link);
    text-decoration: none;
}

.terms-static__note a:hover {
    text-decoration: underline;
}

.terms-static section {
    padding: 1rem 0;
    scroll-margin-top: calc(var(--terms-header-offset) + var(--spacing-sm));
    margin-bottom: 0.75rem;
}

.terms-static section:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .terms-static section {
        scroll-margin-top: calc(100px + var(--spacing-sm));
    }
}

.terms-static section h2 {
    font-family: var(--font-family-heading);
    font-size: 1.3rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 0.65rem;
    color: var(--terms-text);
}

.terms-static section h3 {
    font-family: var(--font-family-heading);
    font-size: 1.05rem;
    font-weight: 700;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0;
    margin: 1.35rem 0 0.5rem;
    color: var(--terms-text);
}

.terms-static section h3:first-of-type {
    margin-top: 0.75rem;
}

.terms-static #intro h2 {
    margin-bottom: 1rem;
}

.terms-static section p,
.terms-static section li {
    font-family: var(--font-family-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75;
    margin: 0 0 0.75rem;
    color: var(--terms-text);
}

.terms-static section p:last-child,
.terms-static section ul:last-child {
    margin-bottom: 0;
}

.terms-static section ul {
    margin: 0 0 0.75rem;
    padding-left: 1.35rem;
}

.terms-static section li {
    margin-bottom: 0.5rem;
}

.terms-static section a {
    color: var(--terms-link);
}

/* Páginas largas (Accesibilidad, Trabajá con nosotros, etc.) */
.terms-static__long-page > p {
    font-family: var(--font-family-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.75;
    margin: 0 0 1rem;
    color: var(--terms-text);
}

.terms-static__long-page > p.terms-static__page-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.terms-static__page-toc {
    margin: 0 0 2.5rem;
    padding: var(--spacing-lg, 1rem) var(--spacing-xl, 1.5rem);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: 12px;
    background: rgba(36, 44, 79, 0.04);
    box-sizing: border-box;
}

.terms-static__page-toc-title {
    font-family: var(--font-family-heading);
    font-size: 0.8rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
    color: var(--terms-text);
}

.terms-static__page-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.terms-static__page-toc li {
    margin: 0 0 0.55rem;
    line-height: 1.45;
    font-family: var(--font-family-text);
    font-size: 0.9375rem;
    font-weight: 600;
}

.terms-static__page-toc li:last-child {
    margin-bottom: 0;
}

.terms-static__page-toc a {
    color: var(--terms-link);
    text-decoration: none;
}

.terms-static__page-toc a:hover {
    text-decoration: underline;
}

.terms-static__long-page section:first-of-type {
    padding-top: 0.25rem;
}

/* ---------------------------------------------------------------------------
   Libro de quejas online — CTA + formulario
--------------------------------------------------------------------------- */

.libro-quejas-cta-wrap {
    margin: 1.5rem 0 2rem;
}

.libro-quejas-cta {
    display: inline-block;
    padding: 0.85rem 1.4rem;
    background: var(--color-primary, #242c4f);
    color: #ffffff !important;
    font-family: var(--font-family-text);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 2px 6px rgba(36, 44, 79, 0.18);
}

.libro-quejas-cta:hover,
.libro-quejas-cta:focus-visible {
    background: #1a2142;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(36, 44, 79, 0.22);
    text-decoration: none;
}

.lq-form-wrap {
    max-width: 640px;
}

.lq-breadcrumb {
    margin: 0 0 1rem;
    font-family: var(--font-family-text);
    font-size: 0.9rem;
    font-weight: 600;
}

.lq-breadcrumb a {
    color: var(--terms-link);
    text-decoration: none;
}

.lq-breadcrumb a:hover {
    text-decoration: underline;
}

.lq-intro {
    margin-bottom: 1.75rem;
}

.lq-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin: 0 0 2rem;
}

.lq-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lq-field label {
    font-family: var(--font-family-text);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--terms-text);
    letter-spacing: 0.01em;
}

.lq-req {
    color: #b42318;
    font-weight: 700;
}

.lq-opt {
    color: #6b7280;
    font-weight: 500;
}

.lq-field input,
.lq-field select,
.lq-field textarea {
    font-family: var(--font-family-text);
    font-size: 1rem;
    font-weight: 600;
    color: var(--terms-text);
    background: #ffffff;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    line-height: 1.45;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.lq-field textarea {
    resize: vertical;
    min-height: 140px;
}

.lq-field input:focus,
.lq-field select:focus,
.lq-field textarea:focus {
    outline: none;
    border-color: var(--color-primary, #242c4f);
    box-shadow: 0 0 0 3px rgba(36, 44, 79, 0.15);
}

.lq-err {
    color: #b42318;
    font-family: var(--font-family-text);
    font-size: 0.825rem;
    font-weight: 600;
}

.lq-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lq-legal {
    font-family: var(--font-family-text);
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.55;
    margin: 0.25rem 0 0;
}

.lq-legal a {
    color: var(--terms-link);
}

.lq-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.lq-alert {
    margin: 0 0 1.5rem;
    padding: 1.1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: var(--font-family-text);
}

.lq-alert p {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
}

.lq-alert p:last-child {
    margin-bottom: 0;
}

.lq-alert__title {
    font-family: var(--font-family-heading);
    font-size: 1.15rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    margin: 0 0 0.65rem;
    letter-spacing: 0.02em;
}

.lq-alert--ok {
    background: rgba(16, 122, 87, 0.07);
    border-color: rgba(16, 122, 87, 0.25);
    color: #064e3b;
}

.lq-alert--err {
    background: rgba(180, 35, 24, 0.07);
    border-color: rgba(180, 35, 24, 0.3);
    color: #7a1d15;
}

.lq-ref {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: rgba(36, 44, 79, 0.08);
    font-family: var(--font-family-mono, "JetBrains Mono", monospace);
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--terms-text);
}

@media (max-width: 560px) {
    .libro-quejas-cta {
        display: block;
        text-align: center;
    }
}
