/* ============================================================
   Ads Alchemy — rediseño estilo "Milkshake" (2026)
   Look & feel: fondo crema, tipografía enorme en mayúsculas,
   píldoras, tarjetas muy redondeadas, ticker marquee, chips.
   Identidad Ads Alchemy:
   - Morado:  #7F71FF   - Crema:  #F7F3E8 (beige de marca)
   - Lavanda: #E4E0FF   - Tinta:  #231F20
   - Pops:    #FD6AD1 (rosa) / #FFBC7D (naranja) / #EDFF80 (lima)
   - Títulos: Syne · Cuerpo: Plus Jakarta Sans · Labels: Fragment Mono
   ============================================================ */

:root {
  --blue: #326F9A;
  --blue-deep: #285a7d;
  --cream: #F7F3E8;
  --sky: #DCEAF3;
  --ink: #231F20;
  --ink-soft: #4c4650;
  --pink: #FD6AD1;
  --orange: #FFBC7D;
  --lime: #EDFF80;
  --white: #FFFFFF;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Fragment Mono', 'Courier New', monospace;
  --r-lg: 40px;
  --r-md: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* evita scroll horizontal por marquees/stickers decorativos */
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.04; }

img, video { max-width: 100%; display: block; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; }

/* etiquetas monoespaciadas estilo milkshake */
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 22px;
}

.section-title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 18px;
}
.section-title .hl { color: var(--blue); }
.section-sub { color: var(--ink-soft); max-width: 620px; font-size: 18px; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }

/* ---------- Botones píldora ---------- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); background: var(--blue-deep); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-light { background: var(--cream); color: var(--ink); }
.btn-light:hover { background: var(--lime); }

/* ---------- Ticker marquee ---------- */
.ticker {
  background: var(--blue);
  color: #fff;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
  padding: 10px 0;
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track, .marquee-track { animation: none !important; } }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 20px;
}
.nav .logo img { height: 34px; width: auto; }
.nav ul { display: flex; gap: 32px; list-style: none; }
.nav ul a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.nav ul a:hover { color: var(--blue); }
.nav .btn { padding: 12px 26px; font-size: 14px; box-shadow: 3px 3px 0 var(--ink); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 30px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  max-width: 1050px;
  overflow-wrap: break-word;
}
.hero h1 .hl { color: var(--blue); }
.hero h1 .hl-pink {
  background: var(--pink);
  color: var(--cream);
  padding: 0 14px;
  border-radius: 14px;
  display: inline-block;
  transform: rotate(-1.5deg);
}
.hero p.lead { color: var(--ink-soft); max-width: 560px; margin: 28px 0 36px; font-size: 19px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* chips de datos */
.chips { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 56px; }
.chip {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 18px 24px;
  min-width: 180px;
}
.chip:nth-child(2) { background: var(--sky); transform: rotate(1.2deg); }
.chip:nth-child(3) { background: var(--lime); transform: rotate(-1deg); }
.chip b {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}
.chip span {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

/* deco flotante del hero */
.hero .float-art {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 300px;
  transform: rotate(8deg);
  opacity: .95;
  pointer-events: none;
}

/* ---------- Banda de marcas ---------- */
.brands {
  background: var(--blue);
  border-block: 2px solid var(--ink);
  padding: 44px 0;
}
.brands h2 {
  text-align: center;
  color: #fff;
  font-size: clamp(20px, 2.6vw, 28px);
  text-transform: uppercase;
  margin-bottom: 30px;
}
.marquee { overflow: hidden; padding: 6px 0; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  animation: ticker 45s linear infinite;
}
.brand-card {
  flex: none;
  width: 176px;
  height: 96px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 3px 3px 0 var(--ink);
  display: grid;
  place-items: center;
  padding: 16px 22px;
}
.brand-card img { max-height: 48px; max-width: 100%; width: auto; object-fit: contain; }
/* logos con tinta blanca -> se pintan oscuros para verse sobre la tarjeta blanca */
.brand-card.invert img { filter: brightness(0); }

/* ---------- Sistema / Valores ---------- */
.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.sys-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 34px 30px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.sys-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.sys-card:nth-child(2) { background: var(--sky); }
.sys-card:nth-child(4) { background: var(--lime); }
.sys-card:nth-child(6) { background: #ffe9f7; }
.sys-card .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--blue);
  display: block;
  margin-bottom: 14px;
}
.sys-card img { width: 52px; height: 52px; object-fit: contain; margin-bottom: 16px; }
.sys-card h3 { font-size: 21px; margin-bottom: 10px; text-transform: uppercase; }
.sys-card p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Portafolio ---------- */
.portfolio { background: var(--sky); border-block: 2px solid var(--ink); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 52px;
}
.video-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--ink);
}
.video-card video { width: 100%; height: 100%; object-fit: cover; }
/* "Ver más": colapsa el portafolio a las primeras 12 tarjetas */
.video-grid.collapsed .video-card:nth-child(n+13) { display: none; }
.more-wrap { text-align: center; margin-top: 40px; }

/* ---------- Testimonios ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.t-card {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.t-card:nth-child(2) { background: var(--lime); transform: rotate(.6deg); }
.t-card:nth-child(3) { background: var(--sky); transform: rotate(-.6deg); }
.t-card .quote { font-size: 15.5px; flex: 1; }
.t-who strong { font-family: var(--font-head); font-size: 18px; display: block; text-transform: uppercase; }
.t-who .handle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
}
.t-who .role { color: var(--ink-soft); font-size: 13.5px; display: block; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 840px; margin: 52px auto 0; display: grid; gap: 16px; }
details {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 24px 28px;
}
details summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 20px;
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); background: var(--pink); }
details p { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- CTA final ---------- */
.cta {
  background: var(--blue);
  border-block: 2px solid var(--ink);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta h2 {
  font-size: clamp(38px, 6vw, 76px);
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.cta h2 .hl { color: var(--lime); }
.cta p { color: #EDEAFF; max-width: 540px; margin: 0 auto 40px; font-size: 18px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #cfc9d4; padding: 60px 0 34px; }
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
}
.foot-grid .logo img { height: 34px; width: auto; }
.foot-contact a { color: #cfc9d4; text-decoration: none; font-family: var(--font-mono); font-size: 14px; }
.foot-contact a:hover { color: var(--lime); }
.socials { display: flex; gap: 14px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #cfc9d4;
  transition: background .15s, border-color .15s;
}
.socials a:hover { background: var(--blue); border-color: var(--blue); }
.socials svg { width: 17px; height: 17px; fill: #fff; }
.copyright {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #3c363f;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: center;
  color: #8d8595;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .system-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero .float-art { display: none; }
}
@media (max-width: 680px) {
  section { padding: 64px 0; }
  .system-grid { grid-template-columns: 1fr; }
  .nav ul {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
    padding: 12px 24px 20px;
  }
  .nav ul.open { display: flex; }
  .nav ul li { padding: 12px 0; }
  .nav-toggle { display: block; }
  .nav .btn { display: none; }
  .chips { gap: 12px; }
  .chip { min-width: 140px; padding: 14px 18px; }
}

/* =====================================================================
   v3 — Hero 2-col · badges partner · píldoras · stats · sistema · lightbox
   ===================================================================== */

/* Hero de 2 columnas */
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero h1 { max-width: none; }
.hero .float-art { display: none; } /* retira la forma rotada anterior */

/* Badges de partner (Meta / TikTok) */
.partners { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.partner {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 2px solid var(--ink); border-radius: 14px;
  padding: 9px 16px; box-shadow: 3px 3px 0 var(--ink);
}
.partner img { height: 24px; width: 24px; }
.partner span { font-family: var(--font-head); font-weight: 800; font-size: 14px; line-height: 1.1; }
.partner small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--ink-soft); }

/* Video del hero + píldoras flotantes */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 460px; }
.hero-video {
  width: 300px; max-width: 80%; aspect-ratio: 9 / 16;
  border-radius: 30px; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--ink);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.float-pill {
  position: absolute; background: #fff; border: 2px solid var(--ink);
  border-radius: 16px; box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 16px; text-align: center;
}
.float-pill b { font-family: var(--font-head); font-weight: 800; font-size: 22px; line-height: 1; display: block; }
.float-pill small { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.float-pill.fp1 { top: 4%; left: -2%; background: var(--lime); transform: rotate(-5deg); }
.float-pill.fp2 { top: 46%; right: -6%; background: var(--sky); transform: rotate(4deg); }
.float-pill.fp3 { bottom: 2%; left: 4%; background: #fff; transform: rotate(-2deg); }

/* Banda de estadísticas */
.stats { padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 60px 28px; text-align: center; border: 2px solid var(--ink); margin: 0 -1px -1px 0; }
.stat:nth-child(1) { background: #fff; }
.stat:nth-child(2) { background: var(--sky); }
.stat:nth-child(3) { background: var(--lime); }
.stat b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(44px, 6vw, 78px); line-height: 1; }
.stat span { display: block; margin-top: 12px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; font-size: 13px; color: var(--ink-soft); }

/* Diagrama del sistema (Cómo trabajamos) */
.system2-grid {
  display: grid; grid-template-columns: 1fr minmax(190px, 230px) 1fr;
  grid-template-rows: auto auto; gap: 26px; align-items: center; margin-top: 56px;
}
.sys2-card {
  background: #fff; border: 2px solid var(--ink); border-radius: 26px;
  box-shadow: 5px 5px 0 var(--ink); padding: 30px 28px;
}
.sys2-card.c1 { grid-column: 1; grid-row: 1; }
.sys2-card.c2 { grid-column: 3; grid-row: 1; }
.sys2-card.c3 { grid-column: 1; grid-row: 2; }
.sys2-card.c4 { grid-column: 3; grid-row: 2; }
.sys2-card.c2, .sys2-card.c3 { background: var(--sky); }
.sys2-card img { width: 46px; height: 46px; object-fit: contain; margin-bottom: 14px; }
.sys2-card h3 { font-family: var(--font-head); text-transform: uppercase; font-size: 19px; margin-bottom: 8px; }
.sys2-card p { color: var(--ink-soft); font-size: 14.5px; }
.sys2-center {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; justify-self: center;
  width: 100%; aspect-ratio: 1; max-width: 240px;
  background: var(--blue); color: #fff; border: 2px solid var(--ink); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; box-shadow: 6px 6px 0 var(--ink); padding: 28px;
}
.sys2-center b { font-family: var(--font-head); font-weight: 800; font-size: clamp(19px, 2vw, 23px); line-height: 1.02; text-transform: uppercase; letter-spacing: -.01em; }
.sys2-center small { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }

/* Video del portafolio: señal de "clic para ampliar" */
.video-card { cursor: pointer; }
.video-card::after {
  content: "▶"; position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 12px; padding-left: 2px;
  opacity: 0; transition: opacity .15s ease; pointer-events: none;
}
.video-card:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 13, 18, .88); backdrop-filter: blur(4px);
  display: none; place-items: center; padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox video {
  max-height: 88vh; max-width: min(430px, 92vw);
  border-radius: 20px; border: 3px solid #fff; background: #000;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; border: 2px solid var(--ink); color: var(--ink);
  font-size: 30px; line-height: 1; cursor: pointer;
}

/* Responsive v3 */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 420px; margin-top: 8px; }
  .system2-grid { grid-template-columns: 1fr; }
  .sys2-card.c1, .sys2-card.c2, .sys2-card.c3, .sys2-card.c4 { grid-column: 1; grid-row: auto; }
  .sys2-center { grid-column: 1; grid-row: auto; aspect-ratio: auto; max-width: none; border-radius: 26px; padding: 30px; order: -1; }
}
@media (max-width: 680px) {
  .stats-grid { grid-template-columns: 1fr; }
  .float-pill.fp2 { right: 0; }
  .float-pill.fp1 { left: 0; }
}

/* =====================================================================
   v5 — Sección "Quiénes somos" + CTA sticky en móvil
   ===================================================================== */

/* ---- Quiénes somos ---- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.about-head .section-title { margin-bottom: 26px; }
.about-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--blue); color: #fff; border: 2px solid var(--ink);
  border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); padding: 16px 22px;
}
.about-badge b { font-family: var(--font-head); font-weight: 800; font-size: 46px; line-height: 1; }
.about-badge small { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; line-height: 1.35; text-align: left; }
.about-lead { font-family: var(--font-head); font-weight: 600; font-size: clamp(20px, 2.3vw, 26px); line-height: 1.25; margin-bottom: 20px; }
.about-lead b { color: var(--blue); }
.about-body p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 16px; }
.about-body p b { color: var(--ink); font-weight: 700; }
.about em { font-style: normal; background: var(--lime); padding: 0 6px; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about-tags span {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 15px; box-shadow: 2px 2px 0 var(--ink);
}

/* etiqueta corta del CTA: oculta en escritorio */
.cta-short { display: none; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---- Header móvil: logo + "Reservar" sticky + hamburguesa ---- */
@media (max-width: 680px) {
  .nav .logo { margin-right: auto; }
  .nav .logo img { height: 24px; }
  .nav .btn { display: inline-flex; order: 2; padding: 9px 15px; font-size: 13px; box-shadow: 2px 2px 0 var(--ink); }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav-toggle { display: block; order: 3; font-size: 26px; }
  .nav ul { order: 4; }
  .nav { gap: 12px; }
}
