/* ==========================================================================
   Kristian Transfers - Paginas interiores: precios, servicios, soporte, legal,
   creditos, estado de reserva, 404
   ========================================================================== */

/* ------------------------------------------------------------------- Precios */
.price-controls {
    display: flex; gap: 1.5rem; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm);
    position: sticky; top: 76px; z-index: 20;
}
.tier-pick { display: grid; gap: .4rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
    display: inline-flex; gap: .45rem; align-items: center; padding: .6rem 1.1rem; border-radius: 999px; font-weight: 700;
    border: 1.5px solid var(--line); background: #fff; color: var(--navy); transition: all .2s; min-height: 44px;
}
.chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:focus-visible + span { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.price-search { flex: 1 1 260px; max-width: 380px; }

.price-notes { display: grid; gap: .7rem; margin: 1.25rem 0 .5rem; }
.table-title { color: var(--navy); font-size: 1.3rem; margin: 2.2rem 0 1rem; display: flex; gap: .6rem; align-items: center; }
.table-title i { color: var(--accent-dark); }

.price-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table thead th {
    background: var(--navy); color: #fff; text-align: left; padding: .95rem 1.1rem; font-size: .8rem;
    text-transform: uppercase; letter-spacing: .08em; position: sticky; top: 0;
}
.price-table th.num, .price-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.price-table tbody th { text-align: left; font-weight: 700; color: var(--navy); padding: .85rem 1.1rem; }
.price-table tbody th i { color: var(--accent-dark); margin-right: .5rem; width: 1rem; text-align: center; }
.price-table td { padding: .85rem 1.1rem; border-top: 1px solid var(--line); }
.price-table tbody th { border-top: 1px solid var(--line); }
.price-table tbody tr:first-child th, .price-table tbody tr:first-child td { border-top: 0; }
.price-table tbody tr { transition: background .15s; }
.price-table tbody tr:hover { background: #f1f8fd; }
.price-table td[data-cell="day"] { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.price-table td[data-cell="night"] { color: #4b5d78; }
.price-table td.act { text-align: right; width: 1%; white-space: nowrap; }
.price-table tr.is-hidden { display: none; }
.no-results { text-align: center; margin: 2rem 0; padding: 1.2rem; background: var(--bg); border-radius: var(--radius-sm); color: var(--muted); }
.price-foot { margin-top: 2.5rem; display: grid; gap: .6rem; color: var(--muted); font-size: .92rem; }
.price-foot i { color: var(--accent-dark); margin-right: .4rem; }

/* ----------------------------------------------------------------- Servicios */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .7rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.service-icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem;
    background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--accent);
}
.service-card h2 { font-size: 1.2rem; color: var(--navy); }
.service-card p { color: var(--muted); line-height: 1.65; flex: 1; font-size: .95rem; }
.service-link { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.service-link:hover { color: var(--navy); }
.service-link i { transition: transform .2s; margin-left: .25rem; }
.service-link:hover i { transform: translateX(4px); }
.mini-title { color: var(--navy); font-size: 1.1rem; margin-bottom: .8rem; }
.cap-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.cap-table th, .cap-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.cap-table tr:last-child th, .cap-table tr:last-child td { border-bottom: 0; }
.cap-table th { color: var(--navy); white-space: nowrap; width: 1%; }
.cap-table th i { color: var(--accent-dark); margin-right: .4rem; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.why-item { text-align: center; padding: 1.5rem 1rem; }
.why-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--bg); color: var(--accent-dark); display: inline-grid; place-items: center; font-size: 1.5rem; margin-bottom: .9rem; border: 1px solid var(--line); }
.why-item h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: .3rem; }
.why-item p { color: var(--muted); font-size: .92rem; }

/* ------------------------------------------------------------------- Soporte */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.contact-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.3rem; text-align: center;
    text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); display: grid; gap: .35rem; justify-items: center;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.contact-card h2 { font-size: 1.05rem; color: var(--navy); }
.contact-card p { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.contact-card strong { color: var(--navy); word-break: break-word; font-size: .95rem; }
.contact-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--accent); margin-bottom: .4rem; }
.contact-icon--wa { background: #25d366; color: #fff; }

.card-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field--full { grid-column: 1 / -1; }

/* --------------------------------------------------------------------- Legal */
.legal-nav {
    display: flex; flex-wrap: wrap; gap: .5rem .7rem; margin: 0 0 1.4rem;
}
.legal-nav a, .legal-nav-btn {
    border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px;
    padding: .4rem .85rem; font-size: .86rem; font-weight: 700; text-decoration: none; cursor: pointer; font: inherit;
}
.legal-nav a:hover, .legal-nav-btn:hover { background: #f4f8ff; border-color: #b9d4f5; }
.legal-nav a[aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.legal .container--narrow { max-width: 880px; }
.legal-intro { font-size: 1.05rem; color: var(--ink); margin: 1rem 0 1.5rem; line-height: 1.7; }
.legal-toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.4rem; margin-bottom: 2rem; }
.legal-toc ol { padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.legal-toc li { padding: .15rem 0; break-inside: avoid; }
.legal-toc a { color: var(--accent-dark); text-decoration: none; font-weight: 600; font-size: .92rem; }
.legal-toc a:hover { text-decoration: underline; }
.legal-block { margin-bottom: 2rem; scroll-margin-top: 90px; }
.legal-block h2 { color: var(--navy); font-size: 1.25rem; margin-bottom: .6rem; }
.legal-block p { line-height: 1.75; margin-bottom: .75rem; color: #243752; }
.legal-block ul { padding-left: 1.4rem; margin: .4rem 0 .9rem; display: grid; gap: .35rem; color: #243752; line-height: 1.6; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.legal-table th, .legal-table td { text-align: left; padding: .7rem .8rem; border: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--bg); color: var(--navy); }
.legal-table code { background: #eef3fa; padding: .1rem .4rem; border-radius: 4px; font-size: .85em; }
.legal-contact { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.legal-contact a { color: var(--accent-dark); font-weight: 700; }

/* ------------------------------------------------------------------ Creditos */
.credits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 2rem; }
.credit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.credit-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.credit-card figcaption { padding: 1rem 1.1rem; display: grid; gap: .25rem; font-size: .85rem; color: var(--muted); }
.credit-card figcaption strong { color: var(--navy); font-size: 1rem; }
.credit-card figcaption a { color: var(--accent-dark); word-break: break-word; }

/* ------------------------------------------------------------- Estado de reserva */
.status-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.status-card--center { text-align: center; display: grid; gap: .8rem; justify-items: center; padding-top: 3rem; padding-bottom: 3rem; }
.status-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.status-icon { font-size: 2.4rem; flex: none; }
.status-icon--ok { color: var(--ok); }
.status-icon--wait { color: var(--cta); }
.status-icon--bad { color: var(--danger); }
.status-head h2 { color: var(--navy); font-size: 1.4rem; }
.status-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; }
.status-details dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.status-details dd { color: var(--navy); font-weight: 700; word-break: break-word; }
.status-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.5rem; }
#resumePay { margin-top: 1.5rem; display: grid; gap: 1rem; }

/* ---------------------------------------------------------------------- 404 */
.nf-code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; color: var(--navy); opacity: .12; }
.notfound h1 { color: var(--navy); margin: -1rem 0 .6rem; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
    .services-grid, .credits-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid, .contact-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .price-controls { position: static; }
    .price-search { max-width: none; flex-basis: 100%; }

    /* Tabla de precios -> tarjetas en movil */
    .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; width: auto; }
    .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .price-table tbody tr { padding: 1rem 1.1rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; }
    .price-table tbody tr:first-child { border-top: 0; }
    .price-table tbody th { grid-column: 1 / -1; padding: 0; border: 0; font-size: 1.02rem; }
    .price-table td { padding: 0; border: 0; text-align: left !important; }
    .price-table td::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
    .price-table td.act { grid-column: 1 / -1; width: auto; margin-top: .3rem; }
    .price-table td.act::before { content: none; }
    .price-table td.act .btn { width: 100%; text-align: center; padding: .75rem; }

    .services-grid, .credits-grid, .why-grid, .contact-cards, .form-grid, .status-details { grid-template-columns: 1fr; }
    .legal-toc ol { columns: 1; }
}
