:root {
  --blue: #1f3a5f;
  --blue-800: #182f4d;
  --blue-900: #12243b;
  --blue-50: #eef2f7;
  --blue-100: #dde5ef;
  --ink: #23272b;
  --muted: #5b626c;
  --line: #e2e6ec;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --accent: #d9662b;
  --accent-700: #bd5622;
  --ok: #18794e;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 6%);
  --shadow: 0 2px 6px rgb(16 24 40 / 6%), 0 18px 40px rgb(16 24 40 / 10%);
}
* {
  box-sizing: border-box;
}
/* Lo marcado como oculto no se muestra nunca, aunque su clase tenga display */
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4 {
  font-family: Montserrat, Inter, system-ui, sans-serif;
  color: var(--blue);
  line-height: 1.18;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
h1 span {
  color: #ffb489;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.12rem;
  font-weight: 700;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--blue);
}
.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}
.narrow {
  width: min(780px, 100% - 32px);
}
.center {
  text-align: center;
  margin-top: 40px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}
:focus-visible {
  outline: 3px solid rgb(217 102 43 / 55%);
  outline-offset: 2px;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 14px 24px;
  font: 700 15px/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgb(217 102 43 / 28%);
}
.btn-primary:hover {
  background: var(--accent-700);
}
.btn-ghost {
  background: #fff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.btn-light {
  background: #fff;
  color: var(--blue);
}
.btn-sm {
  padding: 11px 16px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* Barra superior */
.topbar {
  background: var(--blue-900);
  color: #c9d3e0;
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
}
.topbar-links {
  display: flex;
  gap: 18px;
}
.topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
.topbar a:hover {
  text-decoration: underline;
}

/* Cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 95%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand img {
  display: block;
  width: 158px;
  height: auto;
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover {
  color: var(--accent);
}
.header-phone {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 500px at 15% -10%, #2c5180 0%, transparent 60%), linear-gradient(160deg, var(--blue) 0%, var(--blue-900) 100%);
  color: #dfe6ef;
  padding: 72px 0 88px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.hero-bg.has-photo {
  opacity: 0.28;
}
.hero-bg:not(.has-photo) {
  /* Foto de portada con velo azul para que el texto se lea */
  opacity: 1;
  background-image: linear-gradient(90deg, rgba(16, 33, 56, 0.95) 0%, rgba(16, 33, 56, 0.8) 42%, rgba(16, 33, 56, 0.35) 100%),
    url("../img/hero-carpa-1376.webp");
  background-position: center, 85% 30%;
}
@media (max-width: 960px) {
  .hero-bg:not(.has-photo) {
    background-image: linear-gradient(180deg, rgba(16, 33, 56, 0.9) 0%, rgba(16, 33, 56, 0.86) 100%), url("../img/hero-carpa-800.webp");
  }
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12.5px;
  font-weight: 700;
  margin: 0 0 12px;
}
.eyebrow {
  color: #ffb489;
}
.kicker {
  color: var(--accent);
}
.lead {
  font-size: 1.15rem;
  max-width: 34em;
  color: #d3dce8;
}
.hero-checks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}
.hero-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #fff;
  font-weight: 500;
}
.hero-checks li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
/* Ventajas rápidas: solo en móvil (sustituyen a la frase de entrada) */
.hero-quick,
.hero-quick-note {
  display: none;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 15%);
}
.hero-trust div strong {
  display: block;
  font: 800 1.6rem Montserrat, sans-serif;
  color: #fff;
}
.hero-trust div span {
  font-size: 13px;
  color: #b9c6d6;
}

/* Tarjeta de presupuesto */
.quote-card {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  box-shadow: 0 30px 70px rgb(0 0 0 / 30%);
  padding: 28px;
}
.quote-head h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.quote-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}
.progress {
  height: 6px;
  background: var(--blue-50);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 20px;
}
.progress span {
  display: block;
  height: 100%;
  width: 33%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.3s;
}
.step {
  border: 0;
  padding: 0;
  margin: 0;
}
.step legend {
  font: 700 1rem Montserrat, sans-serif;
  color: var(--blue);
  margin-bottom: 14px;
  padding: 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* todas las filas igual de altas: las tarjetas miden lo mismo aunque el texto ocupe una o dos líneas */
  grid-auto-rows: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.choice {
  position: relative;
  display: flex;
}
.choice input {
  position: absolute;
  opacity: 0;
}
.choice span {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 13px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.choice span:hover {
  border-color: var(--blue-100);
  background: var(--bg-alt);
}
.choice input:checked + span {
  border-color: var(--accent);
  background: #fff4ee;
  color: var(--blue);
}
.choice input:focus-visible + span {
  outline: 3px solid rgb(217 102 43 / 45%);
  outline-offset: 2px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  margin-bottom: 12px;
}
#lead-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.grid-2 label {
  margin-bottom: 0 !important;
}
#lead-form input,
#lead-form select,
#lead-form textarea {
  font: 15px/1.4 Inter, system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #d4dae3;
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
}
#lead-form textarea {
  resize: vertical;
}
#lead-form input:focus,
#lead-form select:focus,
#lead-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgb(31 58 95 / 12%);
}
#lead-form .invalid {
  border-color: #c0392b !important;
}
.sizes {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sizes button {
  font: 600 13px Inter, sans-serif;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--blue);
  border-radius: 99px;
  padding: 5px 11px;
  cursor: pointer;
}
.sizes button:hover {
  border-color: var(--blue);
}
#lead-form label.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--muted);
}
#lead-form label.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--accent);
}
.step-nav {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 6px;
}
.form-status {
  margin: 10px 0 0;
  font-size: 14px;
  min-height: 1.2em;
}
.form-status.error {
  color: #b42318;
}
.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.quote-foot {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.thanks {
  text-align: center;
  padding: 12px 0;
}
.thanks-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e7f5ee;
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
}
.thanks p {
  color: var(--muted);
}

/* Franja de garantías */
.assurances {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.assurances-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.assurances-inner div {
  padding: 22px 18px;
  border-right: 1px solid var(--line);
}
.assurances-inner div:last-child {
  border-right: 0;
}
.assurances strong {
  display: block;
  font: 800 1.05rem Montserrat, sans-serif;
  color: var(--blue);
}
.assurances span {
  font-size: 14px;
  color: var(--muted);
}

/* Secciones */
.section {
  padding: 88px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-lead {
  color: var(--muted);
  font-size: 1.07rem;
  max-width: 42em;
  margin-bottom: 36px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card-media {
  aspect-ratio: 16 / 9;
  background: var(--blue-50) center/cover no-repeat;
}
.card-media {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
/* Bloque destacado con foto grande (ganadería) */
.showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.showcase-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15, 30, 50, 0.16);
}
.showcase .tech-list {
  margin-bottom: 28px;
}
/* Foto de la ficha técnica */
.spec-photo {
  margin: -26px -26px 22px;
}
.spec-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}
.spec-photo figcaption,
.wide-photo figcaption,
.gallery figcaption {
  font-size: 13.5px;
  color: var(--muted);
  padding: 8px 26px 0;
}
/* Foto ancha (montaje) */
.wide-photo {
  margin: 48px 0 32px;
}
.wide-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 8;
  object-fit: cover;
  border-radius: var(--radius);
}
.wide-photo figcaption {
  padding: 10px 0 0;
}
/* Antes / después */
.compare {
  position: relative;
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1376 / 768;
  box-shadow: 0 18px 40px rgba(15, 30, 50, 0.16);
  user-select: none;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare-before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.compare-handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 22px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare-range:focus-visible ~ .compare-handle,
.compare:has(.compare-range:focus-visible) .compare-handle {
  outline: 3px solid var(--accent);
}
.compare-tag {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 33, 56, 0.75);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}
.compare-tag-l {
  left: 14px;
}
.compare-tag-r {
  right: 14px;
}
/* Galería de aplicaciones */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.gallery figure {
  margin: 0;
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}
.gallery figcaption {
  padding: 8px 2px 0;
  font-weight: 600;
  color: var(--blue);
}
.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body p {
  color: var(--muted);
  flex: 1;
}
.link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
}
.also {
  margin-top: 24px;
  color: var(--muted);
  font-size: 15px;
}
.also span {
  font-weight: 700;
  color: var(--blue);
}

/* Técnica */
.tech {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: start;
}
.tech-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.tech-list li {
  padding-left: 18px;
  border-left: 3px solid var(--accent);
}
.tech-list strong {
  display: block;
  color: var(--blue);
}
.tech-list span {
  color: var(--muted);
}
.spec-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.spec-card dl {
  margin: 0 0 20px;
}
.spec-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
}
.spec-card dt {
  color: var(--muted);
}
.spec-card dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

/* Cifras */
.stats-section {
  background: var(--blue);
  padding: 56px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.stats strong {
  display: block;
  font: 800 2.4rem Montserrat, sans-serif;
  color: #fff;
}
.stats span {
  color: #c9d3e0;
}

/* Proceso */
.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: var(--blue-100);
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-top: 62px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 1.05rem Montserrat, sans-serif;
  box-shadow: 0 0 0 6px #fff;
}
.steps strong {
  display: block;
  color: var(--blue);
  margin-bottom: 4px;
}
.steps span {
  color: var(--muted);
  font-size: 15px;
}

/* Licencias */
.licence {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.licence h2 {
  font-size: 1.5rem;
}
.licence p {
  color: var(--muted);
  margin: 0;
  max-width: 52em;
}
.licence-icon {
  font-size: 34px;
  line-height: 1;
}

/* Obras y opiniones */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.project img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.project div {
  padding: 14px 16px;
}
.project strong {
  display: block;
  color: var(--blue);
}
.project span {
  font-size: 14px;
  color: var(--muted);
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
}
.testimonial p {
  font-size: 15.5px;
}
.testimonial footer {
  font-size: 14px;
  color: var(--muted);
}
.testimonial footer strong {
  color: var(--blue);
  display: block;
}

/* FAQ */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  color: var(--blue);
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1;
  color: var(--accent);
}
details[open] summary::after {
  content: "–";
}
details p {
  color: var(--muted);
  margin: 0 0 18px;
}

/* CTA final */
.final-cta {
  background: linear-gradient(120deg, var(--accent) 0%, #c4541f 100%);
  color: #fff;
  padding: 56px 0;
}
.final-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.final-cta h2 {
  color: #fff;
  margin-bottom: 6px;
}
.final-cta p {
  margin: 0;
  color: #ffe6d9;
  font-size: 1.05rem;
}
.final-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.final-cta .btn-primary {
  background: var(--blue);
  box-shadow: none;
}
.final-cta .btn-primary:hover {
  background: var(--blue-800);
}

/* Pie */
.site-footer {
  background: var(--blue-900);
  color: #b9c6d6;
  font-size: 14px;
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 32px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.footer-grid p {
  max-width: 26em;
  margin-top: 14px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-list a {
  color: #fff;
  text-decoration: none;
}
.footer-list a:hover {
  text-decoration: underline;
}
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 10%);
  margin-top: 40px;
  padding: 18px 0;
  font-size: 13px;
  color: #8fa0b5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

/* Selector de idioma (pie) */
.lang {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 10px;
  background: rgb(255 255 255 / 6%);
  color: #fff;
  font: 500 14px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: rgb(255 255 255 / 12%);
}
.lang-btn:focus-visible,
.lang-menu button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lang-flag {
  display: inline-flex;
  width: 22px;
  height: 15px;
  flex: none;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 15%);
}
.lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.lang-caret {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}
.lang-btn[aria-expanded="true"] .lang-caret {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 80;
  min-width: 180px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--ink);
  font: 500 14px/1 Inter, system-ui, sans-serif;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover {
  background: var(--blue-50);
}
.lang-menu button[aria-checked="true"] {
  font-weight: 700;
  color: var(--blue);
}
.lang-menu button[aria-checked="true"]::after {
  content: "✓";
  margin-left: auto;
}
.lang-menu button:focus-visible {
  outline-color: var(--blue);
}
@media (max-width: 640px) {
  /* En el móvil el selector baja a su propia línea, a la izquierda */
  .lang-menu {
    left: 0;
    right: auto;
  }
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgb(0 0 0 / 25%);
}
.wa-float svg {
  width: 30px;
  height: 30px;
}

/* Páginas legales */
.legal {
  padding: 48px 0 80px;
}
.legal h1 {
  font-size: 2rem;
  color: var(--blue);
}
.legal h2 {
  font-size: 1.25rem;
  margin-top: 1.6em;
}
.legal .todo {
  background: #fff4e5;
  border: 1px dashed var(--accent);
  padding: 0 4px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
  }
}
@media (max-width: 960px) {
  .hero-inner,
  .tech,
  .showcase {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cards,
  .projects,
  .testimonials,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }
  .assurances-inner {
    grid-template-columns: 1fr 1fr;
  }
  .assurances-inner div:nth-child(2) {
    border-right: 0;
  }
  .assurances-inner div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .steps::before {
    top: 22px;
    bottom: 22px;
    left: 22px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .steps li {
    padding: 0 0 22px 66px;
    min-height: 52px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .topbar-note {
    display: none;
  }
  .topbar-inner {
    justify-content: center;
  }
  .topbar-links {
    gap: 14px;
    white-space: nowrap;
    font-size: 12.5px;
  }
  .topbar-links a[href^="mailto"] {
    display: none;
  }
  .header-phone {
    display: none;
  }
  .brand img {
    width: 132px;
  }
  .hero {
    padding: 40px 0 56px;
  }
  .section {
    padding: 60px 0;
  }
  .cards,
  .projects,
  .testimonials,
  .gallery,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quote-card {
    padding: 20px;
  }
  .licence {
    flex-direction: column;
    padding: 24px;
  }
}
/* ===================== Móvil ===================== */
.mobile-bar {
  display: none;
}
@media (max-width: 640px) {
  body {
    /* hueco para la barra fija inferior (con la zona segura del iPhone) */
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  html {
    scroll-padding-top: 64px;
  }
  .header-inner {
    height: 60px;
  }
  .site-header .btn-sm {
    padding: 10px 14px;
    font-size: 13.5px;
  }
  .topbar-inner {
    min-height: 40px;
  }
  .topbar-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 13.5px;
  }

  /* Hero: titular, una frase y el formulario dentro de la primera pantalla; las ventajas, después */
  .hero {
    padding: 22px 0 36px;
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .hero-copy {
    display: contents;
  }
  .eyebrow {
    order: 1;
    font-size: 11.5px;
    margin-bottom: 8px;
  }
  /* En móvil «Nos encargamos de todo» va en su propia línea */
  .eyebrow .eb-sep {
    display: none;
  }
  .eyebrow .eb-2 {
    display: block;
    margin-top: 2px;
  }
  .hero h1 {
    order: 2;
    font-size: 1.85rem;
    margin-bottom: 10px;
  }
  .lead {
    display: none;
  }
  .hero-quick {
    order: 3;
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .hero-quick li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px 7px 8px;
    border-radius: 999px;
    background: rgb(255 255 255 / 10%);
    border: 1px solid rgb(255 255 255 / 18%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
  }
  /* La nota del asterisco va al final de la sección, debajo del formulario y las ventajas */
  .hero-quick-note {
    display: block;
    order: 7;
    margin: 18px 0 0;
    font-size: 12px;
    line-height: 1.35;
  }
  .hero-quick-note a {
    color: #b9c6d6;
    text-decoration: none;
  }
  .hero-quick li::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
  }
  .quote-card {
    order: 4;
    padding: 18px 16px;
    border-radius: 16px;
  }
  .hero-checks {
    order: 5;
    margin-top: 22px;
    font-size: 15px;
  }
  .hero-trust {
    order: 6;
  }
  .quote-head h2 {
    font-size: 1.3rem;
  }
  .quote-head p {
    font-size: 13.5px;
    margin-bottom: 12px;
  }
  .progress {
    margin-bottom: 16px;
  }
  .choice-grid {
    gap: 8px;
    margin-bottom: 14px;
  }
  .choice span {
    padding: 12px 10px;
    font-size: 14px;
    min-height: 56px;
  }
  /* 16 px en los campos: si no, el iPhone hace zoom al tocarlos */
  #lead-form input,
  #lead-form select,
  #lead-form textarea {
    font-size: 16px;
    min-height: 48px;
  }
  #lead-form textarea {
    min-height: 88px;
  }
  .sizes button {
    padding: 8px 12px;
    font-size: 14px;
  }
  .step-nav .btn,
  .quote-card .btn-block {
    min-height: 50px;
  }
  #lead-form label.check {
    padding: 6px 0;
    font-size: 14px;
  }
  #lead-form label.check input {
    width: 24px;
    height: 24px;
    min-height: 24px;
    margin-top: 0;
  }

  /* Secciones más compactas */
  .section {
    padding: 48px 0;
  }
  h2 {
    font-size: 1.55rem;
  }
  .section-lead {
    font-size: 1rem;
    margin-bottom: 22px;
  }
  .assurances-inner div {
    padding: 14px 12px;
  }
  .assurances strong {
    font-size: 0.98rem;
  }
  .assurances span {
    font-size: 13px;
  }

  /* Tarjetas en carrusel horizontal (se desliza con el dedo) */
  .cards,
  .projects,
  .testimonials {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: -16px;
    padding: 4px 16px 14px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cards::-webkit-scrollbar,
  .projects::-webkit-scrollbar,
  .testimonials::-webkit-scrollbar {
    display: none;
  }
  .card,
  .project,
  .testimonial {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
  .card:hover {
    transform: none;
  }
  .card-body {
    padding: 18px;
  }
  .link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .also {
    font-size: 14px;
    margin-top: 10px;
  }

  .tech {
    gap: 28px;
  }
  .spec-card {
    padding: 20px;
  }
  .spec-card dl div {
    font-size: 14px;
  }
  .steps li {
    padding-bottom: 16px;
  }
  .licence {
    gap: 10px;
  }
  summary {
    padding: 15px 28px 15px 0;
    min-height: 52px;
    position: relative;
  }
  summary::after {
    position: absolute;
    right: 0;
    top: 14px;
  }

  .final-cta {
    padding: 40px 0;
  }
  .final-actions,
  .final-actions .btn {
    width: 100%;
  }
  .final-actions .btn {
    min-height: 50px;
  }

  .site-footer {
    padding-top: 40px;
  }
  .footer-grid {
    gap: 22px;
  }
  .footer-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  /* Barra fija inferior: llamar · WhatsApp · presupuesto */
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(255 255 255 / 97%);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgb(16 24 40 / 8%);
    transform: translateY(110%);
    transition: transform 0.25s;
  }
  .mobile-bar.show {
    transform: none;
  }
  .mobile-bar[hidden] {
    display: none !important;
  }
  .mobile-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 12px;
    text-decoration: none;
    font: 700 12.5px/1.2 Inter, sans-serif;
  }
  .mb-btn {
    flex: 0 0 74px;
    color: var(--blue);
    background: var(--bg-alt);
    gap: 2px;
  }
  .mb-btn span {
    font-size: 17px;
  }
  .mb-primary {
    flex: 1;
    background: var(--accent);
    color: #fff;
    font-size: 15px !important;
  }
  /* Con la barra, el botón flotante de WhatsApp sobra */
  .wa-float {
    display: none !important;
  }
}

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