/* SQ.1 Design Build — sq1designbuild.com
   Paleta: negro #1A1A1A · rojo de marca #F6202D · rojo accesible #C4141F · crema #F5EFE0 */

:root {
  --ink: #1A1A1A;
  --ink-soft: #3A3A3A;
  --muted: #5F5F5F;
  --line: #E2DED6;
  --cream: #F5EFE0;
  --paper: #FFFFFF;
  --red: #F6202D;        /* marca — solo sobre fondo oscuro o como acento gráfico */
  --red-ink: #C4141F;    /* texto y botones sobre fondo claro (contraste 6:1) */
  --red-dark: #A00F18;
  --shadow: 0 1px 2px rgba(26,26,26,.06), 0 8px 28px rgba(26,26,26,.08);
  --radius: 4px;
  --wrap: 1180px;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
a { color: var(--red-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: #C9C6C0; }
.section--ink h2, .section--ink h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.14rem; color: var(--muted); max-width: 62ch; }
.center .lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red-ink);
  margin-bottom: .8em;
}
.section--ink .eyebrow { color: var(--red); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 15px 26px;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--red-ink); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--onDark:hover { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--ink); color: #B9B5AE; font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--red); }
.topbar__es { display: inline-flex; align-items: center; gap: .5em; }
.topbar__es::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid #2C2C2C; }
.header .wrap { display: flex; align-items: center; gap: 20px; min-height: 116px; }

.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand__logo { height: 88px; width: auto; flex: none; }
.brand--footer { margin-right: 0; }
.brand--footer .brand__logo { height: 112px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: #D6D3CE; text-decoration: none; font-size: .95rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.header__tel { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.header__tel:hover { color: var(--red); }
.header .btn--primary { padding: 11px 20px; font-size: .93rem; }

.navToggle { display: none; background: none; border: 1px solid #444; border-radius: var(--radius); color: #fff; padding: 9px 12px; font-size: .9rem; font-weight: 700; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media picture { width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26,26,26,.92) 0%, rgba(26,26,26,.72) 45%, rgba(26,26,26,.42) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-top: 92px; padding-bottom: 92px; }
.hero__inner { max-width: 40rem; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero__sub { font-size: 1.16rem; color: #DEDBD6; max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; font-size: .92rem; color: #C6C2BC; }
.hero__chips li { display: flex; align-items: center; gap: .5em; }
.hero__chips li::before { content: ""; width: 6px; height: 6px; background: var(--red); border-radius: 50%; flex: none; }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 34px 0; }
.trust__item h3 { font-size: .98rem; margin-bottom: .3em; }
.trust__item p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Rejillas de tarjetas ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit; transition: box-shadow .18s, transform .18s, border-color .18s;
}
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #CFC9BD; }
.card__media { aspect-ratio: 16 / 10; background: #E9E5DD; overflow: hidden; }
.card__media picture { width: 100%; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: .35em; }
.card__body p { font-size: .95rem; color: var(--muted); margin: 0 0 1em; }
.card__more { margin-top: auto; font-weight: 700; font-size: .92rem; color: var(--red-ink); }
a.card:hover .card__more { text-decoration: underline; }

/* ---------- Pasos ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 54px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800; border-radius: 50%; font-size: 1.02rem;
}
.step h3 { color: #fff; font-size: 1.05rem; }
.step p { font-size: .94rem; margin: 0; }

/* ---------- Antes / después ---------- */
.ba { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ba figure { margin: 0; position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #E9E5DD; }
.ba figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.ba figcaption {
  position: absolute; top: 12px; left: 12px;
  background: rgba(26,26,26,.9); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius);
}
.ba figure.is-after figcaption { background: var(--red-ink); }
.ba__caption { font-size: .95rem; color: var(--muted); margin-top: 14px; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery picture { width: 100%; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: #E9E5DD; }

.tag {
  display: inline-block; background: var(--ink); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--radius); margin-bottom: 14px;
}
.tag--concept { background: var(--red-ink); }

.notice {
  border-left: 3px solid var(--red-ink); background: var(--cream);
  padding: 16px 20px; font-size: .95rem; color: var(--ink-soft); border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- Áreas de servicio ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 26px; list-style: none; }
.areas li a, .areas li span {
  display: block; padding: 10px 18px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; font-size: .93rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.areas li a:hover { border-color: var(--red-ink); color: var(--red-ink); }

/* ---------- Formulario ---------- */
.formCard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem;
  border: 1px solid #CFC9BD; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red-ink); outline-offset: 1px; border-color: var(--red-ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--half > div { margin: 0; }
.formNote { font-size: .84rem; color: var(--muted); margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */
.footer { background: var(--ink); color: #A9A5A0; font-size: .93rem; padding: 60px 0 0; }
.footer h3 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.1em; }
.footer a { color: #D6D3CE; text-decoration: none; }
.footer a:hover { color: var(--red); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: .55em; }
.footer address { font-style: normal; line-height: 1.8; }
.footer address strong { color: #fff; display: block; }
.footer__tel { color: #fff !important; font-weight: 800; font-size: 1.06rem; }
.footer__bottom { border-top: 1px solid #2C2C2C; padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem; }

/* ---------- Barra fija móvil ---------- */
.mobileBar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--ink); border-top: 1px solid #2C2C2C; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); gap: 9px; }
.mobileBar a { flex: 1; padding: 14px 8px; font-size: .95rem; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--radius); }

/* ---------- Adaptable ---------- */
@media (max-width: 980px) {
  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav, .header__tel { display: none; }
  .navToggle { display: block; }
  .header .wrap { min-height: 92px; }
  .brand__logo { height: 68px; }
  .header.is-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid #2C2C2C; padding: 8px 22px 18px;
  }
  .header.is-open .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid #2C2C2C; font-size: 1.02rem; }
}

@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .topbar { font-size: .8rem; }
  .topbar .wrap { justify-content: space-between; }
  .topbar__serving { display: none; }
  .brand__logo { height: 58px; }
  .brand--footer .brand__logo { height: 84px; }
  .section { padding: 54px 0; }
  .hero .wrap { padding-top: 62px; padding-bottom: 66px; }
  .grid--4, .grid--3, .grid--2, .ba, .gallery { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; gap: 20px; padding: 26px 0; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .field--half { grid-template-columns: 1fr; }
  .formCard { padding: 22px; }
  .mobileBar { display: flex; }
  .header__cta .btn { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
}

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