/* Estilos compartidos de los documentos legales (terminos, privacidad, cookies, reservaciones, avisos). */
:root {
    --bg: var(--theme-bg);
    --panel: var(--theme-panel);
    --text: var(--theme-text);
    --muted: var(--theme-muted);
    --gold: var(--theme-gold);
    --gold-soft: var(--theme-gold-soft);
    --border: var(--theme-line);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at top right, rgba(212,175,55,.12), transparent 22%), linear-gradient(180deg, #090909 0%, #040404 100%);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 92px;
    line-height: 1.7;
}

body.light-mode { background: var(--bg); }
a { color: var(--gold); }
h1, h2 { font-family: 'Cinzel', serif; line-height: 1.25; }

.top { position: sticky; top: 0; z-index: 20; background: rgba(8,8,8,.9); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(212,175,55,.12); }
body.light-mode .top { background: rgba(245,245,247,.92); border-bottom-color: rgba(0,0,0,.06); }
.top-inner { max-width: 880px; margin: 0 auto; padding: .9rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.top a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.top .brand { color: var(--gold); letter-spacing: .12em; font-weight: 800; }

.wrap { max-width: 880px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

.draft-banner { border: 1px dashed rgba(241,190,93,.7); background: rgba(241,190,93,.08); color: var(--text); border-radius: 16px; padding: .9rem 1rem; font-size: .88rem; margin-bottom: 1.25rem; }
.draft-banner strong { color: #f1be5d; }
body.light-mode .draft-banner strong { color: #9a6a00; }

.doc-head { margin-bottom: 1.5rem; }
.doc-head .eyebrow { display: block; color: var(--gold); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .6rem; }
.doc-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: .75rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; color: var(--muted); font-size: .88rem; }
.doc-meta strong { color: var(--text); font-weight: 600; }
.doc-intro { margin-top: 1rem; color: var(--muted); }

.toc, .doc-section, .summary-card {
    background: linear-gradient(180deg, rgba(18,18,18,.98), rgba(11,11,11,.98));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.25rem 1.35rem;
    margin-top: 1rem;
}
body.light-mode .toc, body.light-mode .doc-section, body.light-mode .summary-card { background: var(--panel); box-shadow: 0 10px 24px rgba(16,24,40,.06); }

.toc h2 { font-size: 1rem; margin-bottom: .6rem; }
.toc ol { padding-left: 1.3rem; columns: 2 260px; column-gap: 2rem; font-size: .9rem; }
.toc li { margin-bottom: .2rem; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; }

.doc-section { scroll-margin-top: 80px; }
.doc-section h2 { font-size: 1.15rem; margin-bottom: .7rem; color: var(--gold-soft); }
body.light-mode .doc-section h2 { color: #7a5c12; }
.doc-section h3 { font-size: .98rem; margin: 1rem 0 .4rem; }
.doc-section p, .doc-section li { color: var(--muted); font-size: .94rem; }
.doc-section p + p { margin-top: .6rem; }
.doc-section ul, .doc-section ol { padding-left: 1.3rem; margin: .5rem 0; }
.doc-section li { margin-bottom: .3rem; }
.doc-section strong { color: var(--text); }

.table-scroll { overflow-x: auto; margin: .75rem 0; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 560px; }
th, td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
th { color: var(--text); font-weight: 600; background: rgba(212,175,55,.06); }
tr:last-child td { border-bottom: 0; }

.summary-card dl { display: grid; gap: .1rem; }
.summary-card dl > div { display: grid; grid-template-columns: minmax(160px, 32%) 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.summary-card dl > div:last-child { border-bottom: 0; }
.summary-card dt { font-weight: 600; color: var(--text); }
.summary-card dd { color: var(--muted); }
@media (max-width: 560px) { .summary-card dl > div { grid-template-columns: 1fr; gap: .15rem; } }

.notice-box { border-left: 3px solid var(--gold); background: rgba(212,175,55,.06); padding: .75rem 1rem; border-radius: 0 12px 12px 0; margin: .75rem 0; }
.review-flag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: #111; background: #f1be5d; border-radius: 6px; padding: .1rem .45rem; margin-left: .35rem; vertical-align: middle; }

.related { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .75rem; }
.related a, .doc-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1rem; border-radius: 999px; border: 1px solid rgba(212,175,55,.35); color: var(--text); text-decoration: none; font-size: .86rem; font-weight: 600; background: transparent; cursor: pointer; font-family: inherit; }
.related a:hover, .doc-btn:hover { border-color: var(--gold); color: var(--gold); }
.doc-btn.solid { background: linear-gradient(135deg, #f6dfa0 0%, #d4af37 62%, #87640f 100%); color: #111; border-color: transparent; }
.doc-btn.solid:hover { color: #111; filter: brightness(1.06); }

.page-footer { padding: 0 1rem 2rem; }

.mobile-bottom-nav { display: none; }
.mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; color: #d8d2c3; font-size: .68rem; font-weight: 600; text-decoration: none; }
.mobile-bottom-nav i { color: var(--gold); font-size: 1.05rem; }
@media (max-width: 968px) {
    .mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2500; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .25rem; padding: .8rem .7rem calc(.8rem + env(safe-area-inset-bottom)); background: rgba(8,8,8,.96); backdrop-filter: blur(16px); border-top: 1px solid rgba(212,175,55,.15); }
}
@media (min-width: 969px) { body { padding-bottom: 0; } }
@media print {
    .top, .mobile-bottom-nav, .page-footer, .toc, .cookie-banner { display: none !important; }
    body { background: #fff; color: #000; }
    .doc-section, .summary-card { border: 0; background: none; box-shadow: none; padding: 0; }
}
