/* =========================================================
   A&M MULTISERVICES LLC — estilos
   Paleta extraída del logo oficial (ver brief, sección 4)
   ========================================================= */
:root {
  --color-navy: #081645;
  --color-navy-2: #0f2160;
  --color-green: #467900;
  --color-green-dark: #3a6500;
  --color-green-light: #7eba28;   /* solo acentos sobre navy (contraste) */
  --color-bg-light: #F5F5F5;
  --color-white: #FFFFFF;
  --color-charcoal: #2A2A2A;
  --color-muted: #5d6273;
  --color-line: #e2e4ea;
  --navy-rgb: 8, 22, 69;
  --green-rgb: 70, 121, 0;

  --grad-brand: linear-gradient(45deg, var(--color-green) 0%, #2a4d1e 45%, var(--color-navy) 100%);

  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow-sm: 0 2px 8px rgba(var(--navy-rgb), .06);
  --shadow: 0 18px 40px -18px rgba(var(--navy-rgb), .28);
  --shadow-green: 0 12px 28px -10px rgba(var(--green-rgb), .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg-light);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; color: var(--color-navy); }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.2rem); letter-spacing: .01em; }
p { margin: 0; }
address { font-style: normal; }
::selection { background: var(--color-green); color: #fff; }
:focus-visible { outline: 3px solid var(--color-green); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--color-green); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--color-green); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--color-green-light); }
.section { padding-block: clamp(64px, 10vw, 120px); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-lead { color: var(--color-muted); margin-top: 14px; font-size: 1.05rem; max-width: 62ch; }

.line-icon { --icon-bg: var(--color-white); color: var(--color-navy); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s, color .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--color-green); color: #fff; }
.btn-primary:hover { background: var(--color-green-dark); transform: translateY(-2px); box-shadow: var(--shadow-green); }
.btn-outline { background: transparent; color: var(--color-navy); border-color: rgba(var(--navy-rgb), .25); }
.btn-outline:hover { border-color: var(--color-navy); background: var(--color-navy); color: #fff; transform: translateY(-2px); }
.btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: #fff; color: var(--color-navy); border-color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- 1) Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  /* Sin backdrop-filter: crearía un containing block y rompería el menú móvil (position: fixed) */
  background: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), box-shadow .35s, border-color .35s;
}
.site-header.is-scrolled { --header-h: 64px; border-color: var(--color-line); box-shadow: var(--shadow-sm); }
.site-header::after { /* franja de marca */
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--grad-brand);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: block; flex: none; }
.brand img { height: calc(var(--header-h) - 26px); width: auto; transition: height .35s var(--ease); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 1.8vw, 26px); }
.main-nav a {
  position: relative; text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--color-navy);
  padding: 6px 0; white-space: nowrap; transition: color .25s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-green); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--color-green); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-mobile-actions { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--color-navy);
  padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--color-line); transition: border-color .3s, color .3s; white-space: nowrap;
}
.header-phone svg { width: 16px; height: 16px; color: var(--color-green); }
.header-phone:hover { border-color: var(--color-navy); }
.header-wa {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--color-green); border: 1.5px solid var(--color-line); transition: background-color .3s, color .3s, border-color .3s;
}
.header-wa svg { width: 20px; height: 20px; }
.header-wa:hover { background: var(--color-green); color: #fff; border-color: var(--color-green); }
.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 1.5px solid var(--color-line);
  background: var(--color-white); cursor: pointer; font-size: .75rem; font-weight: 700; letter-spacing: .05em; flex: none;
}
.lang-toggle span { padding: 9px 10px; line-height: 1; border-radius: 999px; color: var(--color-muted); transition: background-color .3s, color .3s; }
html[lang="es"] .lang-toggle [data-l="es"], html[lang="en"] .lang-toggle [data-l="en"] { background: var(--color-navy); color: #fff; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; flex: none;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--color-navy); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- 2) Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 clamp(110px, 14vw, 170px);
  color: #fff; background: var(--color-navy);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; animation: heroZoom 22s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
/* Degradado de marca: verde abajo-izquierda -> navy arriba-derecha (igual al banner oficial) */
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(45deg, rgba(var(--green-rgb), .9) 0%, rgba(32, 62, 30, .78) 38%, rgba(var(--navy-rgb), .9) 78%),
    linear-gradient(180deg, rgba(var(--navy-rgb), .25), rgba(var(--navy-rgb), .45));
}
.hero-content { max-width: var(--container); }
.hero-content > * { opacity: 0; transform: translateY(24px); animation: heroIn .9s var(--ease) forwards; }
.hero-content > :nth-child(1) { animation-delay: .05s; }
.hero-content > :nth-child(2) { animation-delay: .15s; }
.hero-content > :nth-child(3) { animation-delay: .3s; }
.hero-content > :nth-child(4) { animation-delay: .42s; }
.hero-content > :nth-child(5) { animation-delay: .55s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-green-light); box-shadow: 0 0 0 0 rgba(126, 186, 40, .7); animation: dot 2s infinite; }
@keyframes dot { 70% { box-shadow: 0 0 0 9px rgba(126, 186, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 186, 40, 0); } }
.hero-title {
  font-family: var(--font-display); font-weight: 400; color: #fff;
  font-size: clamp(3.3rem, 9.5vw, 7.4rem); line-height: .92; letter-spacing: .01em;
  margin-top: 22px; max-width: 12ch; text-wrap: balance;
}
.hero-title span { color: var(--color-green-light); display: block; }
.hero-text { color: rgba(255, 255, 255, .9); max-width: 54ch; margin-top: 22px; font-size: clamp(1rem, 2vw, 1.15rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-chips { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips li {
  font-size: .8rem; font-weight: 600; padding: 6px 13px; border-radius: 999px;
  background: rgba(var(--navy-rgb), .45); border: 1px solid rgba(255, 255, 255, .2);
}
.hero-swoosh { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(54px, 9vw, 120px); display: block; }

/* ---------- 3) Barra de confianza ---------- */
.trust { position: relative; z-index: 2; margin-top: clamp(28px, 4vw, 44px); }
.trust-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  border-bottom: 4px solid var(--color-green);
}
.trust-item { display: flex; align-items: center; gap: 16px; padding: 26px clamp(18px, 2.5vw, 30px); }
.trust-item + .trust-item { border-left: 1px solid var(--color-line); }
.trust-item .line-icon { width: 54px; height: 54px; flex: none; }
.trust-item h2 { font-size: clamp(1.6rem, 2.4vw, 1.95rem); line-height: 1; }
.trust-item p { color: var(--color-muted); font-size: .9rem; margin-top: 4px; line-height: 1.45; }

/* ---------- 4) Servicios ---------- */
.service-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service-card {
  display: flex; flex-direction: column; background: var(--color-white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--color-line); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s, opacity .8s var(--ease);
}
.service-card:hover { box-shadow: var(--shadow); border-color: rgba(var(--green-rgb), .45); }
.js .service-card.is-visible:hover { transform: translateY(-6px); }
.service-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dde1e8; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(var(--navy-rgb), .55)); }
.service-num { position: absolute; right: 14px; bottom: 6px; z-index: 1; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: rgba(255, 255, 255, .92); }
.service-body { position: relative; padding: 42px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.service-icon {
  position: absolute; top: -34px; left: 20px; width: 68px; height: 68px; border-radius: 50%;
  background: var(--color-white); display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(var(--navy-rgb), .35); border: 3px solid var(--color-white);
  outline: 2px solid var(--color-green); outline-offset: -6px;
}
.service-icon .line-icon { width: 40px; height: 40px; }
.service-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.95rem; letter-spacing: .01em; }
.service-card p { color: var(--color-muted); font-size: .94rem; margin-top: 8px; }
.sub-services { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sub-services li { font-size: .78rem; font-weight: 600; color: var(--color-navy); padding: 4px 10px; border-radius: 999px; background: rgba(var(--green-rgb), .1); border: 1px solid rgba(var(--green-rgb), .25); }
.service-link {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 700; font-size: .92rem; color: var(--color-green); text-decoration: none;
}
.service-link span:last-child { transition: transform .3s var(--ease); }
.service-link:hover span:last-child { transform: translateX(4px); }

.badge-real, .badge-progress {
  font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.2;
}
.badge-real { background: var(--color-green); color: #fff; }
.badge-progress { background: #fff; color: var(--color-navy); }
.service-media .badge-real { position: absolute; top: 12px; left: 12px; z-index: 1; }

/* ---------- 5) Galería ---------- */
.work { background: var(--color-white); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab {
  min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1.5px solid var(--color-line); background: var(--color-white); color: var(--color-navy);
  font-weight: 600; font-size: .9rem; transition: background-color .25s, color .25s, border-color .25s;
}
.tab:hover { border-color: var(--color-navy); }
.tab.is-active { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g-item {
  position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: #dde1e8; cursor: zoom-in; text-align: left;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(var(--navy-rgb), .82)); pointer-events: none; }
.g-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.g-item:hover img { transform: scale(1.06); }
.g-badges { position: absolute; top: 12px; left: 12px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.g-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; font-weight: 600; font-size: .9rem; line-height: 1.3; }
.g-item.g-in { animation: gIn .5s var(--ease) both; }
@keyframes gIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.gallery-note { margin-top: 20px; font-size: .85rem; color: var(--color-muted); text-align: center; }

/* ---------- 6) Reseñas ---------- */
.review-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.review { grid-column: span 2; }
.review {
  padding: 24px; border-radius: var(--radius); background: var(--color-white); border: 1px solid var(--color-line); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .4s, transform .5s var(--ease), opacity .8s var(--ease);
}
.review:hover { border-color: rgba(var(--green-rgb), .45); }
.review header { display: flex; align-items: center; gap: 12px; }
.review header > div { flex: 1; min-width: 0; }
.review h3 { font-size: 1rem; font-weight: 700; font-family: var(--font-sans); overflow-wrap: anywhere; }
.stars { color: #FBBC04; letter-spacing: 2px; font-size: .9rem; }
.stars.is-empty { color: #cfd3dc; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem; color: #fff; background: var(--color-navy);
}
.review:nth-child(2n) .avatar { background: var(--color-green); }
.g-mark { width: 22px; height: 22px; flex: none; }
.review > p { color: var(--color-charcoal); font-size: .96rem; line-height: 1.65; }
/* Placeholder visible a propósito para que no se publique sin reseñas reales */
.review--placeholder { border-style: dashed; border-color: rgba(var(--green-rgb), .5); }
.review--placeholder > p, .review--placeholder h3 { color: var(--color-muted); }
.review-cta {
  margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 14px 18px; flex-wrap: wrap; text-align: center;
}
.review-cta p { color: var(--color-muted); }
.review-cta svg { color: #1877F2; }
.review-cta .btn:hover svg { color: #fff; }

/* ---------- 7/8) Mapa + zona ---------- */
.location { background: var(--color-white); }
.location-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-line); min-height: 440px; background: #e7e9ee; box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }
.area-card {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(26px, 3.5vw, 40px); border-radius: var(--radius); color: #fff;
  background: var(--grad-brand); display: flex; flex-direction: column;
}
.area-card::before { /* casa del logo como marca de agua */
  content: ""; position: absolute; right: -40px; bottom: -30px; width: 220px; height: 220px; z-index: -1; opacity: .12;
  background: url("../img/web/logo-stacked-white.png") no-repeat center / contain;
}
.area-pin { width: 38px; height: 38px; color: var(--color-green-light); }
.area-card h3 { color: #fff; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.1rem, 4vw, 2.7rem); margin-top: 14px; }
.area-card p { color: rgba(255, 255, 255, .88); margin-top: 10px; }
.area-card address { margin-top: 18px; font-size: 1.08rem; font-weight: 600; }
.area-card address a { text-decoration: none; }
.area-card address a:hover { text-decoration: underline; }
.area-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.area-card .btn-primary { background: #fff; color: var(--color-navy); }
.area-card .btn-primary svg { color: var(--color-green); }
.area-card .btn-primary:hover { background: var(--color-bg-light); box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .5); }
.area-card .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .55); }
.area-card .btn-outline:hover { background: #fff; color: var(--color-navy); border-color: #fff; }

/* ---------- 9) Contacto ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; border-radius: calc(var(--radius) + 4px); overflow: hidden;
  box-shadow: var(--shadow); background: var(--color-white);
}
.contact-grid.container { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); padding-inline: 0; }
.contact-info { position: relative; padding: clamp(28px, 4vw, 48px); background: var(--color-navy); color: #fff; isolation: isolate; overflow: hidden; }
.contact-info::after { /* franja diagonal de marca */
  content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -210px; bottom: -230px; border-radius: 50%;
  background: var(--color-green); box-shadow: 0 0 0 26px rgba(var(--green-rgb), .25);
}
.contact-info h2 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.4rem); }
.contact-lead { color: rgba(255, 255, 255, .82); margin-top: 12px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; min-width: 0; }
.contact-list li > div { display: flex; flex-direction: column; min-width: 0; }
.ci-icon { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: var(--color-green-light); }
.ci-icon svg { width: 20px; height: 20px; }
.ci-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.contact-list a, .contact-list span:not(.ci-label):not(.ci-icon) { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--color-green-light); }
.contact-seals { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-seals li { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .03em; padding: 4px 12px; border-radius: 6px; background: rgba(255, 255, 255, .1); }

.contact-form-wrap { padding: clamp(24px, 4vw, 48px); }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: .87rem; font-weight: 600; color: var(--color-navy); }
.optional { color: var(--color-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font: inherit; font-size: 16px; /* 16px evita el zoom automático en iOS */
  color: var(--color-charcoal); background: var(--color-bg-light); border: 1.5px solid var(--color-line); border-radius: var(--radius-sm);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23081645' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: #9aa0ad; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c5cad5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-green); box-shadow: 0 0 0 3px rgba(var(--green-rgb), .18); background: #fff; }
.field-error { display: none; font-size: .82rem; color: #c62828; font-weight: 500; }
.field.has-error input { border-color: #c62828; }
.field.has-error .field-error { display: block; }
.contact-form .btn-lg { margin-top: 6px; }
.form-foot { text-align: center; color: var(--color-muted); font-size: .92rem; }
.form-foot a { color: var(--color-green); font-weight: 700; text-decoration: none; }

/* ---------- 10) Footer ---------- */
.site-footer { position: relative; padding-top: 64px; background: var(--color-navy); color: rgba(255, 255, 255, .8); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--grad-brand); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer-brand img { width: 220px; height: auto; }
.footer-slogan { font-family: var(--font-display); font-size: 1.45rem; letter-spacing: .02em; color: #fff; margin-top: 16px; }
.footer-brand p:not(.footer-slogan) { margin-top: 6px; max-width: 36ch; font-size: .93rem; }
.social { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background-color .25s; }
.social a:hover { background: var(--color-green); }
.social svg { width: 20px; height: 20px; color: #fff; }
.site-footer h3 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-green-light); font-weight: 700; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.site-footer a { text-decoration: none; transition: color .25s; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--color-green-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap;
  margin-top: 48px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-bottom p { font-size: .8rem; color: rgba(255, 255, 255, .55); }
.credit a { color: rgba(255, 255, 255, .7); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 95;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-green); color: #fff; text-decoration: none;
  box-shadow: 0 6px 20px rgba(var(--green-rgb), .5);
  transition: transform .3s var(--ease), bottom .45s var(--ease), box-shadow .3s;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(var(--green-rgb), .7); }
.whatsapp-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--color-green); opacity: .5; animation: wa-pulse 2.2s ease-out infinite; z-index: -1; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
.menu-open .whatsapp-float, .lb-open .whatsapp-float,
.menu-open .chat-float, .lb-open .chat-float { opacity: 0; pointer-events: none; }

/* ---------- Barra móvil ---------- */
.mobile-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(5, 12, 36, .95);
  display: grid; grid-template-columns: 72px 1fr 72px; align-items: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: lbIn .3s ease;
}
@keyframes lbIn { from { opacity: 0; } }
.lb-stage { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; height: 100vh; height: 100dvh; padding: 60px 0; min-width: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; border-radius: var(--radius-sm); animation: lbZoom .4s var(--ease); }
.lb-stage figcaption { color: #fff; font-weight: 600; text-align: center; }
@keyframes lbZoom { from { opacity: 0; transform: scale(.95); } }
.lightbox button { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; justify-self: center; transition: background-color .25s; }
.lightbox button:hover { background: var(--color-green); }
.lb-close { position: absolute; top: 14px; right: 14px; }
body.lb-open { overflow: hidden; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease), border-color .4s, box-shadow .5s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible:hover { transition-delay: 0s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .header-phone span { display: none; }
  .header-phone { padding: 0; width: 44px; height: 44px; justify-content: center; }
}

@media (max-width: 1100px) {
  :root { --header-h: 68px; }
  .site-header.is-scrolled { --header-h: 62px; }
  .menu-toggle { display: block; }
  .header-phone, .header-wa { display: none; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: flex-start; gap: 28px;
    padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto;
    background: var(--color-white);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), visibility .35s, transform .35s var(--ease);
  }
  .menu-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul li { border-bottom: 1px solid var(--color-line); opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
  .menu-open .main-nav ul li { opacity: 1; transform: none; }
  .menu-open .main-nav ul li:nth-child(2) { transition-delay: .04s; }
  .menu-open .main-nav ul li:nth-child(3) { transition-delay: .08s; }
  .menu-open .main-nav ul li:nth-child(4) { transition-delay: .12s; }
  .menu-open .main-nav ul li:nth-child(5) { transition-delay: .16s; }
  .menu-open .main-nav ul li:nth-child(6) { transition-delay: .2s; }
  .main-nav ul a { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; letter-spacing: .02em; padding: 12px 0 8px; }
  .main-nav ul a::after { display: none; }
  .nav-mobile-actions { display: grid; gap: 10px; }
  .nav-mobile-actions .btn-primary { color: #fff; }
  .nav-mobile-actions .btn-outline-light { color: var(--color-green); border-color: var(--color-green); background: transparent; }
  body.menu-open { overflow: hidden; }

  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
}

@media (max-width: 960px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--color-line); }
  .trust-item { padding: 18px 20px; }

  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .review { grid-column: auto; }
  .review:nth-child(3) { grid-column: 1 / -1; }

  .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .map-wrap, .map-wrap iframe { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .header-cta { display: none; }
  .brand img { height: 40px; }
  .site-header.is-scrolled .brand img { height: 36px; }

  .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); padding-bottom: 96px; }
  .hero-media img { object-position: center 30%; }
  .hero-eyebrow { font-size: .72rem; letter-spacing: .05em; padding: 7px 12px; }
  .hero-title { font-size: clamp(3rem, 14.5vw, 4.4rem); margin-top: 18px; }
  .hero-text { margin-top: 16px; }
  .hero-ctas { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .hero-chips { margin-top: 24px; gap: 6px; }
  .hero-chips li { font-size: .74rem; padding: 5px 11px; }

  .trust { margin-top: 22px; }
  .trust-item .line-icon { width: 46px; height: 46px; }

  .service-grid { grid-template-columns: 1fr; gap: 22px; }
  .service-media { aspect-ratio: 16 / 10; }

  /* Pestañas: una sola fila deslizable, de borde a borde */
  .tabs {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    margin-bottom: 18px;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
  .gallery-grid { gap: 10px; }
  .g-cap { font-size: .78rem; left: 10px; right: 10px; bottom: 9px; }
  .g-badges { top: 8px; left: 8px; gap: 4px; }
  .g-badges .badge-real, .g-badges .badge-progress { font-size: .6rem; padding: 4px 7px; }
  .g-item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

  .review-grid { grid-template-columns: 1fr; gap: 14px; }
  .review:nth-child(3) { grid-column: auto; }
  .review { padding: 20px; }
  .review-cta { flex-direction: column; }

  .map-wrap, .map-wrap iframe { min-height: 300px; }
  .area-actions { flex-direction: column; }
  .area-actions .btn { width: 100%; }

  .contact-grid.container { width: 100%; max-width: none; border-radius: 0; } /* de borde a borde */
  .contact-info::after { width: 260px; height: 260px; right: -150px; bottom: -170px; box-shadow: 0 0 0 18px rgba(var(--green-rgb), .25); }
  .contact-info, .contact-form-wrap { padding: 32px var(--gutter); }
  .field-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

  .mobile-bar {
    display: grid; grid-template-columns: auto 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-line); box-shadow: 0 -6px 20px -10px rgba(var(--navy-rgb), .25);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
    border-radius: 999px; text-decoration: none; font-weight: 700;
  }
  .mobile-bar-call { padding: 0 22px; border: 2px solid var(--color-navy); color: var(--color-navy); }
  .mobile-bar-call svg { width: 18px; height: 18px; color: var(--color-green); }
  .mobile-bar-cta { background: var(--color-green); color: #fff; }

  .whatsapp-float { width: 54px; height: 54px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
  .whatsapp-float svg { width: 27px; height: 27px; }
  .bar-visible .whatsapp-float { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .chat-float { width: 54px; height: 54px; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .bar-visible .chat-float { bottom: calc(150px + env(safe-area-inset-bottom)); }

  .lightbox { grid-template-columns: 1fr; }
  .lb-stage { grid-column: 1; padding: 64px 12px 90px; }
  .lb-prev, .lb-next { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom)); }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

@media (max-width: 380px) {
  .brand img { height: 34px; }
  .header-actions { gap: 6px; }
  .lang-toggle span { padding: 6px 7px; }
  .hero-title { font-size: 2.85rem; }
}

/* =========================================================
   prefers-reduced-motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-content > * { opacity: 1; transform: none; }
  .hero-media img { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RONDA 2
   ========================================================= */

/* ---------- 2b) Franja de fotos (marquee) ---------- */
.marquee {
  --mh: 150px;
  position: relative; overflow: hidden; padding: 6px 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  list-style: none; margin: 0; padding: 0 12px 0 0;   /* padding = gap: -50% cae justo en la 2ª copia */
  display: flex; gap: 12px; width: max-content;
  animation: marquee 48s linear infinite; will-change: transform; transform: translate3d(0, 0, 0);
}
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: none; height: var(--mh); border-radius: var(--radius-sm); overflow: hidden; background: #dde1e8; box-shadow: var(--shadow-sm); }
.marquee-track img { height: 100%; width: auto; object-fit: cover; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Badge de rating de Google ---------- */
.rating-summary {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: fit-content; max-width: 100%;
  padding: 16px 22px; margin-bottom: 26px; border-radius: var(--radius);
  background: var(--color-white); border: 1px solid var(--color-line); box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.rating-summary:hover { border-color: rgba(var(--green-rgb), .5); box-shadow: var(--shadow); transform: translateY(-2px); }
.g-logo { width: 40px; height: 40px; flex: none; }
.rating-text { display: flex; flex-direction: column; }
.rating-line { display: flex; align-items: center; gap: 10px; }
.rating-line strong { font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; line-height: 1; color: var(--color-navy); }
.rating-line .stars { font-size: 1.1rem; }
.rating-count { color: var(--color-muted); font-size: .88rem; }
.rating-cta { font-weight: 700; font-size: .9rem; color: var(--color-green); }
.rating-cta::after { content: " →"; }
.guide { font-size: .7rem; letter-spacing: 0; color: var(--color-muted); margin-left: 4px; font-weight: 600; }
.owner-reply {
  margin-top: auto; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--color-bg-light); border-left: 3px solid var(--color-green);
}
.owner-reply p { font-size: .88rem; color: var(--color-charcoal); }
.owner-reply .owner-reply-label { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-green); margin-bottom: 2px; }
.reviews-note { margin-top: 18px; font-size: .82rem; color: var(--color-muted); text-align: center; }

/* ---------- Chips de ciudades ---------- */
.areas { margin-top: clamp(32px, 5vw, 48px); }
.areas-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 3.5vw, 2.4rem); }
.areas-intro { color: var(--color-muted); margin-top: 4px; }
.areas-grid { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.area-chip {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 14px;
  border-radius: var(--radius-sm); background: var(--color-bg-light); border: 1.5px solid var(--color-line);
  color: var(--color-navy); font-weight: 600; font-size: .93rem; text-decoration: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.area-chip svg { width: 18px; height: 18px; flex: none; color: var(--color-green); transition: color .25s; }
.area-chip:hover { background: var(--color-navy); border-color: var(--color-navy); color: #fff; transform: translateY(-2px); }
.area-chip:hover svg { color: var(--color-green-light); }
.area-chip[aria-current="page"] { background: var(--color-green); border-color: var(--color-green); color: #fff; }
.area-chip[aria-current="page"] svg { color: #fff; }

/* ---------- FAQ (acordeón) ---------- */
.faq-section { background: var(--color-bg-light); }
.faq { max-width: 860px; }
.faq-item { background: var(--color-white); border: 1px solid var(--color-line); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.is-open { border-color: rgba(var(--green-rgb), .45); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 20px; background: none; border: 0; cursor: pointer; text-align: left;
  font-weight: 700; font-size: 1rem; color: var(--color-navy);
}
.faq-q:hover { color: var(--color-green); }
.faq-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--color-bg-light); position: relative; transition: background-color .25s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--color-green); transform: translate(-50%, -50%); transition: transform .3s var(--ease), background-color .25s; }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-icon { background: var(--color-green); }
.faq-item.is-open .faq-icon::before, .faq-item.is-open .faq-icon::after { background: #fff; }
.faq-item.is-open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 20px 18px; color: var(--color-muted); }

/* ---------- Formulario: estado del envío ---------- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; }
.form-status.is-success { background: rgba(var(--green-rgb), .1); color: var(--color-green-dark); border: 1px solid rgba(var(--green-rgb), .35); }
.form-status.is-error { background: #fdecec; color: #a32020; border: 1px solid #f3c2c2; }
.btn:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }

/* ---------- Footer: ciudades ---------- */
.footer-areas { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-areas-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 4px; font-size: .88rem; }
.footer-areas-list li:not(:last-child)::after { content: "·"; margin-left: 6px; color: rgba(255, 255, 255, .35); }

/* ---------- Chat (fase 1) ---------- */
.chat-float {
  position: fixed; right: 23px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 96;
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--color-navy); color: #fff;
  box-shadow: 0 6px 20px rgba(var(--navy-rgb), .45);
  transition: transform .3s var(--ease), bottom .45s var(--ease), opacity .25s, background-color .25s;
}
.chat-float svg { width: 26px; height: 26px; }
.chat-float:hover { transform: scale(1.08); background: var(--color-navy-2); }
.chat-dot { position: absolute; top: 3px; right: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-green-light); border: 2px solid var(--color-navy); }
.chat-open .chat-float { background: var(--color-green); }
.chat-open .chat-dot { display: none; }

.chat-panel {
  position: fixed; right: 20px; bottom: calc(160px + env(safe-area-inset-bottom)); z-index: 250;
  width: min(370px, calc(100vw - 32px)); max-height: min(560px, calc(100dvh - 190px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-white); border-radius: 18px; box-shadow: 0 24px 60px -16px rgba(var(--navy-rgb), .5);
  opacity: 0; transform: translateY(14px) scale(.98); transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.chat-panel.is-open { opacity: 1; transform: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--grad-brand); color: #fff; }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; flex: none; border: 2px solid rgba(255, 255, 255, .6); }
.chat-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.chat-title { font-size: 1rem; }
.chat-status { font-size: .78rem; opacity: .85; }
.chat-status::before { content: "● "; color: var(--color-green-light); }
.chat-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.chat-close svg { width: 18px; height: 18px; }
.chat-close:hover { background: rgba(255, 255, 255, .28); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--color-bg-light); min-height: 140px; }
.chat-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg-bot { align-self: flex-start; background: var(--color-white); color: var(--color-charcoal); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-msg-user { align-self: flex-end; background: var(--color-navy); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--color-green); font-weight: 700; }
.chat-wa-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 8px 0 4px; padding: 6px 16px;
  border-radius: 999px; background: var(--color-green); color: #fff !important; text-decoration: none;
}
.chat-small { font-size: .82rem; color: var(--color-muted); }
.chat-typing { display: inline-flex; gap: 4px; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b8bdc8; animation: chatDot 1s infinite; }
.chat-typing i:nth-child(2) { animation-delay: .15s; }
.chat-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; background: var(--color-bg-light); border-top: 1px solid var(--color-line); }
.chat-quick button {
  min-height: 38px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--color-green); background: var(--color-white); color: var(--color-green);
  font-size: .84rem; font-weight: 600; transition: background-color .2s, color .2s;
}
.chat-quick button:hover { background: var(--color-green); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-line); background: var(--color-white); }
.chat-input input {
  flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; font: inherit; font-size: 16px;
  border: 1.5px solid var(--color-line); border-radius: 999px; background: var(--color-bg-light); color: var(--color-charcoal);
}
.chat-input input:focus { outline: none; border-color: var(--color-green); background: #fff; }
.chat-input button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--color-green); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-input button svg { width: 20px; height: 20px; }

/* ---------- Páginas de ciudad ---------- */
.hero-city { min-height: 0; padding-bottom: clamp(100px, 12vw, 150px); }
.hero-city .hero-title { font-size: clamp(3rem, 8vw, 6rem); max-width: 14ch; }
.breadcrumbs { font-size: .82rem; color: rgba(255, 255, 255, .75); }
.breadcrumbs a { color: #fff; text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.city-intro { background: var(--color-white); }
.city-intro-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.city-intro-grid p + p { margin-top: 14px; }
.city-intro-text p { color: var(--color-charcoal); font-size: 1.04rem; }
.city-checklist { list-style: none; padding: 22px 24px; margin: 0; border-radius: var(--radius); background: var(--color-bg-light); border: 1px solid var(--color-line); display: grid; gap: 12px; }
.city-checklist li { display: flex; gap: 10px; font-weight: 600; color: var(--color-navy); }
.city-checklist li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--color-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%23fff' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

@media (max-width: 960px) {
  .city-intro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .marquee { --mh: 110px; }
  .marquee-track { gap: 8px; padding-right: 8px; animation-duration: 38s; }
  .rating-summary { width: 100%; padding: 14px 16px; gap: 12px; }
  .rating-cta { width: 100%; }
  .areas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .area-chip { font-size: .86rem; padding: 10px 11px; }
  .faq-q { padding: 14px 16px; font-size: .96rem; }
  .faq-a-inner { padding: 0 16px 16px; }
  .chat-panel { right: 8px; left: 8px; width: auto; bottom: calc(8px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 90px); }
  .chat-open .chat-float, .chat-open .whatsapp-float, .chat-open .mobile-bar { opacity: 0; pointer-events: none; }
  .hero-city .hero-title { font-size: clamp(2.7rem, 12.5vw, 4rem); }
}
@media (prefers-reduced-motion: reduce) {
  /* La franja no se mueve: se desliza con el dedo */
  .marquee-track { animation: none !important; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}

/* ---------- Ajuste: contacto en escritorio ----------
   Al saltar a #contacto desde el menú, la tarjeta completa (con el botón de enviar)
   tiene que entrar en una pantalla de laptop (1366×768 / 1280×720). Antes: 120px de
   padding arriba + tarjeta de 740px = botón cortado o fuera de pantalla. */
@media (min-width: 768px) {
  .contact { padding-top: clamp(16px, 2vw, 28px); }
  .contact-info, .contact-form-wrap { padding: 32px 40px; }
  .contact-form { gap: 12px; }
  .contact-form .field input, .contact-form .field select { min-height: 46px; padding: 10px 14px; }
  .contact-form .field textarea { height: 88px; min-height: 0; }
  .contact-form .btn-lg { min-height: 52px; margin-top: 2px; }
  .contact-list { margin-top: 22px; gap: 14px; }
  .contact-seals { margin-top: 22px; }
}

/* ---------- Formulario rápido del hero ----------
   Escritorio (≥961px): texto a la izquierda, tarjeta a la derecha.
   Tablet/móvil: la tarjeta va debajo de los botones "Free Estimate" / "Call".
   Sin animación de entrada: tiene que verse desde el primer segundo. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-has-form > .hero-copy { opacity: 1; transform: none; animation: none; }   /* anima cada hijo, no el contenedor */
.hero-copy > * { opacity: 0; transform: translateY(24px); animation: heroIn .9s var(--ease) forwards; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(3) { animation-delay: .15s; }
.hero-copy > :nth-child(4) { animation-delay: .25s; }
.hero-copy > :nth-child(5) { animation-delay: .35s; }
.hero-copy > :nth-child(6) { animation-delay: .45s; }
.hero-has-form > .hero-form-card { opacity: 1; transform: none; animation: none; }

.hero-form-card {
  position: relative; width: 100%; max-width: 420px;
  background: var(--color-white); color: var(--color-charcoal);
  border-radius: 18px; border-top: 5px solid var(--color-green);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
  padding: 24px 24px 20px;
}
.hero-form { display: grid; gap: 10px; }
.hero-form-title { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--color-navy); letter-spacing: .01em; }
.hero-form-sub { font-size: .86rem; color: var(--color-muted); margin: -4px 0 4px; }
.hf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hf-field { min-width: 0; }
.hero-form input:not(.hp-field), .hero-form select {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: inherit; font-size: 16px; color: var(--color-charcoal);
  background: var(--color-bg-light); border: 1.5px solid var(--color-line); border-radius: var(--radius-sm);
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.hero-form select {
  cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23081645' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.hero-form select:invalid, .hero-form select option[value=""] { color: #8a90a0; }
.hero-form select option { color: var(--color-charcoal); }
.hero-form input::placeholder { color: #8a90a0; }
.hero-form input:focus, .hero-form select:focus { outline: none; border-color: var(--color-green); background: #fff; box-shadow: 0 0 0 3px rgba(var(--green-rgb), .18); }
.hero-form input.is-invalid { border-color: #c62828; background: #fff7f7; }
.hf-error { font-size: .82rem; font-weight: 600; color: #b42318; }
.hf-submit { min-height: 52px; font-size: 1rem; margin-top: 2px; }
.hf-trust { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--color-navy); }
.hf-trust svg { width: 18px; height: 18px; color: var(--color-green); --icon-bg: transparent; }
.hf-done { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 6px; }
.hf-done[hidden] { display: none; }
.hf-done-icon { width: 52px; height: 52px; color: var(--color-green); }
.hf-done-text { font-weight: 700; font-size: 1.1rem; color: var(--color-navy); }

@media (min-width: 961px) {
  .hero-has-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .hero-has-form .hero-title { font-size: clamp(3.3rem, 6.2vw, 6.4rem); }
  .hero-has-form .hero-form-card { justify-self: end; }
}
@media (max-width: 960px) {
  .hero-has-form .hero-form-card { margin-top: 26px; }
}
@media (max-width: 767px) {
  /* Móvil: hero compacto para que la tarjeta entre en la primera pantalla.
     El párrafo y los chips se ocultan aquí porque la sección Servicios los repite justo debajo. */
  .hero-has-form ~ .hero-swoosh { height: 48px; }
  .hero:has(.hero-has-form) { padding-top: calc(var(--header-h) + 20px); padding-bottom: 64px; }
  .hero-has-form .hero-text, .hero-has-form .hero-chips { display: none; }
  .hero-has-form .hero-title { font-size: clamp(2.5rem, 11.2vw, 3.4rem); margin-top: 12px; }
  /* Botones lado a lado (el número sigue en el enlace tel:; se oculta solo el texto) */
  .hero-has-form .hero-ctas { margin-top: 16px; gap: 10px; display: grid; grid-template-columns: 1fr 1fr; }
  .hero-has-form .hero-ctas .btn-lg { min-height: 50px; padding: 10px 12px; font-size: .95rem; }
  .hero-has-form .cta-num { display: none; }
  .hero-has-form .hero-form-card { margin-top: 18px; max-width: none; padding: 18px 16px 16px; border-radius: 16px; }
  .hero-form-title { font-size: 1.75rem; }
  .hero-form { gap: 9px; }
  .hf-trust { display: none; }
  /* Páginas de ciudad: el H1 es más largo ("Vestavia Hills, AL Handyman & …") */
  .hero-city .hero-has-form .hero-title { font-size: clamp(2.2rem, 9.4vw, 3rem); }
  .hero-city .breadcrumbs { font-size: .76rem; }
  /* Sobre el hero, las burbujas flotantes tapaban la tarjeta del formulario */
  .in-hero .chat-float, .in-hero .whatsapp-float { opacity: 0; pointer-events: none; transform: scale(.8); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { opacity: 1; transform: none; animation: none; }
}

/* ---------- Servicios: 7 tarjetas ----------
   Flex + justify-content:center → la última fila incompleta queda centrada.
   ≥1101px: 4 por fila (4 + 3) · 961–1100px: 3 por fila (3 + 3 + 1) · ≤960px: 2 por fila (… + 1). */
.service-grid--7 { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.service-grid--7 > .service-card { flex: 0 0 calc((100% - 3 * 20px) / 4); min-width: 0; }
@media (max-width: 1100px) { .service-grid--7 > .service-card { flex-basis: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 960px) { .service-grid--7 > .service-card { flex-basis: calc((100% - 20px) / 2); } }


@media (max-width: 767px) {
  /* Móvil: 2 columnas, como el resto del sitio → tarjeta compacta */
  .service-grid--7 { gap: 10px; }
  .service-grid--7 > .service-card { flex-basis: calc((100% - 10px) / 2); }
  .service-grid--7 .service-media { aspect-ratio: 4 / 3; }
  .service-grid--7 .service-num { font-size: 1.7rem; right: 8px; bottom: 2px; }
  .service-grid--7 .badge-real { top: 6px; left: 6px; font-size: .58rem; padding: 4px 7px; }
  .service-grid--7 .service-body { padding: 30px 12px 12px; }
  .service-grid--7 .service-icon { width: 50px; height: 50px; top: -25px; left: 10px; border-width: 2px; outline-offset: -5px; }
  .service-grid--7 .service-icon .line-icon { width: 30px; height: 30px; }
  .service-grid--7 .service-card h3 { font-size: 1.32rem; line-height: 1.05; }
  .service-grid--7 .service-card p { font-size: .8rem; line-height: 1.45; margin-top: 6px; }
  .service-grid--7 .sub-services { gap: 4px; margin-top: 8px; }
  .service-grid--7 .sub-services li { font-size: .66rem; padding: 3px 7px; }
  .service-grid--7 .service-link { display: block; font-size: .78rem; padding-top: 10px; min-height: 40px; }
}
