/* Layout: white header, two-column hero (headline + quote card), service grid on ice-blue, steps strip, contact band in navy. Single light look on purpose: the logo sits on a light photo. */
:root {
  --bg: #ffffff;
  --ice: #FCD21E;
  --ink: #111111;
  --muted: #55524a;
  --line: #e6dfc3;
  --navy: #111111;
  --navy-deep: #111111;
  --orange: #FCD21E;
  --orange-deep: #8a6500;
  --on-navy: #ffffff;
  --font-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.gut {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.in { max-width: 1140px; margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px; border-radius: 10px; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em;
  text-decoration: none; text-transform: uppercase;
}
.btn.main { background: var(--orange); color: #111; }
.btn.main:hover { background: #e0b800; color: #111; }
.btn.alt { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn.alt:hover { background: var(--navy); color: #fff; }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--orange-deep);
}

/* Header */
header { border-bottom: 1px solid var(--line); background: var(--bg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 110px; height: auto; border-radius: 6px; display: block; }
.brand b { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1; color: var(--navy); text-transform: uppercase; display: block; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; color: var(--orange-deep); text-transform: uppercase; }
nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink); }
nav a:hover { color: var(--orange-deep); }
nav .btn { min-height: 42px; padding: 0 16px; font-size: 13px; color: #111; }
nav .btn:hover { color: #111; }

/* Hero */
.hero { background: var(--ice); padding-block: 48px 56px; }
.herogrid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(34px, 5.2vw, 58px); color: var(--navy-deep); margin-block: 14px 18px; }
.hero h1 em { font-style: normal; color: var(--orange); background: #111; padding: 0 8px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 52ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding: 0; list-style: none; font-weight: 700; font-size: 15px; color: var(--navy); }
.facts li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: #111; border-radius: 2px; transform: rotate(45deg); }
.heroimg { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16); background: #fff; }
.heroimg img { display: block; width: 100%; height: auto; }

/* Sections */
section { padding-block: 64px; }
.head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 62ch; }
.head h2 { font-weight: 800; font-size: clamp(28px, 4vw, 40px); color: var(--navy-deep); }
.head p { color: var(--muted); }
.services { background: var(--ice); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.card svg { width: 44px; height: 44px; color: var(--navy); }
.card h3 { font-weight: 700; font-size: 19px; color: var(--navy-deep); }
.card p { color: var(--muted); font-size: 16px; }

/* Quote */
.quote { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before {
  content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800;
}
.steps b { display: block; color: var(--navy-deep); }
.steps span { color: var(--muted); font-size: 16px; }
form { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); }
form h3 { font-weight: 800; font-size: 22px; color: var(--navy-deep); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f { display: grid; gap: 5px; min-width: 0; }
.f label { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.f input, .f select, .f textarea {
  font: inherit; color: var(--ink); background: #fff; width: 100%; min-width: 0;
  min-height: 48px; padding: 10px 12px; border-radius: 9px; border: 1.5px solid #cfc7a6;
}
.f textarea { min-height: 84px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: 0; }
.out { display: grid; gap: 10px; background: var(--ice); border-radius: 12px; padding: 16px; }
.out pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--font-body); font-size: 15.5px; }
.btn.wabtn { background: #1faa59; color: #fff; }
.btn.wabtn:hover { background: #168a47; }
.btn.wabtn[hidden] { display: none; }
.out .small, .small { font-size: 14px; color: var(--muted); }
.mail { font-weight: 700; color: var(--navy); user-select: all; }

/* Contact */
.contact { background: var(--navy-deep); color: var(--on-navy); }
.contact h2 { font-weight: 800; font-size: clamp(28px, 4vw, 40px); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 30px; }
.cgrid .wide { grid-column: 1 / -1; }
.mails { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.contact .mail { color: #fff; }
.cgrid h3 { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #FCD21E; margin-bottom: 8px; font-weight: 700; }
.cgrid p { font-size: 18px; overflow-wrap: anywhere; }
.tag { display: inline-block; background: #FCD21E; color: #111; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; vertical-align: middle; margin-left: 6px; }
footer { background: #000; color: #d9d4c0; padding-block: 20px; font-size: 14px; }
footer .in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }

.wa {
  position: fixed; z-index: 20;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  min-height: 54px; padding: 0 20px; border-radius: 28px; background: #1faa59; color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 9px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}
.wa svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .herogrid, .quote { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero { padding-block: 32px 40px; }
  section { padding-block: 48px; }
  nav a:not(.btn) { display: none; }
}
@media (max-width: 480px) {
  .row { grid-template-columns: minmax(0, 1fr); }
  .brand img { width: 84px; }
  .brand .mini { width: 38px; }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Sobre fondo amarillo: botones y textos en negro para que se lean */
.hero .btn.main, .services .btn.main { background: #111; color: #FCD21E; }
.hero .btn.main:hover, .services .btn.main:hover { background: #000; color: #FCD21E; }
.hero .btn.alt { border-color: #111; color: #111; }
.hero .btn.alt:hover { background: #111; color: #FCD21E; }
.hero .eyebrow, .services .eyebrow { color: #111; }
.hero .lead, .services .lead, .services p.sub { color: #2b2820; }
.out { border: 1.5px solid #111; }

/* Robot mascota */
.brand .mini { width: 45px; height: auto; border-radius: 0; }
.herovisual { position: relative; padding-bottom: 36px; }
.herovisual .heroimg { width: 100%; }
.herovisual .robot { position: absolute; left: 3.7%; top: 8.5%; width: 25.7%; height: auto; z-index: 2; filter: drop-shadow(0 8px 10px rgba(0,0,0,.3)); }
@media (min-width: 861px) { .herogrid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }

/* Cotización + ubicación sobre negro */
.dark { background: #111; color: #FCD21E; }
.dark .eyebrow { color: #FCD21E; }
.dark h2, .dark .head p, .dark .steps b, .dark .steps span { color: #FCD21E; }
.dark .steps li::before { background: #FCD21E; color: #111; }
.dark .head p, .dark .steps span { opacity: .92; }
.dark form { border-color: #FCD21E; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.whereblock { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(252,210,30,.35); }
.whereblock h3 { font-weight: 800; font-size: 26px; color: #FCD21E; margin: 8px 0 14px; }
.wlist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.wlist li { display: grid; gap: 2px; }
.wlist b { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #FCD21E; }
.wlist span { font-size: 18px; font-weight: 700; color: #FCD21E; }
.mapbox { border-radius: 14px; overflow: hidden; border: 2px solid #FCD21E; background: #fff; aspect-ratio: 16 / 10; margin-bottom: 18px; }
.mapbox iframe { width: 100%; height: 100%; border: 0; display: block; }
.dark .whereblock .btn.main { background: #FCD21E; color: #111; }
.dark .whereblock .btn.main:hover { background: #e0b800; color: #111; }
.contact { border-top: 4px solid #FCD21E; }

/* Página de homologaciones */
.teaser { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; background: #111; color: #FCD21E; border-radius: 14px; padding: 18px 22px; }
.teaser p { margin: 0; font-size: 18px; }
.teaser .btn.main { background: #FCD21E; color: #111; }
.h1s { font-weight: 800; font-size: clamp(34px, 5.2vw, 58px); margin-block: 14px 16px; }
.h1s em { font-style: normal; background: #111; color: #FCD21E; padding: 0 10px; border-radius: 6px; }
.hero .lead { max-width: 62ch; }
.draftbar { margin: 22px 0 0; padding: 12px 16px; border: 2px dashed #111; border-radius: 10px; background: #fff; font-size: 15px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.two2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.band { background: var(--ice); }
.imgph { border: 2px dashed #111; border-radius: 16px; min-height: 240px; display: grid; place-items: center; text-align: center; padding: 20px; color: #111; background: rgba(255,255,255,.55); font-weight: 700; }
.band .imgph.wide { margin-top: 22px; min-height: 180px; }
.tablewrap { overflow-x: auto; border-radius: 14px; border: 2px solid #111; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #111; color: #FCD21E; font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.tbc { display: inline-block; background: #FCD21E; color: #111; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.btn.disabled { opacity: .55; cursor: not-allowed; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta h2 { font-weight: 800; font-size: clamp(26px, 3.6vw, 36px); color: #FCD21E; margin-block: 8px; }
.cta p { color: #FCD21E; }
.dark .cta .btn.main { background: #FCD21E; color: #111; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .cards3 { grid-template-columns: minmax(0, 1fr); } }
.tbc { white-space: nowrap; }
.band .head p, .band .small { color: #2b2820; }

.homobtn { margin: 28px 0 0; text-align: center; }
.services .homobtn .btn.main { background: #111; color: #FCD21E; }

.figimg { margin: 0; border-radius: 16px; overflow: hidden; border: 2px solid #111; background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.14); }
.figimg img { display: block; width: 100%; height: auto; }
.figimg figcaption { background: #111; color: #FCD21E; font-weight: 700; padding: 10px 14px; font-size: 15px; }
.ticks { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.ticks li { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #111; }
.ticks li::before { content: "✓"; display: inline-block; width: 26px; height: 26px; line-height: 26px; text-align: center; border-radius: 50%; background: #111; color: #FCD21E; margin-right: 10px; font-size: 14px; }
.two2.one { grid-template-columns: minmax(0, 1fr); }

/* Marcas: recuadros negros para logos */
.brands { display: grid; gap: 16px; }
.bgroup { background: #111; border-radius: 14px; padding: 20px 22px; border: 2px solid #111; }
.bgroup h3 { color: #FCD21E; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.btiles { display: flex; flex-wrap: wrap; gap: 12px; }
.btile { flex: 1 1 140px; min-height: 84px; display: grid; place-items: center; padding: 12px; border: 1.5px solid rgba(252,210,30,.55); border-radius: 10px; background: #fff; }
.btile span { color: #FCD21E; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; }
.btile img { max-width: 100%; max-height: 56px; width: auto; height: auto; display: block; }
.btile img.blogo { max-width: 80%; max-height: 66px; width: auto; height: auto; }
.lead .todas { font-weight: 800; color: #111; }

/* Crédito del sitio (estilo FormaTuEmpresa.cL) */
footer .creditrow { flex-basis: 100%; display: flex; justify-content: center; margin-top: 14px; }
footer .credit { display: flex; align-items: center; gap: 14px; padding: 8px 26px 8px 20px; background: #0a0f24; border: 1px solid rgba(194,238,94,.28); border-radius: 999px; text-decoration: none; color: #fff; }
footer .credit:hover { border-color: rgba(194,238,94,.6); }
footer .credit .cr-txt { color: #9aa3b8; font-size: 15px; font-weight: 600; white-space: nowrap; }
footer .credit .cr-emblem { flex-shrink: 0; display: block; }
footer .credit b { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; white-space: nowrap; }
footer .credit b i { font-style: normal; color: #c2ee5e; }
@media (max-width: 520px) { footer .credit { gap: 10px; padding: 6px 16px 6px 14px; } footer .credit .cr-txt { font-size: 12px; } footer .credit b { font-size: 18px; } footer .credit .cr-emblem { width: 40px; height: 40px; } }

/* Opiniones Google */
.reviews { background: #fff; padding-top: 64px; padding-bottom: 64px; }
.reviews h2 { margin: 6px 0 28px; font-size: clamp(26px, 4vw, 38px); }
.revgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.rev { margin: 0; background: #111; color: #fff; border-radius: 16px; padding: 24px; display: grid; gap: 12px; align-content: start; border: 2px solid #FCD21E; }
.revhead { display: flex; gap: 12px; align-items: center; }
.revhead small { display: block; opacity: .7; font-size: 13px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; }
.stars { color: #FCD21E; font-size: 22px; letter-spacing: 2px; }
.rev blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.owner { font-size: 14px; border-left: 3px solid #FCD21E; padding-left: 12px; opacity: .9; }
.revlink { margin-top: 26px; text-align: center; }

/* Menos espacio entre portada y servicios */
.hero { padding-bottom: 12px; }
.herovisual { padding-bottom: 0; }
.services { padding-top: 28px; }
@media (max-width: 860px) { .hero { padding-bottom: 8px; } .services { padding-top: 20px; } }
