/* ==========================================================
   FirstClass Services LLC — Quality in Every Stroke
   Mobile-first stylesheet
   ========================================================== */

:root {
  --color-bg-cream: #F6EDE9;
  --color-charcoal: #3A3A3A;
  --color-gold: #B99B76;
  --color-white: #FFFFFF;
  --color-soft-gray: #F1EFEC;
  --color-charcoal-dark: #242424;

  --color-gold-dark: #9C7F5B;
  --color-text-muted: #6B6660;
  --color-border: #E4DCD6;
  --color-whatsapp: #25D366;

  --font-heading: 'Montserrat', 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', 'Open Sans', system-ui, sans-serif;
  --font-script: 'Allura', 'Brush Script MT', cursive;

  --radius: 10px;
  --shadow: 0 8px 24px rgba(36, 36, 36, 0.08);
  --header-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-bg-cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 .6em;
  color: var(--color-charcoal);
}

h2 {
  font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  letter-spacing: .12em;
  text-transform: uppercase;
}

h3 { font-size: 1.1rem; letter-spacing: .04em; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.container-narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--color-gold); color: var(--color-white); }
.btn-gold:hover { background: var(--color-gold-dark); }
.btn-dark { background: var(--color-charcoal); color: var(--color-white); }
.btn-dark:hover { background: var(--color-charcoal-dark); }
.btn-outline-light { border-color: var(--color-white); color: var(--color-white); }
.btn-outline-light:hover { background: var(--color-white); color: var(--color-charcoal); }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-cream { background: var(--color-bg-cream); }
.section-white { background: var(--color-white); }
.section-gray { background: var(--color-soft-gray); }
.section-dark { background: var(--color-charcoal-dark); color: var(--color-white); }
.section-dark h2 { color: var(--color-white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 2px;
  margin: 16px auto 0;
  background: var(--color-gold);
}
.section-intro { color: var(--color-text-muted); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: .5em;
}
.eyebrow-light { color: var(--color-gold); }

.tagline-script {
  font-family: var(--font-script);
  font-size: 2.4rem;
  line-height: 1.1;
  color: var(--color-gold);
  margin-bottom: .2em;
}

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--color-bg-cream);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-h);
}
.site-header.is-scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
}

.brand img { height: 46px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--color-gold);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  font-family: var(--font-heading);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  border: 0;
  background: transparent;
  color: var(--color-charcoal);
  padding: 6px 10px;
  cursor: pointer;
}
.lang-switch button.is-active { background: var(--color-gold); color: var(--color-white); }

.header-phone,
.header-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  border-radius: 999px;
  height: 36px;
  min-width: 36px;
}
.header-phone { background: var(--color-charcoal); color: var(--color-white); padding: 0 10px; }
.header-phone svg { width: 16px; height: 16px; fill: currentColor; }
.header-phone span { display: none; font-size: .85rem; font-weight: 600; }
.header-wa { background: var(--color-whatsapp); }
.header-wa svg { width: 20px; height: 20px; fill: var(--color-white); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-charcoal); transition: transform .25s, opacity .25s; }
.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); }

.main-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-bg-cream);
  display: flex;
  flex-direction: column;
  padding: 8px 16px 20px;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  transform: translateY(-110%);
  visibility: hidden;
  transition: transform .3s, visibility .3s;
}
.main-nav.is-open { transform: none; visibility: visible; }
.main-nav a {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid var(--color-border);
}
.main-nav a:hover { color: var(--color-gold-dark); }

@media (min-width: 560px) {
  .header-phone span { display: inline; }
  .header-phone { padding: 0 14px; }
}

@media (min-width: 1180px) {
  :root { --header-h: 80px; }
  .brand img { height: 56px; }
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    flex-direction: row;
    gap: 18px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    visibility: visible;
  }
  .main-nav a { border: 0; padding: 6px 0; font-size: .74rem; white-space: nowrap; }
  .header-actions { flex-shrink: 0; }
  /* Longer Spanish labels: keep the header on one line on mid-size desktops */
  .header-phone span { display: none; }
  .header-phone { padding: 0 10px; }
}
@media (min-width: 1440px) {
  .header-phone span { display: inline; white-space: nowrap; }
  .header-phone { padding: 0 14px; }
}

main { padding-top: var(--header-h); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background: url('../img/hero-house-unsplash.jpg') center / cover no-repeat;
  color: var(--color-white);
  text-align: center;
}
/* phones/tablets: 1200px version of the hero photo (~200 KB instead of ~970 KB) */
@media (max-width: 1024px) {
  .hero { background-image: url('../img/m/hero-house-unsplash.jpg'); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36,36,36,.55) 0%, rgba(36,36,36,.72) 100%);
}
.hero-content { position: relative; padding-top: 48px; padding-bottom: 56px; }

/* Hero logo: larger than header/footer, soft drop-shadow, subtle double
   "heartbeat" pulse. The cream plate keeps the charcoal letters of the
   transparent logo legible over the dark photo overlay. The shadow lives on
   `filter` (not animated) so it stays visible for the whole animation. */
.hero-logo {
  display: inline-block;
  background: rgba(246, 237, 233, .94);
  padding: 22px 34px;
  border-radius: 14px;
  margin-bottom: 28px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .45));
  transform-origin: center;
  animation: heartbeat 1.8s ease-in-out infinite;
  will-change: transform;
}
.hero-logo img { width: min(520px, 76vw); }

@keyframes heartbeat {
  0%   { transform: scale(1); }
  12%  { transform: scale(1.08); }
  24%  { transform: scale(1); }
  36%  { transform: scale(1.12); }
  52%  { transform: scale(1); }
  100% { transform: scale(1); }
}

@media (max-width: 480px) {
  .hero-logo { padding: 16px 20px; margin-bottom: 22px; }
}

.hero-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 5.6rem);
  line-height: 1.05;
  color: var(--color-white);
  margin-bottom: .25em;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hero-sub {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: clamp(.95rem, 2.6vw, 1.1rem);
  opacity: .95;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ==========================================================
   PHOTO RIBBON ("teleprompter") — pure CSS infinite loop
   The track holds the photo list twice; moving it -50% lands
   on an identical frame, so the restart is invisible.
   ========================================================== */
.ribbon {
  background: var(--color-charcoal-dark);
  padding: 14px 0;
  overflow: hidden;
  border-bottom: 2px solid var(--color-gold);
}
.ribbon-track {
  display: flex;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 0;
  animation: ribbon-scroll 70s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track li { flex: none; margin-right: 12px; }
.ribbon-track img { height: 150px; width: auto; border-radius: 8px; }

@keyframes ribbon-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 640px) {
  .ribbon { padding: 10px 0; }
  .ribbon-track { animation-duration: 45s; }
  .ribbon-track li { margin-right: 8px; }
  .ribbon-track img { height: 90px; border-radius: 6px; }
}

/* ==========================================================
   SERVICE AREAS (city chips linking to /ciudades/)
   ========================================================== */
.areas-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 640px) { .areas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 960px) { .areas-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .areas-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.area-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-cream);
  color: var(--color-charcoal);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .03em;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.area-chip span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 639px) {
  /* 2 columns: a leftover last city is centered instead of hanging on the left */
  .areas-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
}
@media (max-width: 439px) {
  .area-chip { padding: 10px 12px; gap: 6px; font-size: .8rem; letter-spacing: 0; }
  .area-chip svg { width: 16px; height: 16px; }
}
.area-chip svg { flex: none; width: 18px; height: 18px; fill: var(--color-gold); transition: fill .2s; }
.area-chip:hover,
.area-chip:focus-visible { background: var(--color-charcoal); border-color: var(--color-charcoal); color: var(--color-white); transform: translateY(-2px); }
.area-chip:hover svg,
.area-chip:focus-visible svg { fill: var(--color-gold); }

/* ==========================================================
   PAINT BRANDS RIBBON (reuses .ribbon / .ribbon-track animation)
   ========================================================== */
.brands { background: var(--color-soft-gray); padding: 8px 0 56px; }
.brands-title {
  text-align: center;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  letter-spacing: .22em;
  margin-bottom: 20px;
}
.ribbon-brands { background: transparent; border: 0; padding: 4px 0; }
.ribbon-brands .ribbon-track { animation-duration: 45s; }
.ribbon-brands .ribbon-track li { margin-right: 14px; }
.brand-card {
  width: 210px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-gold);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(36, 36, 36, .06);
}
.brand-card .brand-icon { flex: none; width: 34px; height: 34px; }
.brand-card span {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--color-charcoal);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .ribbon-brands .ribbon-track { animation-duration: 32s; }
  .ribbon-brands .ribbon-track li { margin-right: 10px; }
  .brand-card { width: 196px; height: 70px; gap: 8px; padding: 0 12px; }
  .brand-card .brand-icon { width: 26px; height: 26px; }
  .brand-card span { font-size: .78rem; letter-spacing: .02em; }
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover { transform: translateY(-4px); }
.service-card.is-highlighted { border-color: var(--color-gold); box-shadow: 0 12px 32px rgba(185,155,118,.35); }
.service-img { aspect-ratio: 4 / 3; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: 22px 20px 24px; position: relative; }
.service-icon {
  position: absolute;
  top: -26px;
  right: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.service-icon svg { width: 24px; height: 24px; fill: var(--color-white); }
.service-body p { color: var(--color-text-muted); margin: 0; font-size: .95rem; }

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 10px); justify-self: center; }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(6, 1fr); }
  .services-grid > * { grid-column: span 2; }
  .services-grid > :nth-child(4) { grid-column: 2 / span 2; }
  .services-grid > :last-child:nth-child(odd) { grid-column: 4 / span 2; max-width: none; }
}

/* ==========================================================
   BEFORE & AFTER SLIDERS
   Desktop: 3 columns (2 rows of 3). Mobile: 2 columns,
   a leftover odd card spans the full row, centered.
   ========================================================== */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.ba-grid > .ba-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 420px;
  justify-self: center;
}
@media (min-width: 900px) {
  .ba-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .ba-grid > .ba-card:last-child:nth-child(odd) { grid-column: auto; max-width: none; }
}

.ba-card { margin: 0; min-width: 0; }
.ba-card figcaption {
  font-family: var(--font-heading);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 10px;
}

.ba-slider {
  --pos: 50%;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--color-soft-gray);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba-label {
  position: absolute;
  top: 10px;
  font-family: var(--font-heading);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(36,36,36,.72);
  color: var(--color-white);
  pointer-events: none;
}
.ba-label-before { left: 10px; }
.ba-label-after { right: 10px; background: rgba(185,155,118,.92); }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: var(--color-white);
  box-shadow: 0 0 6px rgba(0,0,0,.35);
}
.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-gold);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ba-handle span::before,
.ba-handle span::after {
  content: '';
  position: absolute;
  top: 50%;
  border: 6px solid transparent;
  transform: translateY(-50%);
}
.ba-handle span::before { left: 3px; border-right-color: var(--color-charcoal); }
.ba-handle span::after { right: 3px; border-left-color: var(--color-charcoal); }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible span { outline: 3px solid var(--color-gold); outline-offset: 2px; }

@media (max-width: 480px) {
  .ba-handle span { width: 30px; height: 30px; }
  .ba-label { font-size: .55rem; padding: 3px 6px; top: 6px; }
  .ba-label-before { left: 6px; }
  .ba-label-after { right: 6px; }
}

/* ==========================================================
   GALLERY
   ========================================================== */
.gallery-tabs,
.selector-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.gallery-tabs button,
.selector-options button {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-gold);
  background: transparent;
  color: var(--color-charcoal);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.gallery-tabs button:hover,
.selector-options button:hover { background: rgba(185,155,118,.15); }
.gallery-tabs button.is-active,
.selector-options button.is-active { background: var(--color-charcoal); border-color: var(--color-charcoal); color: var(--color-white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.gallery-item { margin: 0; min-width: 0; }
.gallery-item[hidden] { display: none; }
.gallery-item a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--color-white);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item a:hover img { transform: scale(1.05); }
.gallery-item figcaption { font-size: .8rem; color: var(--color-text-muted); margin-top: 6px; text-align: center; }

/* ==========================================================
   LIGHTBOX
   ========================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20,20,20,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1000px; text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: var(--color-white); margin-top: 12px; font-size: .9rem; }
.lightbox button {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: var(--color-white);
  font-size: 2rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox button:hover { background: var(--color-gold); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
body.no-scroll { overflow: hidden; }

/* ==========================================================
   SERVICE SELECTOR
   ========================================================== */
.selector-placeholder {
  text-align: center;
  color: var(--color-text-muted);
  padding: 32px 16px;
  border: 1px dashed var(--color-gold);
  border-radius: var(--radius);
}
.selector-panel {
  display: grid;
  gap: 24px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  animation: fadeUp .35s ease;
}
.selector-panel[hidden] { display: none; }
.selector-text p { color: var(--color-text-muted); }
.selector-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.selector-photos a { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; }
.selector-photos img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .selector-panel { grid-template-columns: 1fr 1.3fr; align-items: center; padding: 32px; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ==========================================================
   REVIEWS
   ========================================================== */
.reviews-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .reviews-grid { grid-template-columns: repeat(4, 1fr); } }
.review-card {
  margin: 0;
  background: var(--color-bg-cream);
  border-radius: var(--radius);
  padding: 24px 22px;
  border-top: 3px solid var(--color-gold);
}
.review-card p { font-style: italic; }
.review-card footer { font-family: var(--font-heading); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--color-gold-dark); }
.stars { color: var(--color-gold); letter-spacing: .15em; margin-bottom: 10px; }

/* ==========================================================
   ESTIMATE FORM
   ========================================================== */
.estimate-wrap { display: grid; gap: 32px; }
.estimate-info h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--color-border); }
.contact-list a { text-decoration: none; font-weight: 600; word-break: break-word; }

.estimate-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 16px;
  background: var(--color-white);
  padding: 24px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { display: flex; flex-direction: column; min-width: 0; }
.form-row label { font-family: var(--font-heading); font-size: .78rem; font-weight: 600; letter-spacing: .08em; margin-bottom: 6px; }
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-soft-gray);
  color: var(--color-charcoal);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { outline: 2px solid var(--color-gold); outline-offset: 1px; background: var(--color-white); }
.form-row.has-error input,
.form-row.has-error select { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .78rem; min-height: 1em; margin-top: 4px; }
.form-status { margin: 12px 0 0; font-size: .9rem; text-align: center; }
.form-status.is-ok { color: #2E7D32; }

@media (min-width: 640px) {
  .estimate-form { grid-template-columns: 1fr 1fr; padding: 32px; }
  .form-row-full { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .estimate-wrap { grid-template-columns: 1fr 1.4fr; align-items: start; gap: 48px; }
}

/* ==========================================================
   TIPS
   ========================================================== */
.tips-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .tips-grid { grid-template-columns: repeat(3, 1fr); } }
.tip-card { background: var(--color-white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.tip-num { font-family: var(--font-heading); font-size: 2rem; font-weight: 300; color: var(--color-gold); display: block; margin-bottom: 8px; }
.tip-card p { color: var(--color-text-muted); margin: 0; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 18px 40px 18px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-gold);
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--color-text-muted); padding-bottom: 12px; }

/* ==========================================================
   CTA + MAP
   ========================================================== */
.cta-wrap { display: grid; gap: 32px; align-items: center; }
.cta-text { text-align: center; }
.cta-text p { color: rgba(255,255,255,.82); }
.map-wrap { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #333; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 900px) {
  .cta-wrap { grid-template-columns: 1fr 1fr; gap: 48px; }
  .cta-text { text-align: left; }
  .cta-text .hero-ctas { justify-content: flex-start; }
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer { background: var(--color-charcoal-dark); color: rgba(255,255,255,.8); padding-top: 56px; border-top: 1px solid rgba(255,255,255,.08); }
.site-footer h4 { color: var(--color-gold); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
.footer-brand img { width: 240px; background: var(--color-bg-cream); padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.footer-list,
.city-links { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: 4px 0; word-break: break-word; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--color-gold); }
.city-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; font-size: .9rem; }
.social { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; }
.social a { border-bottom: 1px solid var(--color-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .82rem; text-align: center; }
.footer-bottom p { margin: 0; }
.footer-bottom .footer-credit { margin-top: 6px; font-size: .7rem; color: rgba(255,255,255,.4); }
.footer-credit a { color: inherit; }
.site-footer .footer-credit a:hover { color: rgba(255,255,255,.7); }
@media (min-width: 640px) { .city-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.2fr 1fr 2fr; } }

/* ==========================================================
   FLOATING WHATSAPP
   ========================================================== */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: var(--color-white); }

/* ==========================================================
   FLOATING CHAT (stacked above the WhatsApp button)
   ========================================================== */
.chat-float {
  position: fixed;
  right: 16px;
  bottom: 86px;
  z-index: 200;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid var(--color-gold);
  background: var(--color-bg-cream);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .2s;
}
.chat-float:hover { transform: scale(1.08); }
.chat-float .chat-avatar { width: 100%; height: 100%; display: block; border-radius: 50%; }
.chat-float .chat-online {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2FBF71;
  border: 2px solid var(--color-white);
}
.chat-float .chat-x {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-charcoal);
  color: var(--color-white);
  font-size: 15px;
  line-height: 20px;
  text-align: center;
  display: none;
}
.chat-float[aria-expanded="true"] .chat-x { display: block; }

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 156px;
  z-index: 210;
  width: min(360px, calc(100vw - 32px));
  height: min(500px, calc(100svh - 180px));
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
  animation: fadeUp .25s ease;
}
.chat-panel[hidden] { display: none; }

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--color-charcoal-dark);
  color: var(--color-white);
  border-bottom: 2px solid var(--color-gold);
}
.chat-header-avatar { position: relative; flex: none; width: 44px; height: 44px; }
.chat-header-avatar .chat-avatar { width: 100%; height: 100%; display: block; border-radius: 50%; border: 2px solid var(--color-gold); }
.chat-header-avatar .chat-online { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #2FBF71; border: 2px solid var(--color-charcoal-dark); }
.chat-header .chat-status { display: inline-flex; align-items: center; gap: 5px; }
.chat-header .chat-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2FBF71; }
.chat-header strong { display: block; font-family: var(--font-heading); font-size: .85rem; font-weight: 600; letter-spacing: .06em; }
.chat-header span { font-size: .72rem; color: var(--color-gold); }
.chat-header .chat-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--color-white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: var(--color-bg-cream);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.45;
  word-wrap: break-word;
}
.chat-msg-bot { align-self: flex-start; background: var(--color-white); color: var(--color-charcoal); border-bottom-left-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.chat-msg-user { align-self: flex-end; background: var(--color-charcoal); color: var(--color-white); border-bottom-right-radius: 4px; }

.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 100%; }
.chat-quick button,
.chat-quick a {
  font-family: var(--font-body);
  font-size: .8rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-gold);
  background: var(--color-white);
  color: var(--color-charcoal);
  text-decoration: none;
  cursor: pointer;
}
.chat-quick button:hover,
.chat-quick a:hover { background: var(--color-gold); color: var(--color-white); }
.chat-quick .chat-cta-wa { background: var(--color-whatsapp); border-color: var(--color-whatsapp); color: var(--color-white); font-weight: 600; }
.chat-quick .chat-cta-form { background: var(--color-charcoal); border-color: var(--color-charcoal); color: var(--color-white); font-weight: 600; }

.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--color-white); border-radius: 14px; }
.chat-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--color-gold); animation: chatDot 1s infinite ease-in-out; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--color-border); background: var(--color-white); }
.chat-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom on focus */
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-soft-gray);
}
.chat-form input:focus { outline: 2px solid var(--color-gold); outline-offset: 1px; background: var(--color-white); }
.chat-form button {
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--color-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-form button svg { width: 18px; height: 18px; fill: var(--color-white); }

/* ==========================================================
   EXIT-INTENT POPUP (5% first-service coupon)
   ========================================================== */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(20, 20, 20, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeUp .3s ease;
}
.exit-popup[hidden] { display: none; }
.exit-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  background: var(--color-bg-cream);
  border-radius: 16px;
  border-top: 4px solid var(--color-gold);
  padding: 36px 26px 26px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.exit-card img { width: 190px; margin: 0 auto 10px; }
.exit-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(58,58,58,.08);
  color: var(--color-charcoal);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.exit-close:hover { background: var(--color-charcoal); color: var(--color-white); }
.exit-eyebrow { font-family: var(--font-script); font-size: 1.9rem; color: var(--color-gold-dark); margin: 0; line-height: 1.2; }
.exit-card h2 { font-size: clamp(1.4rem, 5vw, 1.8rem); letter-spacing: .06em; margin: 4px 0 8px; }
.exit-card h2::after { display: none; }
.exit-card p { color: var(--color-text-muted); font-size: .95rem; }
.exit-code {
  display: inline-block;
  margin: 6px 0 18px;
  padding: 10px 20px;
  border: 2px dashed var(--color-gold);
  border-radius: 10px;
  background: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--color-charcoal);
  user-select: all;
}
.exit-claim { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 18px; letter-spacing: .08em; white-space: nowrap; }
.exit-claim svg { width: 20px; height: 20px; fill: currentColor; }
.exit-fine { font-size: .75rem !important; margin: 12px 0 0; }

/* ==========================================================
   MOBILE TOUCH TARGETS & SMALL-SCREEN TUNING
   Every tappable control is at least 44x44px (Apple/Google guideline).
   ========================================================== */
.lang-switch button { min-width: 44px; min-height: 44px; }
.header-phone, .header-wa { height: 44px; min-width: 44px; }
.nav-toggle { width: 44px; height: 44px; padding: 10px; }
.gallery-tabs button,
.selector-options button { min-height: 44px; }
.chat-quick button,
.chat-quick a { min-height: 44px; display: inline-flex; align-items: center; }
.chat-header .chat-close { width: 44px; height: 44px; flex: none; }
.chat-header > div { min-width: 0; }
.chat-form button { width: 44px; height: 44px; }
.form-row input,
.form-row select,
.form-row textarea { min-height: 48px; font-size: 16px; } /* 16px avoids iOS zoom on focus */
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-list a,
.city-links a,
.social a { display: inline-flex; align-items: center; min-height: 44px; }
.city-links a { min-width: 44px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.city-links { gap: 0 16px; }
.footer-list li { padding: 0; }
.social { gap: 4px 18px; }
.social a { border-bottom: 0; text-decoration: underline; text-decoration-color: var(--color-gold); text-underline-offset: 4px; }
.faq-item summary { min-height: 44px; }
/* before/after: the whole photo is draggable; the knob also gets a 44px hit area */
.ba-handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }

@media (max-width: 1179px) {
  .main-nav a { min-height: 48px; display: flex; align-items: center; }
}

@media (max-width: 439px) {
  /* Header must fit logo + ES/EN + call + menu at 44px each; the floating
     WhatsApp button is always on screen, so the header copy is hidden here. */
  .header-wa { display: none; }
  .brand img { height: 40px; }
  .header-actions { gap: 6px; }
  .lang-switch button { min-width: 44px; padding: 6px 8px; }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(2.6rem, 11.5vw, 3.4rem); }
  .hero-sub { font-size: .95rem; }
  .eyebrow { letter-spacing: .2em; }
  .city-hero { padding: 64px 0 56px; }
  main .city-hero h1 { letter-spacing: .03em; font-size: clamp(1.4rem, 6.2vw, 1.9rem); }
  .tagline-script { font-size: 2rem; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }
  /* floating buttons: slightly smaller, clear 12px gap, and room at the end of
     the page so they never sit on top of the footer's last lines */
  .wa-float, .chat-float { width: 54px; height: 54px; }
  .wa-float { right: 14px; bottom: 14px; }
  .chat-float { right: 14px; bottom: 80px; }
  .wa-float svg { width: 30px; height: 30px; }
  .chat-panel { right: 12px; bottom: 146px; width: calc(100vw - 24px); height: min(500px, calc(100svh - 160px)); }
  .footer-bottom { padding-bottom: 150px; }
}

@media (max-height: 620px) {
  .exit-card { padding: 28px 20px 20px; }
  .exit-card img { width: 150px; margin-bottom: 4px; }
  .exit-eyebrow { font-size: 1.6rem; }
  .exit-card p { font-size: .88rem; margin-bottom: .6em; }
  .exit-code { margin: 4px 0 12px; }
}

/* ==========================================================
   CITY PAGES
   ========================================================== */
.city-hero {
  position: relative;
  background: center / cover no-repeat;
  color: var(--color-white);
  text-align: center;
  padding: 88px 0 72px;
}
.city-hero h1 {
  font-size: clamp(1.7rem, 5.5vw, 3rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-white);
  position: relative;
}
.city-hero .hero-sub,
.city-hero .hero-ctas,
.city-hero .tagline-script { position: relative; }
.city-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.city-services { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.city-services li { background: var(--color-white); border: 1px solid var(--color-gold); border-radius: 999px; padding: 6px 14px; font-size: .85rem; }
.city-map { max-width: 1000px; margin: 0 auto; }
.city-more { text-align: center; margin: 28px 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
