/* =========================================================
   MAILCLU — Hoja de estilos
   ---------------------------------------------------------
   Toda la identidad (colores, tipografías, radios) vive en
   las variables de :root. Cuando cierres la identidad,
   cambiá solo esta sección.
   ========================================================= */

/* ---------- Tipografías ----------
   La web usa Inter Tight, que se carga desde Google Fonts en el <head> de cada página.
   Sailec queda declarada por si querés volver a usarla: cambiá --font-display y
   --font-body en :root a "Sailec", system-ui, sans-serif. */
@font-face { font-family: "Sailec"; src: url("assets/fonts/Sailec%20Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sailec"; src: url("assets/fonts/Sailec%20Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sailec"; src: url("assets/fonts/Sailec%20Regular%20Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Sailec"; src: url("assets/fonts/Sailec%20Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sailec"; src: url("assets/fonts/Sailec%20Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* Si decidís usar GUNTER para títulos:
   1) copiá el archivo a assets/fonts/
   2) descomentá este bloque
   3) en :root cambiá --font-display a: "Gunter", "Inter Tight", sans-serif */
/*
@font-face { font-family: "Gunter"; src: url("assets/fonts/Gunter.otf") format("opentype"); font-weight: 400; font-display: swap; }
*/

:root {
  /* Marca */
  --orange: #F05223;          /* naranja del logo (decorativo, fondos grandes) */
  --orange-strong: #D4421A;   /* naranja accesible para botones y texto */
  --orange-soft: #FDE3D9;
  --cream: #F8F7BA;           /* amarillo crema del logo */
  --cream-soft: #FCFBE3;

  /* Neutros */
  --ink: #1F1A17;
  --ink-2: #4A433E;
  --muted: #7A716A;
  --line: #E8E3D8;
  --bg: #F6F3EC;              /* fondo general cálido */
  --surface: #FFFFFF;

  /* Tipografía */
  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter Tight", system-ui, sans-serif;

  /* Forma */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31,26,23,.04), 0 12px 32px -12px rgba(31,26,23,.14);

  /* Interletrado general (-50 en Figma/Illustrator = -0.05em) */
  --tracking: 0;

  --container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: var(--tracking);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: var(--tracking); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange-strong); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-strong);
}
.eyebrow::before { content: ""; display: inline-block; vertical-align: middle; width: 8px; height: 8px; margin: -2px 8px 0 0; border-radius: 50%; background: var(--orange); }

.section { padding: 112px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 300; margin-top: 16px; }
.section-head p { margin-top: 18px; color: var(--ink-2); font-size: 19px; }
h2 strong, h1 strong { font-weight: 700; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 16px/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
/* Botones con borde de estampilla (como el sello del logo).
   El relleno va en un pseudo-elemento recortado con una máscara,
   así el contorno de foco del teclado sigue viéndose completo. */
.btn-primary, .btn-light {
  --stamp-r: 4.5px;
  --stamp-gap: 15px;
  --stamp-bg: var(--orange-strong);
  position: relative; isolation: isolate;
  background: none; border: 0; border-radius: 0;
}
.btn-primary::before, .btn-light::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--stamp-bg);
  transition: background .2s;
}

/* La forma del sello la calcula script.js según el tamaño exacto de cada elemento:
   mordidas siempre enteras, repartidas parejo y con las esquinas lisas, como el logo.
   --stamp-r = radio de cada mordida, --stamp-gap = distancia aproximada entre mordidas. */
.btn-primary::before, .btn-light::before, .stamp-inner, .mega-promo-stamp {
  -webkit-mask: var(--stamp-mask, none) 0 0 / 100% 100% no-repeat;
          mask: var(--stamp-mask, none) 0 0 / 100% 100% no-repeat;
}
.btn-primary { color: #fff; }
.btn-primary:hover { --stamp-bg: var(--ink); }
.btn-light { --stamp-bg: #fff; color: var(--ink); }
.btn-light:hover { --stamp-bg: var(--cream); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); border-radius: 4px; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(246,243,236,.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--orange-strong); }
/* ---------- Menú desplegable (Servicios) ---------- */
.header-inner { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  font: 500 15px/1 var(--font-body); letter-spacing: var(--tracking); color: var(--ink-2);
}
.nav-trigger svg { width: 16px; height: 16px; transition: transform .2s; }
.nav-trigger:hover, .has-menu.is-open .nav-trigger { color: var(--orange-strong); }
.has-menu.is-open .nav-trigger svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% - 6px); left: 24px; right: 24px;
  display: grid; grid-template-columns: repeat(3, 1fr) 280px; gap: 8px 32px;
  background: var(--surface); border-radius: 24px; padding: 32px;
  box-shadow: 0 24px 60px -20px rgba(31,26,23,.28), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* puente para el hover */
.has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

.mega-title { font-size: 13px; color: var(--muted); margin: 0 0 10px 12px; }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.nav .mega-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border: 0; border-radius: 14px; text-decoration: none; color: var(--ink);
  transition: background .15s;
}
.nav .mega-item:hover { background: var(--bg); color: var(--ink); }
.mega-item b { display: block; font-weight: 500; font-size: 16px; line-height: 1.3; }
.mega-item small { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.nav .mega-item:hover b { color: var(--orange-strong); }
.mega-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: var(--cream); color: var(--orange-strong); display: grid; place-items: center;
}
.mega-ico svg { width: 18px; height: 18px; }

.nav .mega-promo {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg); border-radius: 18px; padding: 16px; text-decoration: none; color: var(--ink-2);
}
.mega-promo-art {
  height: 170px; border-radius: 12px; background: var(--orange);
  display: grid; place-items: center; overflow: hidden;
}
.mega-promo-stamp {
  --stamp-r: 5px; --stamp-gap: 17px;
  padding: 22px 30px 24px; background: var(--cream);
  transform: rotate(-4deg); transition: transform .3s;
}
.mega-promo-stamp > * { display: block; }
.mega-promo-stamp span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-strong); font-weight: 500; }
.mega-promo-stamp b { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.1; }
.nav .mega-promo:hover .mega-promo-stamp { transform: rotate(0deg) scale(1.04); }
.mega-promo-text { font-size: 14px; line-height: 1.45; }
.mega-promo .arrow { color: var(--orange-strong); font-weight: 700; }

/* Menú chico (Trabajos): se abre debajo de su botón */
.has-menu-sm { position: relative; }
.mega.mega-sm {
  top: calc(100% + 22px); left: -20px; right: auto; width: 340px;
  grid-template-columns: 1fr; padding: 16px; gap: 8px;
}
.mega-sm::before { top: -26px; height: 26px; }
.nav .mega-all {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 4px; padding: 14px 12px 6px; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 500; color: var(--orange-strong); text-decoration: none;
}
.nav .mega-all:hover { color: var(--ink); }

.mega-backdrop {
  position: fixed; inset: 76px 0 0 0; background: rgba(31,26,23,.18);
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility 0s linear .18s; z-index: -1;
}
.header.menu-open .mega-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }

.nav ul > li > a, .nav-trigger, .nav > .btn { white-space: nowrap; }

@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav ul { gap: 20px; }
  .mega { grid-template-columns: repeat(3, 1fr); }
  .mega-promo { display: none !important; }
}

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 88px 64px 0;
  overflow: hidden;
  position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: end; }
.hero-grid > *, .services-grid > *, .problem-grid > *, .steps > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; }
.hero-copy { padding-bottom: 88px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 66px); font-weight: 300; margin-top: 20px; }
.hero h1 .hl { font-weight: 700; color: var(--orange-strong); }
.hero-sub { margin-top: 24px; font-size: 20px; color: var(--ink-2); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--orange-strong); }

/* Mockup de email */
.hero-visual { position: relative; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; min-height: 520px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 40px 0 0 0;
  background: var(--cream); border-radius: 24px 24px 0 0;
}
.mock-email {
  position: relative; width: min(380px, 88%);
  background: #fff; border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow); border: 1px solid var(--line); border-bottom: 0;
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.mock-from { font-size: 13px; line-height: 1.3; }
.mock-from b { display: block; font-weight: 500; }
.mock-from { min-width: 0; }
.mock-from span { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { padding: 18px; }
.mock-hero-img {
  height: 170px; border-radius: 12px;
  background:
    radial-gradient(circle at 75% 40%, rgba(255,255,255,.35) 0 60px, transparent 61px),
    linear-gradient(135deg, var(--orange) 0%, #F57A4E 100%);
  display: flex; align-items: flex-end; padding: 16px; color: #fff;
  font-weight: 700; font-size: 22px; line-height: 1.1;
}
.mock-line { height: 10px; border-radius: 6px; background: var(--line); margin-top: 12px; }
.mock-line.w80 { width: 80%; } .mock-line.w60 { width: 60%; }
.mock-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mock-products i { aspect-ratio: 1; border-radius: 10px; background: var(--cream-soft); border: 1px solid var(--line); }
.mock-btn { margin: 16px auto 22px; width: 60%; height: 38px; border-radius: 999px; background: var(--ink); }

.chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}
.chip b { display: block; font-weight: 500; }
.chip small { color: var(--muted); font-size: 12px; }
.chip-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.chip-ico svg { width: 18px; height: 18px; }
.chip-1 { top: 90px; left: -8px; }
.chip-1 .chip-ico { background: var(--orange-soft); color: var(--orange-strong); }
.chip-2 { top: 250px; right: -12px; animation-delay: -3s; }
.chip-2 .chip-ico { background: #DDF3E4; color: #1E7A44; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Fondo con sellos ----------
   Estampillas en línea fina, inspiradas en el sello del logo. Quedan detrás de los bloques de contenido. */
body { background-color: var(--bg); background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27560%27%20height%3D%27560%27%20fill%3D%27none%27%20stroke%3D%27rgba(212%2C66%2C26%2C.16)%27%20stroke-width%3D%271.4%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cg%20transform%3D%27translate(70%2080)%20rotate(-8%2039%2048)%27%3E%3Cpath%20d%3D%27M0%200L13%200A5%205%200%200%200%2023%200L27%200A5%205%200%200%200%2037%200L41%200A5%205%200%200%200%2051%200L55%200A5%205%200%200%200%2065%200L78%200L78%2013.4A5%205%200%200%200%2078%2023.4L78%2028.2A5%205%200%200%200%2078%2038.2L78%2043A5%205%200%200%200%2078%2053L78%2057.8A5%205%200%200%200%2078%2067.8L78%2072.6A5%205%200%200%200%2078%2082.6L78%2096L65%2096A5%205%200%200%200%2055%2096L51%2096A5%205%200%200%200%2041%2096L37%2096A5%205%200%200%200%2027%2096L23%2096A5%205%200%200%200%2013%2096L0%2096L0%2082.6A5%205%200%200%200%200%2072.6L0%2067.8A5%205%200%200%200%200%2057.8L0%2053A5%205%200%200%200%200%2043L0%2038.2A5%205%200%200%200%200%2028.2L0%2023.4A5%205%200%200%200%200%2013.4Z%27%2F%3E%3Cpath%20transform%3D%27translate(19%2030)%27%20d%3D%27M0%200H40V28H0Z%20M0%200L20%2016.24L40%200%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate(360%20250)%20rotate(7%2029%2036)%27%3E%3Cpath%20d%3D%27M0%200L11.53%200A4%204%200%200%200%2019.53%200L25%200A4%204%200%200%200%2033%200L38.47%200A4%204%200%200%200%2046.47%200L58%200L58%2011.6A4%204%200%200%200%2058%2019.6L58%2025.2A4%204%200%200%200%2058%2033.2L58%2038.8A4%204%200%200%200%2058%2046.8L58%2052.4A4%204%200%200%200%2058%2060.4L58%2072L46.47%2072A4%204%200%200%200%2038.47%2072L33%2072A4%204%200%200%200%2025%2072L19.53%2072A4%204%200%200%200%2011.53%2072L0%2072L0%2060.4A4%204%200%200%200%200%2052.4L0%2046.8A4%204%200%200%200%200%2038.8L0%2033.2A4%204%200%200%200%200%2025.2L0%2019.6A4%204%200%200%200%200%2011.6Z%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27translate(150%20400)%20rotate(-3%2025%2031)%27%3E%3Cpath%20d%3D%27M0%200L10.2%200A4%204%200%200%200%2018.2%200L21%200A4%204%200%200%200%2029%200L31.8%200A4%204%200%200%200%2039.8%200L50%200L50%2010.35A4%204%200%200%200%2050%2018.35L50%2021.45A4%204%200%200%200%2050%2029.45L50%2032.55A4%204%200%200%200%2050%2040.55L50%2043.65A4%204%200%200%200%2050%2051.65L50%2062L39.8%2062A4%204%200%200%200%2031.8%2062L29%2062A4%204%200%200%200%2021%2062L18.2%2062A4%204%200%200%200%2010.2%2062L0%2062L0%2051.65A4%204%200%200%200%200%2043.65L0%2040.55A4%204%200%200%200%200%2032.55L0%2029.45A4%204%200%200%200%200%2021.45L0%2018.35A4%204%200%200%200%200%2010.35Z%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); background-size: 560px 560px; }

/* ---------- Herramientas ---------- */
.tools { padding: 40px 0 0; text-align: center; }
.tools-title { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tools-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin: 22px 0 0; padding: 0; list-style: none; }
.tools-list li { font-size: 22px; font-weight: 700; color: #A49B92; letter-spacing: var(--tracking); }

/* ---------- Problema ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card {
  background: var(--surface); border-radius: var(--radius-md); padding: 32px;
  border: 1px solid var(--line);
}
.problem-card .num { font-size: 14px; font-weight: 500; color: var(--orange-strong); }
.problem-card h3 { font-size: 22px; font-weight: 500; margin-top: 14px; }
.problem-card p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.problem-turn {
  margin-top: 20px; padding: 28px 32px; border-radius: var(--radius-md);
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.problem-turn p { font-size: 20px; font-weight: 300; }
.problem-turn strong { font-weight: 700; color: var(--cream); }

/* ---------- Servicios ---------- */
.services-wrap { background: var(--surface); border-radius: var(--radius-lg); padding: 96px 48px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  background: var(--bg); border-radius: var(--radius-md); padding: 36px 30px;
  display: flex; flex-direction: column; text-align: center; align-items: center;
}
.service-ico {
  width: 88px; height: 88px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; color: var(--orange-strong); margin-bottom: 24px;
}
.service-ico svg { width: 40px; height: 40px; }
.service h3 { font-size: 30px; font-weight: 500; }
.service p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
.tags li { font-size: 14px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }

/* ---------- Filas de detalle ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.reverse .feature-visual { order: -1; }
.feature h2 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 300; margin-top: 16px; }
.feature-copy > p { margin-top: 18px; color: var(--ink-2); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--orange-strong); margin-top: 2px; }
.checks b { font-weight: 500; }
.feature .btn { margin-top: 32px; }

.feature-visual { background: var(--cream); border-radius: var(--radius-lg); padding: 48px; }

/* Flujo de automatización */
.flow { display: grid; gap: 0; max-width: 360px; margin: 0 auto; }
.flow-step {
  background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; font-size: 15px;
}
.flow-step .chip-ico { background: var(--orange-soft); color: var(--orange-strong); }
.flow-step small { display: block; color: var(--muted); font-size: 12px; }
.flow-step.is-trigger { background: var(--ink); color: #fff; }
.flow-step.is-trigger small { color: #BDB4AC; }
.flow-step.is-trigger .chip-ico { background: rgba(255,255,255,.12); color: var(--cream); }
.flow-step.is-goal .chip-ico { background: #DDF3E4; color: #1E7A44; }
.flow-link { width: 2px; height: 28px; background: var(--orange); margin: 0 auto; opacity: .5; }
.flow-wait { justify-self: center; font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px dashed var(--orange); color: var(--orange-strong); }

/* Calendario de campañas */
.calendar { background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); max-width: 420px; margin: 0 auto; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.calendar-head span { font-size: 13px; color: var(--muted); font-weight: 400; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.calendar-grid i { aspect-ratio: 1; border-radius: 8px; background: var(--bg); }
.calendar-grid i.on { background: var(--orange); }
.calendar-grid i.on-soft { background: var(--cream); border: 1px solid #E9E58F; }
.calendar-legend { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--orange); }
.calendar-legend i.soft { background: var(--cream); border: 1px solid #E9E58F; }

/* ---------- Relieve en las ilustraciones ----------
   Luz arriba a la izquierda, sombras en capas y una leve perspectiva
   para que los gráficos no se vean planos. */
.hero-visual::before, .feature-visual {
  background: radial-gradient(120% 90% at 18% 0%, #FDFCE3 0%, var(--cream) 55%, #EDE993 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), inset 0 -40px 80px -40px rgba(212,66,26,.16);
}
.mock-wrap {
  position: relative; width: min(380px, 84%);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); transform-origin: 50% 100%;
}
.mock-wrap .mock-email {
  width: 100%; position: relative; z-index: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 4px rgba(31,26,23,.06),
              0 18px 36px -12px rgba(31,26,23,.24), 0 48px 80px -36px rgba(212,66,26,.38);
}
.mock-stack { /* un segundo email detrás, para dar profundidad */
  position: absolute; inset: 26px -16px 0 16px; border-radius: 20px 20px 0 0;
  background: linear-gradient(#fff, #F1ECE2); border: 1px solid var(--line);
  transform: rotate(3.5deg); box-shadow: 0 20px 40px -20px rgba(31,26,23,.28);
}
.mock-avatar { box-shadow: 0 4px 10px -4px rgba(212,66,26,.7); }
.mock-hero-img { box-shadow: inset 0 -50px 60px -30px rgba(120,30,0,.35), 0 10px 20px -10px rgba(212,66,26,.55); }
.mock-products i { background: linear-gradient(160deg, #fff, var(--cream-soft)); box-shadow: 0 6px 12px -8px rgba(31,26,23,.28); }
.mock-btn { box-shadow: 0 8px 16px -8px rgba(31,26,23,.55); }

/* Contenido del email de ejemplo */
.mock-brand { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .3em; color: var(--ink); margin: -2px 0 12px; }
.mock-hero-img { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; height: 200px; }
.mock-hero-img b { font-weight: 700; font-size: 22px; line-height: 1.05; }
.mock-kicker { font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.mock-cta { margin-top: 4px; font-size: 11px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--orange-strong); }
.mock-text { margin: 12px 2px 0; font-size: 12px; line-height: 1.45; color: var(--ink-2); text-align: center; }
.mock-products { margin-top: 12px; }
.mock-product { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; line-height: 1.2; }
.mock-product b { font-weight: 500; margin-top: 4px; }
.mock-product small { font-size: 10px; color: var(--orange-strong); font-weight: 500; }
.mock-thumb {
  width: 100%; aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(160deg, #fff, var(--cream-soft)); border: 1px solid var(--line);
  box-shadow: 0 6px 12px -8px rgba(31,26,23,.28); color: var(--orange-strong);
}
.mock-thumb svg { width: 46%; height: 46%; }
.mock-btn {
  display: grid; place-items: center; height: 36px; margin: 14px auto 18px;
  color: #fff; font-size: 12px; font-weight: 500;
}

/* Secuencia animada del inicio: se envía la campaña, alguien hace clic y entra una venta */
.mock-wrap .chip { animation: chipCycle 9s ease-in-out infinite; }
.mock-wrap .chip-1 { animation-delay: .4s; }
.mock-wrap .chip-2 { animation-delay: 2.6s; }
.mock-wrap .mock-btn { animation: btnPress 9s ease-in-out infinite; animation-delay: 2s; }
@keyframes chipCycle {
  0%, 6% { opacity: 0; transform: translateY(12px) scale(.94); }
  12%, 80% { opacity: 1; transform: none; }
  46% { transform: translateY(-5px); }
  90%, 100% { opacity: 0; transform: translateY(-8px) scale(.97); }
}
@keyframes btnPress {
  0%, 8%, 16%, 100% { transform: none; box-shadow: 0 8px 16px -8px rgba(31,26,23,.55), 0 0 0 0 rgba(240,82,35,0); }
  11% { transform: scale(.94); box-shadow: 0 4px 8px -6px rgba(31,26,23,.55), 0 0 0 8px rgba(240,82,35,.25); }
}
@media (prefers-reduced-motion: reduce) {
  .mock-wrap .chip, .mock-wrap .mock-btn { animation: none; }
}
.mock-wrap .chip {
  z-index: 2; border: 1px solid rgba(232,227,216,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 2px 6px rgba(31,26,23,.06), 0 22px 40px -14px rgba(31,26,23,.32);
}
.mock-wrap .chip-1 { top: 110px; left: -56px; }   /* arriba a la izquierda de la foto, sin tapar textos */
.mock-wrap .chip-2 { top: 186px; right: -60px; } /* a la derecha de la foto */

/* ---------- Escenas animadas del inicio ----------
   Una historia en loop: el pedido, el proceso, las personas, el email y las herramientas. */
.hero-visual { isolation: isolate; }
.scene-bg {
  position: absolute; inset: 40px 0 0 0; z-index: 0; overflow: hidden;
  border-radius: 24px 24px 0 0; opacity: 0; transition: opacity .9s ease;
}
.hero-visual.bg-on .scene-bg { opacity: 1; }
.blob { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(46px); opacity: .85; animation: blobMove 12s ease-in-out infinite alternate; }
.b1 { background: #F05223; left: -18%; top: -22%; }
.b2 { background: #F8F7BA; right: -22%; top: 8%; width: 80%; animation-delay: -3s; }
.b3 { background: #FFB59A; left: 8%; bottom: -32%; animation-delay: -6s; }
.b4 { background: #F7C9D4; right: -12%; bottom: -22%; width: 55%; animation-delay: -9s; }
@keyframes blobMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12%, 8%) scale(1.15); }
  100% { transform: translate(-8%, 14%) scale(.95); }
}

.scene {
  position: absolute; inset: 40px 0 0 0; z-index: 1; display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); filter: blur(6px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease, visibility 0s linear .7s;
}
.scene.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.scene-email { position: relative; inset: auto; padding: 0; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.scene-email:not(.is-active) .mock-wrap .chip, .scene-email:not(.is-active) .mock-wrap .mock-btn { animation: none; }

/* Tarjetas "de vidrio" que se usan en varias escenas */
.prompt, .reply, .person, .tool-card {
  border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(31,26,23,.06), 0 24px 48px -18px rgba(31,26,23,.32);
}

/* 1 · El pedido */
.prompt {
  width: min(430px, 100%); min-height: 64px; display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 14px 22px; border-radius: 18px;
  background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 16px; line-height: 1.4; color: var(--ink);
}
.prompt-text { flex: 1; min-width: 0; }
.prompt-text::after {
  content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px;
  background: var(--ink); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.prompt-send {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--cream); color: var(--ink); transition: background .3s, color .3s, transform .3s;
}
.prompt-send svg { width: 18px; height: 18px; }
.prompt.is-done .prompt-send { background: var(--orange-strong); color: #fff; transform: scale(1.08); }

/* 2 · El proceso */
.tag {
  position: absolute; left: var(--x); top: var(--y); display: flex; gap: 10px; align-items: flex-start;
  font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase;
  color: var(--ink); opacity: 0;
}
.tag i { position: relative; width: 8px; height: 8px; margin-top: 3px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.tag i::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1.5px solid var(--ink);
  animation: ring 1.6s ease-out infinite;
}
@keyframes ring { from { transform: scale(.4); opacity: .7; } to { transform: scale(1.4); opacity: 0; } }
.scene-process.is-active .tag { animation: tagIn .5s ease both; animation-delay: calc(var(--d) * 380ms + 300ms); }
@keyframes tagIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 3 · La respuesta */
.reply {
  display: flex; align-items: center; gap: 12px; max-width: 400px; padding: 14px 18px;
  border-radius: 16px; background: rgba(255,255,255,.92); font-size: 15px; line-height: 1.4;
}
.reply-ico { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--orange-strong); color: #fff; }
.reply-ico svg { width: 18px; height: 18px; }

/* 4 · Las personas */
.people { display: grid; grid-template-columns: repeat(5, 64px); gap: 14px; }
.people span {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: radial-gradient(circle, var(--c) 0 21px, #fff 21.5px);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 12px 22px -14px rgba(31,26,23,.4);
}
.scene-people.is-active .people { animation: peoplePan 3.2s ease-out both; }
.scene-people.is-active .people span:not(.is-pick) { animation: dim .6s ease 1.5s both; }
.scene-people.is-active .people .is-pick { animation: pick .6s ease 1.5s both; }
@keyframes peoplePan { from { transform: translateY(26px); } to { transform: translateY(-8px); } }
@keyframes dim { to { opacity: .35; } }
@keyframes pick { to { transform: scale(1.14); box-shadow: 0 0 0 4px var(--orange), 0 16px 30px -10px rgba(240,82,35,.7); } }

/* 5 · Una clienta */
.person { width: min(390px, 100%); padding: 18px; border-radius: 18px; background: #fff; }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-avatar { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 14px; font-weight: 700; }
.person-head b { display: block; font-size: 15px; font-weight: 500; }
.person-head small { display: block; font-size: 12px; color: var(--muted); }
.person-badge { margin-left: auto; padding: 6px 10px; border-radius: 999px; background: var(--cream); font-size: 11px; font-weight: 500; white-space: nowrap; }
.person-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.person-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); opacity: 0; }
.person-list b { color: var(--ink); font-weight: 500; }
.person-list .person-next b { color: var(--orange-strong); }
.scene-person.is-active .person-list li { animation: tagIn .5s ease both; }
.scene-person.is-active .person-list li:nth-child(1) { animation-delay: .5s; }
.scene-person.is-active .person-list li:nth-child(2) { animation-delay: .9s; }
.scene-person.is-active .person-list li:nth-child(3) { animation-delay: 1.4s; }

/* 7 · Las herramientas */
.tools-stack { position: relative; width: min(330px, 92%); height: 130px; }
.tool-card {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: #fff; font-size: 15px;
  animation: toolCycle 3s ease-in-out infinite; animation-delay: calc(var(--n) * -1s);
}
.tool-card b { font-weight: 500; }
.tool-logo { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--orange); color: #fff; font-weight: 700; }
.tool-card em { margin-left: auto; padding: 5px 10px; border-radius: 999px; background: #DDF3E4; color: #1E7A44; font-size: 11px; font-weight: 500; font-style: normal; }
@keyframes toolCycle {
  0%, 28% { transform: none; opacity: 1; z-index: 3; }
  33%, 61% { transform: translateY(-20px) scale(.94); opacity: .6; z-index: 2; }
  66%, 94% { transform: translateY(-40px) scale(.88); opacity: .3; z-index: 1; }
  100% { transform: none; opacity: 1; z-index: 3; }
}

@media (max-width: 600px) {
  .scene-bg, .scene:not(.scene-email) { inset: 24px 0 0 0; }
  .scene { padding: 16px; }
  .prompt { font-size: 14px; min-height: 56px; padding: 12px 12px 12px 16px; }
  .tag { font-size: 9.5px; gap: 8px; }
  .reply { font-size: 13px; }
  .people { grid-template-columns: repeat(5, 46px); gap: 9px; }
  .people span { width: 46px; height: 46px; border-radius: 12px; font-size: 10px; background: radial-gradient(circle, var(--c) 0 15px, #fff 15.5px); }
  .person { padding: 14px; }
  .person-badge { font-size: 10px; padding: 5px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene-bg { transition: none; }
  .blob, .tag i::before, .tool-card, .prompt-text::after { animation: none; }
}

/* Flujos automáticos con pestañas */
.flow-tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  width: 100%; max-width: 440px; margin: 0 auto 28px; padding: 5px;
  background: rgba(255,255,255,.55); border-radius: 999px; box-shadow: inset 0 1px 3px rgba(31,26,23,.1);
}
.flow-tab {
  position: relative; border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: 10px 8px; font: 500 13px/1.2 var(--font-body); color: var(--ink-2); text-align: center; transition: background .2s, color .2s, transform .1s;
}
.flow-tab:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.flow-tab:active { transform: scale(.97); }
.flow-tab.is-active { background: var(--orange-strong); color: #fff; box-shadow: 0 6px 14px -6px rgba(212,66,26,.7); }
.flows.is-auto .flow-tab.is-active::after { background: rgba(255,255,255,.85); }
.flows.is-auto .flow-tab.is-active::after { /* barra de avance del cambio automático */
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--orange); transform-origin: left; animation: flowProgress 10s linear forwards;
}
@keyframes flowProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.flow[hidden] { display: none; }
.flow-step {
  border: 1px solid rgba(232,227,216,.9);
  background: linear-gradient(180deg, #fff, #FBF8F2);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(31,26,23,.05), 0 16px 30px -16px rgba(31,26,23,.34);
}
.flow-step.is-trigger { background: linear-gradient(180deg, #342D28, var(--ink)); border-color: var(--ink); }
.flow-step .chip-ico { box-shadow: inset 0 -2px 0 rgba(212,66,26,.12); }
.flow-wait { background: #fff; box-shadow: 0 6px 12px -8px rgba(212,66,26,.5); }
.flow-link { position: relative; opacity: 1; background: rgba(240,82,35,.4); }
.flow-link::after { /* punto que recorre el flujo */
  content: ""; position: absolute; left: 50%; top: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 3px rgba(240,82,35,.22);
  animation: flowDot 1.8s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 220ms);
}
@keyframes flowDot { 0% { top: 0; opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.flow.is-active > * { animation: flowIn .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 450ms); }
.flow.is-active > .flow-link { animation-name: flowInLink; }
@keyframes flowIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes flowInLink { from { opacity: 0; } to { opacity: 1; } }

/* Calendario plano: script.js va cambiando los días de color, como un GIF */
.calendar-grid i { border: 1px solid transparent; transition: background-color .6s ease, border-color .6s ease; }
.calendar-grid i.on-soft { border-color: #E9E58F; }

@media (prefers-reduced-motion: reduce) {
  .flow-link::after, .flows.is-auto .flow-tab.is-active::after { animation: none; }
  .flow.is-active > * { animation: none; }
}

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; background: var(--surface); border-radius: var(--radius-md); padding: 32px 26px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-strong); font-weight: 700; font-size: 15px;
}
.step h3 { font-size: 21px; font-weight: 500; margin-top: 20px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 15px; }
.step .time { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- Trabajos ---------- */
.works { padding-top: 0; }
.works-tabs {
  display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%;
  margin: -16px auto 40px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.works-tab {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  min-height: 44px; padding: 0 22px; font: 500 15px/1 var(--font-body); letter-spacing: var(--tracking); color: var(--ink-2);
  transition: background .2s, color .2s;
}
.works-tab:hover { color: var(--ink); }
.works-tab.is-active { background: var(--ink); color: #fff; }

/* Página de portfolio (trabajos.html) */
.page-works, .page-tips { padding-top: 48px; }
.page-works .section-head, .page-tips .section-head { margin-bottom: 56px; }
.page-works .section-head h1, .page-tips .section-head h1 { font-size: clamp(40px, 5.4vw, 66px); font-weight: 300; margin-top: 16px; }
.page-works .works-tabs { margin-top: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 40px; }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-strong); }

/* Emails completos */
.works-emails, .works-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.email-frame.is-static img, .email-frame.is-static video { display: block; width: 100%; margin-top: 28px; height: calc(100% - 28px); object-fit: cover; object-position: center top; }
.email-frame.is-static:hover img { transform: none; }
.works-more { display: flex; justify-content: center; margin-top: 40px; }
.email-card { margin: 0; }
.email-frame {
  --frame-h: 560px;
  position: relative; height: var(--frame-h); overflow: hidden;
  background: #fff; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.email-frame::before { /* barra superior tipo bandeja de entrada */
  content: ""; position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 28px;
  background:
    radial-gradient(circle at 16px 50%, #E3DDD2 4px, transparent 4.5px),
    radial-gradient(circle at 30px 50%, #E3DDD2 4px, transparent 4.5px),
    radial-gradient(circle at 44px 50%, #E3DDD2 4px, transparent 4.5px),
    var(--surface);
  border-bottom: 1px solid var(--line);
}
.email-frame img {
  width: 100%; margin-top: 28px;
  transition: transform 1.2s ease;
}
.email-frame:hover img, .email-frame:focus-visible img {
  transform: translateY(calc(-100% + var(--frame-h) - 28px));
  transition: transform 7s cubic-bezier(.45,.05,.55,.95);
}
.email-card figcaption { display: flex; flex-direction: column; margin-top: 16px; padding: 0 4px; }
.email-card figcaption b { font-weight: 500; font-size: 18px; }
.email-card figcaption span { font-size: 14px; color: var(--muted); }
.works-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.works-hint svg { width: 16px; height: 16px; color: var(--orange-strong); }

/* Banners y GIFs */
.works-gifs { columns: 3; column-gap: 20px; }
.gif-card { margin: 0 0 20px; break-inside: avoid; }
.gif-card img, .gif-card video { display: block; width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.gif-card figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; padding: 0 4px; }

/* En pantallas táctiles el email se recorre deslizando */
@media (hover: none) {
  .email-frame { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .email-frame:hover img, .email-frame:focus-visible img { transform: none; }
  .works-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .email-frame { overflow-y: auto; }
  .email-frame:hover img, .email-frame:focus-visible img { transform: none; transition: none; }
}

/* ---------- Tips (tips.html) ---------- */
.tips-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.tips-index { position: sticky; top: 100px; }
.tips-index .mega-title { margin-left: 0; }
.tips-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: tip; }
.tips-index li { counter-increment: tip; }
.tips-index a {
  display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px;
  text-decoration: none; font-size: 15px; color: var(--ink-2);
}
.tips-index a::before { content: counter(tip, decimal-leading-zero); color: var(--orange-strong); font-weight: 500; }
.tips-index a:hover { background: var(--surface); color: var(--ink); }

.tips-list { display: grid; gap: 24px; }
.tip { background: var(--surface); border-radius: var(--radius-lg); padding: 48px; border: 1px solid var(--line); }
.tip-num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange-soft); color: var(--orange-strong); font-weight: 700; font-size: 15px;
}
.tip h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 300; margin-top: 20px; }
.tip-lead { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 680px; }
.tip-box { margin-top: 28px; background: var(--cream-soft); border: 1px solid #EEEBB5; border-radius: var(--radius-md); padding: 24px 28px; }
.tip-box-title { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-strong); }
.tip-box .checks { margin-top: 14px; }
.tip-mailclu { margin-top: 24px; padding-left: 16px; border-left: 3px solid var(--orange); color: var(--ink-2); font-size: 16px; }
.tip-mailclu b { color: var(--ink); font-weight: 500; }
.tip-mailclu a, .faq details p a { color: var(--orange-strong); font-weight: 500; }

@media (max-width: 1024px) {
  .tips-layout { grid-template-columns: 1fr; gap: 24px; }
  .tips-index { position: static; background: var(--surface); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .tip { padding: 28px 20px; border-radius: 22px; }
  .tip-box { padding: 20px; }
}

/* ---------- Caso / experiencia ---------- */
.case {
  background: var(--orange); color: #fff; border-radius: var(--radius-lg);
  padding: 72px 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center;
  position: relative; overflow: hidden;
}
.case .eyebrow { color: #fff; }
.case .eyebrow::before { background: var(--cream); }
.case h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 300; margin-top: 16px; }
.case h2 strong { color: var(--cream); }
.case-copy > p { margin-top: 18px; font-size: 18px; color: #FFE9E0; }
.case-did { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.case-did li { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.45); }

/* Estampilla (motivo del logo) */
.stamp {
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.18));
  transform: rotate(2deg);
}
.stamp-inner { --stamp-r: 8px; --stamp-gap: 26px; background: var(--cream); color: var(--ink); padding: 44px 40px; }
.stamp-brand { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--orange-strong); }
.stamp-name { font-size: 40px; font-weight: 700; margin-top: 6px; letter-spacing: var(--tracking); }
.stamp-meta { font-size: 15px; color: var(--ink-2); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.stat { background: #fff; border-radius: 12px; padding: 16px; }
.stat b { display: block; font-size: 30px; font-weight: 700; color: var(--orange-strong); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-2); line-height: 1.35; display: block; margin-top: 4px; }
.stat.placeholder b { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--line); }
.faq details + details { margin-top: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 19px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex-shrink: 0; transition: transform .25s, background .2s; }
.faq summary .plus svg { width: 16px; height: 16px; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--orange-soft); color: var(--orange-strong); }
.faq details p { padding: 0 28px 26px; color: var(--ink-2); font-size: 16px; max-width: 680px; }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--cream); border-radius: var(--radius-lg); padding: 96px 48px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-final h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 300; max-width: 820px; margin: 18px auto 0; }
.cta-final p { margin: 20px auto 0; color: var(--ink-2); font-size: 19px; max-width: 560px; }
.cta-final .hero-ctas { justify-content: center; }
.cta-final .hero-note { justify-content: center; }
.cta-final .stamp-deco {
  position: absolute; width: 180px; height: 220px; border: 3px solid var(--orange); opacity: .18;
  border-radius: 6px;
}
.cta-final .stamp-deco.a { left: -40px; top: 40px; transform: rotate(-12deg); }
.cta-final .stamp-deco.b { right: -30px; bottom: 30px; transform: rotate(10deg); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #D9D1C9; margin-top: 112px; padding: 72px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 320px; font-size: 15px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #fff; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--cream); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: #A39A92; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 60;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(0,0,0,.35);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animación de entrada ---------- */
.reveal { transform: translateY(16px); transition: transform .7s ease; }
.reveal.is-visible { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; transition: none; }
  .chip { animation: none; }
  .btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-panel { padding: 64px 40px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 32px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-note { justify-content: center; }
  .hero h1 .eyebrow { justify-content: center; }
  .hero-visual { min-height: 480px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.reverse .feature-visual { order: 0; }
  .case { grid-template-columns: 1fr; padding: 56px 40px; }
  .works-emails, .works-featured {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(260px, 42%);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  }
  .email-card { scroll-snap-align: start; }
  .works-gifs { columns: 2; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--bg); padding: 16px 24px 28px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; }
  .nav { max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-trigger { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .mega {
    position: static; display: none; grid-template-columns: 1fr; gap: 16px;
    padding: 12px 0 16px; box-shadow: none; border-radius: 0; background: transparent;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .has-menu.is-open .mega { display: grid; }
  .mega::before { display: none; }
  .mega-title { margin: 8px 0 4px 12px; }
  .mega-backdrop { display: none; }
  .has-menu-sm { position: static; }
  .mega.mega-sm { width: auto; padding: 12px 0 16px; }
  .nav .mega-all { border-bottom: 0; font-size: 16px; }
  .problem-grid, .services-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .eyebrow { font-size: 12px; letter-spacing: .08em; }
  .container { padding: 0 16px; }
  .hero { padding: 16px 0 24px; }
  .hero-panel { padding: 48px 20px 0; border-radius: 22px; }
  .hero-sub { font-size: 18px; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { min-height: 420px; }
  .chip { font-size: 13px; padding: 10px 12px; }
  .mock-wrap { width: 86%; }
  .mock-wrap .chip-1 { left: -14px; top: 108px; }
  .mock-wrap .chip-2 { right: -14px; top: 160px; }
  .tools-list li { font-size: 18px; }
  .services-wrap { padding: 64px 16px; border-radius: 22px; }
  .steps { grid-template-columns: 1fr; }
  .feature-visual { padding: 28px 16px; }
  .works-emails, .works-featured { grid-auto-columns: 80%; }
  .email-frame { --frame-h: 480px; }
  .works-gifs { columns: 1; }
  .works-tab { padding: 0 16px; font-size: 14px; }
  .case { padding: 44px 20px; border-radius: 22px; }
  .stamp-inner { padding: 28px 20px; }
  .cta-final { padding: 64px 20px; border-radius: 22px; }
  .cta-final .btn { width: 100%; }
  .faq summary { padding: 20px; font-size: 17px; }
  .faq details p { padding: 0 20px 22px; }
  .footer-cols { gap: 40px; }

  /* ---- Versión compacta para celular: menos scroll, mismo contenido ---- */
  body { font-size: 15px; line-height: 1.55; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: 28px; margin-top: 10px; }
  .section-head p { font-size: 16px; margin-top: 12px; }
  .btn { min-height: 48px; font-size: 15px; }

  .hero-panel { padding: 36px 16px 0; }
  .hero h1 { font-size: 36px; margin-top: 14px; }
  .hero-sub { font-size: 16px; margin-top: 16px; }
  .hero-ctas { margin-top: 24px; gap: 10px; }
  .hero-note { margin-top: 14px; font-size: 13px; }
  .hero-copy { padding-bottom: 24px; }
  .hero-visual { min-height: 330px; }
  .hero-visual::before { inset: 24px 0 0 0; }
  .mock-hero-img { height: 170px; }
  .mock-hero-img b { font-size: 18px; }
  .mock-wrap .chip { padding: 8px 12px; gap: 8px; }
  .mock-wrap .chip small { display: none; }
  .mock-wrap .chip-ico { width: 28px; height: 28px; }
  .mock-wrap .chip-1 { top: 110px; }
  .mock-wrap .chip-2 { top: auto; bottom: 124px; } /* sobre las fotos de producto */
  .flow-tab { padding: 9px 10px; font-size: 12px; }
  .tools { padding-top: 28px; }
  .tools-list { gap: 6px 22px; margin-top: 14px; }
  .tools-list li { font-size: 16px; }

  .problem-grid { gap: 12px; }
  .problem-card { padding: 20px 22px; }
  .problem-card h3 { font-size: 19px; margin-top: 8px; }
  .problem-card p { font-size: 15px; margin-top: 6px; }
  .problem-turn { margin-top: 12px; padding: 20px 22px; gap: 16px; }
  .problem-turn p { font-size: 17px; }

  .services-wrap { padding: 44px 16px; }
  .services-grid { gap: 12px; }
  .service { padding: 24px 20px; }
  .service-ico { width: 60px; height: 60px; margin-bottom: 14px; }
  .service-ico svg { width: 28px; height: 28px; }
  .service h3 { font-size: 24px; }
  .service p { font-size: 15px; margin-top: 8px; }
  .tags { margin-top: 14px; gap: 6px; }
  .tags li { font-size: 13px; padding: 5px 11px; }

  .feature { gap: 24px; }
  .feature + .feature { margin-top: 56px; }
  .feature h2 { font-size: 28px; margin-top: 10px; }
  .feature-copy > p { font-size: 16px; margin-top: 12px; }
  .checks { margin-top: 18px; gap: 10px; }
  .feature .btn { margin-top: 22px; }
  .feature-visual { padding: 20px 12px; border-radius: 22px; }
  .flow-step { padding: 10px 14px; font-size: 14px; }
  .flow-link { height: 18px; }

  /* Pasos: número al costado del texto para ocupar menos alto */
  .steps { gap: 10px; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 18px; }
  .step::before { width: 40px; height: 40px; font-size: 13px; grid-row: span 3; }
  .step h3 { font-size: 18px; margin-top: 0; }
  .step p { font-size: 14px; margin-top: 4px; }
  .step .time { margin-top: 6px; font-size: 12px; }

  .works { padding-top: 0; }
  .page-works.works { padding-top: 24px; }
  .works-more { margin-top: 24px; }
  .email-frame { --frame-h: 400px; }

  .case { padding: 32px 20px; gap: 28px; }
  .case h2 { font-size: 28px; margin-top: 10px; }
  .case-copy > p { font-size: 16px; margin-top: 12px; }
  .case-did { margin-top: 18px; gap: 6px; }
  .case-did li { font-size: 13px; padding: 6px 12px; }
  .stamp-inner { --stamp-r: 6px; --stamp-gap: 20px; padding: 26px 22px; }
  .stamp-name { font-size: 30px; }
  .stats { gap: 10px; margin-top: 18px; }
  .stat { padding: 12px; }
  .stat b { font-size: 24px; }

  .faq details + details { margin-top: 8px; }
  .faq summary { padding: 16px 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; font-size: 15px; }

  .cta-final { padding: 44px 18px; }
  .cta-final h2 { font-size: 30px; margin-top: 12px; }
  .cta-final p { font-size: 16px; margin-top: 14px; }
  .footer { margin-top: 56px; padding: 44px 0 24px; }
  .footer-bottom { margin-top: 32px; }

  .page-works, .page-tips { padding-top: 24px; }
  .page-works .section-head h1, .page-tips .section-head h1 { font-size: 34px; }
  .breadcrumb { margin-bottom: 20px; }
  .works-tabs { margin-bottom: 24px; }
  .tips-list { gap: 12px; }
  .tip h2 { font-size: 22px; margin-top: 12px; }
  .tip-num { width: 40px; height: 40px; font-size: 13px; }
  .tip-lead { font-size: 16px; margin-top: 10px; }
  .tip-box { margin-top: 18px; padding: 16px 18px; }
  .tip-mailclu { margin-top: 16px; font-size: 15px; }
}

/* ---------- Inicio: panel animado enmarcado y email plano ----------
   El panel queda como una tarjeta redondeada dentro del bloque blanco,
   y el email usa la misma estética que el resto de las escenas (sin perspectiva). */
.hero-panel { padding-bottom: 64px; }
.hero-grid { align-items: center; }
.hero-copy { padding-bottom: 0; }
.hero-visual { min-height: 0; height: 540px; align-self: center; }
.hero-visual::before, .scene-bg { inset: 0; border-radius: 28px; }
.scene, .scene:not(.scene-email) { inset: 0; }
.scene-email { position: absolute; inset: 0; padding: 28px 24px; display: flex; justify-content: center; align-items: stretch; }

.mock-wrap { width: min(360px, 84%); height: auto; min-height: 0; transform: none; }
.mock-stack { display: none; }
.mock-wrap .mock-email {
  height: 100%; overflow: hidden; border-radius: 20px; border: 1px solid rgba(255,255,255,.95);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(31,26,23,.06), 0 24px 48px -18px rgba(31,26,23,.32);
  /* el final del email se desvanece, como una vista previa */
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
          mask-image: linear-gradient(#000 78%, transparent);
}
.mock-hero-img { box-shadow: none; }
.mock-thumb, .mock-btn, .mock-avatar { box-shadow: none; }
.mock-wrap .chip {
  border: 1px solid rgba(255,255,255,.95); background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px rgba(31,26,23,.06), 0 24px 48px -18px rgba(31,26,23,.32);
}
.mock-wrap .chip-1 { top: 110px; left: -30px; }
.mock-wrap .chip-2 { top: 186px; right: -30px; bottom: auto; }

@media (max-width: 1024px) {
  .hero-panel { padding-bottom: 40px; }
  .hero-copy { padding-bottom: 28px; }
  .hero-visual { height: 500px; }
}
@media (max-width: 600px) {
  .hero-panel { padding-bottom: 16px; }
  .hero-copy { padding-bottom: 20px; }
  .hero-visual { height: 440px; }
  .hero-visual::before, .scene-bg { border-radius: 20px; }
  .scene-email { padding: 20px 14px; }
  .mock-wrap { width: 88%; }
  .mock-wrap .chip-1 { top: 108px; left: -12px; }
  .mock-wrap .chip-2 { top: 160px; right: -28px; bottom: auto; }
}

/* ---------- Email de carrito abandonado ----------
   Secuencia: se envía el email → la clienta hace clic en el botón → venta aprobada. */
.scene-email { align-items: center; }
.mock-wrap { height: auto; }
.mock-wrap .mock-email { height: auto; max-height: 100%; -webkit-mask-image: none; mask-image: none; }
.mock-body { position: relative; }
.mock-hero-img { height: 120px; justify-content: flex-start; padding: 16px 18px; }
.mock-hero-img b { font-size: 20px; }
.mock-cart { display: grid; gap: 8px; margin-top: 12px; }
.mock-item {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: 12px; font-size: 12px;
}
.mock-item .mock-thumb { width: 44px; height: 44px; aspect-ratio: auto; border-radius: 9px; }
.mock-item-name { display: flex; flex-direction: column; min-width: 0; font-weight: 500; line-height: 1.25; color: var(--ink); }
.mock-item-name small { font-size: 10.5px; font-weight: 400; color: var(--muted); }
.mock-item > b { font-size: 12px; font-weight: 600; }
.mock-total { display: flex; justify-content: space-between; padding: 2px 6px; font-size: 12px; color: var(--ink-2); }
.mock-total b { color: var(--ink); }
.mock-btn { width: 64%; margin: 12px auto 16px; }

/* Las dos tarjetitas aparecen en el mismo lugar, una después de la otra */
.mock-wrap .chip-1, .mock-wrap .chip-2 { top: 122px; right: -30px; left: auto; bottom: auto; }
.mock-wrap .chip { opacity: 0; animation: none; }
.scene-email.is-active .mock-wrap .chip-1 { animation: chipFirst 6.2s ease both; }
.scene-email.is-active .mock-wrap .chip-2 { animation: chipSecond 6.2s ease both; }
.scene-email.is-active .mock-wrap .mock-btn { animation: btnClick 6.2s ease both; }
@keyframes chipFirst {
  0%, 8% { opacity: 0; transform: translateY(10px) scale(.95); }
  14%, 44% { opacity: 1; transform: none; }
  50%, 100% { opacity: 0; transform: translateY(-8px) scale(.97); }
}
@keyframes chipSecond {
  0%, 54% { opacity: 0; transform: translateY(10px) scale(.95); }
  60%, 100% { opacity: 1; transform: none; }
}
@keyframes btnClick {
  0%, 42%, 52%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(240,82,35,0); }
  46% { transform: scale(.94); box-shadow: 0 0 0 8px rgba(240,82,35,.28); }
}

/* Cursor que hace clic en "Terminar mi compra" */
.mock-cursor { position: absolute; width: 22px; height: 22px; left: 82%; top: 40%; opacity: 0; pointer-events: none; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.mock-cursor svg { width: 100%; height: 100%; display: block; }
.scene-email.is-active .mock-cursor { animation: cursorMove 6.2s ease-in-out both; }
@keyframes cursorMove {
  0%, 18% { opacity: 0; left: 82%; top: 40%; transform: none; }
  24% { opacity: 1; left: 82%; top: 40%; }
  42% { opacity: 1; left: 56%; top: calc(100% - 42px); transform: none; }
  46% { transform: scale(.85); }
  50% { transform: none; opacity: 1; left: 56%; top: calc(100% - 42px); }
  62%, 100% { opacity: 0; left: 56%; top: calc(100% - 42px); }
}

@media (max-width: 600px) {
  .mock-hero-img { height: 96px; padding: 12px 14px; }
  .mock-hero-img b { font-size: 17px; }
  .mock-wrap .chip-1, .mock-wrap .chip-2 { top: 108px; right: -28px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-email .mock-wrap .chip-2 { opacity: 1; }
  .mock-cursor { display: none; }
}
@media (max-width: 600px) {
  .hero-visual { height: 470px; }
  .scene-email { padding: 14px 12px; }
  .mock-wrap .mock-brand { display: none; }
  .mock-bar { padding: 10px 14px; }
  .mock-body { padding: 12px; }
  .mock-hero-img { height: 84px; }
  .mock-cart { gap: 6px; margin-top: 10px; }
  .mock-item { grid-template-columns: 36px 1fr auto; padding: 4px 8px 4px 4px; }
  .mock-item .mock-thumb { width: 36px; height: 36px; }
  .mock-btn { margin: 10px auto 12px; height: 34px; }
  .mock-wrap .chip-1, .mock-wrap .chip-2 { top: 74px; }
}

/* ---------- Logos de herramientas ---------- */
.tools-logos { align-items: center; gap: 18px 44px; }
.tools-logos li { display: flex; align-items: center; height: 36px; }
.tools-logos .logo-word { width: auto; display: block; }
.logo-combo { gap: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.logo-combo > img { width: 26px; height: 26px; }
.logo-badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.logo-badge img { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .tools-logos { gap: 14px 28px; }
  .tools-logos li { height: 30px; }
  .tools-logos .logo-word { transform: scale(.85); transform-origin: center; }
  .logo-combo { font-size: 17px; }
}

/* Ajuste óptico: algunos logos tienen el texto más abajo dentro de su dibujo */
.tools-logos .logo-up-6 { position: relative; top: -6px; }
.tools-logos .logo-up-3 { position: relative; top: -3px; }

/* Logos: una sola fila en computadora, 4 + 4 en pantallas medianas */
@media (min-width: 1101px) {
  .tools-logos { flex-wrap: nowrap; justify-content: space-between; gap: 20px; }
  .logo-combo { font-size: 18px; }
  .logo-combo > img { width: 24px; height: 24px; }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .tools-logos { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; justify-items: center; gap: 20px 40px; }
}

/* Sin el bloque de experiencia, Preguntas va directo después de Cómo trabajo */
#preguntas { padding-top: 0; }

/* ---------- Chat de preguntas frecuentes ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chat { position: fixed; z-index: 70; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.chat-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--orange-strong); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(212,66,26,.6); transition: transform .2s, background .2s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab svg { width: 28px; height: 28px; grid-area: 1 / 1; transition: opacity .2s, transform .2s; }
.chat-fab .ico-close { opacity: 0; transform: rotate(-90deg); }
.chat.is-open .chat-fab { background: var(--ink); }
.chat.is-open .chat-fab .ico-open { opacity: 0; transform: rotate(90deg); }
.chat.is-open .chat-fab .ico-close { opacity: 1; transform: none; }

.chat-panel {
  position: absolute; right: 0; bottom: 76px; width: 370px; height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(31,26,23,.06), 0 30px 60px -20px rgba(31,26,23,.35);
  animation: chatIn .25s ease;
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--orange-strong); color: #fff; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.chat-avatar img { width: 34px; height: auto; }
.chat-who { display: flex; flex-direction: column; line-height: 1.25; }
.chat-who b { font-size: 15px; font-weight: 600; }
.chat-who small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .9; }
.chat-who small i { width: 7px; height: 7px; border-radius: 50%; background: #7CE3A0; }
.chat-close { margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-close:hover { background: rgba(255,255,255,.15); }
.chat-close svg { width: 20px; height: 20px; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; animation: chatIn .2s ease; }
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.chat-msg.me { align-self: flex-end; background: var(--orange-strong); color: #fff; border-bottom-right-radius: 6px; }
.chat-typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: chatDot 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.chat-chip {
  display: block; text-align: left; font: 500 13.5px/1.3 var(--font-body); color: var(--orange-strong);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.chat-chip:hover { border-color: var(--orange); background: var(--orange-soft); }
.chat-chip.is-primary { background: var(--orange-strong); border-color: var(--orange-strong); color: #fff; text-align: center; }
.chat-chip.is-primary:hover { background: var(--ink); border-color: var(--ink); }

.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  font: 400 14px var(--font-body); color: var(--ink); background: var(--bg);
}
.chat-form input:focus { outline: none; border-color: var(--orange); }
.chat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--orange-strong); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.chat-form button svg { width: 20px; height: 20px; }

@media (max-width: 600px) {
  .chat { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .chat-fab { width: 56px; height: 56px; }
  .chat-panel { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: auto; height: min(70vh, 560px); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-panel, .chat-msg, .chat-typing span { animation: none; }
}

/* ---------- Ajustes mobile (ronda de revisión) ---------- */
@media (max-width: 860px) {
  /* Menú: los desplegables arriba, "Cómo trabajo" y "Preguntas" juntos en una línea */
  .nav ul { display: flex; flex-direction: row; flex-wrap: wrap; column-gap: 28px; }
  .nav ul > li { width: 100%; }
  .nav ul > li:not(.has-menu) { width: auto; order: 10; }
  .nav ul > li:not(.has-menu) > a {
    border-bottom: 0; padding: 18px 0 6px; font-size: 16px; font-weight: 500; color: var(--ink);
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
    text-decoration-color: rgba(212,66,26,.45);
  }
  .nav ul > li:not(.has-menu) > a:hover { text-decoration-color: var(--orange-strong); }
  .nav-trigger { font-size: 18px; color: var(--ink); }
}

/* Chat: el scroll queda adentro del chat y no mueve la página */
.chat-body { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
html.chat-lock, html.chat-lock body { overflow: hidden; }

@media (max-width: 600px) {
  /* Logos: 2 columnas de 4, con el mismo aire arriba y abajo */
  .hero { padding-bottom: 0; }
  .tools { padding: 32px 0 0; }
  .tools-list.tools-logos { display: grid; grid-template-columns: repeat(2, 1fr); justify-items: center; gap: 22px 12px; margin-top: 20px; }
  .tools-logos li { height: 34px; }
  #problema { padding-top: 26px; }
}

/* Emails completos: se recorren solos de arriba a abajo (se pausan al pasar el mouse o tocar) */
.email-frame:not(.is-static) { overflow: hidden; }
.email-frame:not(.is-static) img {
  animation: emailPan 16s ease-in-out infinite alternate;
  animation-delay: 1s;
}
.email-frame:not(.is-static):hover img, .email-frame:not(.is-static):active img { animation-play-state: paused; }
@keyframes emailPan {
  0%, 8% { transform: translateY(0); }
  92%, 100% { transform: translateY(calc(-100% + var(--frame-h) - 28px)); }
}
.email-frame:not(.is-static)::after { /* aviso de que se mueve */
  content: "↓ Se recorre solo"; position: absolute; z-index: 2; right: 10px; bottom: 10px;
  padding: 6px 10px; border-radius: 999px; background: rgba(31,26,23,.75); color: #fff;
  font-size: 11px; font-weight: 500; letter-spacing: .02em; pointer-events: none;
}
.works-hint { display: none; }
.swipe-hint { display: none; }
@media (max-width: 1024px) {
  .swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px;
    font-size: 13px; font-weight: 500; color: var(--ink-2);
  }
  .swipe-hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; color: var(--orange-strong); }
  @keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
}
@media (prefers-reduced-motion: reduce) {
  .email-frame:not(.is-static) { overflow-y: auto; }
  .email-frame:not(.is-static) img { animation: none; }
  .email-frame:not(.is-static)::after { content: "↓ Deslizá para ver todo"; }
  .swipe-hint span { animation: none; }
}

/* Emails completos: ahora los mueve script.js con el scroll real, así también se pueden scrollear a mano */
.email-frame:not(.is-static) { overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.email-frame:not(.is-static)::-webkit-scrollbar { display: none; }
.email-frame:not(.is-static) img,
.email-frame:not(.is-static):hover img,
.email-frame:not(.is-static):focus-visible img { animation: none; transform: none; transition: none; }
.email-frame:not(.is-static)::after { content: none; display: none; }
.flows.is-auto .flow-tab.is-active::after { animation-duration: 6.2s; }

/* ---------- Male, la asistente del chat ---------- */
.chat-avatar { background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-fab { position: relative; padding: 0; overflow: visible; background: #fff; box-shadow: 0 0 0 3px var(--orange-strong), 0 12px 30px -8px rgba(212,66,26,.6); }
.chat-fab .chat-fab-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.chat-fab-dot { /* puntito de "en línea" */
  position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #3CC46B; border: 2px solid #fff; transition: opacity .2s;
}
.chat.is-open .chat-fab-dot { opacity: 0; }
.chat.is-open .chat-fab { background: var(--ink); box-shadow: 0 0 0 3px var(--ink), 0 12px 30px -8px rgba(31,26,23,.5); }
.chat-fab .chat-fab-avatar { grid-area: 1 / 1; transition: opacity .2s, transform .2s; }

/* La barrita con los 3 puntos queda fija arriba mientras el email se mueve */
.email-frame:not(.is-static)::before { position: sticky; top: 0; display: block; }
.email-frame:not(.is-static) img { margin-top: 0; }

/* "Cómo trabajo" dentro del menú de Servicios */
.mega-title-sub { margin-top: 14px; }
.mega-steps { list-style: none; margin: 0; padding: 0 0 0 4px; counter-reset: paso; display: grid; gap: 4px; }
.mega-steps li { counter-increment: paso; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; padding: 10px 8px; }
.mega-steps li::before {
  content: counter(paso, decimal-leading-zero); grid-row: span 2;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-strong); font-size: 11px; font-weight: 700;
}
.mega-steps b { font-weight: 500; font-size: 15px; line-height: 1.3; }
.mega-steps small { font-size: 13px; line-height: 1.35; color: var(--muted); }

/* Menús en el celular: solo títulos con ícono que llevan a cada página */
.mega-mobile { display: none; }
@media (max-width: 860px) {
  .mega > :not(.mega-mobile) { display: none !important; }
  .mega-mobile { display: grid; gap: 2px; }
  .nav .mega-item-simple { align-items: center; padding: 10px 12px; }
  .mega-item-simple b { font-size: 16px; font-weight: 500; }
}

/* ---------- Página Servicios ---------- */
.page-servicios { padding-bottom: 40px; }
.service-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: -16px; }
.service-jump a {
  padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s;
}
.service-jump a:hover { border-color: var(--orange); color: var(--orange-strong); }
#lo-que-hago, #soluciones, #para-quien, #como-trabajo { scroll-margin-top: 90px; }
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.audience-grid > * { min-width: 0; }
.audience-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 36px 32px; display: flex; flex-direction: column; align-items: flex-start;
}
.audience-card .service-ico { width: 64px; height: 64px; margin-bottom: 18px; }
.audience-card .service-ico svg { width: 30px; height: 30px; }
.audience-card h3 { font-size: 26px; font-weight: 500; }
.audience-card p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.audience-card .tags { justify-content: flex-start; }
@media (max-width: 860px) { .audience-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .page-servicios { padding-bottom: 24px; }
  .service-jump { margin-top: -8px; }
  .service-jump a { font-size: 14px; padding: 8px 14px; }
  .audience-card { padding: 24px 20px; }
  .audience-card h3 { font-size: 22px; }
}

/* Bloque "La buena noticia": centrado cuando el texto y el botón quedan uno debajo del otro */
@media (max-width: 860px) {
  .problem-turn { flex-direction: column; justify-content: center; text-align: center; }
}

/* Logo de Yagmour */
.mega-promo-stamp img { display: block; width: 150px; height: auto; }
.mega-ico-logo { background: #C10F31; padding: 0 3px; overflow: hidden; }
.mega-ico-logo img { width: 100%; height: auto; display: block; }
.stamp-logo { display: block; width: 220px; max-width: 100%; height: auto; margin: 10px 0 10px; border-radius: 4px; }
.chat-logo { display: block; width: 140px; height: auto; border-radius: 6px; margin-bottom: 8px; }

/* ---------- Ritmo vertical en computadora: 72 px entre bloques ---------- */
@media (min-width: 861px) {
  .section { padding: 72px 0; }
  .hero { padding-bottom: 0; }
  .tools { padding-top: 72px; }
  .feature + .feature { margin-top: 72px; }
  .footer { margin-top: 72px; }
  .page-servicios { padding-bottom: 56px; }
  .section-head { margin-bottom: 40px; }

  /* Servicios más compacto */
  .services-wrap { padding: 64px 40px; }
  .service { padding: 28px 24px; }
  .service-ico { width: 72px; height: 72px; margin-bottom: 18px; }
  .service-ico svg { width: 34px; height: 34px; }
  .service h3 { font-size: 26px; }

  /* Flujos y calendario más chicos, en proporción con el texto */
  .feature { grid-template-columns: 1fr 0.85fr; gap: 56px; }
  .feature.reverse { grid-template-columns: 0.85fr 1fr; }
  .feature-visual { padding: 28px; }
  .flow { max-width: 330px; }
  .flow-tabs { margin-bottom: 20px; max-width: 380px; }
  .flow-tab { padding: 8px 6px; font-size: 12.5px; }
  .flow-step { padding: 9px 14px; font-size: 14px; gap: 10px; }
  .flow-step .chip-ico { width: 30px; height: 30px; }
  .flow-step .chip-ico svg { width: 16px; height: 16px; }
  .flow-link { height: 16px; }
  .flow-wait { font-size: 11px; padding: 3px 10px; }
  .calendar { max-width: 360px; padding: 18px; }

  /* Cierre "Próximo paso" más chico */
  .cta-final { padding: 64px 40px; }
  .cta-final h2 { font-size: clamp(30px, 3.4vw, 44px); max-width: 680px; margin-top: 14px; }
  .cta-final p { font-size: 17px; margin-top: 14px; }
  .cta-final .hero-ctas { margin-top: 28px; }
  .cta-final .stamp-deco { width: 140px; height: 170px; }
}
@media (min-width: 861px) {
  .works { padding-top: 0; }
  .page-works.works { padding-top: 48px; }
  #yagmour { margin-bottom: 72px; }
  .feature-visual { padding: 24px; }
  .flow-tabs { margin-bottom: 16px; }
  .flow-step { padding: 8px 12px; }
  .flow-link { height: 12px; }
}
@media (max-width: 860px) { #yagmour { margin-bottom: 40px; } }
@media (min-width: 861px) {
  .flow-tabs { max-width: 420px; }
  .flow-tab { white-space: nowrap; }
}

/* Logo de Yagmour en versión blanca con letras bordó */
.mega-ico-logo { background: #fff; box-shadow: inset 0 0 0 1px rgba(193,15,49,.2); }
.mega-promo-stamp img, .stamp-logo, .chat-logo { border-radius: 6px; box-shadow: 0 0 0 1px rgba(193,15,49,.15), 0 6px 14px -8px rgba(31,26,23,.25); }

/* Tarjetas de servicios: ícono, título, texto y etiquetas alineados entre las 3 tarjetas */
@media (min-width: 861px) {
  .services-grid { grid-template-rows: auto auto auto auto; row-gap: 0; }
  .service { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; justify-items: center; align-content: start; }
  .service .service-ico { align-self: start; }
  .service p { align-self: start; }
  .service .tags { align-self: start; margin-top: 18px; }
}

/* Fondo de colores animado detrás de los flujos (mismo estilo que el inicio) */
.feature-visual.flows { position: relative; overflow: hidden; isolation: isolate; }
.flows-bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; }
.flows-bg .blob { opacity: .7; filter: blur(50px); }
@media (prefers-reduced-motion: reduce) { .flows-bg .blob { animation: none; } }
.feature-visual-bg { position: relative; overflow: hidden; isolation: isolate; }
/* En el calendario los colores van espejados respecto de los flujos, para que no se vean iguales */
.calendar-visual .b1 { left: auto; right: -18%; }
.calendar-visual .b4 { right: auto; left: -12%; }

/* ---------- Servicios fijo al scrollear (inspirado en ewōl) ---------- */
.pin-track { position: relative; height: 300vh; }
.pin-sticky { position: sticky; top: 76px; height: calc(100vh - 76px); display: flex; align-items: center; }
.pin-sticky > .container { width: 100%; }
.pin-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  min-height: min(560px, calc(100vh - 150px)); padding: 56px 64px;
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
}
.pin-glow { position: absolute; inset: 0; z-index: -1; }
.pin-glow .blob { opacity: .32; filter: blur(70px); }
.pin-glow .b1 { left: auto; right: -20%; top: -30%; }
.pin-copy { min-width: 0; }
.pin-copy .eyebrow { color: var(--cream); }
.pin-copy .eyebrow::before { background: var(--orange); }
.pin-copy h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; margin-top: 14px; color: #fff; }
.pin-copy h2 strong { color: var(--cream); }
.pin-steps { position: relative; margin-top: 36px; min-height: 200px; }
.pin-step {
  position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease; pointer-events: none;
}
.pin-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.pin-count { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #FF8A5C; }
.pin-step h3 { font-size: 30px; font-weight: 600; margin-top: 8px; color: #fff; }
.pin-step p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.75); max-width: 470px; }
.pin-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.pin-tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.85); }
.pin-note { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.55); }

.pin-dial { --d: 380px; --rot: 0deg; position: relative; width: var(--d); height: var(--d); justify-self: center; }
.pin-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.pin-ring circle { fill: none; stroke-width: 5; }
.pin-ring-bg { stroke: rgba(255,255,255,.12); }
.pin-ring-fill { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .15s linear; }
.pin-orbit { position: absolute; inset: 0; transform: rotate(var(--rot)); transition: transform .8s cubic-bezier(.65,0,.35,1); }
.pin-dot {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: #3A322D; color: rgba(255,255,255,.7);
  transform: rotate(var(--a)) translateY(calc(var(--d) * -0.44)) rotate(calc(-1 * var(--a) - var(--rot)));
  transition: background .4s, color .4s, box-shadow .4s, transform .8s cubic-bezier(.65,0,.35,1);
}
.pin-dot svg { width: 24px; height: 24px; }
.pin-dot.is-active { background: var(--orange-strong); color: #fff; box-shadow: 0 0 0 8px rgba(240,82,35,.18), 0 14px 30px -10px rgba(240,82,35,.8); }
.pin-center {
  position: absolute; inset: 24%; border-radius: 50%; border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.pin-bar { width: 40px; height: 4px; border-radius: 2px; background: var(--orange); }
.pin-num { font-size: 72px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.pin-center small { font-size: 12px; font-weight: 600; letter-spacing: .25em; color: rgba(255,255,255,.6); }

@media (max-width: 1100px) { .pin-dial { --d: 300px; } .pin-panel { padding: 48px 40px; } }
@media (max-width: 860px) {
  .pin-track { height: 260vh; }
  .pin-sticky { top: 68px; height: calc(100svh - 68px); }
  .pin-panel { grid-template-columns: 1fr; gap: 18px; padding: 28px 22px; min-height: 0; align-content: center; }
  .pin-copy h2 { font-size: 26px; }
  .pin-steps { margin-top: 18px; min-height: 210px; }
  .pin-step h3 { font-size: 24px; }
  .pin-step p { font-size: 15px; }
  .pin-note { display: none; }
  .pin-dial { --d: 210px; }
  .pin-dot { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .pin-dot svg { width: 20px; height: 20px; }
  .pin-num { font-size: 44px; }
  .pin-center small { font-size: 10px; }
}
/* Sin animaciones: los 3 servicios se muestran uno debajo del otro */
@media (prefers-reduced-motion: reduce) {
  .pin-track { height: auto; }
  .pin-sticky { position: static; height: auto; }
  .pin-steps { min-height: 0; display: grid; gap: 28px; }
  .pin-step { position: static; opacity: 1; transform: none; }
  .pin-dial { display: none; }
  .pin-panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) and (max-height: 720px) {
  .pin-dial { --d: 160px; }
  .pin-dot { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .pin-num { font-size: 34px; }
  .pin-steps { min-height: 190px; }
}

/* Servicios fijo: colores originales de la marca (panel claro + fondo de colores como los flujos) */
.pin-panel { background: var(--surface); color: var(--ink); gap: 56px; padding: 48px; }
.pin-copy .eyebrow { color: var(--orange-strong); }
.pin-copy h2, .pin-step h3 { color: var(--ink); }
.pin-copy h2 strong { color: var(--ink); font-weight: 700; }
.pin-count { color: var(--orange-strong); }
.pin-step p { color: var(--ink-2); }
.pin-tags li { border-color: var(--line); background: var(--bg); color: var(--ink-2); }
.pin-note { color: var(--ink-2); }
.pin-visual {
  position: relative; overflow: hidden; isolation: isolate; align-self: stretch;
  display: grid; place-items: center; padding: 40px 24px;
  background: var(--cream); border-radius: var(--radius-lg);
}
.pin-ring-bg { stroke: rgba(31,26,23,.12); }
.pin-dot { background: #fff; color: var(--orange-strong); box-shadow: 0 8px 18px -10px rgba(31,26,23,.4); }
.pin-dot.is-active { background: var(--orange-strong); color: #fff; box-shadow: 0 0 0 8px rgba(255,255,255,.55), 0 14px 30px -10px rgba(212,66,26,.8); }
.pin-center { background: #fff; border: 0; box-shadow: 0 18px 40px -20px rgba(31,26,23,.35); }
.pin-num { color: var(--ink); }
.pin-center small { color: var(--ink-2); }
@media (max-width: 1100px) { .pin-panel { padding: 40px 32px; gap: 32px; } }
@media (max-width: 860px) {
  .pin-panel { padding: 24px 20px 20px; gap: 16px; }
  .pin-visual { padding: 26px 16px; }
}
/* Degradado en todo el bloque de Servicios */
.pin-panel { background: var(--cream); }
.pin-visual { background: none; overflow: visible; }
.pin-tags li { background: rgba(255,255,255,.6); border-color: rgba(31,26,23,.12); }
.pin-panel .flows-bg .b1 { width: 55%; left: -10%; top: -35%; }
.pin-panel .flows-bg .b3 { width: 50%; left: 30%; bottom: -45%; }
.pin-panel .flows-bg .b1 { left: auto; right: -12%; top: -30%; width: 55%; }
.pin-panel .flows-bg .b2 { right: auto; left: -15%; top: -10%; width: 75%; }
.pin-panel .flows-bg .b3 { left: auto; right: 15%; bottom: -45%; }
.pin-panel .flows-bg .b4 { right: auto; left: 10%; bottom: -30%; }
@media (max-width: 860px) {
  .pin-panel .flows-bg .b1 { right: -25%; top: auto; bottom: -10%; width: 90%; }
  .pin-panel .flows-bg .b3 { right: auto; left: -20%; bottom: -25%; width: 80%; }
}
/* El bloque fijo mide lo que el panel; JS lo centra en la pantalla. Así los espacios con los bloques vecinos son parejos */
.pin-sticky, .pin-sticky[style] { height: auto; display: block; }
.pin-section { padding: 16px 0 56px; }
#campanas-bloque { padding-top: 0; }
@media (max-width: 860px) { .pin-section { padding: 0 0 40px; } }
@media (max-width: 860px) { .pin-section { padding: 16px 0 40px; } }
@media (max-width: 860px) and (max-height: 720px) {
  .pin-copy h2 { font-size: 22px; }
  .pin-visual { padding: 14px; }
  .pin-steps { margin-top: 12px; min-height: 180px; }
}

/* ---------- Servicios: variantes para dar protagonismo a cada servicio (pin-v1..v4, combinables) ---------- */
.pin-label, .pin-name { display: none; }
/* v1: los tres servicios siempre a la vista, el activo resaltado */
.pin-v1 .pin-copy h2 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 400; }
.pin-v1 .pin-steps { min-height: 0 !important; display: grid; gap: 6px; margin-top: 28px; }
.pin-v1 .pin-step { position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto; padding-left: 22px; }
.pin-v1 .pin-step::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 2px; background: rgba(31,26,23,.12); transition: background .4s; }
.pin-v1 .pin-step.is-active::before { background: var(--orange-strong); }
.pin-v1 .pin-count, .pin-v1 .pin-note { display: none; }
.pin-v1 .pin-step h3 { margin: 0; font-size: clamp(36px, 4vw, 54px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: rgba(31,26,23,.22); transition: color .4s; }
.pin-v1 .pin-step.is-active h3 { color: var(--ink); }
.pin-v1 .pin-step:not(.is-active) p, .pin-v1 .pin-step:not(.is-active) .pin-tags { display: none; }
.pin-v1 .pin-step.is-active { padding-bottom: 14px; }
/* v2: el nombre del servicio en el centro del dial */
.pin-v2 .pin-center small { display: none; }
.pin-v2 .pin-num { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--orange-strong); }
.pin-v2 .pin-num::after { content: " / 03"; }
.pin-v2 .pin-name { display: block; font-size: 24px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.1; }
/* v3: nombre al lado de cada ícono del dial */
.pin-v3 .pin-label {
  display: block; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 8px;
  white-space: nowrap; font-size: 14px; font-weight: 600; color: var(--ink);
  background: rgba(255,255,255,.85); padding: 4px 12px; border-radius: 999px;
}
.pin-v3 .pin-dot.is-active .pin-label { color: var(--orange-strong); }
/* v4: título del servicio grande */
.pin-v4 .pin-copy h2 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 400; }
.pin-v4 .pin-step h3 { font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; margin-top: 10px; }
@media (max-width: 860px) {
  .pin-v1 .pin-step h3 { font-size: 30px; }
  .pin-v1 .pin-steps { margin-top: 16px; }
  .pin-v3 .pin-label { font-size: 11px; padding: 3px 8px; margin-top: 6px; }
}
@media (max-width: 860px) {
  .pin-v3 .pin-label { display: none; }
  .pin-v1 .pin-dial { --d: 180px; }
  .pin-v1 .pin-visual { padding: 18px; }
}
@media (max-width: 860px) { .pin-v3 .pin-label { display: none; } }
/* Servicios inactivos más chicos: crecen al volverse activos con el scroll */
.pin-v1 .pin-step h3 { font-size: clamp(24px, 2.4vw, 32px); transition: color .4s, font-size .45s ease; }
.pin-v1 .pin-step.is-active h3 { font-size: clamp(38px, 4vw, 54px); }
.pin-v1 .pin-step::before { top: 4px; bottom: 4px; }
@media (max-width: 860px) {
  .pin-v1 .pin-step h3 { font-size: 20px; }
  .pin-v1 .pin-step.is-active h3 { font-size: 30px; }
  .pin-dial { --d: 170px; }
  .pin-dot { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .pin-dot svg { width: 18px; height: 18px; }
  .pin-dot.is-active { box-shadow: 0 0 0 5px rgba(255,255,255,.55), 0 10px 20px -10px rgba(212,66,26,.8); }
  .pin-center { inset: 26%; gap: 3px; }
  .pin-bar { width: 22px; height: 3px; }
  .pin-num { font-size: 28px; }
  .pin-center small { font-size: 8px; letter-spacing: .2em; }
  .pin-visual { padding: 18px 14px; }
}
/* Mobile: dial compacto en la esquina del panel, siempre visible y sin empujar el contenido */
@media (max-width: 860px) {
  .pin-panel { display: block; position: relative; }
  .pin-visual { position: absolute; top: 14px; right: 14px; padding: 0; z-index: 1; }
  .pin-dial, .pin-v1 .pin-dial { --d: 92px; }
  .pin-dot { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
  .pin-dot svg { width: 13px; height: 13px; }
  .pin-dot.is-active { box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 6px 12px -6px rgba(212,66,26,.8); }
  .pin-ring circle { stroke-width: 7; }
  .pin-center { inset: 22%; gap: 0; }
  .pin-bar, .pin-center small { display: none; }
  .pin-num { font-size: 20px; }
  .pin-copy .eyebrow, .pin-copy h2 { margin-right: 96px; }
}
/* Fondo de estampillas fijo: no se mueve al scrollear (también en iPhone, donde background-attachment: fixed no funciona) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--bg); background-image: inherit; background-size: inherit;
}
/* Degradado del bloque fijo quieto (sin movimiento de manchas) y medición sin animaciones */
.pin-panel .flows-bg .blob { animation: none; }
.pin-measuring * { transition: none !important; }
.pin-v1 .pin-steps { align-content: start; }
/* Menos aire en computadora: hero más pegado al menú y 56 px entre bloques (igual que en celular) */
@media (min-width: 861px) {
  .hero { padding-top: 24px; }
  .hero-panel { padding-top: 56px; }
  .hero-copy { padding-bottom: 56px; }
  .tools { padding-top: 48px; }
  .section { padding: 56px 0; }
  .feature + .feature { margin-top: 56px; }
  .footer { margin-top: 56px; }
  #yagmour { margin-bottom: 56px; }
  .pin-section { padding: 0 0 40px; }
}
@media (min-width: 861px) {
  .works { padding-top: 0; }
  .page-works.works { padding-top: 48px; }
  #problema { padding-top: 40px; }
  .pin-section { padding-top: 16px; }
}
@media (min-width: 861px) {
  #soluciones { padding-top: 40px; }
  #para-quien, #como-trabajo { padding-bottom: 40px; }
  .page-works.works { padding-bottom: 40px; }
  .page-tips:not(.page-servicios) { padding-bottom: 40px; }
}

/* ---------- Servicios en el celular: tarjetas que se deslizan, en vez de bloque fijo (desktop no cambia) ---------- */
.pin-step-ico, .pin-mdots { display: none; }
@media (max-width: 860px) {
  #servicios .pin-track { height: auto !important; }
  #servicios .pin-sticky { position: static; height: auto; }
  #servicios .pin-panel { display: block; padding: 28px 0 24px; overflow: clip; }
  #servicios .pin-copy > .eyebrow, #servicios .pin-copy > h2 { margin-left: 22px; margin-right: 22px; }
  #servicios .pin-copy h2 { font-size: 24px; }
  #servicios .pin-visual { display: none; }
  #servicios .pin-note { display: block; margin: 18px 22px 0; font-size: 13px; }
  #servicios .pin-steps { min-height: 0 !important; margin-top: 20px; }
  #servicios .pin-step {
    position: relative; inset: auto; opacity: 1; transform: none; pointer-events: auto;
    padding: 22px 20px 20px; border-radius: 20px; background: rgba(255,255,255,.78);
    box-shadow: 0 14px 30px -18px rgba(31,26,23,.35);
  }
  #servicios .pin-step::before { display: none; }
  #servicios .pin-step h3, #servicios .pin-step.is-active h3 { font-size: 26px; color: var(--ink); margin-top: 6px; }
  #servicios .pin-step p, #servicios .pin-step .pin-tags { display: block; }
  #servicios .pin-step .pin-tags { display: flex; }
  #servicios .pin-count { display: block; font-size: 12px; }
  #servicios .pin-step-ico {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--orange-strong); color: #fff; margin-bottom: 14px;
    box-shadow: 0 8px 18px -8px rgba(212,66,26,.8);
  }
  #servicios .pin-step-ico svg { width: 22px; height: 22px; }

  /* A · Tarjetas que se deslizan de costado */
  .pin-m-swipe .pin-steps {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 4px 22px 14px; scroll-padding: 0 22px; scrollbar-width: none;
  }
  .pin-m-swipe .pin-steps::-webkit-scrollbar { display: none; }
  .pin-m-swipe .pin-step { flex: 0 0 84%; scroll-snap-align: center; transition: transform .35s, opacity .35s; }
  .pin-m-swipe .pin-step:not(.is-active) { transform: scale(.96); opacity: .7; }
  .pin-m-swipe .pin-mdots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .pin-mdots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(31,26,23,.2); cursor: pointer; transition: width .3s, background .3s; }
  .pin-mdots button.is-active { width: 26px; background: var(--orange-strong); }
}
