/* ═══════════════════════════════════════════════════════════════
   Kreando Soluciones Creativas — hoja de estilos
   Paleta: morado #6D28D9 · fucsia #DB2777 · azul #2563EB ·
   amarillo #FBBF24 (acento) · tinta #1E1B2E · humo #F7F6FA
   Tipos: Sora (display) · Inter (texto)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --morado: #6D28D9;
  --morado-oscuro: #5B21B6;
  --fucsia: #DB2777;
  --fucsia-oscura: #BE185D;
  --azul: #2563EB;
  --azul-oscuro: #1D4ED8;
  --amarillo: #FBBF24;
  --tinta: #1E1B2E;
  --texto: #2B2740;
  --muted: #5D5873;
  --humo: #F7F6FA;
  --linea: rgba(30, 27, 46, .1);
  --linea-inv: rgba(255, 255, 255, .16);
  --wa: #0E7A3C;
  --wa-dark: #0A5E2E;
  --grad: linear-gradient(120deg, #6D28D9 0%, #A21CAF 52%, #DB2777 100%);
  --shadow-1: 0 1px 2px rgba(30,27,46,.05), 0 10px 28px rgba(30,27,46,.08);
  --shadow-2: 0 2px 4px rgba(30,27,46,.06), 0 22px 48px rgba(30,27,46,.16);
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-d: "Sora", "Inter", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0; font-family: var(--font-b); font-size: 16px; line-height: 1.65;
  color: var(--texto); background: #fff;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-d); line-height: 1.1; margin: 0 0 .5em; color: var(--tinta); text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5.6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--morado); text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; border-radius: 6px; }
.oscuro :focus-visible, .hero :focus-visible, .topbar :focus-visible, footer :focus-visible,
.final :focus-visible, .wa-fab:focus-visible, .skip:focus-visible { outline-color: #FDE68A; }
/* sobre fotos (lightbox) el ámbar claro no basta: anillo blanco + halo oscuro */
.lightbox :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px rgba(18,15,30,.85); }
input::placeholder { color: #5D5873; opacity: 1; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--tinta); color: #fff; padding: .7rem 1.2rem; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fucsia-oscura); margin-bottom: .9rem; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-note { color: var(--muted); max-width: 52ch; margin-bottom: 2.4rem; }
.oscuro { background: var(--tinta); color: #E9E6F5; }
.oscuro h2, .oscuro h3 { color: #fff; }
.oscuro .section-note { color: #A9A3C2; }
.oscuro .eyebrow { color: var(--amarillo); }

/* ── botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 .95rem/1 var(--font-b);
  padding: .95em 1.7em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(162,28,175,.35); }
.btn-grad:hover { box-shadow: 0 14px 32px rgba(162,28,175,.45); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(14,122,60,.3); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.btn-linea { background: transparent; color: var(--muted); border-color: var(--linea); }
.btn-linea:hover { color: var(--tinta); border-color: var(--muted); }
.btn-s { padding: .68em 1.2em; font-size: .87rem; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico-line path, .ico-line circle, .ico-line rect {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── header ── */
.topbar { position: fixed; inset: 0 0 auto; z-index: 100; padding: .85rem 0; transition: background-color .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease); }
.topbar.solida, .topbar.abierta { background: rgba(30,27,46,.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--linea-inv); padding: .55rem 0; }
.topbar-in { display: flex; align-items: center; gap: .9rem; }
@media (min-width: 640px) { .topbar-in { gap: 1.4rem; } }
.brand { font-family: var(--font-d); font-weight: 800; font-size: 1.3rem; color: #fff; white-space: nowrap; letter-spacing: -.01em; }
/* logo real del cliente: fondo crema propio, va sobre placa clara para
   no flotar sobre el header oscuro */
.brand-placa { background: #FDF6F5; border-radius: 10px; padding: .28rem .5rem; display: inline-flex; align-items: center; box-shadow: 0 2px 10px rgba(20,10,40,.25); }
.brand-placa img { height: 2.6rem; width: auto; display: block; }
.logo-footer { width: 8.5rem; height: auto; border-radius: 14px; margin-bottom: .9rem; }
.brand .k { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: brightness(1.6); }
.brand small { display: block; font: 600 .6rem var(--font-b); letter-spacing: .3em; text-transform: uppercase; color: #B9B2D6; margin-top: -1px; }
.nav { display: none; gap: 1.5rem; margin-left: auto; }
@media (min-width: 1040px) { .nav { display: flex; } }
.nav a { color: rgba(255,255,255,.86); font-weight: 600; font-size: .9rem; transition: color .2s; }
.nav a:hover { color: #fff; }
.topbar .btn-wa { display: none; }
@media (min-width: 480px) { .topbar .btn-wa { display: inline-flex; margin-left: auto; } }
@media (min-width: 1040px) { .topbar .btn-wa { margin-left: 0; } }
.menu-btn { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; color: #fff; background: transparent; border: 1.5px solid rgba(255,255,255,.4); cursor: pointer; flex: none; margin-left: auto; }
@media (min-width: 480px) { .menu-btn { margin-left: 0; } }
@media (min-width: 1040px) { .menu-btn { display: none; } }
.menu-movil { display: none; flex-direction: column; padding: 1rem 0 .6rem; }
.menu-movil.abierta { display: flex; }
.menu-movil a { padding: .65rem 0; color: rgba(255,255,255,.92); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.1); }
.menu-movil a:last-child { border-bottom: none; }
.menu-movil a.destacada { color: var(--amarillo); }

/* ── hero: degradado + collage de productos ── */
.hero { position: relative; isolation: isolate; min-height: 92svh; display: flex; color: #fff; overflow: hidden; background: var(--grad); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(38rem 38rem at 88% -10%, rgba(251,191,36,.34), transparent 60%),
    radial-gradient(30rem 30rem at -8% 110%, rgba(37,99,235,.45), transparent 60%);
}
.hero-in { display: grid; gap: 3rem; align-items: center; padding: 8rem 0 4.5rem; }
@media (min-width: 940px) { .hero-in { grid-template-columns: 1.1fr 1fr; } }
.hero h1 { color: #fff; max-width: 17ch; overflow-wrap: break-word; hyphens: auto; }
.hero h1 .am { color: #FFF3C4; text-shadow: 0 2px 14px rgba(40,10,60,.45); }
.hero-sub { font-size: clamp(1rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.94); max-width: 48ch; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-cta .btn-grad { background: #fff; color: var(--morado-oscuro); box-shadow: 0 10px 26px rgba(20,10,40,.3); }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.2rem; font-size: .88rem; color: rgba(255,255,255,.95); }
.hero-chips li { display: flex; align-items: center; gap: .5em; }
.hero-chips .ico { color: #FFE79B; }

.collage { position: relative; height: min(460px, 52vw); min-height: 300px; }
.collage figure {
  position: absolute; margin: 0; border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(20,10,40,.4); border: 4px solid rgba(255,255,255,.9);
  background: #fff;
}
.collage img { width: 100%; height: 100%; object-fit: cover; }
.co-1 { width: 52%; aspect-ratio: 4/3; left: 0; top: 6%; transform: rotate(-5deg); }
.co-2 { width: 44%; aspect-ratio: 3/4; right: 4%; top: 0; transform: rotate(4deg); }
.co-3 { width: 46%; aspect-ratio: 4/3; left: 24%; bottom: 0; transform: rotate(2deg); }
.js .collage figure { animation: flota 6s ease-in-out infinite; }
.js .co-2 { animation-delay: 1.2s; }
.js .co-3 { animation-delay: 2.4s; }
@keyframes flota { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ── quiénes somos ── */
.somos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .9rem; margin-top: 2rem; }
@media (min-width: 760px) { .somos { grid-template-columns: repeat(3, 1fr); } }
.somos li { display: flex; gap: .7rem; align-items: baseline; background: var(--humo); border-radius: 14px; padding: 1rem 1.15rem; font-size: .93rem; font-weight: 600; color: var(--texto); }
.somos .ico { color: var(--fucsia); transform: translateY(2px); }

/* ── catálogo ── */
.catalogo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15.5rem, 100%), 1fr)); gap: 1.1rem; }
.producto {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--linea); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.producto:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.producto-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--humo); }
.producto-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.producto:hover .producto-media img { transform: scale(1.06); }
.producto-body { display: flex; flex-direction: column; flex: 1; padding: 1.05rem 1.1rem 1.2rem; }
.producto-body h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.producto-body p { font-size: .85rem; color: var(--muted); margin-bottom: .9rem; }
.producto .btn { margin-top: auto; width: 100%; }

/* ── por qué ── */
.porque { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: .9rem; }
@media (min-width: 1000px) { .porque { grid-template-columns: repeat(3, 1fr); } }
.porque li { display: flex; gap: .8rem; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 1.05rem 1.15rem; }
.porque .chip { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 10px; background: rgba(251,191,36,.16); color: var(--amarillo); flex: none; }
.porque .chip svg { width: 1.25rem; height: 1.25rem; }
.porque strong { display: block; font-size: .95rem; color: #fff; }
.porque span { font-size: .84rem; color: #A9A3C2; }

/* ── proceso ── */
.pasos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(11rem, 100%), 1fr)); gap: 1rem; counter-reset: p; }
@media (min-width: 700px) and (max-width: 1039px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .pasos { grid-template-columns: repeat(5, 1fr); } }
.paso { background: var(--humo); border-radius: var(--radius); padding: 1.5rem 1.3rem; position: relative; }
.paso .num {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  background: var(--grad); color: #fff; font: 800 1.1rem var(--font-d); margin-bottom: .9rem;
}
.paso h3 { font-size: 1rem; margin-bottom: .25rem; }
.paso p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ── galería ── */
.galeria { columns: 1; column-gap: 1rem; }
@media (min-width: 620px) { .galeria { columns: 2; } }
@media (min-width: 1000px) { .galeria { columns: 3; } }
.gal-item { break-inside: avoid; margin: 0 0 1rem; border-radius: var(--radius); overflow: hidden; display: block; width: 100%; padding: 0; border: 0; background: var(--tinta); cursor: zoom-in; position: relative; }
.gal-item img { width: 100%; transition: transform .55s var(--ease), opacity .4s var(--ease); }
.gal-item:hover img { transform: scale(1.05); opacity: .82; }

/* ── eventos ── */
.eventos { display: flex; flex-wrap: wrap; gap: .6rem; }
.eventos li {
  font-size: .9rem; font-weight: 600; color: var(--texto);
  background: #fff; border: 1.5px solid var(--linea); border-radius: 999px; padding: .6em 1.2em;
}
.eventos li.color-1 { border-color: rgba(109,40,217,.4); color: var(--morado-oscuro); }
.eventos li.color-2 { border-color: rgba(219,39,119,.4); color: var(--fucsia-oscura); }
.eventos li.color-3 { border-color: rgba(37,99,235,.4); color: var(--azul-oscuro); }

/* ── testimonios ── */
.testimonios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(16.5rem, 100%), 1fr)); gap: 1.1rem; }
@media (min-width: 1000px) { .testimonios { grid-template-columns: repeat(3, 1fr); } }
.testimonio { background: #fff; border: 1px solid var(--linea); border-radius: var(--radius); padding: 1.6rem 1.5rem; box-shadow: var(--shadow-1); display: flex; flex-direction: column; margin: 0; }
.estrellas { color: #A16207; letter-spacing: .12em; font-size: .92rem; margin-bottom: .8rem; }
.testimonio blockquote { margin: 0 0 1.3rem; font-size: .93rem; color: var(--texto); }
.testimonio figcaption { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.testimonio figcaption .avatar { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; font: 700 .95rem var(--font-b); color: #fff; flex: none; font-size: .95rem; }
.testimonio figcaption strong { display: block; font-size: .9rem; color: var(--tinta); }
.testimonio figcaption span { font-size: .78rem; color: var(--muted); }
.nota-testi { font-size: .78rem; color: var(--muted); margin-top: 1.5rem; }

/* ── CTA final ── */
.final { background: var(--grad); color: #fff; text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background: radial-gradient(30rem 30rem at 85% 120%, rgba(251,191,36,.4), transparent 60%); }
.final h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.final p { color: rgba(255,255,255,.92); max-width: 52ch; margin-inline: auto; }
.final .btn { margin-top: 1.4rem; font-size: 1.05rem; padding: 1.1em 2.2em; }

/* ── footer ── */
.footer { background: var(--tinta); color: #A9A3C2; padding: 3rem 0 2rem; }
.footer-in { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); margin-bottom: 2.2rem; }
.footer h3 { color: #fff; font-size: .8rem; font-family: var(--font-b); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .9rem; }
.footer ul { display: grid; gap: .45rem; font-size: .9rem; }
.footer a { color: #A9A3C2; }
.footer a:hover { color: #fff; }
.footer-small { border-top: 1px solid var(--linea-inv); padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .78rem; color: #8A84A3; }
.footer-small p { margin: 0; }
.footer-small a { color: inherit; text-decoration: underline; }

/* ── FAB WhatsApp ── */
.wa-fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90;
  display: grid; place-items: center; width: 3.6rem; height: 3.6rem;
  background: var(--wa); color: #fff; border-radius: 50%;
  box-shadow: 0 8px 24px rgba(14,122,60,.45);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); background: var(--wa-dark); }
.wa-fab svg { width: 1.9rem; height: 1.9rem; }

/* ── lightbox ── */
.lightbox { width: min(1000px, calc(100vw - 1.5rem)); max-height: calc(100svh - 1.5rem); border: none; background: transparent; padding: 0; }
.lightbox::backdrop { background: rgba(18,15,30,.9); }
.lightbox figure { margin: 0; position: relative; }
.lightbox img { width: auto; max-width: 100%; max-height: calc(100svh - 7rem); margin-inline: auto; border-radius: 12px; }
.lightbox figcaption { color: #E9E6F5; text-align: center; padding: .9rem 3rem; font-size: .9rem; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4); background: rgba(18,15,30,.55); color: #fff; cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.lb-btn:hover { background: rgba(18,15,30,.85); border-color: #fff; }
.lb-prev { left: .7rem; }
.lb-next { right: .7rem; }
.lb-x { position: absolute; top: .7rem; right: .7rem; transform: none; }
.lb-contador { position: absolute; left: .9rem; bottom: .65rem; color: #A9A3C2; font-size: .8rem; letter-spacing: .1em; }

/* ── reveals / QA / reduced motion ── */
.js .reveal:not(.sin-reveal) { opacity: 0; }
.js .reveal.in { animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.qa .reveal { opacity: 1 !important; animation: none !important; transform: none !important; }
.qa .hero { min-height: 680px; }
.qa .collage figure { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; animation: none; }
  .js .collage figure { animation: none; }
  .btn, .producto, .producto-media img, .gal-item img { transition: none; }
}

/* texto solo para lectores de pantalla */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
