/* =============================================================
   AIRCONS SPAIN — styles.css
   Archetype 04 · Glassmorphism Modern (cool climate palette)
   Single file, sectioned. Vanilla CSS, no preprocessor.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:         #f2f7f8;   /* ice white */
  --bg-2:       #e4eff2;   /* pale sky */
  --surface:    #ffffff;
  --glass:      rgba(255, 255, 255, 0.55);
  --glass-2:    rgba(255, 255, 255, 0.30);
  --glass-line: rgba(255, 255, 255, 0.65);
  --ink:        #10262c;
  --ink-soft:   #294449;
  --ink-mute:   #5c7278;
  --accent:     #0ea5b7;   /* cool cyan / refrigerant blue */
  --accent-2:   #1c6f8c;   /* deep teal */
  --sun:        #ff8a5c;   /* warm coral — CTA / heat contrast */
  --sun-soft:   #ffd9c7;
  --mint:       #8fe3c7;
  --line:       rgba(16, 38, 44, 0.10);
  --line-soft:  rgba(16, 38, 44, 0.06);
  --shadow-color: 200 45% 30%;

  --serif: "Fraunces", Georgia, serif; /* not used — kept for safety */
  --display: "Manrope", "Inter Display", -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1240px;
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 76px;
}

@property --mesh-x { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-y { syntax: "<percentage>"; inherits: false; initial-value: 30%; }
@property --mesh-x2 { syntax: "<percentage>"; inherits: false; initial-value: 70%; }
@property --mesh-y2 { syntax: "<percentage>"; inherits: false; initial-value: 70%; }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); color: var(--ink); font-weight: 800; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - 2rem, 1440px); margin-inline: auto; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1.1rem; background: var(--ink); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(14,165,183,.18);
}

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head.center { max-width: 680px; margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-mute); font-size: 1.08rem; margin-top: .9rem; }

.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--glass-line);
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.lede { font-size: 1.2rem; color: var(--ink-mute); max-width: 60ch; }

/* =============================================================
   5. Components
   ============================================================= */

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border-radius: 100px;
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  transition: transform .45s var(--ease-soft), box-shadow .45s var(--ease-soft), background .3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(14,165,183,.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -8px rgba(14,165,183,.6); }
.btn-sun {
  background: linear-gradient(135deg, var(--sun), #ff6a3d);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(255,106,61,.55);
}
.btn-sun:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -8px rgba(255,106,61,.6); }
.btn-ghost {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  color: var(--ink);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-3px); background: var(--surface); }
.btn:active { transform: translateY(-1px); transition-duration: .12s; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }

/* ---- Magnetic wrapper ---- */
.has-magnetic { display: inline-flex; position: relative; isolation: isolate; }
.magnetic-inner { display: inline-flex; align-items: center; justify-content: center; gap: inherit; will-change: transform; transition: transform .8s var(--ease-soft); }

/* ---- Glass card ---- */
.glass-card {
  position: relative;
  background: rgba(255,255,255,0.75); /* solid fallback */
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft), background .3s;
}
@supports (backdrop-filter: blur(20px)) {
  .glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(16,38,44,.22);
}
.glass-card .card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; margin-bottom: 1.1rem;
}
.glass-card .card-icon svg { width: 26px; height: 26px; }
.glass-card h3 { margin-bottom: .5rem; }
.glass-card p { color: var(--ink-mute); font-size: .98rem; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav.is-scrolled {
  background: rgba(242,247,248,0.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--ink);
}
.logo .logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--mint));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.logo .logo-mark svg { width: 19px; height: 19px; }
.logo span { color: var(--accent-2); }

.nav-links { display: none; align-items: center; gap: 1.9rem; }
@media (min-width: 960px) { .nav-links { display: flex; } }
.nav-link { position: relative; padding: .3rem 0; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--accent-2); }

.nav-actions { display: flex; align-items: center; gap: .7rem; }
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .8rem; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--glass-line);
  font-weight: 700; font-size: .82rem; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lang-menu {
  position: absolute; top: calc(100% + .6rem); right: 0;
  min-width: 160px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 24px 50px -15px rgba(16,38,44,.3);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
}
.lang-switch.is-open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .7rem; border-radius: 8px; font-size: .92rem; font-weight: 600;
}
.lang-menu a:hover { background: var(--bg-2); }
.lang-menu a[aria-current="true"] { color: var(--accent-2); }

.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.hamburger {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line);
}
@media (min-width: 960px) { .hamburger { display: none; } }
.hamburger span { position: relative; width: 18px; height: 2px; background: var(--ink); display: block; }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease-out);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(242,247,248,0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-soft);
}
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile a { font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.nav-mobile .btn { margin-top: 1rem; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: clip; isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-mesh {
  position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(38% 42% at var(--mesh-x) var(--mesh-y), rgba(14,165,183,.38), transparent 65%),
    radial-gradient(34% 38% at var(--mesh-x2) var(--mesh-y2), rgba(143,227,199,.42), transparent 65%),
    radial-gradient(50% 50% at 50% 100%, rgba(255,138,92,.16), transparent 70%),
    var(--bg);
  filter: blur(60px) saturate(140%);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%   { --mesh-x: 20%; --mesh-y: 20%; --mesh-x2: 78%; --mesh-y2: 70%; }
  50%  { --mesh-x: 34%; --mesh-y: 46%; --mesh-x2: 64%; --mesh-y2: 30%; }
  100% { --mesh-x: 20%; --mesh-y: 20%; --mesh-x2: 78%; --mesh-y2: 70%; }
}
.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 3.5rem); align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr .95fr; } }
.hero-copy .eyebrow { margin-bottom: 1.1rem; }
.hero-copy h1 { margin-bottom: 1.15rem; }
.hero-copy .lede { margin-bottom: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }

.hero-visual { position: relative; }
.hero-photo-frame {
  position: relative; border-radius: 28px; overflow: clip;
  box-shadow: 0 50px 90px -30px rgba(16,38,44,.35);
}
.hero-photo-frame img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
@media (min-width: 720px) { .hero-photo-frame img { aspect-ratio: 5/4.6; } }
.hero-float-card {
  position: absolute; left: -1.2rem; bottom: -1.4rem;
  max-width: 240px;
  animation: floatY 6s ease-in-out infinite;
}
@media (max-width: 539px) { .hero-float-card { left: .6rem; bottom: -1rem; max-width: 200px; } }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-float-card .glass-card { padding: 1.1rem 1.3rem; }
.hero-float-card .stat-num { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--accent-2); }
.hero-float-card .stat-label { font-size: .82rem; color: var(--ink-mute); }

/* ---- Coverage list ---- */
.coverage-wrap {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) { .coverage-wrap { grid-template-columns: .9fr 1.1fr; } }
.coverage-photo { border-radius: var(--radius); overflow: clip; box-shadow: 0 40px 80px -30px rgba(16,38,44,.3); }
.coverage-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.coverage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.zone-chip {
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 1rem; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--glass-line);
  font-weight: 600; font-size: .93rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .4s var(--ease-soft), background .3s;
}
.zone-chip:hover { transform: translateY(-3px); background: var(--surface); }
.zone-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---- Grids ---- */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---- Split content section ---- */
.split {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center;
}
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .split.reverse .split-media { order: 2; } .split.reverse .split-text { order: 1; } }
.split-media { border-radius: var(--radius); overflow: clip; box-shadow: 0 40px 80px -28px rgba(16,38,44,.28); }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-text .eyebrow { margin-bottom: .8rem; }
.split-text h2 { margin-bottom: 1rem; }
.split-text p { color: var(--ink-mute); margin-bottom: 1rem; }
.split-text ul { display: grid; gap: .65rem; margin-top: 1.2rem; }
.split-text li { display: flex; gap: .65rem; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); }
.check-ico { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; margin-top: .1rem; }
.check-ico svg { width: 13px; height: 13px; color: var(--ink); }

/* ---- Anchor service blocks (installation page) ---- */
.service-anchor { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.anchor-nav {
  display: flex; flex-wrap: wrap; gap: .6rem;
  padding: 1rem; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  margin-bottom: 3rem;
}
.anchor-nav a {
  padding: .55rem 1.1rem; border-radius: 100px; font-weight: 700; font-size: .88rem;
  color: var(--ink-soft); transition: background .3s, color .3s;
}
.anchor-nav a:hover { background: var(--surface); color: var(--accent-2); }

/* ---- Icon-only glass tile (used where no photo exists) ---- */
.icon-tile {
  border-radius: var(--radius); padding: 2.2rem;
  background: linear-gradient(160deg, rgba(14,165,183,.14), rgba(143,227,199,.18));
  border: 1px solid var(--glass-line);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .9rem;
  aspect-ratio: 4/3;
}
.icon-tile .card-icon { width: 68px; height: 68px; margin-bottom: 0; }
.icon-tile .card-icon svg { width: 34px; height: 34px; }
.icon-tile h3 { font-size: 1.05rem; }
.icon-tile p { font-size: .9rem; color: var(--ink-mute); }

/* ---- Steps ---- */
.steps { display: grid; gap: 1.4rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: .5rem; }
.step-num {
  font-family: var(--display); font-weight: 800; font-size: 2.2rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent); opacity: .5; display: block; margin-bottom: .6rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { font-size: .92rem; color: var(--ink-mute); }

/* ---- Plans (maintenance) ---- */
.plan-card { display: flex; flex-direction: column; height: 100%; }
.plan-card .plan-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; margin-bottom: .3rem; }
.plan-card .plan-tag { font-size: .85rem; color: var(--accent-2); font-weight: 700; margin-bottom: 1rem; }
.plan-card ul { display: grid; gap: .55rem; margin: 1.2rem 0; flex: 1; }
.plan-card li { display: flex; gap: .55rem; font-size: .92rem; color: var(--ink-soft); }
.plan-card.is-featured { background: linear-gradient(165deg, rgba(14,165,183,.16), rgba(255,255,255,.7)); border-color: rgba(14,165,183,.35); }

/* ---- CTA banner ---- */
.cta-banner {
  position: relative; overflow: clip; border-radius: 28px;
  padding: clamp(2.4rem, 6vw, 4rem); text-align: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
}
.cta-banner::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 140%;
  background: radial-gradient(45% 55% at 30% 30%, rgba(255,255,255,.25), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: .8rem; }
.cta-banner p { color: rgba(255,255,255,.88); max-width: 52ch; margin-inline: auto; margin-bottom: 1.8rem; font-size: 1.06rem; }
.cta-banner .btn-ghost { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,.28); }
.cta-banner .btn-sun { box-shadow: 0 14px 30px -10px rgba(0,0,0,.35); }

/* ---- Team / about visual ---- */
.about-hero-media { border-radius: var(--radius); overflow: clip; box-shadow: 0 40px 80px -28px rgba(16,38,44,.28); }
.about-hero-media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.values-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 720px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Contact ---- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-methods { display: grid; gap: 1rem; margin-top: 1.6rem; }
.contact-method {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .4s var(--ease-soft);
}
.contact-method:hover { transform: translateY(-3px); }
.contact-method .card-icon { width: 44px; height: 44px; margin-bottom: 0; flex-shrink: 0; }
.contact-method .card-icon svg { width: 22px; height: 22px; }
.contact-method strong { display: block; font-size: .98rem; color: var(--ink); }
.contact-method span { font-size: .87rem; color: var(--ink-mute); }

.cal-embed-frame {
  border-radius: var(--radius); overflow: clip;
  border: 1px solid var(--line); background: var(--surface);
  min-height: 480px;
}
.cal-embed-frame iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }
.cal-fallback {
  padding: 2.4rem; text-align: center; display: grid; gap: 1rem; place-items: center;
}

/* ---- Form ---- */
.form-card { padding: clamp(1.6rem, 3vw, 2.4rem); }
.field { position: relative; margin-bottom: 1.2rem; }
.field label {
  display: block; font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.7);
  font: inherit; color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(14,165,183,.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; gap: 1.2rem; }
@media (min-width: 540px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: .6rem; }

.cta-form { position: relative; transition: opacity .55s var(--ease-out), transform .55s var(--ease-soft); }
.cta-form.is-sent { opacity: 0; transform: translateY(-12px); pointer-events: none; position: absolute; inset: 0; }
.cta-form-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .9s linear infinite; }
.cta-form.is-sending .cta-form-label { opacity: 0; }
.cta-form.is-sending .cta-form-spinner { display: inline-block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-success {
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .7s var(--ease-out) .1s, transform .7s var(--ease-soft) .1s;
  text-align: center; padding: 2rem;
}
.cta-success.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cta-success .check-ico { width: 52px; height: 52px; margin: 0 auto 1rem; background: var(--mint); }
.cta-success .check-ico svg { width: 26px; height: 26px; }

/* ---- Footer ---- */
.footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--ink-mute); font-size: .92rem; margin-top: .9rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--display); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: .92rem; color: var(--ink-mute); transition: color .25s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--ink-mute);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-bottom a { color: var(--ink-mute); }
.footer-bottom a:hover { color: var(--accent-2); }
.footer-credits { font-size: .78rem; color: var(--ink-mute); }

/* ---- WhatsApp floating button ---- */
.whatsapp-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 220;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 16px 34px -10px rgba(37,211,102,.6);
  transition: transform .4s var(--ease-soft);
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-3px); }
.whatsapp-float svg { width: 28px; height: 28px; }
@media (min-width: 720px) { .whatsapp-float { right: 2rem; bottom: 2rem; } }

/* ---- Breadcrumb ---- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .84rem; color: var(--ink-mute); margin-bottom: 1.4rem; }
.breadcrumb a { color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* =============================================================
   6. Effects (reveal)
   ============================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* Halo behind sections */
.section-halo { position: relative; }
.section-halo::before {
  content: ""; position: absolute; inset: -60% -10% -40% -10%; z-index: -1;
  background: radial-gradient(45% 40% at 50% 30%, rgba(14,165,183,.12), transparent 72%);
  filter: blur(90px); pointer-events: none;
}

/* =============================================================
   7. "Próximamente" tool teaser
   ============================================================= */
.soon-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem;
  padding: 1.6rem 1.9rem;
}
.soon-card .soon-text strong { display: block; font-family: var(--display); font-size: 1.05rem; color: var(--ink); margin-bottom: .25rem; }
.soon-card .soon-text span { font-size: .9rem; color: var(--ink-mute); }
.soon-badge {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sun); background: var(--sun-soft); padding: .3rem .65rem; border-radius: 100px;
}

/* =============================================================
   8. Responsive tweaks
   ============================================================= */
@media (min-width: 540px)  { .container { width: min(100% - 3rem, var(--container)); } }
@media (min-width: 1280px) { .section { padding-block: clamp(4rem, 6vw, 7rem); } }

/* =============================================================
   9. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-float-card { animation: none; }
  .hero-mesh { animation-duration: 60s; }
}

/* =============================================================
   10. Zone / locality landing pages (/zonas/[localidad]/)
   ============================================================= */

/* ---- Neighbourhood / urbanización chips (reuses zone-chip look, non-interactive) ---- */
.hood-chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.hood-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .55rem .95rem; border-radius: 100px;
  background: var(--glass); border: 1px solid var(--glass-line);
  font-weight: 600; font-size: .86rem; color: var(--ink-soft);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hood-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; }

/* ---- Technical note callout (salinity / dry-heat) ---- */
.tech-note {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.6rem 1.8rem; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(14,165,183,.10), rgba(255,255,255,.6));
  border: 1px solid var(--glass-line);
  border-left: 4px solid var(--accent);
}
.tech-note .card-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 0; }
.tech-note .card-icon svg { width: 24px; height: 24px; }
.tech-note h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.tech-note p { color: var(--ink-mute); font-size: .95rem; margin: 0; }
.tech-note p + p { margin-top: .6rem; }

/* ---- Orientative pricing cards ---- */
.price-card .price-name { font-family: var(--display); font-weight: 800; font-size: 1.1rem; margin-bottom: .3rem; }
.price-card .price-value { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: var(--accent-2); margin: .5rem 0 .3rem; }
.price-card .price-value small { font-family: var(--sans); font-weight: 600; font-size: .68rem; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .05em; display: block; margin-top: .2rem; }
.price-card p { color: var(--ink-mute); font-size: .92rem; }
.price-disclaimer {
  margin-top: 1.6rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  background: rgba(255,138,92,.10); border: 1px solid rgba(255,138,92,.28);
  font-size: .86rem; color: var(--ink-soft);
}

/* ---- Second-home / non-resident owners banner ---- */
.second-home {
  display: grid; gap: 1.6rem; align-items: center;
  padding: clamp(1.8rem, 4vw, 2.6rem); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(28,111,140,.12), rgba(143,227,199,.16));
  border: 1px solid var(--glass-line);
}
@media (min-width: 860px) { .second-home { grid-template-columns: auto 1fr; } }
.second-home .card-icon { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 0; }
.second-home .card-icon svg { width: 30px; height: 30px; }
.second-home h3 { margin-bottom: .5rem; }
.second-home p { color: var(--ink-soft); font-size: .98rem; }

/* ---- Reviews placeholder ---- */
.reviews-soon {
  text-align: center; padding: clamp(2rem, 5vw, 3rem);
}
.reviews-soon .stars { display: flex; justify-content: center; gap: .3rem; margin-bottom: 1rem; }
.reviews-soon .stars svg { width: 22px; height: 22px; color: var(--sun-soft); }
.reviews-soon h3 { margin-bottom: .6rem; }
.reviews-soon p { color: var(--ink-mute); max-width: 46ch; margin-inline: auto; }

/* ---- FAQ accordion (native <details>) ---- */
.faq-list { display: grid; gap: .9rem; }
.faq-item {
  border-radius: var(--radius-sm); border: 1px solid var(--glass-line);
  background: var(--glass-2); overflow: clip;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.4rem; cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex-shrink: 0; width: 20px; height: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .4s var(--ease-soft);
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item .faq-answer { padding: 0 1.4rem 1.3rem; color: var(--ink-mute); font-size: .96rem; max-width: 68ch; }

/* ---- Zones index grid ---- */
.zone-index-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 640px) { .zone-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .zone-index-grid { grid-template-columns: repeat(3, 1fr); } }
.zone-index-card { display: flex; flex-direction: column; height: 100%; }
.zone-index-card .zone-tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 100px; margin-bottom: .9rem;
}
.zone-index-card .zone-tag.is-coast { color: var(--accent-2); background: rgba(14,165,183,.14); }
.zone-index-card .zone-tag.is-inland { color: #b9660f; background: rgba(255,138,92,.16); }
.zone-index-card h3 { margin-bottom: .5rem; }
.zone-index-card p { color: var(--ink-mute); font-size: .92rem; flex: 1; }
.zone-index-card .zone-link {
  margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; font-size: .9rem; color: var(--accent-2);
}
.zone-index-card .zone-link svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---- Blog cross-link strip ---- */
.blog-links { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 720px) { .blog-links { grid-template-columns: repeat(2, 1fr); } }
.blog-link-card {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem;
  border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--glass-line);
  font-weight: 700; font-size: .93rem; color: var(--ink-soft);
  transition: transform .4s var(--ease-soft), background .3s;
}
.blog-link-card:hover { transform: translateY(-3px); background: var(--surface); }
.blog-link-card svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--accent-2); }

/* =============================================================
   11. Blog (/blog/, /en/blog/)
   ============================================================= */

/* ---- Article hero meta row (date · author · reading time) ---- */
.article-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center;
  margin-top: 1.1rem; font-size: .88rem; color: var(--ink-mute); font-weight: 600;
}
.article-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article-meta svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent-2); }

/* ---- Cover photo ---- */
.article-cover {
  border-radius: var(--radius); overflow: clip; margin-top: 2rem;
  box-shadow: 0 40px 80px -30px rgba(16,38,44,.3);
}
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ---- Prose body ---- */
.article-body { max-width: 74ch; margin-inline: auto; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); margin: 2.6rem 0 1.1rem; }
.article-body h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 1.9rem 0 .8rem; }
.article-body p { color: var(--ink-soft); font-size: 1.03rem; margin-bottom: 1.25rem; }
.article-body p.lede-p { font-size: 1.14rem; color: var(--ink-soft); }
.article-body ul, .article-body ol { display: grid; gap: .65rem; margin: 0 0 1.5rem; counter-reset: item; }
.article-body ul li, .article-body ol li {
  display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); font-size: 1rem;
}
.article-body ul li::before {
  content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); margin-top: .55rem;
}
.article-body ol li { counter-increment: item; }
.article-body ol li::before {
  content: counter(item); flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: .74rem;
  display: grid; place-items: center; margin-top: .05rem;
}
.article-body strong { color: var(--ink); }
.article-body a { color: var(--accent-2); font-weight: 700; text-underline-offset: 3px; text-decoration: underline; }
.article-body a:hover { color: var(--accent); }
.article-body blockquote {
  margin: 1.8rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--accent);
  background: var(--glass-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink-soft); font-style: italic; font-size: 1.02rem;
}
.article-table-wrap { overflow-x: auto; margin: 1.8rem 0; border-radius: var(--radius-sm); border: 1px solid var(--glass-line); }
.article-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 480px; }
.article-table th, .article-table td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
.article-table th { background: var(--bg-2); font-family: var(--display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.article-table tr:last-child td { border-bottom: 0; }
.article-note {
  margin: 1.8rem 0; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm);
  background: rgba(255,138,92,.10); border: 1px solid rgba(255,138,92,.28);
  font-size: .92rem; color: var(--ink-soft);
}
.article-note strong { display: block; margin-bottom: .3rem; color: var(--ink); }

/* ---- Related links strip inside an article (reuses .blog-links look) ---- */
.article-body + .related-links, .related-links { margin-top: 1rem; }

/* ---- Author box ---- */
.author-box {
  display: flex; align-items: center; gap: 1rem; margin-top: 3rem; padding: 1.4rem 1.6rem;
  border-radius: var(--radius); background: var(--glass); border: 1px solid var(--glass-line);
}
.author-box .card-icon { width: 48px; height: 48px; margin-bottom: 0; flex-shrink: 0; }
.author-box .card-icon svg { width: 24px; height: 24px; }
.author-box strong { display: block; color: var(--ink); font-size: .98rem; }
.author-box span { font-size: .87rem; color: var(--ink-mute); }

/* ---- Blog index grid ---- */
.blog-index-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 720px) { .blog-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog-index-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-index-card {
  display: flex; flex-direction: column; height: 100%; padding: 0; overflow: clip;
  background: rgba(255,255,255,0.75); border: 1px solid var(--glass-line); border-radius: var(--radius);
  transition: transform .55s var(--ease-soft), box-shadow .55s var(--ease-soft);
}
@supports (backdrop-filter: blur(20px)) {
  .blog-index-card { background: var(--glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
}
.blog-index-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(16,38,44,.22); }
.blog-index-card .blog-card-img { aspect-ratio: 16/10; overflow: clip; }
.blog-index-card .blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-soft); }
.blog-index-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-index-card .blog-card-body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.blog-index-card .blog-card-date {
  font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: .7rem;
}
.blog-index-card h3 { font-size: 1.12rem; margin-bottom: .6rem; line-height: 1.24; }
.blog-index-card p { color: var(--ink-mute); font-size: .92rem; flex: 1; }
.blog-index-card .zone-link { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--accent-2); }

/* ---- Featured/lead article card on the blog index ---- */
.blog-featured {
  display: grid; grid-template-columns: 1fr; gap: 0; overflow: clip; border-radius: var(--radius);
  background: rgba(255,255,255,0.75); border: 1px solid var(--glass-line); margin-bottom: 2.2rem;
  box-shadow: 0 40px 80px -30px rgba(16,38,44,.25);
}
@media (min-width: 860px) { .blog-featured { grid-template-columns: 1.1fr 1fr; } }
.blog-featured .blog-card-img { aspect-ratio: 16/10; }
@media (min-width: 860px) { .blog-featured .blog-card-img { aspect-ratio: auto; height: 100%; } }
.blog-featured .blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured .blog-card-body { padding: clamp(1.8rem, 4vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.blog-featured h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .8rem; }
.blog-featured p { color: var(--ink-mute); margin-bottom: 1.3rem; }

/* Explicit icon sizing for the "read more" arrow in blog cards (the shared
   .zone-link rule from the zones index has no svg size rule of its own —
   scoped here only, so /zonas/ itself stays untouched). */
.blog-index-card .zone-link svg, .blog-featured .zone-link svg { width: 18px; height: 18px; flex-shrink: 0; }
