/* =============================================================
   Grupo García Burnier — Multiservicios Alicante
   1. Tokens
   ============================================================= */
:root {
  --navy-900: #071a33;
  --navy-800: #0b2545;
  --navy-700: #123a63;
  --blue-600: #1d5fa8;
  --blue-500: #2a7de1;
  --blue-100: #e7f0fb;
  --accent:   #ff7a1a;
  --accent-600: #e8650a;
  --accent-100: #fff0e2;
  --wa: #25d366;
  --wa-dark: #1da851;

  --bg:      #ffffff;
  --bg-soft: #f4f7fb;
  --bg-2:    #eaf1f9;
  --ink:     #0e1f33;
  --ink-soft:#374b63;
  --ink-mute:#6b7c92;
  --line:    rgba(14, 31, 51, 0.10);
  --line-2:  rgba(14, 31, 51, 0.06);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", var(--sans);

  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 12px 30px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 30px 60px rgba(11, 37, 69, 0.16);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 74px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  font-weight: 700;
}
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--navy-800); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Reveal animation base (defensive)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal, .is-ready .reveal { }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .96rem;
  padding: .8rem 1.35rem; border-radius: 999px;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .25s, color .25s;
  white-space: nowrap;
}
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px rgba(255, 122, 26, 0.28); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255, 122, 26, 0.34); }

.btn-ghost { color: var(--navy-800); border: 1.5px solid var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); }

.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 10px 22px rgba(37, 211, 102, 0.28); }
.btn-whatsapp:hover { background: var(--wa-dark); transform: translateY(-2px); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease-out), border-color .3s, background .3s;
}
.nav.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-size: 1.02rem; font-weight: 700; color: var(--navy-800); letter-spacing: -0.01em; }
.brand-text em { font-style: normal; font-size: .72rem; color: var(--ink-mute); font-weight: 500; letter-spacing: .02em; }

.nav-links { display: none; gap: 1.6rem; }
.nav-links a { font-weight: 500; font-size: .95rem; color: var(--ink-soft); position: relative; padding: .3rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--navy-800); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: none; align-items: center; gap: .6rem; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; padding: .5rem 20px 1.2rem;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a { padding: .85rem .2rem; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line-2); }
.nav-mobile a:last-of-type { border-bottom: 0; }
.nav-mobile-actions { display: grid; gap: .6rem; margin-top: .8rem; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 46px) 0 70px;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800) 60%, #0d2c53);
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 78%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.hero-glow-1 { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, #2a7de1, transparent 65%); }
.hero-glow-2 { width: 460px; height: 460px; bottom: -200px; left: -140px; background: radial-gradient(circle, var(--accent), transparent 68%); opacity: .32; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
  color: #bcd6f5; background: rgba(255,255,255,0.07);
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12);
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,26,.25); }

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 800;
  margin: 1.1rem 0 1.1rem;
  max-width: 16ch;
}
.hero-title .hl { color: var(--accent); position: relative; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #cfe0f2; max-width: 46ch; }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.2rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-badges li { font-size: .92rem; color: #b9cde3; }
.hero-badges strong { display: block; font-family: var(--display); font-size: 1.15rem; color: #fff; font-weight: 700; }

/* Hero visual orbit */
.hero-visual { position: relative; height: 340px; display: none; }
.orbit-core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 168px; height: 168px; border-radius: 32px;
  background: linear-gradient(160deg, var(--blue-500), var(--navy-800));
  display: grid; place-items: center; gap: .3rem;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.12);
  text-align: center;
}
.orbit-core span { font-family: var(--display); font-weight: 700; font-size: .95rem; line-height: 1.15; color: #fff; }
.orbit-card {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,0.96); color: var(--navy-800);
  font-family: var(--display); font-weight: 600; font-size: .9rem;
  padding: .6rem .95rem; border-radius: 14px; box-shadow: var(--shadow-md);
  animation: floaty 6s var(--ease-soft) infinite;
}
.orbit-card .oc-ic { font-size: 1.1rem; }
.orbit-a { top: 6%; left: 2%; animation-delay: 0s; }
.orbit-b { top: 20%; right: 0; animation-delay: .8s; }
.orbit-c { bottom: 16%; left: 0; animation-delay: 1.6s; }
.orbit-d { bottom: 2%; right: 8%; animation-delay: 2.4s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* =============================================================
   Stats bar
   ============================================================= */
.stats { background: var(--navy-800); }
.stats-inner {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255,255,255,0.10);
  border-radius: 0;
}
.stat { background: var(--navy-800); padding: 1.6rem 1rem; text-align: center; }
.stat-num { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; line-height: 1; }
.stat-num-text { color: var(--accent); }
.stat-label { display: block; margin-top: .4rem; font-size: .82rem; color: #a9c1dc; letter-spacing: .02em; }

/* =============================================================
   Sections base
   ============================================================= */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.kicker {
  font-family: var(--display); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600);
  display: inline-block; margin-bottom: .7rem;
}
.kicker-light { color: var(--accent); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); color: var(--navy-800); }
.section-lead { margin-top: .9rem; color: var(--ink-soft); font-size: 1.05rem; }

/* =============================================================
   Services grid
   ============================================================= */
.services { background: var(--bg-soft); }
.grid-services { display: grid; grid-template-columns: 1fr; gap: 16px; }
.svc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
.svc-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--blue-500), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::before { transform: scaleX(1); }
.svc-ic {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: var(--blue-100); color: var(--blue-600); margin-bottom: 1rem;
  transition: background .35s, color .35s, transform .35s var(--ease-out);
}
.svc-ic svg { width: 26px; height: 26px; }
.svc-card:hover .svc-ic { background: var(--navy-800); color: #fff; transform: rotate(-6deg) scale(1.05); }
.svc-card h3 { font-size: 1.18rem; color: var(--navy-800); margin-bottom: .4rem; }
.svc-card p { color: var(--ink-soft); font-size: .96rem; }
.svc-card-more { background: linear-gradient(160deg, var(--navy-800), var(--navy-700)); border-color: transparent; color: #fff; }
.svc-card-more h3 { color: #fff; }
.svc-card-more p { color: #cfe0f2; }
.svc-card-more .svc-ic { background: rgba(255,255,255,0.12); color: #fff; }
.svc-card-more:hover .svc-ic { background: var(--accent); }
.svc-link { display: inline-block; margin-top: .8rem; color: var(--accent); font-family: var(--display); font-weight: 600; font-size: .92rem; }

/* =============================================================
   Administradores
   ============================================================= */
.admin { background: linear-gradient(150deg, var(--navy-900), var(--navy-700)); color: #fff; overflow: hidden; }
.admin-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.admin-copy h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.admin-copy p { color: #cfe0f2; margin-top: .9rem; }
.admin-list { margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.admin-list li { position: relative; padding-left: 1.9rem; color: #e3edf8; }
.admin-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center;
}
.admin-panel {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg); padding: 1.6rem; backdrop-filter: blur(6px);
}
.ap-row { display: flex; align-items: center; gap: .7rem; padding: .8rem .2rem; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: .95rem; color: #dbe8f6; }
.ap-row b { margin-left: auto; font-family: var(--display); color: #fff; font-weight: 600; }
.ap-dot { width: 12px; height: 12px; border-radius: 50%; background: #6fa8e0; }
.ap-dot-2 { background: #9c7fe0; }
.ap-dot-3 { background: var(--accent); }
.ap-done { color: #fff; border-bottom: 0; }
.ap-check { width: 22px; height: 22px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.ap-foot { margin-top: .9rem; font-size: .84rem; color: #a9c1dc; }

/* =============================================================
   About
   ============================================================= */
.about-inner { display: grid; grid-template-columns: 1fr; gap: 40px; }
.about-copy h2 { color: var(--navy-800); font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.about-copy p { color: var(--ink-soft); margin-top: 1rem; font-size: 1.03rem; }
.inline-link { color: var(--blue-600); font-weight: 600; border-bottom: 2px solid var(--accent); }
.inline-link:hover { color: var(--accent-600); }
.about-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.value { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem; transition: transform .3s var(--ease-out), box-shadow .3s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value-ic { font-size: 1.7rem; display: block; margin-bottom: .6rem; }
.value h3 { font-size: 1.05rem; color: var(--navy-800); }
.value p { font-size: .9rem; color: var(--ink-soft); margin-top: .3rem; }

/* =============================================================
   Zona
   ============================================================= */
.zona { background: var(--bg-soft); }
.zona-tags { display: flex; flex-wrap: wrap; gap: .7rem; }
.zona-tags li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .6rem 1.15rem; font-family: var(--display); font-weight: 500; font-size: .95rem;
  color: var(--ink-soft); transition: transform .25s var(--ease-out), border-color .25s, color .25s, background .25s;
}
.zona-tags li:hover { transform: translateY(-3px); border-color: var(--blue-500); color: var(--blue-600); }
.zona-tags li:last-child { background: var(--accent-100); color: var(--accent-600); border-color: transparent; }

/* =============================================================
   Contacto
   ============================================================= */
.contacto { background: var(--navy-900); color: #fff; }
.contacto .section-head h2 { color: #fff; }
.contacto .section-lead { color: #cfe0f2; }
.contacto-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.contacto-side { display: grid; gap: 12px; }
.cc-card {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 1rem 1.15rem;
  transition: transform .3s var(--ease-out), background .3s, border-color .3s;
}
a.cc-card:hover { transform: translateY(-3px); background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); }
.cc-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-600); color: #fff; flex-shrink: 0; }
.cc-wa .cc-ic { background: var(--wa); }
.cc-text { display: flex; flex-direction: column; min-width: 0; }
.cc-text em { font-style: normal; font-size: .78rem; color: #a9c1dc; letter-spacing: .02em; }
.cc-text strong { font-family: var(--display); font-size: 1.02rem; color: #fff; font-weight: 600; word-break: break-word; }
.cc-addr { align-items: flex-start; }
.cc-addr .cc-text strong { font-size: .96rem; font-weight: 500; line-height: 1.4; }

/* Form */
.contacto-form {
  background: #fff; border-radius: var(--radius-lg); padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}
.field { display: flex; flex-direction: column; margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: .85rem; color: var(--navy-800); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg-soft);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .72rem .85rem; transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(42, 125, 225, 0.14);
}
.field textarea { resize: vertical; }
.form-note { margin-top: .9rem; font-size: .82rem; color: var(--ink-mute); text-align: center; }
.form-note a { color: var(--blue-600); font-weight: 600; }

.map-wrap { margin-top: 22px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.14); box-shadow: var(--shadow-md); }
.map-wrap iframe { display: block; filter: grayscale(0.15); }

/* =============================================================
   Footer
   ============================================================= */
.footer { background: var(--navy-900); color: #cfe0f2; padding-top: 56px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 36px; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text em { color: #a9c1dc; }
.footer-desc { margin-top: 1rem; font-size: .92rem; color: #a9c1dc; max-width: 42ch; }
.footer-desc a, .footer-col a { color: #cfe0f2; }
.footer-desc a { color: var(--accent); font-weight: 600; }
.footer-col h4 { font-family: var(--display); font-size: .95rem; color: #fff; margin-bottom: .9rem; letter-spacing: .02em; }
.footer-col a { display: block; padding: .32rem 0; font-size: .92rem; color: #a9c1dc; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-addr { margin-top: .7rem; font-size: .86rem; color: #8ba5c1; }
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
  padding: 18px 0 4px; border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-legal a { font-size: .84rem; color: #a9c1dc; transition: color .2s; }
.footer-legal a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 16px 0 30px;
  font-size: .82rem; color: #8ba5c1;
}
.footer-bottom a { color: var(--accent); }

/* =============================================================
   Floating WhatsApp
   ============================================================= */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.45);
  transition: transform .3s var(--ease-out);
  animation: pulseWa 2.6s ease-out infinite;
}
.fab-wa:hover { transform: scale(1.08); }
@keyframes pulseWa {
  0% { box-shadow: 0 12px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 12px 26px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 12px 26px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* =============================================================
   Responsive
   ============================================================= */
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 720px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(4, 1fr); }
  .about-inner { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
  .hero { padding: calc(var(--nav-h) + 60px) 0 90px; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .hero-visual { display: block; }
  .grid-services { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .admin-inner { grid-template-columns: 1.05fr .95fr; }
  .contacto-grid { grid-template-columns: .9fr 1.1fr; align-items: start; }
}

@media (min-width: 1280px) {
  .hero-visual { height: 400px; }
}

/* =============================================================
   Reduced motion (only intrusive)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit-card { animation: none; }
  .fab-wa { animation: none; }
  .hero-glow { opacity: .4; }
  .cookie-banner { animation: none; }
}

/* =============================================================
   Cookie banner
   ============================================================= */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1200;
  max-width: 460px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.25rem;
  animation: cookieIn .5s var(--ease-out) both;
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie-banner h4 { font-family: var(--display); font-size: 1.02rem; color: var(--navy-800); margin-bottom: .4rem; }
.cookie-banner p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .9rem; }
.cookie-banner p a { color: var(--blue-600); font-weight: 600; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { flex: 1 1 auto; }

/* =============================================================
   Consent-gated map placeholder
   ============================================================= */
.map-holder {
  min-height: 300px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(rgba(11,37,69,0.55), rgba(11,37,69,0.55)),
    repeating-linear-gradient(45deg, #123a63 0, #123a63 22px, #0f3357 22px, #0f3357 44px);
  display: grid; place-items: center; text-align: center; padding: 1.5rem;
}
.map-holder p { color: #cfe0f2; font-size: .92rem; margin-bottom: 1rem; max-width: 34ch; }
.map-holder .map-pin { font-size: 2rem; margin-bottom: .5rem; }

/* =============================================================
   Legal pages
   ============================================================= */
.legal-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.legal-nav .container { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 600; font-size: .92rem; color: var(--blue-600); }
.legal-back:hover { color: var(--accent-600); }

.legal {
  max-width: 780px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) 20px 60px;
}
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--navy-800); margin-bottom: .6rem; }
.legal-updated { color: var(--ink-mute); font-size: .88rem; margin-bottom: 2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.3rem; color: var(--navy-800); margin: 2.2rem 0 .8rem; }
.legal h3 { font-size: 1.05rem; color: var(--navy-700); margin: 1.4rem 0 .5rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
.legal p { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.2rem; display: grid; gap: .45rem; }
.legal a { color: var(--blue-600); font-weight: 500; text-decoration: underline; }
.legal a:hover { color: var(--accent-600); }
.legal .data-box {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.3rem; margin: 1.2rem 0 1.6rem;
}
.legal .data-box p { margin-bottom: .35rem; font-size: .96rem; }
.legal .data-box strong { color: var(--navy-800); }
.legal table.cookie-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.6rem; font-size: .9rem; }
.legal .cookie-table th, .legal .cookie-table td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; }
.legal .cookie-table th { background: var(--bg-soft); font-family: var(--display); color: var(--navy-800); font-weight: 600; }
.legal .note { font-size: .85rem; color: var(--ink-mute); background: var(--accent-100); border-left: 3px solid var(--accent); padding: .8rem 1rem; border-radius: 0 8px 8px 0; }
.table-scroll { overflow-x: auto; }
