/* BOX24 · web de trasteros. Naranja y negro del logotipo, titulares en letra de plantilla (Saira Stencil One) y texto en Barlow. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/barlow-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/barlow-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/barlow-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/barlow-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 800; font-style: normal; font-display: swap; src: url(../fonts/barlow-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Saira Stencil One'; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/saira-stencil-one-latin-400-normal.woff2) format('woff2'); }

:root {
  --orange: #ce6605; --orange-dark: #a35003; --orange-soft: #fbeee2; --ink: #111111; --ink-2: #2b2b2b; --muted: #5f5f5f; --line: #e4e0db; --paper: #ffffff; --paper-2: #f6f4f1;
  --ok: #1f7a3f; --ok-soft: #e7f4ec; --bad: #b3261e; --bad-soft: #fbe9e7; --radius: 10px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.06);
  --display: 'Saira Stencil One', 'Barlow', system-ui, sans-serif; --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif; --wrap: 72rem;
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 66 0 50V17L28 1l28 16v33L28 66zm0 31L0 81' fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .6em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); } h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); } h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; } .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 40rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.muted { color: var(--muted); } .small { font-size: .9rem; } .center { text-align: center; } .hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--paper); padding: .5rem 1rem; }

/* cabecera */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(6px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand img { height: 2.9rem; width: auto; }
.nav { display: flex; gap: 1.4rem; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-dark); }
.nav .btn-primary, .nav .btn-primary:hover, .nav .btn-primary[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; font: inherit; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: .4rem max(16px, env(safe-area-inset-left)) 1rem; }
  .nav.open { display: flex; } .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); } .nav .btn { margin-top: .8rem; text-align: center; }
}

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: 8px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: transform .08s ease, background .15s ease; }
.btn:hover { background: var(--paper-2); color: var(--ink); } .btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-primary:hover { background: #e27512; border-color: #e27512; color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; } .btn-dark:hover { background: #333; color: #fff; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-small { padding: .45rem .8rem; font-size: .9rem; border-width: 1.5px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--orange-dark); text-decoration: underline; font: inherit; cursor: pointer; }

/* portada */
.hero { background: var(--ink) var(--hex); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2.5rem; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); }
.hero h1 { color: #fff; } .hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: #e9e5e0; }
.hero-mark { justify-self: center; width: min(100%, 22rem); filter: drop-shadow(0 18px 40px rgba(206,102,5,.25)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero .btn:not(.btn-primary) { background: transparent; color: #fff; border-color: #fff; } .hero .btn:not(.btn-primary):hover { background: rgba(255,255,255,.08); }
.facts { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1.8rem; padding: 0; list-style: none; color: #e9e5e0; font-weight: 600; }
.facts li::before { content: ''; display: inline-block; width: .7rem; height: .8rem; margin-right: .5rem; background: var(--orange); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); vertical-align: -.05rem; }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; } .hero-mark { width: 9rem; order: -1; justify-self: start; } }

.section { padding-block: clamp(3rem, 7vw, 5rem); } .section-alt { background: var(--paper-2); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.kicker { display: inline-block; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--orange-dark); margin-bottom: .5rem; }

/* tamaños */
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.size { position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; box-shadow: var(--shadow); }
.size .hexbadge { width: 3.1rem; height: 3.5rem; display: grid; place-items: center; background: var(--orange); color: var(--ink); font: 400 1.35rem/1 var(--display); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); margin-bottom: .4rem; }
.size .area { font-size: 1.35rem; font-weight: 800; }
.size .price { font-size: 1.05rem; } .size .price strong { font-size: 1.6rem; }
.size .avail { font-size: .92rem; color: var(--muted); } .size .avail.none { color: var(--bad); }
.size .btn { margin-top: .6rem; }
.size.selectable { cursor: pointer; } .size.selectable:hover { border-color: var(--ink); }
.size.selected { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft), var(--shadow); }
.size.soldout { opacity: .6; }
.size input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }

/* pasos */
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.4rem; counter-reset: s; padding: 0; list-style: none; }
.steps3 li { counter-increment: s; padding: 1.2rem 0 0; border-top: 3px solid var(--ink); }
.steps3 li::before { content: counter(s, decimal-leading-zero); display: block; font: 400 2.4rem/1 var(--display); color: var(--orange); margin-bottom: .5rem; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; }
.term { background: var(--paper); border-radius: var(--radius); padding: 1.1rem; border: 1px solid var(--line); }
.term strong { display: block; font-size: 1.5rem; font-weight: 800; }
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; } .faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: '+'; float: right; font-weight: 800; color: var(--orange-dark); } .faq details[open] summary::after { content: '–'; }
.faq details p { margin: .6rem 0 0; color: var(--ink-2); }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.2rem; }
.contact dl { margin: 0; } .contact dt { font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .1em; color: var(--muted); margin-top: .9rem; } .contact dd { margin: .2rem 0 0; font-size: 1.1rem; }

/* pie */
.site-foot { background: var(--ink); color: #cfcac4; padding-block: 2.5rem 2rem; font-size: .95rem; }
.site-foot a { color: #fff; } .site-foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1.5rem; }
.site-foot img { height: 3.2rem; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.site-foot nav { display: flex; flex-direction: column; gap: .35rem; }

/* formularios y reserva */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.6rem); box-shadow: var(--shadow); }
.booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .booking { grid-template-columns: 1fr; } .summary { order: -1; } }
.stepper { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1.4rem; flex-wrap: wrap; }
.stepper li { flex: 1 1 8rem; padding: .55rem .7rem; border-radius: 6px; background: var(--paper-2); color: var(--muted); font-weight: 700; font-size: .92rem; }
.stepper li.on { background: var(--ink); color: #fff; } .stepper li.done { background: var(--orange-soft); color: var(--orange-dark); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.fields .wide { grid-column: 1 / -1; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }
label.field { display: flex; flex-direction: column; gap: .3rem; font-weight: 700; font-size: .95rem; }
.input, input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea { width: 100%; font: 400 1.02rem/1.3 var(--body); padding: .7rem .8rem; border: 1.5px solid #cfc9c2; border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; margin: .5rem 0; } .check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--orange); flex: none; }
.contract { max-height: 22rem; overflow: auto; white-space: pre-wrap; font: 400 .95rem/1.5 var(--body); background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.summary { position: sticky; top: 5.5rem; }
.summary h3 { margin-bottom: .8rem; } .summary dl { display: grid; grid-template-columns: 1fr auto; gap: .35rem .8rem; margin: 0; } .summary dt { color: var(--muted); } .summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { border-top: 2px solid var(--ink); padding-top: .5rem; margin-top: .4rem; font-size: 1.15rem; } .summary .total dd { font-weight: 800; }
.notice { padding: .8rem 1rem; border-radius: 8px; background: var(--paper-2); border-left: 4px solid var(--ink); margin: 1rem 0; }
.notice.ok { background: var(--ok-soft); border-color: var(--ok); } .notice.error { background: var(--bad-soft); border-color: var(--bad); } .notice.warn { background: var(--orange-soft); border-color: var(--orange); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; align-items: center; }
.spinner { width: 1.1rem; height: 1.1rem; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* área de cliente */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.card h3 { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .5rem; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.bad { background: var(--bad-soft); color: var(--bad); } .tag.warn { background: var(--orange-soft); color: var(--orange-dark); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list { width: 100%; border-collapse: collapse; font-size: .98rem; } table.list th, table.list td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); } table.list td.num, table.list th.num { text-align: right; }
.messages { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .6rem; }
.messages li { padding: .6rem .8rem; border-radius: 8px; background: var(--paper-2); white-space: pre-wrap; } .messages li.mine { background: var(--orange-soft); }
.messages .who { display: block; font-size: .82rem; color: var(--muted); font-weight: 700; white-space: normal; }
.legal { max-width: 48rem; } .legal h2 { font-size: 1.5rem; margin-top: 2rem; } .legal .pending { background: var(--orange-soft); padding: .8rem 1rem; border-radius: 8px; }
.brand .brand-mark { height: 2.4rem; } .brand-name { font: 400 1.75rem/1 var(--display); letter-spacing: .02em; }
.site-foot .brand-name { color: #fff; font-size: 1.6rem; } .site-foot .brand img { height: 2.2rem; filter: none; }
.loading { display: flex; gap: .6rem; align-items: center; color: var(--muted); padding: 1rem 0; }
.site-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.site-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dims { font-size: .9rem; color: var(--muted); }
.quote-line { display: flex; justify-content: space-between; gap: 1rem; }
.err { color: var(--bad); font-weight: 600; min-height: 1.2em; margin: .6rem 0 0; }
.portal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .8rem; margin-bottom: 1.2rem; }
.portal-section { margin-top: 2.2rem; } .portal-section > h2 { font-size: 1.5rem; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: .6rem 0 0; } .card dt { color: var(--muted); } .card dd { margin: 0; font-weight: 600; }
.card .actions { margin-top: .9rem; }
.inline-form { margin-top: .9rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.result { max-width: 40rem; margin: 0 auto; text-align: center; } .result .icon { width: 4.5rem; height: 5rem; margin: 0 auto 1rem; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--orange); display: grid; place-items: center; font: 800 2rem/1 var(--body); color: var(--ink); }
.result .icon.bad { background: var(--bad); color: #fff; } .result .icon.wait { background: var(--paper-2); }
.result dl { display: grid; grid-template-columns: auto auto; justify-content: center; gap: .3rem 1rem; text-align: left; margin: 1rem 0; } .result dt { color: var(--muted); } .result dd { margin: 0; font-weight: 700; }
@media (max-width: 560px) { table.list.stack thead { display: none; } table.list.stack tr { display: grid; grid-template-columns: 1fr auto; padding: .5rem 0; border-bottom: 1px solid var(--line); } table.list.stack td { border: 0; padding: .15rem .3rem; } }
@media print { .site-head, .site-foot, .actions { display: none; } }
