/* ==============================================================
   pisosheredados.es — Estilos compartidos
   Todas las páginas del sitio cargan este archivo.
============================================================== */

:root {
  --c-ink: #1B3A4B;
  --c-ink-soft: #2C4A5B;
  --c-ink-muted: #4A5F6B;
  --c-accent: #C9A961;
  --c-accent-deep: #A88B45;
  --c-bg: #FDFCF9;
  --c-bg-alt: #F1EDE6;
  --c-rule: #E4DDD1;
  --c-rule-strong: #B8AB99;
  --c-text: #1A1A1A;
  --c-text-muted: #5C5C5C;
  --c-white: #FFFFFF;
  --c-wa: #25D366;
  --c-wa-hover: #1EBE5A;
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1280px;
  --t-fast: 0.18s ease;
  --t-med: 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  color: var(--c-text); background: var(--c-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: inherit; }

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

.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section--alt { background: var(--c-bg-alt); }
@media (max-width: 768px) { .wrap { padding: 0 20px; } .section { padding: 64px 0; } }

/* Typography */
.display {
  font-family: var(--f-display); font-weight: 400; line-height: 1.08;
  letter-spacing: -0.018em; color: var(--c-ink);
  font-variation-settings: "opsz" 144;
}
h1.display { font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 400; }
h2.display { font-size: clamp(1.85rem, 3.2vw, 2.6rem); font-weight: 400; }
h3.display { font-size: clamp(1.2rem, 1.4vw, 1.4rem); font-weight: 500; line-height: 1.25; }
.display strong {
  font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--c-accent);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
}
.eyebrow {
  font-family: var(--f-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-ink);
  margin: 0 0 24px 0; display: inline-block;
}
.lead { font-size: clamp(1.02rem, 1.15vw, 1.15rem); line-height: 1.55; color: var(--c-ink-soft); max-width: 560px; }
.label-num {
  font-family: var(--f-body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--c-accent-deep);
  display: block; margin-bottom: 16px; font-variant-numeric: tabular-nums;
}
.rule { border: 0; border-top: 1px solid var(--c-rule); margin: 0; }

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0; font-size: 12px; color: var(--c-text-muted);
  letter-spacing: 0.05em; border-bottom: 1px solid var(--c-rule);
}
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--c-rule-strong); }
.breadcrumb a { color: var(--c-ink-muted); }
.breadcrumb a:hover { color: var(--c-ink); }
.breadcrumb [aria-current="page"] { color: var(--c-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; font-family: var(--f-body); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; border: 1px solid transparent; border-radius: 2px;
  transition: all var(--t-fast); cursor: pointer; background: none; text-align: center;
  color: var(--c-ink);
}
.btn--primary { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.btn--primary:hover { background: #143241; border-color: #143241; color: var(--c-bg); }
.btn--block { width: 100%; padding: 17px 26px; font-size: 15px; }
.btn--wa { background: var(--c-wa); color: var(--c-white); border-color: var(--c-wa); }
.btn--wa:hover { background: var(--c-wa-hover); border-color: var(--c-wa-hover); color: var(--c-white); }
.btn--link {
  padding: 0; background: none; color: var(--c-ink);
  border-bottom: 1px solid var(--c-rule-strong);
  border-radius: 0; padding-bottom: 4px; font-weight: 500;
}
.btn--link:hover { border-bottom-color: var(--c-ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--c-bg);
  border-bottom: 1px solid transparent; transition: border-color var(--t-fast);
}
.site-header.is-scrolled { border-bottom-color: var(--c-rule); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand {
  font-family: var(--f-display); font-size: 1.35rem; font-weight: 500;
  letter-spacing: -0.015em; color: var(--c-ink);
  font-variation-settings: "opsz" 60;
  display: flex; align-items: center; gap: 10px;
}
.brand__mark { display: inline-block; width: 10px; height: 10px; background: var(--c-accent); }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font-size: 14px; color: var(--c-ink-muted); transition: color var(--t-fast); }
.nav a:not(.btn):hover { color: var(--c-ink); }
.nav .btn { padding: 10px 20px; font-size: 13px; }
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .site-header__inner { height: 64px; }
  .brand { font-size: 1.1rem; }
}

/* Hero */
.hero { padding: 80px 0 96px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: start; }
.hero__copy h1 { margin: 0 0 32px 0; max-width: 15ch; }
.hero__lead { margin: 0 0 44px 0; }
.hero__list { list-style: none; padding: 0; margin: 0 0 40px 0; border-top: 1px solid var(--c-rule); }
.hero__list li {
  padding: 16px 0; border-bottom: 1px solid var(--c-rule);
  display: grid; grid-template-columns: 32px 1fr; gap: 14px;
  font-size: 0.94rem; color: var(--c-ink-soft); align-items: baseline;
}
.hero__list li::before {
  content: attr(data-num); font-weight: 600; font-size: 11px;
  letter-spacing: 0.1em; color: var(--c-accent-deep); font-variant-numeric: tabular-nums;
}
.hero__credentials {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-text-muted); font-weight: 500; margin: 0;
}

/* Form */
.form-card { background: var(--c-white); border: 1px solid var(--c-rule); padding: 36px; position: relative; }
.form-card__head { padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--c-rule); }
.form-card__title {
  font-family: var(--f-display); font-weight: 500; font-size: 1.4rem;
  color: var(--c-ink); margin: 0 0 6px 0; line-height: 1.2;
  font-variation-settings: "opsz" 144;
}
.form-card__sub { font-size: 13px; color: var(--c-text-muted); margin: 0; }
.form-card__ref {
  position: absolute; top: 22px; right: 28px; font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--c-text-muted); font-weight: 500; font-variant-numeric: tabular-nums;
}
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--c-ink); text-transform: uppercase; }
.field__label-opt { font-weight: 400; color: var(--c-text-muted); text-transform: none; letter-spacing: 0; }
.field__input, .field__select {
  width: 100%; padding: 13px 14px; font-size: 14px; color: var(--c-ink);
  background: var(--c-bg); border: 1px solid var(--c-rule); border-radius: 2px;
  transition: border-color var(--t-fast), background var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.field__input:focus, .field__select:focus {
  outline: none; border-color: var(--c-ink); background: var(--c-white);
}
.field__select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231B3A4B' stroke-width='1.5' d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.field__check {
  display: flex; align-items: flex-start; gap: 10px; font-size: 12px;
  color: var(--c-text-muted); line-height: 1.5; cursor: pointer; margin-top: 4px;
}
.field__check input { margin-top: 3px; accent-color: var(--c-ink); }
.field__check a { color: var(--c-ink); border-bottom: 1px solid var(--c-rule-strong); }
.form__submit { margin-top: 6px; }
.form__submit:disabled { opacity: 0.7; cursor: not-allowed; }
.form__note { margin-top: 12px; font-size: 12px; color: var(--c-text-muted); text-align: center; letter-spacing: 0.03em; }
.form__success {
  display: none; padding: 20px; background: #E8F5E9; border: 1px solid #A5D6A7;
  border-radius: 2px; color: #1B5E20; font-size: 14px; text-align: center;
}
.form__success.is-visible { display: block; }

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy h1 { max-width: none; }
}
@media (max-width: 540px) {
  .hero { padding: 40px 0 64px; }
  .form-card { padding: 26px 22px; }
  .form-card__ref { right: 22px; top: 18px; }
}

/* Trust */
.trust { padding: 40px 0; border-top: 1px solid var(--c-rule); border-bottom: 1px solid var(--c-rule); }
.trust__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.trust__item { display: flex; flex-direction: column; gap: 4px; }
.trust__num {
  font-family: var(--f-display); font-size: 1.8rem; font-weight: 400;
  color: var(--c-ink); line-height: 1;
  font-variation-settings: "opsz" 144; font-variant-numeric: tabular-nums;
}
.trust__lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted); font-weight: 500; }
@media (max-width: 768px) { .trust__inner { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* Equipo section */
.equipo__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.equipo__copy h2 { margin: 0 0 24px 0; }
.equipo__copy p { color: var(--c-ink-soft); font-size: 1.02rem; line-height: 1.65; margin: 0 0 1em; }
.equipo__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-bg-alt); }
.equipo__photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.02) saturate(0.95); }
.equipo__photo-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 20px;
  background: rgba(27, 58, 75, 0.85); color: var(--c-bg);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 500; backdrop-filter: blur(4px);
}
@media (max-width: 1024px) { .equipo__grid { grid-template-columns: 1fr; gap: 40px; } }

/* Section head */
.s-head { margin-bottom: 64px; max-width: 760px; }
.s-head h2 { margin: 0; }
.s-head p { margin-top: 20px; color: var(--c-ink-soft); font-size: 1.05rem; max-width: 620px; }
@media (max-width: 768px) { .s-head { margin-bottom: 44px; } }

/* Local market box (specific to city pages) */
.market {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--c-rule);
  background: var(--c-white);
  margin-bottom: 48px;
}
.market__cell {
  padding: 32px 28px;
  border-right: 1px solid var(--c-rule);
}
.market__cell:last-child { border-right: none; }
.market__label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--c-text-muted); margin: 0 0 12px 0;
}
.market__value {
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 400;
  color: var(--c-ink); line-height: 1.1; margin: 0 0 8px 0;
  font-variation-settings: "opsz" 144; font-variant-numeric: tabular-nums;
}
.market__note { font-size: 13px; color: var(--c-ink-soft); line-height: 1.5; margin: 0; }
@media (max-width: 768px) {
  .market { grid-template-columns: 1fr; }
  .market__cell { border-right: none; border-bottom: 1px solid var(--c-rule); }
  .market__cell:last-child { border-bottom: none; }
}

/* Fiscal section */
.fiscal { max-width: 780px; }
.fiscal h2 { margin: 0 0 28px 0; }
.fiscal p { color: var(--c-ink-soft); font-size: 1.02rem; line-height: 1.65; margin: 0 0 1.1em; }
.fiscal p:last-child { margin-bottom: 0; }
.fiscal__note {
  margin-top: 32px; padding: 20px 24px;
  background: var(--c-bg-alt); border-left: 3px solid var(--c-accent);
  font-size: 0.94rem; color: var(--c-ink-soft); line-height: 1.6;
}

/* Barrios list */
.barrios {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 0 0; padding: 0; list-style: none;
}
.barrios li {
  padding: 8px 16px; background: var(--c-bg-alt);
  font-size: 13px; color: var(--c-ink); font-weight: 500;
}

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; }
.process__step { padding-top: 22px; border-top: 2px solid var(--c-ink); }
.process__step h3 { margin: 0 0 12px 0; color: var(--c-ink); font-weight: 500; }
.process__step p { margin: 0; color: var(--c-ink-soft); font-size: 0.9rem; line-height: 1.55; }
@media (max-width: 1024px) { .process { grid-template-columns: repeat(2, 1fr); gap: 44px 32px; } }
@media (max-width: 540px) { .process { grid-template-columns: 1fr; gap: 32px; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--c-rule); }
.pillar { padding: 44px 32px 44px 0; border-right: 1px solid var(--c-rule); }
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 32px; }
.pillar h3 { margin: 0 0 14px 0; color: var(--c-ink); }
.pillar p { margin: 0; color: var(--c-ink-soft); font-size: 0.94rem; line-height: 1.6; }
@media (max-width: 880px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { padding: 32px 0; border-right: none; border-bottom: 1px solid var(--c-rule); }
  .pillar:not(:first-child) { padding-left: 0; }
  .pillar:last-child { border-bottom: none; padding-bottom: 0; }
}

/* Cases */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--c-rule); border-left: 1px solid var(--c-rule); }
.case {
  padding: 30px 26px; border-right: 1px solid var(--c-rule);
  border-bottom: 1px solid var(--c-rule); min-height: 190px;
}
.case__num { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; color: var(--c-accent-deep); font-variant-numeric: tabular-nums; margin-bottom: 14px; display: block; }
.case__title {
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 500;
  color: var(--c-ink); line-height: 1.2; margin: 0 0 14px 0;
  font-variation-settings: "opsz" 144;
}
.case__desc { font-size: 0.87rem; color: var(--c-text-muted); line-height: 1.55; margin: 0; }
@media (max-width: 1024px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cases { grid-template-columns: 1fr; } }

/* Coverage / related cities */
.coverage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.coverage__cities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.city {
  padding: 14px 0; border-bottom: 1px solid var(--c-rule);
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1rem; font-weight: 500; color: var(--c-ink);
  transition: color var(--t-fast);
}
.city:nth-child(odd) { border-right: 1px solid var(--c-rule); padding-right: 22px; }
.city:nth-child(even) { padding-left: 22px; }
.city:hover { color: var(--c-accent-deep); }
.city__meta { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-text-muted); font-weight: 400; }
@media (max-width: 880px) { .coverage__grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 540px) {
  .coverage__cities { grid-template-columns: 1fr; }
  .city:nth-child(odd) { border-right: none; padding-right: 0; }
  .city:nth-child(even) { padding-left: 0; }
}

/* Testimonios */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--c-rule); }
.testimonial { padding: 40px 32px 40px 0; border-right: 1px solid var(--c-rule); }
.testimonial:last-child { border-right: none; padding-right: 0; }
.testimonial:not(:first-child) { padding-left: 32px; }
.testimonial__meta {
  display: flex; justify-content: space-between; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--c-text-muted); font-weight: 500;
  margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--c-rule);
}
.testimonial__quote {
  font-family: var(--f-display); font-size: 1.1rem; font-weight: 400;
  line-height: 1.45; color: var(--c-ink); margin: 0 0 24px 0;
  font-variation-settings: "opsz" 144;
}
.testimonial__attr { font-size: 13px; color: var(--c-text-muted); line-height: 1.5; }
.testimonial__attr strong { color: var(--c-ink); font-weight: 500; }
@media (max-width: 880px) {
  .testimonials { grid-template-columns: 1fr; }
  .testimonial { padding: 32px 0; border-right: none; border-bottom: 1px solid var(--c-rule); }
  .testimonial:not(:first-child) { padding-left: 0; }
  .testimonial:last-child { border-bottom: none; padding-bottom: 0; }
}

/* FAQ */
.faq__list { border-top: 1px solid var(--c-rule); }
.faq__item { border-bottom: 1px solid var(--c-rule); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 26px 0; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem); color: var(--c-ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; line-height: 1.3; font-variation-settings: "opsz" 144;
  transition: color var(--t-fast);
}
.faq__q:hover { color: var(--c-accent-deep); }
.faq__icon { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--c-ink); transition: transform var(--t-fast); }
.faq__icon::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.faq__icon::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.faq__item[aria-expanded="true"] .faq__icon::after { transform: translateX(-50%) scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height var(--t-med); }
.faq__item[aria-expanded="true"] .faq__a { max-height: 800px; }
.faq__a-inner { padding: 0 0 26px 0; color: var(--c-ink-soft); font-size: 0.95rem; line-height: 1.65; max-width: 760px; }

/* Final CTA */
.final { position: relative; padding: 112px 0; color: var(--c-bg); overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(27, 58, 75, 0.94), rgba(27, 58, 75, 0.94)), url('/assets/oficina-secundaria.jpg');
  background-size: cover; background-position: center; z-index: 0;
}
.final .wrap { position: relative; z-index: 1; }
.final__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; }
.final h2 { color: var(--c-bg); margin: 0 0 22px 0; max-width: 18ch; }
.final p { color: rgba(253, 252, 249, 0.78); font-size: 1.05rem; max-width: 480px; margin: 0 0 36px 0; line-height: 1.55; }
.final .btn--primary { background: var(--c-accent); color: var(--c-ink); border-color: var(--c-accent); }
.final .btn--primary:hover { background: var(--c-bg); border-color: var(--c-bg); color: var(--c-ink); }
.final__note { margin-top: 18px; font-size: 12px; color: rgba(253, 252, 249, 0.6); letter-spacing: 0.04em; }
.final__contact { border-left: 1px solid rgba(253, 252, 249, 0.18); padding-left: 56px; }
.final__contact h4 {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(253, 252, 249, 0.6); margin: 0 0 20px 0; font-weight: 600;
}
.final__contact-item { margin-bottom: 22px; }
.final__phone { display: block; margin-bottom: 6px; }
.final__phone img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.final__contact-item span { display: block; font-size: 12px; color: rgba(253, 252, 249, 0.6); letter-spacing: 0.06em; }
.final__contact-item strong {
  display: block; font-family: var(--f-display); font-size: 1.15rem; font-weight: 400;
  color: var(--c-bg); font-variation-settings: "opsz" 144; margin-bottom: 4px;
}
.final__wa { margin-top: 14px; }
.final__wa .btn { width: 100%; }
.final__wa svg { width: 18px; height: 18px; }
@media (max-width: 880px) {
  .final__grid { grid-template-columns: 1fr; gap: 44px; }
  .final__contact { border-left: none; padding-left: 0; padding-top: 44px; border-top: 1px solid rgba(253, 252, 249, 0.18); }
  .final { padding: 72px 0; }
}

/* WhatsApp floating */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 56px; height: 56px; border-radius: 50%; background: var(--c-wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--c-wa-hover); transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; fill: var(--c-white); }
@media (max-width: 540px) {
  .wa-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .wa-float svg { width: 26px; height: 26px; }
}

/* Footer */
.site-footer { background: var(--c-bg-alt); padding: 64px 0 28px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 40px; border-bottom: 1px solid var(--c-rule); }
.footer__brand p { margin: 14px 0 0 0; color: var(--c-text-muted); max-width: 280px; font-size: 13px; line-height: 1.55; }
.footer__col h4 { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-text-muted); margin: 0 0 18px 0; font-weight: 600; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { color: var(--c-ink); }
.footer__col a:hover { color: var(--c-accent-deep); }
.footer__bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--c-text-muted); font-size: 12px; }
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Legal pages (aviso legal, privacidad, cookies) */
.legal-content { padding: 80px 0 120px; max-width: 800px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.legal-content h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.1;
  color: var(--c-ink); margin: 0 0 24px 0;
  letter-spacing: -0.018em; font-variation-settings: "opsz" 144;
}
.legal-content h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: 1.35rem; color: var(--c-ink); margin: 40px 0 16px 0;
  line-height: 1.25; font-variation-settings: "opsz" 144;
}
.legal-content .meta { color: var(--c-text-muted); font-size: 13px; margin-bottom: 48px; }
.legal-content p { margin: 0 0 1.1em; color: var(--c-ink-soft); }
.legal-content ul { margin: 0 0 1.1em; padding-left: 20px; color: var(--c-ink-soft); }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--c-ink); }
.legal-content a:hover { color: var(--c-accent-deep); }
.placeholder { background: var(--c-bg-alt); padding: 2px 8px; border-radius: 2px; font-size: 0.9em; color: var(--c-ink); font-family: monospace; }
.tabla { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.tabla th, .tabla td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--c-rule); color: var(--c-ink-soft); }
.tabla th { background: var(--c-bg-alt); font-weight: 600; color: var(--c-ink); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 640px) {
  .legal-content { padding-left: 20px; padding-right: 20px; padding-top: 56px; padding-bottom: 80px; }
  .tabla { font-size: 13px; }
  .tabla th, .tabla td { padding: 10px 8px; }
}
.back-link { font-size: 13px; color: var(--c-ink-muted); }
.back-link:hover { color: var(--c-ink); }

/* ==============================================================
   v2 — Hero oscuro, CTA verde, estrellas, microanimaciones
============================================================== */

:root {
  --c-green: #1E8E5A;
  --c-green-hover: #167147;
}

/* Botón verde (CTA principal de conversión) */
.btn--green { background: var(--c-green); color: var(--c-white); border-color: var(--c-green); }
.btn--green:hover { background: var(--c-green-hover); border-color: var(--c-green-hover); color: var(--c-white); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(30, 142, 90, 0.28); }

/* Micro-lift en todos los botones */
.btn { transition: all var(--t-fast), transform 0.16s ease, box-shadow 0.16s ease; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(27, 58, 75, 0.22); }
.btn--wa:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3); }

/* HERO OSCURO — mismo tratamiento que el CTA final */
.hero--dark {
  position: relative;
  padding: 88px 0 104px;
  color: var(--c-bg);
  overflow: hidden;
}
.hero--dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(27, 58, 75, 0.94), rgba(27, 58, 75, 0.94)),
    url('/assets/oficina-secundaria.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero--dark .wrap { position: relative; z-index: 1; }
.hero--dark h1, .hero--dark .display { color: var(--c-bg); }
.hero--dark .display strong { color: var(--c-bg); text-decoration-color: var(--c-accent); }
.hero--dark .eyebrow { color: var(--c-accent); }
.hero--dark .lead { color: rgba(253, 252, 249, 0.8); }
.hero--dark .hero__list { border-top-color: rgba(253, 252, 249, 0.18); }
.hero--dark .hero__list li {
  border-bottom-color: rgba(253, 252, 249, 0.18);
  color: rgba(253, 252, 249, 0.85);
}
.hero--dark .hero__list li::before { color: var(--c-accent); }
.hero--dark .hero__credentials { color: rgba(253, 252, 249, 0.65); }
@media (max-width: 540px) { .hero--dark { padding: 48px 0 72px; } }

/* Estrellas de valoración (estilo Google) */
.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars svg { width: 15px; height: 15px; fill: #F0A93B; }
.stars--lg svg { width: 18px; height: 18px; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; }
.rating-line strong { font-weight: 600; }

/* Estrellas en trust strip */
.trust__stars { margin-top: 4px; }
.trust__stars svg { width: 13px; height: 13px; fill: #F0A93B; }

/* Animación sutil de aparición de estrellas */
@keyframes star-pop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.reveal.is-visible .stars svg {
  animation: star-pop 0.4s cubic-bezier(0.2, 0.7, 0.3, 1.2) backwards;
}
.reveal.is-visible .stars svg:nth-child(1) { animation-delay: 0.05s; }
.reveal.is-visible .stars svg:nth-child(2) { animation-delay: 0.12s; }
.reveal.is-visible .stars svg:nth-child(3) { animation-delay: 0.19s; }
.reveal.is-visible .stars svg:nth-child(4) { animation-delay: 0.26s; }
.reveal.is-visible .stars svg:nth-child(5) { animation-delay: 0.33s; }

/* Hover vivo en tarjetas */
.case { transition: background var(--t-fast), transform 0.2s ease, box-shadow 0.2s ease; }
.case:hover {
  background: var(--c-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(27, 58, 75, 0.08);
}
.market__cell { transition: background var(--t-fast); }
.market__cell:hover { background: var(--c-bg); }
.city { transition: color var(--t-fast), padding-left 0.2s ease; }
.city:hover { padding-left: 6px; }
.barrios li { transition: background var(--t-fast), color var(--t-fast); }
.barrios li:hover { background: var(--c-ink); color: var(--c-bg); }

/* Pulso sutil en el botón flotante de WhatsApp */
@keyframes wa-pulse {
  0% { box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-float.is-visible { animation: wa-pulse 2.6s ease-out infinite; }

/* Form card sobre fondo oscuro: sombra más marcada para que "flote" */
.hero--dark .form-card { box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28); border-color: transparent; }

/* ==============================================================
   v3 — Página índice de provincias
============================================================== */
.prov-region { margin-bottom: 56px; }
.prov-region__title {
  font-family: var(--f-display); font-weight: 500; font-size: 1.3rem;
  color: var(--c-ink); margin: 0 0 6px 0;
  font-variation-settings: "opsz" 144;
  padding-bottom: 14px; border-bottom: 2px solid var(--c-ink);
}
.prov-region__note { font-size: 13px; color: var(--c-text-muted); margin: 10px 0 20px 0; }
.prov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.prov-grid .city { border-bottom: 1px solid var(--c-rule); }
@media (max-width: 880px) { .prov-grid { grid-template-columns: repeat(2, 1fr); gap: 0 24px; } }
@media (max-width: 540px) { .prov-grid { grid-template-columns: 1fr; } }

/* Refuerzo defensivo de estrellas (por si el SVG llega sin atributos) */
.stars, .trust__stars { line-height: 0; }
.stars svg, .trust__stars svg { max-width: 18px; max-height: 18px; }
