/* InodigiService – dirección «Letrero de colmado» */

@font-face {
  font-family: "Bungee";
  src: url("fonts/bungee.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --anil: #2337C6;
  --anil-osc: #18268f;
  --amarillo: #FFD000;
  --rosa: #E8317A;
  --cal: #FAF8F2;
  --tinta: #1B1B2F;
  --pizarra: #1F4D3A;
  --wa: #1FAF55;
  --sombra: 6px 6px 0 var(--tinta);
  --letrero: "Bungee", "Arial Black", Impact, sans-serif;
  --texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --borde: 3px solid var(--tinta);
  --ancho: 72rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cal);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icono { width: 1.4em; height: 1.4em; fill: currentColor; flex: none; }

.saltar {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--amarillo); padding: .6rem 1rem; font-weight: 700; border: var(--borde);
}
.saltar:focus { top: 1rem; }

/* ---------- Barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem;
  background: var(--cal);
  border-bottom: var(--borde);
}
.marca { font-family: var(--letrero); font-size: 1.05rem; text-decoration: none; letter-spacing: .01em; }
.marca-ino { color: var(--anil); }
.marca-serv { color: var(--rosa); }
.menu { display: none; gap: 1.4rem; font-weight: 700; }
.menu a { text-decoration: none; padding: .3rem 0; border-bottom: 3px solid transparent; }
.menu a:hover { border-bottom-color: var(--amarillo); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 3.1rem; padding: .75rem 1.3rem;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  border: var(--borde); border-radius: .6rem;
  box-shadow: 4px 4px 0 var(--tinta);
  transition: transform .15s ease, box-shadow .15s ease;
}
.boton:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--tinta); }
.boton:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); }
.boton-wa { background: var(--wa); color: #fff; }
.boton-linea { background: var(--cal); color: var(--tinta); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--anil);
  color: var(--cal);
  padding: 2.5rem 1rem 4.5rem;
  border-bottom: var(--borde);
  overflow: hidden;
}
.letrero { max-width: var(--ancho); margin: 0 auto; }
.letrero-marca { font-weight: 800; font-size: 1rem; color: var(--amarillo); margin-bottom: .9rem; }
.hero-titulo {
  font-family: var(--letrero); font-weight: 400;
  font-size: clamp(2.6rem, 13vw, 7.5rem);
  line-height: .98;
  color: var(--amarillo);
  text-shadow: 4px 4px 0 var(--anil-osc);
}
.hero-titulo > span { display: block; }
.hero-cinta {
  display: inline-block !important;
  margin-top: .9rem;
  font-size: clamp(1.15rem, 5.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--cal);
  background: var(--rosa);
  padding: .35em .5em .3em;
  transform: rotate(-2deg);
  text-shadow: none;
  border: var(--borde);
  box-shadow: 5px 5px 0 var(--tinta);
}
.hero-texto { max-width: 34rem; margin-top: 1.6rem; font-size: 1.15rem; color: #e9ecff; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.sello {
  position: absolute; right: -1.2rem; bottom: -1.4rem;
  width: 8.5rem; height: 8.5rem;
  display: grid; place-content: center; text-align: center;
  font-family: var(--letrero); font-size: 1.25rem; line-height: 1.05;
  color: var(--tinta); background: var(--amarillo);
  border: var(--borde); border-radius: 50%;
  transform: rotate(14deg);
}
.sello span { display: block; font-family: var(--texto); font-weight: 800; font-size: .85rem; }

/* La pintura del letrero: el único momento grande de animación */
@media (prefers-reduced-motion: no-preference) {
  .pintar {
    clip-path: inset(-10% 100% -10% 0);
    animation: pintar .7s cubic-bezier(.65, 0, .35, 1) forwards;
  }
  .pintar[data-orden="1"] { animation-delay: .15s; }
  .pintar[data-orden="2"] { animation-delay: .65s; }
  .pintar[data-orden="3"] { animation-delay: 1.2s; }
  .sello { animation: estampar .45s cubic-bezier(.2, 1.6, .4, 1) 1.8s both; }
  .hero-texto, .hero-acciones { animation: aparecer .5s ease 1.6s both; }
}
@keyframes pintar { to { clip-path: inset(-10% -5% -10% 0); } }
@keyframes estampar { from { transform: rotate(40deg) scale(2.2); opacity: 0; } to { transform: rotate(14deg) scale(1); opacity: 1; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Secciones ---------- */
.seccion { padding: 3.5rem 1rem; }
.seccion > * { max-width: var(--ancho); margin-left: auto; margin-right: auto; }
.titulo {
  font-family: var(--letrero); font-weight: 400;
  font-size: clamp(1.9rem, 8vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}
.titulo::after {
  content: ""; display: block;
  width: 4.5rem; height: .45rem; margin-top: .55rem;
  background: var(--rosa);
  transform: skewX(-18deg);
}
.intro { max-width: 40rem; font-size: 1.1rem; margin-bottom: 2rem; }
/* los textos angostos se alinean con el título, no al centro */
.seccion > .intro, .seccion > .contacto-texto { margin-left: max(0px, calc((100% - var(--ancho)) / 2)); }
section[id], article[id] { scroll-margin-top: 4.5rem; }

/* Quiénes somos */
.oficios { display: grid; gap: 1.1rem; }
.oficio {
  padding: 1.3rem 1.2rem 1.4rem;
  border: var(--borde); border-radius: .5rem;
  box-shadow: var(--sombra);
}
.oficio h3 { font-family: var(--letrero); font-weight: 400; font-size: 1.35rem; line-height: 1.1; margin-bottom: .5rem; }
.oficio-a { background: var(--amarillo); transform: rotate(-1deg); }
.oficio-b { background: var(--rosa); color: #fff; transform: rotate(.8deg); }
.oficio-c { background: var(--anil); color: #fff; transform: rotate(-.5deg); }
.oficio-d { background: #fff; transform: rotate(1.2deg); }

/* Trabajos */
.trabajos { background: #fff; border-top: var(--borde); border-bottom: var(--borde); }
.cliente-cabeza { margin-bottom: 1.6rem; }
.cliente-nombre {
  display: inline-block;
  font-family: var(--letrero); font-weight: 400; font-size: clamp(1.4rem, 6vw, 2.1rem);
  background: var(--tinta); color: var(--amarillo);
  padding: .3rem .7rem; transform: rotate(-1.5deg);
}
.cliente-lugar { margin-top: .7rem; font-weight: 600; color: #4a4a63; }

.videos { display: grid; grid-template-columns: 1fr; gap: 2rem; justify-items: center; }
.celular { width: min(100%, 19rem); }
.celular-pantalla {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--tinta);
  border: .65rem solid var(--tinta);
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 8px 8px 0 var(--amarillo), 8px 8px 0 3px var(--tinta);
}
.video { width: 100%; height: 100%; object-fit: cover; border-radius: 1.35rem; background: #000; }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 5rem; height: 5rem;
  display: grid; place-items: center;
  background: var(--amarillo); border: var(--borde); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--tinta);
  transition: transform .15s ease;
}
.video-play svg { width: 2.4rem; height: 2.4rem; fill: var(--tinta); margin-left: .3rem; }
.video-play:hover { transform: scale(1.08); }
.video-play[hidden] { display: none; }
.celular figcaption { margin-top: 1.1rem; text-align: center; font-size: .98rem; }
.celular figcaption strong { display: block; font-size: 1.08rem; }

.galeria-titulo { font-family: var(--letrero); font-weight: 400; font-size: 1.4rem; margin-top: 3.2rem; }
.galeria-ayuda { color: #4a4a63; margin: .3rem 0 1.6rem; }
.galeria { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.afiche {
  position: relative; display: block; width: 100%;
  padding: .5rem .5rem .8rem;
  background: #fff; border: 2px solid #d9d6cc;
  box-shadow: 3px 4px 0 rgba(27, 27, 47, .18);
  text-align: left;
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s ease;
}
.afiche::before {
  content: ""; position: absolute; top: -.7rem; left: 50%;
  width: 4.2rem; height: 1.4rem; margin-left: -2.1rem;
  background: rgba(255, 208, 0, .75);
  transform: rotate(-4deg);
}
.afiche-a { transform: rotate(-2.5deg); }
.afiche-b { transform: rotate(2deg); }
.afiche:hover, .afiche:focus-visible, .afiche.tocado {
  transform: rotate(0) scale(1.04) translateY(-6px);
  box-shadow: 10px 12px 0 var(--rosa);
  z-index: 2;
}
.afiche-pie { display: block; margin-top: .6rem; font-size: .85rem; font-weight: 700; }

/* Servicios: pizarra de colmado */
.pizarra {
  background: var(--pizarra); color: #f3f0e6;
  border: .6rem solid #7a5230;
  border-radius: .4rem;
  padding: 2rem 1.2rem 2.2rem;
  box-shadow: var(--sombra);
}
.titulo-pizarra { color: var(--amarillo); }
.titulo-pizarra::after { background: #f3f0e6; }
.menu-servicios li {
  display: grid; gap: .1rem;
  padding: .95rem 0;
  border-bottom: 2px dashed rgba(243, 240, 230, .35);
}
.menu-servicios li:last-child { border-bottom: 0; }
.srv { font-weight: 800; font-size: 1.15rem; }
.srv-det { color: #c9d8cf; }

/* Planes: etiquetas de precio colgadas */
.etiquetas { display: grid; gap: 3.2rem 1.6rem; padding-top: 1.5rem; }
.etiqueta {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2.6rem 1.4rem 1.5rem;
  background: #fff;
  border: var(--borde); border-radius: .4rem 2.2rem .4rem .4rem;
  box-shadow: var(--sombra);
  transform-origin: 50% -1.6rem;
}
/* el hueco y el hilo de la etiqueta */
.etiqueta::before {
  content: ""; position: absolute; top: .8rem; left: 50%;
  width: .95rem; height: .95rem; margin-left: -.475rem;
  border-radius: 50%; background: var(--cal); border: var(--borde);
}
.etiqueta::after {
  content: ""; position: absolute; top: -1.6rem; left: 50%;
  width: 3px; height: 2.75rem; margin-left: -1.5px;
  background: var(--tinta);
}
.etiqueta-nombre { font-family: var(--letrero); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.etiqueta-precio { font-family: var(--letrero); font-size: clamp(1.9rem, 9vw, 2.5rem); line-height: 1.1; margin: .5rem 0 1rem; color: var(--anil); }
.etiqueta-precio .moneda { font-size: .5em; vertical-align: .55em; margin-right: .15em; }
.etiqueta-precio .guion { margin: 0 .05em; }
.etiqueta-precio .desde { display: block; font-family: var(--texto); font-weight: 800; font-size: .95rem; }
.etiqueta-lista { flex: 1; display: grid; gap: .45rem; margin-bottom: 1.5rem; }
.etiqueta-lista li { padding-left: 1.5rem; position: relative; }
.etiqueta-lista li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: .7rem; height: .7rem; background: var(--rosa); transform: rotate(45deg);
}
.boton-tag { background: var(--anil); color: #fff; align-self: stretch; }

.etiqueta-mini { background: var(--amarillo); }
.etiqueta-mini .etiqueta-precio { color: var(--tinta); }
.etiqueta-mini .boton-tag { background: var(--rosa); }
.etiqueta-sello {
  position: absolute; top: -1rem; right: -.6rem; z-index: 1;
  padding: .45rem .8rem;
  font-weight: 800; font-size: .95rem;
  color: #fff; background: var(--rosa);
  border: var(--borde); border-radius: .4rem;
  transform: rotate(6deg);
  box-shadow: 3px 3px 0 var(--tinta);
}
.etiqueta-pro { background: var(--anil); color: #fff; }
.etiqueta-pro .etiqueta-precio { color: var(--amarillo); }
.etiqueta-pro .etiqueta-lista li::before { background: var(--amarillo); }
.etiqueta-pro .boton-tag { background: var(--amarillo); color: var(--tinta); }

@media (prefers-reduced-motion: no-preference) {
  .etiqueta.balanceo { animation: balanceo 1.1s cubic-bezier(.3, .1, .3, 1); }
}
@keyframes balanceo {
  0% { transform: rotate(0); }
  18% { transform: rotate(5deg); }
  40% { transform: rotate(-3.5deg); }
  62% { transform: rotate(2deg); }
  82% { transform: rotate(-.8deg); }
  100% { transform: rotate(0); }
}

/* Cómo empezamos: una secuencia real, así que va numerada */
.pasos { background: var(--amarillo); border-top: var(--borde); border-bottom: var(--borde); }
.lista-pasos { counter-reset: paso; display: grid; gap: 1.6rem; }
.lista-pasos li {
  counter-increment: paso;
  position: relative;
  display: grid; grid-template-columns: 3.6rem 1fr; column-gap: 1rem;
}
.lista-pasos li::before {
  content: counter(paso);
  grid-row: span 2;
  width: 3.6rem; height: 3.6rem;
  display: grid; place-items: center;
  font-family: var(--letrero); font-size: 1.6rem;
  background: var(--tinta); color: var(--amarillo);
  border-radius: 50%;
}
.lista-pasos h3 { font-family: var(--letrero); font-weight: 400; font-size: 1.25rem; line-height: 1.15; align-self: end; }
.lista-pasos p { margin-top: .2rem; }

/* Contacto */
.contacto { background: var(--rosa); color: #fff; }
.titulo-claro::after { background: var(--amarillo); }
.contacto-texto { font-size: 1.15rem; max-width: 34rem; margin-bottom: 1.8rem; }
.contacto-lista { display: grid; gap: 1rem; }
.contacto-enlace {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem;
  background: #fff; color: var(--tinta);
  border: var(--borde); border-radius: .6rem;
  box-shadow: var(--sombra);
  text-decoration: none;
  font-family: var(--letrero); font-size: clamp(1.15rem, 5.5vw, 1.6rem);
  transition: transform .15s ease;
}
.contacto-enlace:hover { transform: translate(-2px, -2px); }
.contacto-enlace .icono { width: 2.4rem; height: 2.4rem; color: var(--anil); }
.contacto-enlace small { display: block; font-family: var(--texto); font-weight: 700; font-size: .85rem; color: #4a4a63; }

.pie { padding: 1.6rem 1rem 6rem; text-align: center; font-size: .9rem; background: var(--tinta); color: #c9c9da; }

/* WhatsApp flotante */
.wa-flotante {
  position: fixed; z-index: 30;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 3.8rem; height: 3.8rem;
  display: grid; place-items: center;
  background: var(--wa); color: #fff;
  border: var(--borde); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--tinta);
  transition: transform .15s ease;
}
.wa-flotante .icono { width: 2rem; height: 2rem; }
.wa-flotante:hover { transform: scale(1.08) rotate(-6deg); }

/* Visor de flyers */
.visor {
  padding: 0; border: var(--borde); border-radius: .5rem;
  max-width: min(92vw, 34rem); max-height: 92vh;
  background: #fff; overflow: auto;
}
.visor::backdrop { background: rgba(27, 27, 47, .85); }
.visor-img { width: 100%; height: auto; }
.visor-cerrar {
  position: sticky; top: .5rem; float: right; margin: .5rem .5rem -3.5rem 0; z-index: 1;
  width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--amarillo); border: var(--borde); border-radius: 50%;
}
.visor-cerrar svg { width: 1.4rem; height: 1.4rem; stroke: var(--tinta); stroke-width: 3; fill: none; }

/* ---------- Pantallas más grandes ---------- */
@media (min-width: 640px) {
  .oficios { grid-template-columns: 1fr 1fr; }
  .videos { grid-template-columns: 1fr 1fr; }
  .etiquetas { grid-template-columns: 1fr 1fr; }
  .menu-servicios li { grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; }
  .srv-det { text-align: right; }
  .contacto-lista { grid-template-columns: 1fr 1fr; }
  .sello { right: 2rem; bottom: 2rem; width: 10rem; height: 10rem; font-size: 1.5rem; }
}
@media (min-width: 900px) {
  .menu { display: flex; }
  .barra { padding: .8rem 2rem; }
  .hero { padding: 5rem 2rem 6rem; }
  .seccion { padding: 5rem 2rem; }
  .oficios { grid-template-columns: repeat(4, 1fr); }
  .videos { justify-content: start; grid-template-columns: repeat(2, 19rem); gap: 3rem; }
  .galeria { grid-template-columns: 22rem 17rem; gap: 2.5rem; }
  .etiquetas { grid-template-columns: repeat(4, 1fr); }
  .lista-pasos { grid-template-columns: repeat(4, 1fr); }
  .lista-pasos li { grid-template-columns: 1fr; row-gap: .8rem; }
  .lista-pasos li::before { grid-row: auto; }
  .lista-pasos h3 { align-self: start; }
  .sello { right: 6%; bottom: 3.5rem; width: 12rem; height: 12rem; font-size: 1.9rem; }
}

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