/* iguay.mx — estilos compartidos
   Iguana Publicidad · Lo Quiero Para Ayer Publicidad */

:root {
  --papel: #F4F7F8;      /* blanco frío, como lona front */
  --blanco: #FFFFFF;
  --tinta: #000000;      /* K */
  --texto: #2A2E31;
  --gris: #55595C;       /* gris del logo Iguana */
  --gris-claro: #D5DADD;
  --c: #00A0DF;
  --m: #E6007E;
  --y: #FFC800;
  --cian-lqpa: #00A2E1;
  --lq-azul: #0078A8;
  --lq-gris: #686868;
  --petroleo: #00577B;
  --petroleo-osc: #003B55;

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --medida: 68ch;
  --borde: 1px solid var(--gris-claro);
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  font-family: var(--f);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--texto);
  background: var(--papel);
  font-variation-settings: "wdth" 100;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: var(--medida); }
h1, h2, h3 { margin: 0 0 .5em; color: var(--tinta); line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); letter-spacing: -.02em; }
h3 { font-size: 1.25rem; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--m); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 1rem; top: -4rem; background: var(--tinta); color: #fff; padding: .6rem 1rem; z-index: 50; }
.saltar:focus { top: 1rem; }

.envoltura { width: min(1200px, 100%); margin-inline: auto; padding-inline: var(--pad); }
.seccion { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font: 700 1rem/1 var(--f);
  padding: .95em 1.35em;
  border: 2px solid var(--tinta);
  background: var(--tinta); color: #fff;
  text-decoration: none; cursor: pointer;
  border-radius: 2px;
}
.btn:hover { background: #fff; color: var(--tinta); }
.btn--claro { background: transparent; color: var(--tinta); }
.btn--claro:hover { background: var(--tinta); color: #fff; }
.btn--wa { background: #1F8F4E; border-color: #1F8F4E; }
.btn--wa:hover { background: #fff; color: #1F8F4E; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.acciones { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Marcas de corte (vocabulario de imprenta) ---------- */
.corte { position: relative; }
.corte::before, .corte::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border-color: var(--gris); border-style: solid;
}
.corte::before { top: -11px; left: -11px; border-width: 0 1px 1px 0; }
.corte::after  { bottom: -11px; right: -11px; border-width: 1px 0 0 1px; }

/* ---------- Tira de control CMYK ---------- */
.tira {
  display: grid; grid-template-columns: repeat(12, 1fr); height: 14px;
}
.tira span:nth-child(4n+1) { background: var(--c); }
.tira span:nth-child(4n+2) { background: var(--m); }
.tira span:nth-child(4n+3) { background: var(--y); }
.tira span:nth-child(4n+4) { background: var(--tinta); }
.tira span:nth-child(n+5) { opacity: .6; }
.tira span:nth-child(n+9) { opacity: .3; }

/* =========================================================
   ENCABEZADO DE PÁGINAS INTERNAS
   ========================================================= */
.cabecera { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: var(--borde); }
.cabecera .envoltura { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 72px; }
.cabecera__logo img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { padding: .7em 1.05em; font-size: .95rem; }
.nav__toggle { display: none; background: none; border: 2px solid var(--tinta); padding: .5rem .7rem; font: 700 .95rem var(--f); cursor: pointer; border-radius: 2px; }
@media (max-width: 880px) {
  .nav__toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: var(--borde); padding: .5rem var(--pad) 1.25rem; }
  .nav.abierta { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: var(--borde); }
  .nav .btn { margin-top: 1rem; justify-content: center; border-bottom: 2px solid var(--tinta); }
}

/* Planta y entregas */
.planta { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.planta__bloque { background: #fff; padding: clamp(1.5rem, 3vw, 2.5rem); border: var(--borde); }
.plano { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; margin-bottom: 1.5rem; height: 150px; }
.plano div { border: 2px solid var(--tinta); padding: .6rem .75rem; font-weight: 700; font-size: .9rem; display: flex; align-items: flex-end; color: var(--tinta); }
.plano div:first-child { background: repeating-linear-gradient(90deg, rgba(0,160,223,.12) 0 10px, transparent 10px 20px); }
.plano div:last-child { background: repeating-linear-gradient(45deg, rgba(230,0,126,.10) 0 8px, transparent 8px 16px); }
.ruta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; height: 150px; }
.ruta__punto { flex: none; display: grid; place-items: center; text-align: center; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--tinta); font-weight: 800; font-size: .9rem; line-height: 1.15; color: var(--tinta); background: #fff; }
.ruta__punto--dest { background: var(--y); }
.ruta__linea { flex: 1; height: 0; border-top: 3px dashed var(--tinta); position: relative; }
.ruta__linea::after { content: ""; position: absolute; right: -2px; top: -9px; border: 7px solid transparent; border-left: 10px solid var(--tinta); }
@media (max-width: 820px) { .planta { grid-template-columns: 1fr; } }

/* =========================================================
   COTIZAR (compartido)
   ========================================================= */
.cotizar { background: #fff; border-top: var(--borde); }
.cotizar__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .cotizar__grid { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.campo { display: flex; flex-direction: column; gap: .35rem; }
.campo--ancho { grid-column: 1 / -1; }
.campo label { font-weight: 700; font-size: .95rem; color: var(--tinta); }
.campo small { color: var(--gris); font-size: .85rem; }
.campo input, .campo select, .campo textarea {
  font: 400 1rem var(--f); color: var(--texto);
  padding: .75rem .8rem; border: 1.5px solid #9AA2A7; border-radius: 2px; background: #fff; width: 100%;
}
.campo textarea { min-height: 110px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(0,160,223,.35); }
.medidas { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .75rem; }
.calculo { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .9rem 1rem; background: var(--papel); border-left: 4px solid var(--c); }
.calculo output { font-size: 1.6rem; font-weight: 800; color: var(--tinta); font-variant-numeric: tabular-nums; }
.form .acciones { grid-column: 1 / -1; margin-top: .5rem; }
.form__aviso { grid-column: 1 / -1; font-size: .9rem; color: var(--gris); margin: 0; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.contacto { border: 2px solid var(--tinta); padding: 1.75rem; }
.contacto h3 { margin-bottom: 1rem; }
.contacto ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.contacto li { padding: .75rem 0; border-bottom: var(--borde); }
.contacto li:last-child { border-bottom: 0; }
.contacto a { font-weight: 700; font-size: 1.1rem; color: var(--tinta); text-decoration: none; }
.contacto a:hover { text-decoration: underline; }
.contacto span { display: block; font-size: .85rem; color: var(--gris); }

/* ---------- Pie interno ---------- */
.pie { background: var(--tinta); color: #C3C9CD; font-size: .95rem; }
.pie .envoltura { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-block: 2.25rem; }
.pie a { color: #fff; }
.pie p { margin: 0; }

/* WhatsApp: oculto hasta configurar número en main.js */
[data-wa][hidden] { display: none !important; }

/* 404 */
.error404 { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: var(--pad); }
.error404 h1 { font-size: clamp(4rem, 14vw, 9rem); font-variation-settings: "wdth" 120; letter-spacing: -.04em; margin: 0; }
.error404 p { margin-inline: auto; }
.error404 .acciones { justify-content: center; }

/* ---------- Encabezado doble: la marca y su hermana, unidas por la línea cian ---------- */
.marcas { display: flex; align-items: center; gap: 1rem; }
.marcas__actual img { height: 46px; width: auto; }
.iguana .marcas__actual img { height: 58px; }
.marcas__linea { width: 2px; height: 34px; background: var(--c); }
.marcas__hermana { display: block; opacity: .55; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.marcas__hermana img { height: 30px; width: auto; }
.lqpa .marcas__hermana img { height: 40px; }
.marcas__hermana:hover, .marcas__hermana:focus-visible { opacity: 1; filter: none; }

/* ---------- Grupos de casillas en formularios ---------- */
.grupo { border: 0; margin: 0; padding: 0; grid-column: 1 / -1; }
.grupo legend { font-weight: 700; font-size: .95rem; color: var(--tinta); margin-bottom: .5rem; padding: 0; }
.opciones { display: flex; flex-wrap: wrap; gap: .5rem; }
.opcion { position: relative; }
.opcion input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcion span { display: inline-block; padding: .55rem .9rem; border: 1.5px solid #9AA2A7; border-radius: 2px; font-size: .95rem; background: #fff; transition: background .15s, border-color .15s, color .15s; }
.opcion input:checked + span { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.opcion input:focus-visible + span { outline: 3px solid var(--c); outline-offset: 2px; }

/* =========================================================
   PUENTE ENTRE EMPRESAS HERMANAS: la línea cian vuelve a unir
   ========================================================= */
.puente { background: #fff; border-top: var(--borde); border-bottom: var(--borde); }
.puente .envoltura { display: grid; grid-template-columns: auto 2px minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding-block: 2.5rem; }
.puente__linea { align-self: stretch; background: var(--c); }
.puente img { width: auto; max-width: 170px; max-height: 96px; }
.puente p { margin: 0; font-size: 1.1rem; }
.puente strong { color: var(--tinta); }
.puente .btn { background: var(--tinta); border-color: var(--tinta); }
.puente .btn:hover { background: #fff; color: var(--tinta); }
@media (max-width: 820px) {
  .puente .envoltura { grid-template-columns: 1fr; gap: 1rem; }
  .puente__linea { width: 64px; height: 2px; }
}

.reloj__palabra { font-size: .5em; }
.reloj__palabra.final { font-size: 1em; }
.reloj { cursor: pointer; }


/* ---------- Registro de tintas en títulos (Iguana y portada) ---------- */
[data-registro] { position: relative; }
.reg__capa { position: absolute; inset: 0; mix-blend-mode: multiply; pointer-events: none; opacity: 0; white-space: inherit; }
.reg__capa--c { color: var(--c); } .reg__capa--m { color: var(--m); } .reg__capa--y { color: var(--y); }
.animar [data-registro]:not(.registrado) .reg__k { opacity: 0; }
.registrado .reg__k { animation: reg-k-in .9s ease-out 1s both; }
.registrado .reg__capa { animation: reg-llega 2s cubic-bezier(.16, 1, .3, 1) both, reg-sale .9s ease-out 1.25s forwards; }
.registrado .reg__capa--c { --dx: -.07em; --dy: -.035em; }
.registrado .reg__capa--m { --dx: .06em; --dy: .03em; }
.registrado .reg__capa--y { --dx: .02em; --dy: -.06em; }
@keyframes reg-llega { from { transform: translate(var(--dx), var(--dy)); opacity: 1; } to { opacity: 1; } }
@keyframes reg-sale { from { opacity: 1; } to { opacity: 0; } }
@keyframes reg-k-in { from { opacity: 0; } }
/* Texto con degradado (el 8): las capas se ven sobre el degradado */
.maq--gf .reg__capa { -webkit-text-fill-color: currentColor; }
