/* MGI Soluciones · demo (17/11/2026). Claro y fresco, azul del copo de su logo y el naranja del sol solo en detalles.
   Disposición tomada de dos referencias de Pinterest (AERIS "Breathe better spaces" y Northvale "Engineered for comfort"). */
@import url("assets/fuentes/fuentes.css");

:root {
  color-scheme: light dark;
  --fondo: #f3f7fa;
  --blanco: #ffffff;
  --tinta: #0c2340;
  --suave: #4a5d73;
  --azul: #1688c9;
  --azul-osc: #0d5f91;
  --hielo: #dcebf5;
  --sol: #f28c1c;
  --linea: #d4e2ec;
  --r: 22px;
  --titulo: "Unbounded", "Golos Text", system-ui, sans-serif;
  --texto: "Golos Text", system-ui, sans-serif;
  --ancho: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root { --fondo: #f3f7fa; --blanco: #ffffff; --tinta: #0c2340; --suave: #4a5d73; }
}
input, textarea { color-scheme: light; }

* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font-family: var(--texto); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(30px, 4.6vw, 58px); }
h3 { font-size: 19px; letter-spacing: -.01em; }
p { margin: 0; }
section { padding: clamp(70px, 10vw, 130px) clamp(18px, 4vw, 48px); }
section > * { max-width: var(--ancho); margin-inline: auto; }

/* Títulos que suben por líneas (base.js) */
.linea-caja { display: block; overflow: hidden; padding-top: .2em; margin-top: -.2em; }
.punt { margin-left: -.04em; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--tinta); color: #fff; font: 600 16px/1.2 var(--texto); text-decoration: none; position: relative; overflow: hidden; isolation: isolate; transition: transform .3s; }
.boton::before { content: ""; position: absolute; inset: 0; background: var(--azul); transform: translateX(-101%); transition: transform .45s cubic-bezier(.7, 0, .2, 1); z-index: -1; }
.boton:hover::before { transform: none; }
.boton:active { transform: scale(.97); }
.boton--chico { min-height: 44px; padding: 0 20px; font-size: 14px; }
.boton--grande { min-height: 62px; padding: 0 36px; font-size: 18px; }
.enlace { background: none; border: 0; padding: 6px 0; font: 600 16px var(--texto); color: var(--azul-osc); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; cursor: pointer; }
.ejemplo { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(12, 35, 64, .72); color: #fff; font: 500 12px var(--texto); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.ejemplo--fijo { position: static; display: inline-block; margin-top: 14px; }

/* Carga */
.carga { position: fixed; inset: 0; z-index: 100; background: var(--tinta); color: #fff; display: grid; place-content: center; justify-items: center; gap: 18px; }
.carga__copo { width: 86px; height: 86px; color: #fff; }
.carga__t { font: 500 18px var(--titulo); letter-spacing: .02em; }
.carga__t span { font-weight: 700; }
.sin-carga .carga { display: none; }

/* Barra */
.barra { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; width: min(calc(100% - 24px), 1280px); display: flex; align-items: center; gap: 22px;
  padding: 10px 10px 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px); border: 1px solid rgba(212, 226, 236, .9); transition: box-shadow .3s; }
.barra--baja { box-shadow: 0 10px 30px rgba(12, 35, 64, .08); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.marca__emb { width: 34px; height: 34px; color: var(--tinta); flex: none; }
.marca__txt { font: 500 16px var(--titulo); letter-spacing: -.01em; white-space: nowrap; }
.marca__txt b { font-weight: 700; }
.barra__nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; font-size: 15px; }
.barra__nav a { text-decoration: none; color: var(--suave); }
.barra__nav a:hover { color: var(--tinta); }
.barra__tel { font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; }

/* 1 Portada */
.portada { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; padding-top: 120px; overflow: hidden; max-width: none; }
.portada > * { max-width: none; margin: 0; }
.portada__fondo { position: absolute; left: 0; right: 0; bottom: -0.12em; z-index: 0; font: 700 clamp(120px, 24vw, 380px)/1 var(--titulo); letter-spacing: -.05em; color: transparent;
  -webkit-text-stroke: 1.2px #dbe6ee; white-space: nowrap; pointer-events: none; user-select: none; }
.portada__txt { position: relative; z-index: 1; padding-left: max(0px, calc((100vw - var(--ancho)) / 2 - 48px)); }
.sello { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--blanco); border: 1px solid var(--linea); text-decoration: none; font-size: 15px; color: var(--suave); }
.sello__estrellas { color: #c96a06; letter-spacing: 1px; }
.sello b { color: var(--tinta); }
.portada h1 { font-size: clamp(36px, 5.4vw, 76px); margin: 26px 0 22px; max-width: 13ch; }
.portada__baja { font-size: clamp(17px, 1.4vw, 20px); color: var(--suave); max-width: 46ch; }
.portada__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 34px; }
.portada__foto { position: relative; z-index: 1; margin: 0; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 5; max-height: 82svh; justify-self: end; width: 100%; }
.portada__foto img { width: 100%; height: 100%; object-fit: cover; }
.portada__dato { position: absolute; right: 16px; top: 16px; z-index: 2; width: 210px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); }
.portada__dato b { display: block; font: 700 44px/1 var(--titulo); color: var(--azul); }
.portada__dato > span { font-size: 14px; color: var(--suave); line-height: 1.35; display: block; margin-top: 6px; }

/* 2 Prueba */
.prueba { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding-block: 0 clamp(60px, 8vw, 100px); }
.prueba__item { padding: 26px 24px; border-left: 1px solid var(--linea); }
.prueba__item:first-child { border-left: 0; padding-left: 0; }
.prueba__item b { display: block; font: 700 clamp(24px, 2.6vw, 34px)/1.1 var(--titulo); }
.prueba__item > span { color: var(--suave); font-size: 15px; }

/* Títulos de sección */
.titulo { display: grid; gap: 16px; margin-bottom: clamp(34px, 5vw, 60px); }
.titulo p { color: var(--suave); max-width: 52ch; font-size: 18px; }
.titulo--fila { grid-template-columns: 1.2fr .8fr; align-items: end; }

/* 3 Problemas */
.problemas { background: var(--blanco); border-radius: 40px 40px 0 0; }
.problemas__grilla { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.25fr; grid-auto-flow: dense; grid-auto-rows: minmax(170px, auto); gap: 14px; }
.prob { position: relative; text-align: left; border: 1px solid var(--linea); background: var(--fondo); border-radius: var(--r); padding: 22px; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px; overflow: hidden; transition: transform .35s, border-color .35s, background .35s; }
.prob:hover { transform: translateY(-4px); border-color: var(--azul); }
.prob.elegido { border-color: var(--azul); background: var(--hielo); }
.prob__ico { width: 46px; height: 46px; border-radius: 14px; background: var(--blanco); display: grid; place-items: center; }
.prob__ico svg { width: 24px; height: 24px; fill: none; stroke: var(--azul); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.prob__txt b { display: block; font: 700 20px/1.2 var(--titulo); letter-spacing: -.01em; }
.prob__txt small { display: block; color: var(--suave); font-size: 15px; margin-top: 6px; }
.prob--foto { grid-row: 1 / span 2; grid-column: 1; padding: 0; color: #fff; border: 0; min-height: 360px; }
.prob--foto:last-child { grid-column: 4; }
.prob--foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.prob--foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 35, 64, 0) 35%, rgba(12, 35, 64, .82)); }
.prob--foto:hover img { transform: scale(1.06); }
.prob--foto .prob__txt { position: relative; z-index: 2; margin-top: auto; padding: 24px; }
.prob--foto small { color: rgba(255, 255, 255, .85); }
.prob--foto .ejemplo { top: 14px; bottom: auto; }
.prob--foto.elegido { outline: 3px solid var(--azul); outline-offset: 3px; }

/* 4 Servicios */
.servicios { background: var(--blanco); padding-top: 0; }
.servicios__lista { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.serv { grid-column: span 2; }
.serv:nth-child(4), .serv:nth-child(5) { grid-column: span 3; }
.serv figure { position: relative; margin: 0 0 18px; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.serv:nth-child(4) figure, .serv:nth-child(5) figure { aspect-ratio: 16 / 9; }
.serv img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.serv:hover img { transform: scale(1.05); }
.serv h3 { font-size: 22px; margin-bottom: 8px; }
.serv p { color: var(--suave); max-width: 44ch; }

/* 5 Cómo pedirlo */
.como { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; max-width: none; }
.como > * { max-width: none; margin: 0; }
.como__info { padding-left: max(0px, calc((100vw - var(--ancho)) / 2 - 48px)); position: relative; }
.como__pasos { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 26px; }
.como__pasos li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; }
.como__pasos b { width: 52px; height: 52px; border-radius: 50%; background: var(--hielo); color: var(--azul-osc); display: grid; place-items: center; font: 700 20px var(--titulo); }
.como__pasos h3 { margin-bottom: 4px; }
.como__pasos p { color: var(--suave); }
.como__splitcaja { margin: 50px 0 0; }
.como__split { width: min(440px, 92%); filter: drop-shadow(0 26px 30px rgba(12, 35, 64, .16)); }
.pedido { background: var(--tinta); color: #fff; border-radius: 30px; padding: clamp(24px, 3vw, 40px); position: sticky; top: 100px; margin-right: max(0px, calc((100vw - var(--ancho)) / 2 - 48px)); scroll-margin-top: 90px; }
.pasos__cab { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.pasos__barra { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.pasos__barra i { display: block; height: 100%; background: var(--azul); transform-origin: left; transition: transform .4s; }
.paso h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 20px; }
.ops { display: flex; flex-wrap: wrap; gap: 10px; }
.ops button { min-height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: 500 16px var(--texto); cursor: pointer; transition: background .25s, border-color .25s; }
.ops button:hover { border-color: #fff; }
.ops button.elegido { background: #fff; color: var(--tinta); border-color: #fff; }
.pasos__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }
.pedido .boton { background: #0f74ad; }
.pedido .boton::before { background: #fff; }
.pedido .boton:hover { color: var(--tinta); }
.pedido .enlace { color: rgba(255, 255, 255, .8); }
.campo { display: grid; gap: 8px; margin-top: 22px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.campo input { min-height: 50px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; padding: 0 16px; font: 16px var(--texto); }
.pasos__vista { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .65); }
.pasos__msg { margin-top: 8px; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: #dcf8c6; color: #10331f; font-size: 15px; line-height: 1.45; }

/* 6 y 7 Quién */
.quien { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.quien__tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-radius: 30px; padding: 36px; text-align: center; }
.quien__emb { width: 120px; height: 120px; color: var(--tinta); margin: 0 auto 18px; }
.quien__dato b { font: 700 56px/1 var(--titulo); color: var(--azul); }
.quien__dato { font: 500 22px var(--titulo); }
.quien__nom { margin-top: 10px; color: var(--suave); }
.quien__txt h2 { margin-bottom: 22px; }
.quien__txt p { color: var(--suave); font-size: 18px; max-width: 54ch; margin-bottom: 18px; }

/* 8 Si no hace nada */
.aviso-calor { padding-block: 0; }
.aviso-calor p { border-left: 4px solid var(--sol); padding: 6px 0 6px 24px; font: 500 clamp(20px, 2.2vw, 28px)/1.4 var(--titulo); letter-spacing: -.01em; max-width: 36ch; margin-inline: auto; }

/* 9 Preguntas */
.preguntas h2 { margin-bottom: 36px; }
.preguntas__lista { display: grid; gap: 10px; }
.preguntas details { background: var(--blanco); border: 1px solid var(--linea); border-radius: 18px; padding: 0 22px; }
.preguntas summary { cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font: 600 18px var(--texto); position: relative; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 500 26px var(--titulo); color: var(--azul); transition: transform .3s; }
.preguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.preguntas details p { padding: 0 0 20px; color: var(--suave); max-width: 70ch; }

/* 10 Final */
.final { text-align: center; background: var(--tinta); color: #fff; border-radius: 40px; margin: 0 clamp(10px, 2vw, 24px); position: relative; overflow: hidden; }
.final > * { position: relative; z-index: 1; }
.final__emb { position: absolute; z-index: 0; width: 520px; height: 520px; right: -140px; top: -120px; color: #fff; opacity: .08; }
.final h2 { max-width: 16ch; margin: 0 auto 18px; }
.final > p { color: rgba(255, 255, 255, .75); font-size: 18px; margin-bottom: 34px; }
.final .boton { background: #0f74ad; }
.final .boton::before { background: #fff; }
.final .boton:hover { color: var(--tinta); }
.final__datos { margin-top: 30px; color: rgba(255, 255, 255, .8); font-size: 16px; }

/* 11 Pie */
.pie { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; max-width: var(--ancho); margin: 0 auto; padding: 70px clamp(18px, 4vw, 48px) 110px; font-size: 15px; color: var(--suave); }
.pie h3 { font: 600 15px var(--texto); color: var(--tinta); margin-bottom: 10px; }
.pie p { margin-bottom: 8px; max-width: 36ch; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--tinta); }
.marca--pie { margin-bottom: 14px; }
.pie__abajo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid var(--linea); padding-top: 22px; font-size: 13px; }

/* Botón flotante */
.flota { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 16px; border-radius: 999px; background: #128c4a; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 10px 30px rgba(12, 35, 64, .2); transition: transform .3s; }
.flota:hover { transform: translateY(-3px); }
.flota svg { width: 26px; height: 26px; fill: #fff; }

/* Modo demo */
.demo { position: fixed; inset: 0; z-index: 90; background: rgba(12, 35, 64, .6); display: grid; place-items: center; padding: 20px; }
.demo[hidden] { display: none; }
.demo__caja { background: #fff; border-radius: 24px; padding: 28px; max-width: 460px; display: grid; gap: 14px; }
.demo__t { font: 700 20px var(--titulo); }
.demo__msg { background: #dcf8c6; border-radius: 14px; padding: 14px; font-size: 15px; }

/* Aparecer al bajar */
.js-listo [data-revela] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js-listo [data-revela].visto { opacity: 1; transform: none; }
.problemas__grilla [data-revela]:nth-child(2), .servicios__lista [data-revela]:nth-child(2), .prueba [data-revela]:nth-child(2) { transition-delay: .08s; }
.problemas__grilla [data-revela]:nth-child(3), .servicios__lista [data-revela]:nth-child(3), .prueba [data-revela]:nth-child(3) { transition-delay: .16s; }
.problemas__grilla [data-revela]:nth-child(4), .prueba [data-revela]:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } .js-listo [data-revela] { opacity: 1; transform: none; } }

/* Tablet */
@media (max-width: 1080px) {
  .barra__nav { display: none; }
  .barra__tel { margin-left: auto; }
  .problemas__grilla { grid-template-columns: 1fr 1fr; }
  .prob--foto, .prob--foto:last-child { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
}
/* Celular */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .barra { top: 8px; gap: 10px; padding: 8px 8px 8px 14px; }
  .barra__tel { display: none; }
  .barra .boton--chico { margin-left: auto; font-size: 13px; padding: 0 14px; }
  .barra .boton--chico { max-width: 150px; white-space: normal; line-height: 1.15; text-align: center; }
  .marca__txt { font-size: 14px; }
  .marca__emb { width: 30px; height: 30px; }
  .portada { grid-template-columns: 1fr; padding-top: 92px; min-height: 0; gap: 26px; }
  .portada h1 { font-size: clamp(32px, 9.6vw, 44px); margin: 18px 0 16px; }
  .portada__fondo { bottom: auto; top: 30%; font-size: 34vw; }
  .portada__foto { aspect-ratio: 4 / 4.4; border-radius: 24px; max-height: none; }
  .portada__dato { width: 170px; padding: 14px; right: 12px; top: 12px; }
  .portada__dato b { font-size: 34px; }
  .prueba { grid-template-columns: 1fr 1fr; padding-top: 30px; }
  .prueba__item { padding: 18px 14px; border-left: 0; border-top: 1px solid var(--linea); }
  .prueba__item:first-child { padding-left: 14px; }
  .titulo--fila { grid-template-columns: 1fr; }
  .problemas { border-radius: 28px 28px 0 0; }
  .problemas__grilla { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 10px; }
  .prob { padding: 16px; gap: 14px; }
  .prob__txt b { font-size: 16px; }
  .prob__txt small { font-size: 13.5px; }
  .prob--foto, .prob--foto:last-child { grid-column: 1 / -1; grid-row: auto; min-height: 260px; }
  .servicios__lista { grid-template-columns: 1fr; }
  .serv, .serv:nth-child(4), .serv:nth-child(5) { grid-column: auto; }
  .serv:nth-child(4) figure, .serv:nth-child(5) figure { aspect-ratio: 4 / 3; }
  .como { grid-template-columns: 1fr; }
  .como__splitcaja { display: none; }
  .pedido { position: static; border-radius: 24px; }
  .ops button { min-height: 48px; padding: 0 16px; }
  .quien { grid-template-columns: 1fr; }
  .final { border-radius: 28px; }
  .pie { grid-template-columns: 1fr; padding-bottom: 120px; }
  .flota { left: 12px; right: 12px; bottom: 12px; justify-content: center; }
}

/* La franja de datos es una grilla, no un bloque centrado */
.prueba { padding-inline: max(clamp(18px, 4vw, 48px), calc((100vw - var(--ancho)) / 2)); }
.prueba > * { max-width: none; margin: 0; }

/* Fotos que todavía no están: bloque de color en vez del ícono roto */
img.sin-foto { visibility: hidden; }
.portada__foto, .serv figure, .prob--foto { background: linear-gradient(150deg, var(--hielo), #bcd8ea 60%, #9cc4de); }
.portada__foto img, .serv figure img, .prob--foto img, .como__split { color: transparent; }
.falta-foto .ejemplo { display: none; }
.como__split.sin-foto { display: none; }
