/* styles.css · esteban calvo · diseño y web */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--ec-papel);
  color: var(--ec-tinta);
  font-family: var(--ec-sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ec-senal); outline-offset: 2px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ec-tinta); color: var(--ec-papel); padding: 10px 16px; border-radius: var(--radius-pill); z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max-w) + 2 * var(--pad-x)); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--section-y) 0; }
.section--dark { background: var(--ec-tinta); color: var(--ec-papel); }
.section--white { background: var(--ec-blanco); }

/* ── texto ───────────────────────────── */
.label {
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ec-piedra);
}
.section--dark .label { color: var(--ec-niebla); }
.mono { font-family: var(--ec-mono); font-size: var(--fs-mono); }
.h2 { font-size: var(--fs-h2); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.h2 .soft { color: var(--ec-piedra); }
.section--dark .h2 .soft { color: var(--ec-niebla); }
.lead { font-size: 1.125rem; color: var(--ec-piedra); max-width: 34em; }
.section--dark .lead { color: var(--ec-niebla); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* ── logo ────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; white-space: nowrap; }
.logo svg { width: 44px; height: auto; }
.logo span { font-size: 1.1875rem; font-weight: 500; letter-spacing: -.03em; }

/* ── botones ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-pill);
  font: 600 .9375rem/1 var(--ec-sans); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--ec-tinta); color: var(--ec-papel); }
.btn--primary:hover { background: var(--ec-grafito); }
.btn--ghost { border-color: var(--ec-tinta); color: var(--ec-tinta); }
.btn--ghost:hover { background: var(--ec-tinta); color: var(--ec-papel); }
.btn--light { background: var(--ec-papel); color: var(--ec-tinta); }
.btn--light:hover { background: var(--ec-linea); }
.btn--ghost-light { border-color: var(--ec-niebla); color: var(--ec-papel); }
.btn--ghost-light:hover { border-color: var(--ec-papel); }
.btn--wa { background: var(--ec-whatsapp); color: var(--ec-tinta); }
.btn--wa:hover { background: #1fbe5b; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }

.link {
  font-weight: 600; text-decoration: underline; text-decoration-color: var(--ec-senal);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.link:hover { color: var(--ec-senal-texto); }

/* ── cabecera ────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ec-papel) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--ec-linea); }
.header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.nav { display: none; margin-left: auto; gap: 28px; }
.nav a { font-size: .9375rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--ec-senal-texto); }
.lang { display: inline-flex; border: 1px solid var(--ec-linea); border-radius: var(--radius-pill); padding: 3px; margin-left: auto; }
.lang a, .lang span { font-size: .75rem; font-weight: 600; padding: 6px 10px; border-radius: var(--radius-pill); text-decoration: none; color: var(--ec-piedra); }
.lang [aria-current] { background: var(--ec-tinta); color: var(--ec-papel); }
.header .btn { display: none; }
.menu-btn {
  width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1px solid var(--ec-linea);
  background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ec-tinta);
}
.menu-btn svg { width: 20px; height: 20px; }
.mobile-nav { display: none; border-top: 1px solid var(--ec-linea); padding: 8px 0 24px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 1.25rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ec-linea); }
.mobile-nav .btn { margin-top: 20px; width: 100%; font-size: 1rem; border-bottom: 0; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .lang { margin-left: 0; }
  .header .btn { display: inline-flex; }
  .menu-btn, .mobile-nav, .mobile-nav.is-open { display: none; }
}

/* ── hero ────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 128px); }
.hero__mark {
  position: absolute; right: -12%; bottom: -18%; width: min(70vw, 860px);
  color: var(--ec-linea); pointer-events: none; z-index: 0;
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: end; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.45fr 1fr; gap: 64px; } }
.hero__title { font-size: var(--fs-display); font-weight: 300; letter-spacing: -.035em; line-height: 1.02; margin: 24px 0 28px; }
.hero__title .soft { color: var(--ec-piedra); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.price {
  background: var(--ec-tinta); color: var(--ec-papel); border-radius: var(--radius-m);
  padding: 32px; display: grid; gap: 18px; max-width: 420px;
}
.price__amount { display: flex; align-items: flex-start; gap: 6px; font-size: clamp(4.5rem, 10vw, 6.5rem); font-weight: 300; letter-spacing: -.05em; line-height: .9; }
.price__amount small { font-size: .4em; letter-spacing: 0; margin-top: .25em; }
.price__badge { justify-self: start; background: var(--ec-senal); color: var(--ec-tinta); font-size: .875rem; font-weight: 700; letter-spacing: 0; padding: 8px 14px; border-radius: var(--radius-pill); }
.price p { color: var(--ec-niebla); font-size: .9375rem; line-height: 1.6; }
.price .label { color: var(--ec-niebla); }

/* ── para quién ──────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--ec-linea); background: var(--ec-blanco); border-radius: var(--radius-pill); padding: 10px 18px; font-size: 1rem; font-weight: 500; }
.chip--muted { background: transparent; color: var(--ec-piedra); border-style: dashed; border-color: var(--ec-niebla); }

/* ── qué incluye ─────────────────────── */
.features { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--ec-tinta); }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature { padding: 28px 24px 32px 0; border-bottom: 1px solid var(--ec-linea); display: grid; gap: 10px; align-content: start; }
.feature .mono { color: var(--ec-piedra); }
.feature h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
.feature p { color: var(--ec-piedra); font-size: .9375rem; line-height: 1.6; }

/* ── cómo funciona ───────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { border: 1px solid var(--ec-grafito); border-radius: var(--radius-m); padding: 28px; display: grid; gap: 12px; align-content: start; min-height: 220px; }
.step__n { font-family: var(--ec-mono); font-size: var(--fs-mono); color: var(--ec-niebla); }
.step h3 { font-size: 1.75rem; font-weight: 300; letter-spacing: -.02em; margin-top: auto; padding-top: 40px; }
.step p { color: var(--ec-niebla); font-size: .9375rem; line-height: 1.6; }
.step:last-child { background: var(--ec-papel); color: var(--ec-tinta); border-color: var(--ec-papel); }
.step:last-child p, .step:last-child .step__n { color: var(--ec-piedra); }

/* ── trabajos ────────────────────────── */
.works { display: grid; gap: 20px; }
@media (min-width: 720px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work {
  display: flex; flex-direction: column; background: var(--ec-blanco); border: 1px solid var(--ec-linea);
  border-radius: var(--radius-m); overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .2s var(--ease), transform .3s var(--ease);
}
.work:hover { border-color: var(--ec-tinta); }
.work:hover .work__go { color: var(--ec-senal-texto); }
.work__media { aspect-ratio: 16 / 9; background: var(--ec-linea); overflow: hidden; border-bottom: 1px solid var(--ec-linea); }
.work__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.work:hover .work__media img { transform: scale(1.02); }
.work__media--rafa {
  background: #435347; color: #F1F2EF; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 8%;
}
.work__media--rafa small { font-size: .6875rem; letter-spacing: .26em; color: #B4B8B2; text-transform: uppercase; }
.work__media--rafa strong { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 300; line-height: 1.12; }
.work__body { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 22px 24px 24px; }
.work__body h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -.01em; }
.work__body p { color: var(--ec-piedra); font-size: .9375rem; line-height: 1.55; margin-top: 4px; }
.work__go { font-family: var(--ec-mono); font-size: var(--fs-mono); white-space: nowrap; color: var(--ec-piedra); }

.note {
  margin-top: 40px; display: grid; gap: 8px; padding: 28px; border-radius: var(--radius-m);
  border: 1px dashed var(--ec-niebla);
}
@media (min-width: 900px) { .note { grid-template-columns: 220px 1fr; gap: 32px; align-items: baseline; } }
.note p { color: var(--ec-piedra); }
.note strong { color: var(--ec-tinta); font-weight: 600; }

/* ── contacto ────────────────────────── */
.contact { position: relative; overflow: hidden; }
.contact__mark { position: absolute; left: -22%; bottom: -30%; width: min(80vw, 900px); color: #1F1F1E; pointer-events: none; }
.contact__grid { position: relative; display: grid; gap: 56px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; } }
.contact__title { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 300; letter-spacing: -.035em; line-height: 1; margin: 20px 0 24px; }
.contact__list { display: grid; border-top: 1px solid var(--ec-grafito); }
.contact__row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 22px 0;
  border-bottom: 1px solid var(--ec-grafito); text-decoration: none; color: var(--ec-papel);
}
.contact__row .label { display: block; margin-bottom: 4px; }
.contact__row strong { font-size: clamp(1.125rem, 2.4vw, 1.5rem); font-weight: 400; word-break: break-word; }
.contact__row:hover strong { color: var(--ec-niebla); }
.contact__arrow { width: 48px; height: 48px; border-radius: var(--radius-pill); border: 1px solid var(--ec-piedra); display: inline-flex; align-items: center; justify-content: center; transition: background .2s var(--ease); }
.contact__row:hover .contact__arrow { background: var(--ec-papel); color: var(--ec-tinta); }
.contact__arrow svg { width: 18px; height: 18px; }

/* ── pie ─────────────────────────────── */
.footer { background: var(--ec-tinta); color: var(--ec-niebla); border-top: 1px solid var(--ec-grafito); padding: 32px 0; font-size: .875rem; }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer .logo { color: var(--ec-papel); }
.footer .logo svg { width: 36px; }
.footer .logo span { font-size: 1rem; }
.footer nav { display: flex; gap: 24px; margin-left: auto; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ec-papel); }

/* ── whatsapp flotante ───────────────── */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--ec-whatsapp); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(20, 20, 20, .18);
}
.wa-float svg { width: 30px; height: 30px; display: block; flex-shrink: 0; }

/* ── aparición suave ─────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }
