:root {
  --bg: #0f1522;
  --bg2: #172031;
  --line: #26324a;
  --txt: #e9ebef;
  --muted: #a9b0bc;
  --acc: #f3a101;
  --acc2: #ffbe3d;
  --on-acc: #16181d;
  --ok: #22c55e;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
h1, h2, h3 {
  font-family: "Barlow Condensed", Impact, "Arial Narrow", sans-serif;
  line-height: 1.1;
  margin: 0 0 .5em;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: var(--acc2); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--acc); color: var(--on-acc); text-decoration: none; font-weight: 600;
  padding: 14px 22px; border-radius: 8px; border: 2px solid var(--acc);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--acc2); border-color: var(--acc2); }
.btn-ghost { background: transparent; border-color: #fff3; color: var(--txt); }
.btn-ghost:hover { background: #ffffff14; border-color: #fff6; }
.btn-sm { padding: 9px 14px; font-size: .95rem; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 20; background: #0f1522ee; backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; line-height: 0; }
.logo { display: block; height: 58px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--txt); }

/* Portada */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(88vh, 760px); display: flex; align-items: center;
  padding: 96px 0 80px; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #0f1522f7 0%, #0f1522ee 40%, #0f152270 66%, #0f152200 100%),
    linear-gradient(0deg, #0f1522 0%, #0f152200 30%);
}
.hero-in { width: 100%; }
.hero-in > div { max-width: 600px; }
.hero h1, .hero .lead { text-shadow: 0 2px 16px #0f1522; }
.hero .lead { color: #d3d8e2; }
.gal img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.gal figcaption { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gal figure { margin: 0; }
.eyebrow { color: var(--acc2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--acc); background: #f3a1011f; color: var(--txt);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: background .15s, color .15s, transform .15s;
}
.chips a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); transition: background .15s; }
.chips a:hover, .chips a:focus-visible { background: var(--acc); color: var(--on-acc); transform: translateY(-1px); }
.chips a:hover::before, .chips a:focus-visible::before { background: var(--on-acc); }

/* Secciones */
.sec { padding: 72px 0; }
.sec-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec-alt .card { background: var(--bg); }
.sec-lead { color: var(--muted); margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 24px; border-top: 3px solid var(--acc); }
.card p { color: var(--muted); margin: 0; }
.ico { width: 34px; height: 34px; color: var(--acc2); margin-bottom: 12px; }

.band { background: var(--acc); color: var(--on-acc); padding: 48px 0; text-align: center; }
.band h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.band .btn { background: var(--on-acc); color: #fff; border-color: var(--on-acc); }
.band .btn:hover { background: #2a2f38; border-color: #2a2f38; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; margin-bottom: 16px; }
.hours th, .hours td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; }
.hours td { color: var(--muted); text-align: right; }
.hours tr.today { background: #f3a1011a; }
.hours tr.today th, .hours tr.today td { color: var(--txt); font-weight: 600; }
.status { display: inline-block; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.status.is-open { background: #22c55e22; color: var(--ok); }
.status.is-closed { background: #f3a10122; color: var(--acc2); }
.addr { font-style: normal; font-size: 1.1rem; margin-bottom: 12px; }
.addr-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }


.fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; background: var(--acc); color: var(--on-acc);
  place-items: center; box-shadow: 0 8px 24px #0008;
}

@media (max-width: 760px) {
  .nav { display: none; }
  .logo { height: 46px; }
  .top-in { height: 66px; }
  .top-in { justify-content: space-between; }
  .btn-sm span { display: none; }
  .btn-sm { padding: 9px; }
  .hero { min-height: 0; display: block; padding: 262px 0 48px; }
  .hero-bg { height: 300px; object-position: 62% center; }
  .hero::before { background: linear-gradient(0deg, #0f1522 0%, #0f1522 calc(100% - 300px), #0f152200 calc(100% - 140px)); }
  .hero-cta .btn { flex: 1 1 100%; }
  .chips { justify-content: center; }
  .two, .gal { grid-template-columns: 1fr; gap: 32px; }
  .fab { display: grid; }
}

/* Tarjetas con enlace: toda la tarjeta es clicable */
.card { position: relative; transition: border-color .15s, transform .15s; }
.card h3 a { color: var(--txt); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.card h3 a::before { content: "→"; float: right; color: var(--acc2); transition: transform .15s; }
.card:hover { border-color: var(--acc); transform: translateY(-2px); }
.card:hover h3 a::before { transform: translateX(4px); }
.card h3 a:focus-visible { outline: none; }
.card:focus-within { outline: 2px solid var(--acc2); outline-offset: 2px; }

/* Páginas de servicio */
.page-head { padding: 56px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 400px at 85% -20%, #f3a10126, transparent 60%), var(--bg); }
.page-head-in.has-fig { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.page-head h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.page-fig { margin: 0; }
.page-fig img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.page-fig figcaption { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 56px; padding-bottom: 72px; align-items: start; }
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin-top: 1.4em; color: var(--acc2); }
.prose p, .prose li { color: #cfd5df; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--txt); }
.side { position: sticky; top: 98px; display: grid; gap: 20px; }
.cta-box { background: var(--acc); color: var(--on-acc); border-radius: 12px; padding: 24px; }
.cta-box h2 { font-size: 1.8rem; }
.cta-box .btn { background: var(--on-acc); color: #fff; border-color: var(--on-acc); width: 100%; }
.side-links { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.side-links h2 { font-size: 1.3rem; }
.side-links ul { list-style: none; padding: 0; margin: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: block; padding: 9px 0; color: var(--txt); }


@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; gap: 40px; }
  .side { position: static; }
}
@media (max-width: 760px) {
  .page-head-in.has-fig { grid-template-columns: 1fr; gap: 28px; }
  .page-head { padding: 36px 0 36px; }
}

/* Pie de página */
.foot { background: #0b101a; border-top: 3px solid var(--acc); color: var(--muted); font-size: .95rem; padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-logo { display: block; width: 200px; height: auto; margin-bottom: 16px; }
.foot-brand p { margin-bottom: 20px; }
.foot h2 { font-size: 1.2rem; color: var(--txt); margin-bottom: 14px; }
.foot h2::after { content: ""; display: block; width: 32px; height: 3px; background: var(--acc); margin-top: 8px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--muted); text-decoration: none; transition: color .15s; }
.foot a:hover, .foot a:focus-visible { color: var(--acc2); text-decoration: underline; }
.foot .btn { color: var(--on-acc); }
.foot .btn:hover { color: var(--on-acc); text-decoration: none; }
.foot span[aria-current] { color: var(--acc2); font-weight: 600; }
.foot address { font-style: normal; margin-bottom: 12px; }
.foot-col p { margin: 0 0 12px; }
.foot-col a[href^="tel"] { color: var(--txt); font-weight: 600; }
.foot-col a[target="_blank"] { color: var(--acc2); font-weight: 600; }
.foot-bottom { margin-top: 48px; border-top: 1px solid var(--line); padding: 20px 0 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; font-size: .85rem; }
.foot-bottom p { margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-legal li { margin: 0; }
.pend { color: var(--acc2); }
.page-legal { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .foot { padding-top: 36px; font-size: .9rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-brand, .foot-grid > .foot-col:last-child { grid-column: 1 / -1; }
  .foot-grid > .foot-col:last-child { padding-top: 24px; border-top: 1px solid var(--line); }
  .foot-brand { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 16px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .foot-logo { width: 130px; margin: 0; }
  .foot-brand p { margin: 0; font-size: .85rem; line-height: 1.5; }
  .foot-brand .btn { grid-column: 1 / -1; width: 100%; }
  .foot h2 { font-size: 1.05rem; margin-bottom: 10px; }
  .foot li { margin-bottom: 6px; }
  .foot-bottom { margin-top: 28px; flex-direction: column; align-items: flex-start; padding-bottom: 96px; font-size: .8rem; }
  .foot-legal { gap: 4px 16px; }
}

/* Franja de confianza */
.trust { background: var(--bg2); border-bottom: 1px solid var(--line); padding: 24px 0; }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-left: 3px solid var(--acc); background: var(--bg); border-radius: 0 10px 10px 0; color: var(--muted); font-size: .9rem; text-decoration: none; }
.trust-item strong { color: var(--txt); font-size: 1.1rem; }
.trust-rating { transition: background .15s; }
.trust-rating:hover { background: #f3a1011a; }
.trust-rating span:last-child { text-decoration: underline; }
.stars { color: var(--acc); letter-spacing: 2px; font-size: 1rem; }
.about { max-width: 820px; margin-bottom: 8px; }
.about p { color: #cfd5df; }
.page-404 { padding: 80px 0 96px; text-align: center; }
.page-404 .lead { margin: 0 auto; }
.page-404 .hero-cta, .page-404 .chips { justify-content: center; }
@media (max-width: 960px) { .trust-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .trust-in { grid-template-columns: 1fr 1fr; gap: 10px; }
  .trust-item { padding: 12px 12px; font-size: .82rem; }
  .trust-item strong { font-size: 1rem; }
}

/* WhatsApp */
.btn-wa { background: #25d366; border-color: #25d366; color: #0b1a10; }
.btn-wa:hover { background: #3ee07a; border-color: #3ee07a; }
.btn-wa svg { flex: none; }
.fabs { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: none; flex-direction: column; gap: 12px; }
.fabs .fab { position: static; display: grid; }
.fab-wa { background: #25d366 !important; color: #fff !important; }
.cta-box .btn + .btn { margin-top: 10px; }
.cta-box .btn-wa { background: #25d366; border-color: #25d366; color: #0b1a10; }
.foot-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Cita */
.cita { align-items: start; }
.cita-list { padding-left: 1.2em; color: #cfd5df; margin: 0 0 1em; }
.cita-list li { margin-bottom: .4em; }
.cita-form { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--txt); background: var(--bg2); border: 1px solid var(--line);
  border-radius: 8px; padding: 11px 12px;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; border-color: var(--acc); }
.form-error { color: #ff8a8a; margin: 0; font-weight: 600; }
.form-note { color: var(--muted); font-size: .85rem; margin: 0; }
.cita-form .btn { width: 100%; }

/* Mapa */
.map { margin: 16px 0; border: 1px solid var(--line); border-radius: 12px; min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px;
  background: radial-gradient(circle at 50% 40%, #f3a1012b, transparent 60%), repeating-linear-gradient(45deg, var(--bg2) 0 14px, #141c2b 14px 28px); }
.map p { margin: 0; }
.map.is-loaded { padding: 0; display: block; overflow: hidden; }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }

/* Blog */
.post-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card h2, .post-card h3 { font-size: 1.35rem; }
.post-card h2 a, .post-card h3 a { color: var(--txt); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.post-meta { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.page-head .post-meta { margin-bottom: 14px; }

@media (max-width: 760px) {
  .fabs { display: flex; }
  .fab { width: 54px; height: 54px; }
  .foot-btns .btn { flex: 1 1 100%; }
  .foot-brand .foot-btns { grid-column: 1 / -1; }
}
.nav-cur { color: var(--acc2); font-weight: 600; }

/* Blog: categorías y llamada al final del artículo */
.blog-chips { margin-bottom: 40px; }
.blog-cat { margin-bottom: 48px; scroll-margin-top: 96px; }
.blog-cat h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); }
.cta-inline { margin-top: 40px; padding: 24px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); border-left: 4px solid var(--acc); }
.cta-inline p { margin-bottom: 10px; }
.cta-inline .hero-cta { margin: 16px 0 0; }
@media (max-width: 760px) { .cta-inline .btn { flex: 1 1 100%; } }

/* Aviso de cookies */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto;
  background: var(--bg2); border: 1px solid var(--line); border-top: 3px solid var(--acc); border-radius: 12px;
  padding: 18px 20px; box-shadow: 0 12px 32px #000a; display: grid; gap: 14px; font-size: .92rem;
}
.cookie-bar p { margin: 0; color: #cfd5df; }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btns .btn { flex: 1 1 160px; padding: 11px 16px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.link-btn:hover, .link-btn:focus-visible { color: var(--acc2); text-decoration: underline; }
.cookies-table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .9rem; display: block; overflow-x: auto; }
.cookies-table th, .cookies-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.cookies-table th { background: var(--bg2); }
@media (max-width: 900px) { .page-body:has(.cta-inline) .side .cta-box { display: none; } }
