/* =========================================================
   Lavin · Propuesta de campañas UGC
   ========================================================= */

:root {
  --navy: #0a3478;
  --ink: #16202e;
  --ink-soft: #4a5568;
  --ivory: #faf8f4;
  --sand: #f1ece4;
  --mist: #e8eef2;
  --champagne: #b5966a;
  --champagne-soft: #e2cfae;
  --line: rgba(22, 32, 46, .12);
  --white: #fff;

  --serif: "Marcellus", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: normal; color: var(--champagne); }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 48px); margin-inline: auto; }
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 1.1em;
  font-size: .72rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--champagne);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.icon { width: 44px; height: 44px; fill: none; stroke: var(--champagne); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

section { padding: 100px 0; }
.head { max-width: 640px; margin-bottom: 54px; }
.head__lead { font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  width: min(1140px, 100% - 48px);
  margin-inline: auto;
  padding: 48px 0 90px;
}
.lead { font-size: 1.12rem; max-width: 34em; }
.checks { list-style: none; padding: 0; margin: 30px 0 0; }
.checks li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 21px;
  width: 7px; height: 7px; transform: rotate(45deg); background: var(--champagne);
}

/* ---------- Celular simulado ---------- */
.phone-wrap { display: grid; justify-items: center; gap: 18px; }
.phone {
  position: relative;
  width: min(320px, 82vw);
  aspect-ratio: 9 / 19.5;
  padding: 12px;
  border-radius: 54px;
  background: linear-gradient(145deg, #2b3546, #0d131c 60%, #1f2836);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    0 50px 90px -40px rgba(22, 32, 46, .55),
    0 30px 40px -30px rgba(22, 32, 46, .35);
}
.phone__btn { position: absolute; width: 3px; border-radius: 2px; background: #1b2330; }
.phone__btn--a { left: -3px; top: 22%; height: 7%; }
.phone__btn--b { left: -3px; top: 32%; height: 11%; }
.phone__btn--c { right: -3px; top: 28%; height: 15%; }

.screen {
  position: relative;
  height: 100%;
  border-radius: 43px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #f3efe9, #e3e9ef 70%);
  isolation: isolate;
}
.island {
  position: absolute; top: 10px; left: 50%; z-index: 5;
  width: 32%; height: 26px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
}

.drop {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  padding: 30px; text-align: center;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: .82rem; line-height: 1.5;
  transition: background .3s var(--ease);
}
.drop[hidden] { display: none; }
.drop strong { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.drop__icon {
  width: 64px; height: 64px; padding: 16px;
  border-radius: 50%;
  border: 1px dashed var(--champagne);
  fill: none; stroke: var(--champagne); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 6px;
  transition: transform .4s var(--ease);
}
.drop:hover .drop__icon, .screen.is-drag .drop__icon { transform: translateY(-4px); }
.screen.is-drag .drop { background: rgba(181, 150, 106, .12); }

video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}
video[hidden] { display: none; }

/* Interfaz tipo red social */
.ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.ui[hidden] { display: none; }
.ui::before, .ui::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; }
.ui::before { top: 0; height: 22%; background: linear-gradient(rgba(0, 0, 0, .35), transparent); }
.ui::after { bottom: 0; height: 38%; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.ui__top { position: absolute; top: 48px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; font-size: .78rem; font-weight: 500; opacity: .75; }
.ui__top .is-on { opacity: 1; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.ui__side { position: absolute; right: 10px; bottom: 120px; display: grid; justify-items: center; gap: 16px; font-size: .62rem; font-weight: 500; }
.ui__avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 8px; border: 2px solid #fff; }
.ui__act { display: grid; justify-items: center; gap: 2px; }
.ui__act svg { width: 26px; height: 26px; fill: #fff; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .3)); }
.ui__bottom { position: absolute; left: 14px; right: 64px; bottom: 26px; font-size: .74rem; line-height: 1.45; }
.ui__bottom strong { font-weight: 500; font-size: .82rem; }
.ui__bottom p { margin: 4px 0 6px; }
.ui__music { font-size: .68rem; opacity: .9; }
.ui__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); }
.ui__progress span { display: block; height: 100%; width: 0; background: #fff; }

.sound {
  position: absolute; top: 46px; right: 14px; z-index: 4;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
}
.sound[hidden] { display: none; }
.sound svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound .sound__on { display: none; }
.sound.is-on .sound__on { display: block; }
.sound.is-on .sound__off { display: none; }

.paused {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  transform: translate(-50%, -50%) scale(.8);
  border-radius: 50%;
  background: rgba(0, 0, 0, .35);
  color: #fff; font-size: 1.1rem; letter-spacing: -2px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.screen.is-paused .paused { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.phone-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.phone-tools[hidden] { display: none; }
.tool {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--white);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: .3s var(--ease);
}
.tool:hover { border-color: var(--ink); }
.tool--quiet { color: var(--ink-soft); }
.tool[hidden] { display: none; }
.phone-note { margin: 0; font-size: .76rem; color: var(--ink-soft); text-align: center; max-width: 300px; }

/* ---------- Posts ---------- */
.posts { background: var(--sand); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { margin: 0; }
.post img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 30px 60px -34px rgba(22, 32, 46, .45);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.post:hover img { transform: translateY(-6px); box-shadow: 0 40px 70px -34px rgba(22, 32, 46, .55); }
.post figcaption { margin-top: 14px; font-size: .92rem; color: var(--ink); }
.post figcaption span { display: block; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--champagne); }

/* ---------- Formas de producir ---------- */
.modes { background: var(--white); }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mode {
  position: relative;
  padding: 44px 32px 34px;
  border: 1px solid var(--line);
  background: var(--ivory);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.mode:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(22, 32, 46, .25); }
.mode__n { position: absolute; top: 22px; right: 26px; font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--sand); }
.mode .icon { margin-bottom: 24px; }
.mode p { font-size: .95rem; }
.mode ul { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px solid var(--line); font-size: .86rem; }
.mode li { padding: 4px 0 4px 18px; position: relative; }
.mode li::before { content: ""; position: absolute; left: 0; top: 13px; width: 6px; height: 1px; background: var(--champagne); }
.mode--feature { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .75); }
.mode--feature h3 { color: var(--white); }
.mode--feature .mode__n { color: rgba(255, 255, 255, .1); }
.mode--feature ul { border-color: rgba(255, 255, 255, .15); }

/* ---------- Ideas por marca ---------- */
.ideas { background: var(--mist); }
.idea-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.idea { background: var(--white); padding: 34px 26px; }
.idea__brand { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--champagne); }
.idea h3 { margin-top: 12px; font-size: 1.2rem; }
.idea p { margin: 0; font-size: .9rem; }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; left: 0; right: 0; height: 1px; background: var(--line); }
.steps span {
  position: relative;
  display: grid; place-content: center;
  width: 42px; height: 42px; margin-bottom: 22px;
  border-radius: 50%; border: 1px solid var(--champagne);
  background: var(--ivory); color: var(--champagne); font-size: .76rem;
}
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; font-size: .9rem; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 60px; }
.formats span {
  padding: 10px 20px;
  border: 1px solid var(--line); border-radius: 40px;
  background: var(--white);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1000px) {
  .idea-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
}

@media (max-width: 860px) {
  .post-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .post { scroll-snap-align: start; }
  .hero { grid-template-columns: 1fr; gap: 50px; padding-top: 50px; }
  /* en móvil el celular va primero, es lo más vistoso */
  .phone-wrap { order: -1; }
  .mode-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  section { padding: 70px 0; }
  .wrap, .hero { width: calc(100% - 32px); }
  .idea-grid, .steps { grid-template-columns: 1fr; }
}
