/* =========================================================
   Klean Solutions Plus — estilos
   Paleta tomada del logo (#085AC0)
   ========================================================= */

:root {
  --brand: #085ac0;
  --brand-600: #0a4fa6;
  --brand-700: #083f86;
  --brand-50: #eef5fe;
  --brand-100: #dbe9fc;
  --accent: #e2a817;
  --gold: #e2a817;
  --gold-light: #f6d36b;
  --gold-grad: linear-gradient(135deg, #f8dc78 0%, #e2a817 55%, #c98d0c 100%);
  --navy: #0b1f44;
  --navy-800: #102a57;

  --ink: #0e1a2b;
  --text: #46546a;
  --muted: #6b7a90;
  --line: #e3e9f2;
  --bg: #ffffff;
  --bg-tint: #f5f8fc;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 26, 43, .06), 0 2px 8px rgba(14, 26, 43, .04);
  --shadow: 0 10px 30px -10px rgba(10, 31, 61, .18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 31, 61, .28);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.text-brand { color: var(--brand); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 1rem;
}
.eyebrow--light { color: var(--gold-light); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(226, 168, 23, .22); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1;
  padding: .95rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(8, 90, 192, .7); }
.btn--primary:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(8, 90, 192, .75); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--sm { padding: .7rem 1.1rem; font-size: .9rem; }
.btn--lg { padding: 1.1rem 1.7rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(10, 31, 61, .15); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.header__logo { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.header__logo img { height: 48px; width: auto; }
.wordmark { display: block; font-family: "Cinzel", Georgia, serif; font-weight: 700; color: var(--navy); font-size: 1.35rem; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.wordmark small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; margin-top: .25rem; color: var(--navy); }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: .3rem; }
.nav__list a {
  display: block; padding: .5rem .85rem; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .95rem; transition: background .2s, color .2s;
}
.nav__list a:hover, .nav__list a.is-active { color: var(--brand); background: var(--brand-50); }
.nav__cta-mobile { display: none; }
.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 700; font-size: .95rem; }
.header__phone .icon { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 10px; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .icon--close { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(226, 168, 23, .10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(8, 90, 192, .08), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #fff 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: clamp(2.3rem, 4.2vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 1.4rem; }
.shine { position: relative; display: inline-block; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .12em; }
.shine__swoosh { position: absolute; left: 0; right: 0; bottom: -.08em; width: 100%; height: .28em; fill: var(--gold); }
.hero__lead { font-size: 1.15rem; max-width: 36rem; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: .45rem; font-size: .92rem; font-weight: 600; color: var(--ink); }
.hero__trust .icon { color: var(--brand); }

.hero__media { position: relative; }
.hero__image {
  border-radius: 32px 32px 32px 120px; overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 4.4;
}
.hero__image { position: relative; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.photo-tag {
  position: absolute; right: 1.2rem; top: 1.2rem; display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(11, 31, 68, .78); backdrop-filter: blur(8px); color: #fff; font-size: .8rem; font-weight: 700;
  padding: .45rem .85rem; border-radius: 999px;
}
.photo-tag .icon { color: var(--gold-light); stroke-width: 2.6; }
.float-card {
  position: absolute; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem;
  display: flex; gap: .8rem; align-items: center; font-size: .85rem; color: var(--muted);
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); font-size: .98rem; }
.float-card--top { top: 8%; left: -9%; }
.float-card--bottom { bottom: 16%; right: -5%; flex-direction: column; align-items: flex-start; gap: .2rem; animation-delay: -3s; }
.float-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.stars { display: inline-flex; gap: 2px; color: #f5b301; }
.stars .icon { fill: currentColor; stroke: none; width: 1.05em; height: 1.05em; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Stats ---------- */
.stats { background: var(--navy); color: #fff; padding: 2.6rem 0; position: relative; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat { text-align: center; padding: .3rem 0; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .1); }
.stat__num { display: block; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.stat__label { font-size: .9rem; color: #a9bad3; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--bg-tint); }
.section__head { max-width: 46rem; margin: 0 auto 3.5rem; text-align: center; }
.section__head p:last-child { font-size: 1.1rem; margin-bottom: 0; }
.section__head--split { max-width: none; text-align: left; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: end; }
.section__head--split h2 { margin-bottom: 0; }
.lead { font-size: 1.12rem; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  overflow: hidden; display: flex; flex-direction: column;
}
.service::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.2rem;
  background: var(--brand-50); color: var(--brand); transition: background .3s, color .3s;
}
.service__icon .icon { width: 26px; height: 26px; }
.service:hover .service__icon { background: var(--brand); color: #fff; }
.service p { font-size: .95rem; margin: 0; }
.service__list { display: grid; gap: .35rem; font-size: .95rem; }
.service__list li { display: flex; align-items: center; gap: .55rem; }
.service__list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.service__link { margin-top: auto; padding-top: 1.3rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .92rem; align-self: flex-start; }
.service__link .icon { transition: transform .2s var(--ease); }
.service__link:hover .icon { transform: translateX(4px); }
.extras { margin-top: 1.6rem; display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; padding: 1.1rem 1.4rem; border-radius: var(--radius-lg); background: var(--bg-tint); border: 1px dashed var(--brand-100); }
.extras__label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; color: var(--ink); font-size: .95rem; }
.extras__label .icon { color: var(--gold); }
.extras__list { display: flex; flex-wrap: wrap; gap: .55rem; }
.extras__list a { display: inline-block; padding: .45rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; transition: border-color .2s, color .2s; }
.extras__list a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Industrias ---------- */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.industry { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; isolation: isolate; box-shadow: var(--shadow-sm); }
.industry img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); z-index: -2; }
.industry::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 31, 61, 0) 30%, rgba(10, 31, 61, .55) 60%, rgba(10, 31, 61, .92) 100%); }
.industry:hover img { transform: scale(1.06); }
.industry__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; color: #dfe8f5; }
.industry__body h3 { color: #fff; margin-bottom: .3rem; }
.industry__body p { font-size: .92rem; margin: 0; }

/* ---------- Dueña / About ---------- */
.owner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.owner__media { position: relative; max-width: 440px; width: 100%; justify-self: center; }
.owner__media::before { content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: var(--radius-lg); background: var(--gold-grad); opacity: .9; z-index: -1; }
.owner__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.owner__card { position: absolute; left: -6%; bottom: 8%; background: var(--navy); color: #c9d5e8; padding: .9rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow); font-size: .85rem; border-left: 4px solid var(--gold); }
.owner__card strong { display: block; color: #fff; font-family: "Cinzel", Georgia, serif; font-size: 1.1rem; letter-spacing: .03em; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.8rem 0 2rem; }
.mv__item { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.2rem; }
.mv__item h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.mv__item p { font-size: .92rem; margin: 0; }
.mv__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); margin-bottom: .8rem; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.values li { display: flex; gap: .9rem; }
.values__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.values strong { color: var(--ink); }
.values p { margin: .1rem 0 0; font-size: .9rem; }

/* ---------- Proceso ---------- */
.section--dark { background: radial-gradient(800px 400px at 100% 0%, rgba(226, 168, 23, .12), transparent 60%), var(--navy); color: #a9bad3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.step {
  position: relative; padding: 2rem 1.6rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .09);
  transition: background .3s, transform .3s var(--ease);
}
.step:hover { background: rgba(255, 255, 255, .07); transform: translateY(-4px); }
.step__num {
  display: inline-block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 1.2rem;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { margin: 0; font-size: .95rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 3.2rem; right: -1.1rem; width: 1rem; height: 2px;
  background: rgba(255, 255, 255, .25);
}

/* ---------- Trabajos reales ---------- */
.work { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 1.1rem; grid-auto-flow: dense; }
.work__item { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); box-shadow: var(--shadow-sm); }
.work__item--ba { grid-column: span 2; grid-row: span 2; }
.work__item--tall { grid-row: span 2; }
.work__item--wide { grid-column: span 2; }
.work__item--big { grid-column: span 2; grid-row: span 2; }
.work__item > img, .work__video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work__item:hover > img { transform: scale(1.05); }
/* el video viene de una grabación de pantalla: se amplía un poco para ocultar íconos de los bordes */
.work__video { transform: scale(1.12); transform-origin: 35% 40%; }
.work__item figcaption {
  position: absolute; left: .9rem; bottom: .9rem; padding: .4rem .85rem; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .8rem; font-weight: 700;
}
.work__badge { position: absolute; top: .9rem; left: .9rem; display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .7rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; }
.work__badge .icon { fill: var(--gold-light); stroke: none; width: 1em; height: 1em; }
.ba { display: grid; grid-template-columns: 1fr 1fr; height: 100%; gap: 3px; background: #fff; }
.ba__side { position: relative; overflow: hidden; }
.ba__side img { width: 100%; height: 100%; object-fit: cover; }
.ba__label { position: absolute; top: .9rem; left: .9rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(11, 31, 68, .85); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ba__label--after { background: var(--gold-grad); color: var(--navy); }
.insta {
  margin-top: 1.6rem; display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  padding: 1.2rem 1.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.insta__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(45deg, #f9a825, #e1306c 50%, #833ab4); flex-shrink: 0; }
.insta__text { flex: 1; min-width: 220px; }
.insta__text strong { display: block; color: var(--ink); }
.insta__text span { font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
.faq__head a { font-weight: 700; }
.faq__list { display: grid; gap: .8rem; }
.faq__list details { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); transition: background .2s, border-color .2s; }
.faq__list details[open] { background: #fff; border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.faq__list summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand); font-size: 1.3rem; font-weight: 500; transition: transform .3s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 1.4rem 1.3rem; margin: 0; }

/* ---------- Cotización ---------- */
.section--quote {
  background:
    radial-gradient(700px 500px at 0% 0%, rgba(226, 168, 23, .18), transparent 60%),
    linear-gradient(135deg, var(--brand-700) 0%, var(--brand) 60%, #1a73d9 100%);
  color: #d4e3f8;
}
.quote { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.quote__info h2 { color: #fff; }
.contact-list { display: grid; gap: 1.1rem; margin-top: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list__icon { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.contact-list div > span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #a8c6ef; }
.contact-list a, .contact-list p { color: #fff; font-weight: 700; margin: 0; font-size: 1.05rem; word-break: break-word; }

.quote-form { position: relative; background: #fff; border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); box-shadow: var(--shadow-lg); }
.quote-form > h3 { font-size: 1.45rem; margin-bottom: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; margin-bottom: 1.5rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink); width: 100%;
  padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-tint);
  transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2346546a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; padding-right: 2.5rem;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(8, 90, 192, .12); }
.field__error { display: none; font-size: .8rem; color: #c62828; font-weight: 600; }
.field.is-invalid input, .field.is-invalid select { border-color: #e53935; background: #fff7f7; }
.field.is-invalid .field__error { display: block; }
.form-note { text-align: center; font-size: .85rem; color: var(--muted); margin: .9rem 0 0; }
.form-note a { font-weight: 700; }
.form-success {
  position: absolute; inset: 0; background: #fff; border-radius: inherit; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 2rem; animation: fadeIn .4s var(--ease);
}
.form-success[hidden] { display: none; }
.form-success a { font-weight: 700; word-break: break-word; }
.form-success__icon { width: 72px; height: 72px; border-radius: 50%; background: #e7f6ee; color: #1b9a5a; display: grid; place-items: center; margin-bottom: 1.2rem; }
.form-success__icon .icon { width: 36px; height: 36px; stroke-width: 2.4; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #93a6c2; padding: 4.5rem 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand img { height: 120px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { max-width: 22rem; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 1.1rem; letter-spacing: 0; }
.footer ul { display: grid; gap: .6rem; }
.footer a { color: #b9c7db; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__contact li { display: flex; align-items: center; gap: .6rem; }
.footer__contact .icon { color: var(--accent); }
.social { display: flex; gap: .6rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); transition: background .2s, color .2s; }
.social a:hover { background: var(--brand); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer__bottom p { margin: 0; }

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

/* ---------- Animación al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header__phone span { display: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .industry { aspect-ratio: 4 / 3.4; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 34px; }
  .nav-toggle { display: inline-flex; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 1.5rem 24px 2rem;
    display: flex; flex-direction: column; gap: 1.5rem;
    transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: .2rem; }
  .nav__list a { font-size: 1.25rem; padding: .9rem 1rem; border-radius: 12px; }
  .nav__cta-mobile { display: inline-flex; padding: 1.1rem; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle .icon--open { display: none; }
  body.nav-open .nav-toggle .icon--close { display: block; }

  .hero__grid, .owner, .quote, .faq { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero__image { aspect-ratio: 4 / 3.4; }
  .float-card--top { left: -8px; top: -18px; }
  .float-card--bottom { right: -8px; bottom: -22px; }
  .section__head--split { grid-template-columns: 1fr; gap: .5rem; }
  .owner__card { left: 0; }
  .values { grid-template-columns: 1fr 1fr; }
  .faq__head { position: static; }
  .work { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem; border-radius: 999px; font-weight: 700; }
  .mobile-bar__call { border: 2px solid var(--line); color: var(--ink); }
  .mobile-bar__quote { background: var(--brand); color: #fff; }
  .footer { padding-bottom: 76px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__trust { flex-direction: column; }
  .float-card { padding: .75rem .9rem; font-size: .78rem; }
  .float-card--top { left: 8px; top: 12px; }
  .float-card--bottom { right: 8px; bottom: 12px; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 1.6rem .5rem; }
  .stat:nth-child(odd) { border-left: 0; }
  .services, .industries, .steps { grid-template-columns: 1fr; }
  .industry { aspect-ratio: 16 / 11; }
  .work { grid-auto-rows: 170px; gap: .7rem; }
  .work__item--wide { grid-column: span 1; grid-row: span 1; }
  .work__item--big { grid-column: span 2; grid-row: span 1; }
  .float-card--top { display: none; }
  .mv, .values { grid-template-columns: 1fr; }
  .wordmark { font-size: 1.15rem; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Página legal (privacy.html) ---------- */
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2.2rem; }
.legal__date { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.legal__back { margin-left: auto; }
.footer--slim { padding-top: 0; }
@media (max-width: 900px) { .footer--slim { padding-bottom: 0; } }
