:root {
  --ink: #132033;
  --muted: #5d6978;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --line: #dfe4e8;
  --brand: #196b6a;
  --brand-deep: #104b4b;
  --accent: #d66b3d;
  --soft: #e7f2f1;
  --shadow: 0 18px 45px rgba(19, 32, 51, 0.08);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.68;
}

a { color: var(--brand-deep); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 75%, white);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--brand-deep) 96%, #07101d), var(--brand) 72%, color-mix(in srgb, var(--brand) 72%, #202d56));
  border-bottom: 4px solid color-mix(in srgb, var(--accent) 75%, white);
  padding-top: 94px;
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.breadcrumb-trail {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: .85rem 0 0;
  font-size: .92rem;
  line-height: 1.5;
}

.breadcrumb-trail ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb-trail li:not(:last-child)::after {
  content: "›";
  margin-left: .35rem;
  color: rgba(255, 255, 255, .62);
}

.breadcrumb-trail a {
  color: inherit;
  text-underline-offset: .16em;
}

.breadcrumb-trail [aria-current="page"] {
  font-weight: 700;
}

.site-header::before {
  width: 34rem;
  height: 34rem;
  top: -25rem;
  right: 7%;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: 0 0 0 4rem rgba(255,255,255,.025), 0 0 0 9rem rgba(255,255,255,.018);
}

.site-header::after {
  width: 22rem;
  height: 22rem;
  left: -12rem;
  bottom: -17rem;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  filter: blur(2px);
}

.hero, main, .legal-link { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.header-bar {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  width: 100%;
  min-height: 94px;
  padding-inline: max(1rem, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: auto minmax(330px, 520px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: color-mix(in srgb, var(--brand-deep) 88%, transparent);
  box-shadow: 0 8px 30px rgba(5,13,30,.2);
  backdrop-filter: blur(18px) saturate(135%);
}

.site-mark { display: inline-flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; }
.site-mark svg { width: 46px; height: 46px; flex: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.18)); }
.site-mark-copy { display: flex; flex-direction: column; line-height: 1; }
.site-mark-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-weight: 700; letter-spacing: -.025em; }
.site-mark-domain { margin-top: .32rem; color: rgba(255,255,255,.68); font-size: .58rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.language-switcher { display: flex; align-items: center; gap: .2rem; padding: .28rem; border: 1px solid rgba(255,255,255,.3); border-radius: 14px; background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.06)); box-shadow: inset 0 1px rgba(255,255,255,.14), 0 8px 22px rgba(0,0,0,.14); }
.header-bar > .language-switcher { grid-column: 3; }
.language-switcher a, .language-switcher span { padding: .38rem .62rem; border-radius: 10px; color: rgba(255,255,255,.84); font-size: .72rem; font-weight: 780; letter-spacing: .01em; text-decoration: none; transition: color .18s ease, background .18s ease, transform .18s ease; }
.language-switcher a:hover { color: #fff; background: rgba(255,255,255,.14); transform: translateY(-1px); }
.language-switcher [aria-current="page"] { color: var(--brand-deep); background: linear-gradient(180deg, #fff, #eaf6f5); box-shadow: 0 3px 10px rgba(0,0,0,.16); }
.language-switcher .unavailable { opacity: .58; cursor: not-allowed; }

.hero { position: relative; z-index: 1; padding: clamp(2.4rem, 5vw, 4.4rem) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 820px); align-items: center; }
.eyebrow { margin: 0 0 .55rem; color: #d9f4f1; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3.2vw, 3.15rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.hero-heading { max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3.2vw, 3.15rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.hero p { max-width: 680px; margin: 1.2rem 0 0; color: #e7f3f2; font-size: clamp(1rem, 2vw, 1.17rem); }
.yservi-banner { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .7rem; padding: .62rem .72rem; color: #fff; background: linear-gradient(135deg, #111b37, #25204c 62%, #293a67); border: 1px solid rgba(164,225,255,.34); border-radius: 14px; box-shadow: 0 14px 35px rgba(3,8,27,.26), inset 0 1px rgba(255,255,255,.1); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.yservi-banner:hover { color: #fff; border-color: #79dcff; transform: translateY(-2px); }
.yservi-mark { display: grid; place-items: center; width: 42px; height: 42px; color: #8be5ff; background: rgba(104,93,210,.22); border: 1px solid rgba(139,229,255,.35); border-radius: 11px; }
.yservi-mark svg { width: 30px; height: 30px; }
.yservi-copy { min-width: 0; }
.yservi-banner small { display: block; color: #9ae6ff; font-size: .62rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.yservi-banner strong { display: block; margin: .1rem 0; color: #fff; font-size: .88rem; line-height: 1.18; }
.yservi-banner span { color: #c8d1e7; font-size: .68rem; line-height: 1.25; }
.yservi-cta { display: grid; place-items: center; width: 34px; height: 34px; color: #101a36 !important; background: #8be5ff; border-radius: 50%; font-size: 1.05rem !important; font-weight: 900; }

main { display: flex; flex-direction: column; gap: .9rem; padding-block: clamp(2rem, 5vw, 4.5rem); }
main > section { position: relative; overflow: hidden; width: 100%; min-width: 0; padding: clamp(1.35rem, 3vw, 2.25rem); border: 1px solid color-mix(in srgb, var(--section-color, var(--brand)) 18%, var(--line)); border-left: 5px solid var(--section-color, var(--brand)); border-radius: 18px; box-shadow: 0 9px 30px rgba(19,32,51,.06); }
main > section::after { content: ""; position: absolute; z-index: 0; width: 18rem; height: 18rem; right: -12rem; top: -13rem; border-radius: 50%; background: color-mix(in srgb, var(--section-color) 10%, transparent); box-shadow: 0 0 0 3rem color-mix(in srgb, var(--section-color) 3%, transparent); pointer-events: none; }
main > section > * { position: relative; z-index: 1; }
main > section:nth-of-type(4n + 1) { --section-color: var(--brand); background: linear-gradient(125deg, color-mix(in srgb, var(--brand) 7%, white), #fff 58%, color-mix(in srgb, var(--brand) 3%, white)); }
main > section:nth-of-type(4n + 2) { --section-color: var(--accent); background: linear-gradient(125deg, color-mix(in srgb, var(--accent) 7%, white), #fff 60%, color-mix(in srgb, var(--accent) 3%, white)); }
main > section:nth-of-type(4n + 3) { --section-color: #8870b4; background: linear-gradient(125deg, #f7f3fc, #fff 60%, #fbf9fe); }
main > section:nth-of-type(4n) { --section-color: #4d7c59; background: linear-gradient(125deg, #f1f8f2, #fff 60%, #f8fbf8); }
.official-data { margin-top: 1.5rem; padding: 1rem 1.15rem; background: linear-gradient(120deg, color-mix(in srgb, var(--section-color) 10%, white), rgba(255,255,255,.72)); border: 1px solid color-mix(in srgb, var(--section-color) 22%, white); border-radius: 12px; }
.official-data h3 { margin: 0 0 .55rem; font-size: 1.05rem; }
.official-data p { margin: .55rem 0 0; }
.official-travel { margin-top: 1.6rem; padding: clamp(1rem, 2vw, 1.4rem); background: linear-gradient(135deg, color-mix(in srgb, var(--section-color) 12%, white), rgba(255,255,255,.78)); border: 1px solid color-mix(in srgb, var(--section-color) 26%, white); border-radius: 14px; }
.official-travel h3 { margin: 0 0 .8rem; font-size: 1.12rem; }
.official-travel p { margin: .55rem 0; padding: .65rem .75rem; background: rgba(255,255,255,.64); border-radius: 9px; }
.official-travel p:last-child { margin-bottom: 0; }
section h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
section h2 { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.2; }
section h3 { margin-top: 1.5rem; line-height: 1.25; }
section p:first-child { margin-top: 0; }
section p:last-child { margin-bottom: 0; }
section ul, section ol { padding-left: 1.25rem; }
section li + li { margin-top: .45rem; }
section img { max-width: 100%; height: auto; border-radius: 14px; }

.directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.directory-card { padding: 1rem 1.1rem; background: rgba(255,255,255,.72); border: 1px solid color-mix(in srgb, var(--section-color) 20%, var(--line)); border-radius: 13px; }
.directory-card h3 { margin: 0 0 .55rem; font-size: 1.05rem; }
.directory-card ul { margin: 0; }

.table-responsive, .tabla-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--soft); }

form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.4rem; }
form > p, form > div, form > label { margin: 0; }
label { display: block; margin-bottom: .35rem; color: var(--ink); font-size: .9rem; font-weight: 730; }
input, textarea, select {
  width: 100%; min-height: 48px; padding: .75rem .85rem; color: var(--ink); background: #fff;
  border: 1px solid #bac4cc; border-radius: 10px; font: inherit;
}
textarea { min-height: 135px; resize: vertical; }
form textarea, form button, form input[type="submit"], form > p:last-child { grid-column: 1 / -1; }
button, input[type="submit"] { min-height: 48px; padding: .75rem 1.2rem; color: #fff; background: var(--brand-deep); border: 0; border-radius: 10px; font: inherit; font-weight: 780; cursor: pointer; }
button:hover, input[type="submit"]:hover { background: var(--accent); }

.legal-link { padding: 0 0 2rem; text-align: center; }
.legal-link a { color: var(--muted); font-size: .82rem; }
.cookie-notice { position: fixed; z-index: 50; left: .75rem; bottom: .75rem; width: min(245px, calc(100% - 1.5rem)); padding: .7rem; background: #132033; color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; box-shadow: 0 10px 35px rgba(0,0,0,.25); font-size: .72rem; line-height: 1.35; }
.cookie-notice p { margin: 0 0 .55rem; }
.cookie-actions { display: flex; gap: .4rem; }
.cookie-actions button { min-height: 30px; padding: .3rem .58rem; border-radius: 7px; font-size: .7rem; }
.cookie-actions .reject { color: #fff; background: transparent; border: 1px solid #87909c; }
[hidden] { display: none !important; }

body.city-barcelona { --brand: #166f78; --brand-deep: #0c4650; --accent: #da7043; }
body.city-bilbao { --brand: #3a6f5c; --brand-deep: #244b3e; --accent: #c98b35; }
body.city-madrid { --brand: #315c9b; --brand-deep: #203d6b; --accent: #d45e53; }
body.city-malaga { --brand: #147c87; --brand-deep: #0b4e58; --accent: #e08b36; }
body.city-sevilla { --brand: #8a4e32; --brand-deep: #5b3021; --accent: #d09b38; }
body.city-valencia { --brand: #28775e; --brand-deep: #174d3d; --accent: #d9674d; }
body.city-zaragoza { --brand: #68548e; --brand-deep: #44365f; --accent: #c97c3c; }

@media (max-width: 780px) {
  .site-header { padding-top: 72px; }
  .header-bar { min-height: 72px; grid-template-columns: auto minmax(0, 1fr) auto; gap: .45rem; }
  .site-mark svg { width: 39px; height: 39px; }
  .site-mark-copy { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
  .yservi-banner { grid-template-columns: 1fr auto; padding: .48rem .55rem; gap: .45rem; }
  .yservi-mark, .yservi-banner small, .yservi-banner .yservi-copy > span { display: none; }
  .yservi-banner strong { margin: 0; font-size: .76rem; white-space: nowrap; }
  .yservi-cta { width: 28px; height: 28px; }
  .language-switcher a, .language-switcher span { padding: .2rem .45rem; }
  form { grid-template-columns: 1fr; }
  form > * { grid-column: 1 !important; }
}

@media (max-width: 520px) {
  .header-bar { grid-template-columns: auto auto 1fr; }
  .yservi-banner { display: grid; grid-template-columns: auto; padding: .4rem; }
  .yservi-banner .yservi-copy { display: none; }
  .language-switcher { justify-self: end; }
  .language-switcher a { padding-inline: .48rem; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
