/* ============================================
   PIDEY · Landing styles
   ============================================ */

/* CSS variables (paleta + tokens) */
:root {
  --pidey-red: #FF3B2F;
  --pidey-red-dark: #E5231A;
  --pidey-yellow: #FFD60A;
  --pidey-ink: #1A1A1A;
  --pidey-cream: #FFF8E7;
  --pidey-white: #FFFFFF;
  --pidey-gray-900: #2D2D2D;
  --pidey-gray-500: #737373;
  --pidey-gray-200: #E5E5E5;
  --pidey-gray-100: #F5F5F5;

  /* Sombras */
  --shadow-sm: 0 4px 12px rgb(0 0 0 / 0.08);
  --shadow-md: 0 8px 24px rgb(0 0 0 / 0.10);
  --shadow-lg: 0 12px 32px rgb(0 0 0 / 0.12);

  /* Border radius */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 9999px;

  /* Espaciados de sección */
  --section-py: clamp(64px, 10vw, 120px);

  /* Container max-width */
  --container: 1200px;
  --container-narrow: 760px;
}

/* ============================================
   Reset + base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pidey-ink);
  background: var(--pidey-white);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pidey-red); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul, ol { list-style: none; }

/* Foco accesible */
:focus-visible {
  outline: 3px solid var(--pidey-red);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px);
}
.container-narrow { max-width: var(--container-narrow); }

/* ============================================
   Reveal animation (IntersectionObserver)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .device--ios, .device--android, .cmd-bell, .cmd-live i { animation: none !important; }
  .hero-mockup.is-visible .cmd-ticket { animation: none !important; opacity: 1; transform: none; }
}

/* ============================================
   Botones
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--pidey-red);
  color: var(--pidey-white);
  box-shadow: 0 4px 12px rgb(255 59 47 / 0.30);
}
.btn-primary:hover {
  background: var(--pidey-red-dark);
  color: var(--pidey-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(255 59 47 / 0.40);
}

.btn-secondary {
  background: transparent;
  color: var(--pidey-ink);
  border: 2px solid var(--pidey-ink);
}
.btn-secondary:hover {
  background: var(--pidey-ink);
  color: var(--pidey-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--pidey-white);
  color: var(--pidey-ink);
}
.btn-white:hover {
  background: var(--pidey-cream);
  color: var(--pidey-ink);
  transform: translateY(-2px);
}

/* ============================================
   Header sticky
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pidey-white);
  transition: box-shadow .2s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgb(0 0 0 / 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.logo { display: inline-flex; }
.logo-svg { height: 36px; width: auto; }

.nav-desktop {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}
.nav-desktop a {
  font-weight: 500;
  font-size: 15px;
  color: var(--pidey-gray-900);
}
.nav-desktop a:hover { color: var(--pidey-red); }

.nav-cta { /* btn primary already styled */ }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--pidey-ink);
  border-radius: 4px;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--pidey-white);
  border-top: 1px solid var(--pidey-gray-200);
  padding: 16px clamp(20px, 4vw, 32px) 24px;
  gap: 16px;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-weight: 500;
  font-size: 17px;
  padding: 8px 0;
  color: var(--pidey-gray-900);
}
.nav-mobile a.btn { padding: 14px 28px; margin-top: 8px; }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 var(--section-py);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.shape-yellow {
  width: 320px; height: 320px;
  background: var(--pidey-yellow);
  top: -80px; right: -80px;
  opacity: 0.4;
}
.shape-red {
  width: 180px; height: 180px;
  background: var(--pidey-red);
  bottom: 80px; left: -60px;
  opacity: 0.08;
}
.shape-yellow-2 {
  width: 100px; height: 100px;
  background: var(--pidey-yellow);
  top: 50%; right: 35%;
  opacity: 0.25;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.badge {
  display: inline-block;
  background: var(--pidey-yellow);
  color: var(--pidey-ink);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.accent-red { color: var(--pidey-red); }

.hero-subtitle {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--pidey-gray-900);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-trust {
  font-size: 13px;
  color: var(--pidey-gray-500);
}

/* Mockup WhatsApp */
/* ===== Hero: escena 3D de dos teléfonos ===== */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1700px;
}
.phones {
  position: relative;
  width: min(460px, 100%);
  height: 560px;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-17deg);
  transition: transform .7s cubic-bezier(.22, .61, .36, 1);
}
.phones:hover { transform: rotateX(3deg) rotateY(-6deg); }

.device {
  position: absolute;
  background: linear-gradient(150deg, #2b3942 0%, #0c1418 60%);
  border-radius: 38px;
  padding: 9px;
  transform-style: preserve-3d;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06) inset,
    0 2px 6px rgba(0, 0, 0, 0.35),
    0 30px 60px -18px rgba(20, 0, 0, 0.55);
}
.device .screen {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}
.device .cam {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: #05080a;
  z-index: 6;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.cam--island { width: 78px; height: 22px; border-radius: 14px; }
.cam--hole { width: 11px; height: 11px; border-radius: 50%; }

/* iPhone — al frente, abajo-izquierda */
.device--ios {
  width: 252px;
  left: 4%;
  bottom: 0;
  z-index: 3;
  transform: translateZ(55px) rotate(-2deg);
  animation: floatFront 6s ease-in-out infinite;
}
/* Android — al fondo, arriba-derecha */
.device--android {
  width: 240px;
  right: 0;
  top: 0;
  z-index: 1;
  border-radius: 32px;
  transform: translateZ(-50px) rotate(3deg);
  animation: floatBack 7.5s ease-in-out infinite;
}
.device--android .screen { border-radius: 24px; }

@keyframes floatFront {
  0%, 100% { transform: translateZ(55px) rotate(-2deg) translateY(0); }
  50%      { transform: translateZ(55px) rotate(-2deg) translateY(-16px); }
}
@keyframes floatBack {
  0%, 100% { transform: translateZ(-50px) rotate(3deg) translateY(0); }
  50%      { transform: translateZ(-50px) rotate(3deg) translateY(-24px); }
}

/* ===== Pantalla app de comandas (Android) ===== */
.screen--cmd {
  background: #0f1620;
  min-height: 430px;
  padding: 30px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cmd-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cmd-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.cmd-brand .iso { width: 26px; height: 26px; display: block; border-radius: 8px; }
.cmd-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #7CF0A8;
  background: rgba(46, 204, 113, 0.12);
  padding: 4px 8px;
  border-radius: var(--r-pill);
}
.cmd-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ECC71;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 5px rgba(46, 204, 113, 0); }
}

.cmd-ticket {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transform-origin: top center;
}
.hero-mockup.is-visible .cmd-ticket {
  animation: ticketPop .6s .35s cubic-bezier(.2, 1.3, .4, 1) both;
}
@keyframes ticketPop {
  0%   { opacity: 0; transform: translateY(14px) scale(.95); }
  100% { opacity: 1; transform: none; }
}
.cmd-ticket-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--pidey-gray-200);
}
.cmd-bell {
  font-size: 16px;
  display: inline-block;
  transform-origin: 50% 2px;
  animation: bellRing 3.2s ease-in-out infinite;
}
@keyframes bellRing {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(16deg); }
  78% { transform: rotate(-13deg); }
  82% { transform: rotate(9deg); }
  86% { transform: rotate(-6deg); }
  90% { transform: rotate(3deg); }
}
.cmd-new {
  font-weight: 800;
  font-size: 14px;
  color: var(--pidey-ink);
}
.cmd-id {
  margin-left: auto;
  font-weight: 700;
  font-size: 12px;
  color: var(--pidey-gray-500);
}
.cmd-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cmd-items li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--pidey-gray-900);
}
.cmd-items .qty {
  font-weight: 800;
  color: var(--pidey-red);
}
.cmd-items b {
  margin-left: auto;
  font-weight: 700;
  color: var(--pidey-ink);
}
.cmd-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  padding-top: 10px;
  border-top: 1px dashed var(--pidey-gray-200);
  font-size: 12px;
}
.cmd-pay { color: var(--pidey-gray-500); }
.cmd-pay b { color: #2ECC71; }
.cmd-total {
  font-weight: 800;
  font-size: 15px;
  color: var(--pidey-ink);
}
.cmd-accept {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  padding: 11px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FF5446, var(--pidey-red-dark));
  box-shadow: 0 6px 14px -4px rgba(229, 35, 26, 0.6);
  transition: transform .15s ease, filter .15s ease;
}
.cmd-accept:hover { filter: brightness(1.05); }
.cmd-accept:active { transform: scale(.97); }
.wa-header {
  background: #008069;
  border-radius: var(--r-md) var(--r-md) 0 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.wa-avatar svg { width: 40px; height: 40px; display: block; }
.wa-header-info { color: white; }
.wa-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.wa-status { font-size: 12px; opacity: 0.85; }

.wa-chat {
  background: #E5DDD5;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0,0,0,0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  min-height: 360px;
}
.wa-msg {
  max-width: 78%;
  padding: 7px 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.35;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 1px 0.5px rgb(0 0 0 / 0.12);
}
.wa-msg-in {
  background: white;
  align-self: flex-start;
  color: #111;
  border-top-left-radius: 0;
}
.wa-msg-out {
  background: #DCF8C6;
  align-self: flex-end;
  color: #111;
  border-top-right-radius: 0;
}
.wa-time {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 10px;
  color: rgba(0,0,0,0.45);
}

/* Ajustes del chat embebido en el iPhone de la escena 3D */
.screen--wa .wa-header {
  border-radius: 0;
  padding: 30px 12px 10px;   /* espacio superior para el dynamic island */
  gap: 9px;
}
.screen--wa .wa-avatar svg { width: 34px; height: 34px; }
.screen--wa .wa-name { font-size: 13px; }
.screen--wa .wa-status { font-size: 11px; }
.screen--wa .wa-chat {
  border-radius: 0;
  min-height: 340px;
  padding: 14px 10px;
}
.screen--wa .wa-msg { font-size: 12.5px; max-width: 82%; }

/* ============================================
   Títulos de sección
   ============================================ */
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--pidey-gray-500);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ============================================
   Pain bar
   ============================================ */
.pain-bar {
  background: var(--pidey-cream);
  padding: var(--section-py) 0;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.pain-card {
  background: var(--pidey-white);
  padding: 32px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pain-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pain-bad .pain-icon {
  background: var(--pidey-gray-100);
  color: var(--pidey-gray-500);
}
.pain-bad h3 { color: var(--pidey-gray-900); opacity: 0.85; }
.pain-bad p { color: var(--pidey-gray-500); }
.pain-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}
.pain-card p { font-size: 15px; line-height: 1.5; }
.pain-good {
  border: 2.5px solid var(--pidey-red);
  position: relative;
}
.pain-good .pain-icon {
  background: var(--pidey-red);
  color: var(--pidey-white);
}

/* ============================================
   Cómo funciona
   ============================================ */
.how { padding: var(--section-py) 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.how-step {
  background: var(--pidey-white);
  border: 1.5px solid var(--pidey-gray-200);
  padding: 32px;
  border-radius: var(--r-md);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.how-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--pidey-red);
}
.step-number {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 52px;
  font-weight: 900;
  color: var(--pidey-cream);
  line-height: 1;
  letter-spacing: -0.04em;
  z-index: 0;
}
.step-icon {
  width: 64px; height: 64px;
  border-radius: var(--r-sm);
  background: var(--pidey-cream);
  color: var(--pidey-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.how-step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.how-step p {
  font-size: 15px;
  color: var(--pidey-gray-500);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* ============================================
   Beneficios
   ============================================ */
.benefits {
  background: var(--pidey-cream);
  padding: var(--section-py) 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.benefit-card {
  background: var(--pidey-white);
  padding: 28px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.benefit-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-bg-red {
  background: var(--pidey-red);
  color: var(--pidey-white);
}
.icon-bg-yellow {
  background: var(--pidey-yellow);
  color: var(--pidey-ink);
}
.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.benefit-card p {
  font-size: 15px;
  color: var(--pidey-gray-500);
  line-height: 1.5;
}

/* ============================================
   Para quién (chips)
   ============================================ */
.for-who { padding: var(--section-py) 0; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}
.chip {
  background: var(--pidey-white);
  border: 2px solid var(--pidey-gray-200);
  color: var(--pidey-ink);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.chip:hover {
  border-color: var(--pidey-red);
  background: var(--pidey-cream);
  transform: translateY(-2px);
}
.chip-more {
  background: var(--pidey-ink);
  color: var(--pidey-white);
  border-color: var(--pidey-ink);
}
.chip-more:hover { background: var(--pidey-gray-900); }

/* ============================================
   Planes
   ============================================ */
.plans {
  background: var(--pidey-cream);
  padding: var(--section-py) 0;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}
.plan-card {
  background: var(--pidey-white);
  padding: 36px 28px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.plan-featured {
  border: 3px solid var(--pidey-red);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.plan-featured:hover {
  transform: scale(1.03) translateY(-4px);
}
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pidey-red);
  color: var(--pidey-white);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.plan-name {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
}
.price-amount {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-period {
  font-size: 16px;
  color: var(--pidey-gray-500);
  font-weight: 500;
}
.plan-features {
  margin-bottom: 24px;
  flex: 1;
}
.plan-features li {
  font-size: 15px;
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--pidey-gray-900);
  border-bottom: 1px solid var(--pidey-gray-100);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 14px;
  background: var(--pidey-red);
  border-radius: 50%;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/cover no-repeat;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"/></svg>') center/cover no-repeat;
}
.plan-perk {
  font-weight: 700;
  color: var(--pidey-red);
  font-size: 14px;
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  background: var(--pidey-cream);
  border-radius: var(--r-sm);
}

/* ============================================
   FAQ
   ============================================ */
.faq { padding: var(--section-py) 0; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
}
.faq-item {
  background: var(--pidey-white);
  border: 1.5px solid var(--pidey-gray-200);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item:hover { border-color: var(--pidey-red); }
.faq-item[open] {
  border-color: var(--pidey-red);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  font-weight: 600;
  font-size: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron {
  flex-shrink: 0;
  color: var(--pidey-red);
  transition: transform .25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-content {
  padding: 0 22px 20px;
  color: var(--pidey-gray-500);
  font-size: 15px;
  line-height: 1.6;
  animation: faqFade .3s ease;
}
@keyframes faqFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CTA final
   ============================================ */
.cta-final {
  background: var(--pidey-red);
  padding: var(--section-py) 0;
  color: var(--pidey-white);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgb(255 214 10 / 0.18), transparent 70%);
  pointer-events: none;
}
.cta-final-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta-final h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--pidey-white);
}
.cta-final p {
  font-size: clamp(17px, 1.5vw, 20px);
  margin-bottom: 32px;
  opacity: 0.95;
}

/* ============================================
   Form
   ============================================ */
.demo-form {
  background: var(--pidey-cream);
  padding: var(--section-py) 0;
}
.form-wrap {
  background: var(--pidey-white);
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-weight: 600;
  font-size: 14px;
  color: var(--pidey-gray-900);
}
.form-row input,
.form-row select {
  font-family: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 2px solid var(--pidey-gray-200);
  border-radius: var(--r-sm);
  background: var(--pidey-white);
  color: var(--pidey-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--pidey-red);
  box-shadow: 0 0 0 3px rgb(255 59 47 / 0.12);
}
.form-row input:invalid:not(:placeholder-shown) {
  border-color: var(--pidey-red);
}

.form-success {
  text-align: center;
  padding: 24px 0;
  color: var(--pidey-red);
}
.form-success svg { margin: 0 auto 16px; color: var(--pidey-red); }
.form-success h3 {
  color: var(--pidey-ink);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.form-success p { color: var(--pidey-gray-500); font-size: 16px; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--pidey-ink);
  color: var(--pidey-white);
  padding: clamp(48px, 6vw, 72px) 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo { height: 40px; margin-bottom: 16px; }
.footer-tagline {
  color: var(--pidey-gray-200);
  font-size: 15px;
  line-height: 1.5;
  max-width: 320px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--pidey-white);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer-nav a {
  font-size: 15px;
  color: var(--pidey-gray-200);
  transition: color .15s ease;
}
.footer-nav a:hover { color: var(--pidey-yellow); }

.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 0.12);
  padding-top: 24px;
  font-size: 13px;
  color: var(--pidey-gray-200);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  border-bottom: 0 !important;
}
.footer-credit .credit-label { color: var(--pidey-gray-500); }
/* Logo revolut.team (JPG con fondo blanco) sobre chip claro para fondo oscuro */
.footer-credit .credit-logo {
  height: 27px;
  width: auto;
  display: block;
  background: #fff;
  padding: 7px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.footer-credit:hover .credit-logo {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.35);
}
.footer-legal { margin: 0; }
.footer-bottom a {
  color: var(--pidey-gray-200);
  border-bottom: 1px dashed transparent;
}
.footer-bottom a:hover {
  color: var(--pidey-yellow);
  border-color: var(--pidey-yellow);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-mockup { order: 2; }
  /* Escena 3D un poco más frontal cuando va centrada */
  .phones { transform: rotateX(6deg) rotateY(-12deg); }
  .pain-grid,
  .how-grid,
  .benefits-grid,
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-featured { transform: scale(1); }
  .plan-featured:hover { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  .hero-title { font-size: clamp(32px, 8vw, 44px); }

  .pain-grid,
  .how-grid,
  .benefits-grid,
  .plans-grid { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}

@media (max-width: 560px) {
  /* En móvil: escena más compacta, casi frontal y contenida en el ancho */
  .hero-mockup { overflow: hidden; padding: 6px 0; }
  .phones {
    width: 100%;
    height: 0;
    padding-bottom: 124%;          /* mantiene la proporción de la escena */
    transform: rotateX(3deg) rotateY(-4deg);
  }
  .device--ios { width: 56%; left: 0; transform: translateZ(40px) rotate(-2deg); }
  .device--android { width: 50%; right: 4%; transform: translateZ(-35px) rotate(2deg); }
  .screen--cmd { min-height: 0; }
  /* Re-anclar la flotación a los nuevos translateZ móviles */
  @keyframes floatFront {
    0%, 100% { transform: translateZ(40px) rotate(-2deg) translateY(0); }
    50%      { transform: translateZ(40px) rotate(-2deg) translateY(-12px); }
  }
  @keyframes floatBack {
    0%, 100% { transform: translateZ(-35px) rotate(3deg) translateY(0); }
    50%      { transform: translateZ(-35px) rotate(3deg) translateY(-18px); }
  }
}

@media (max-width: 480px) {
  .form-wrap { padding: 24px 20px; }
}

/* ============================================
   v2 — Footer claro, modal WhatsApp, conciliación,
   botones con ícono y ajustes responsive
   ============================================ */

/* ===== Botones: tamaño grande + ícono WhatsApp ===== */
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn .wa-ico { margin-right: 7px; flex-shrink: 0; }
.btn-white .wa-ico { color: #25D366; }

/* Badge amarillo */
.badge-yellow {
  background: var(--pidey-yellow);
  color: var(--pidey-ink);
}

/* ===== Conciliación bancaria automática ===== */
.reconcile {
  background:
    radial-gradient(120% 120% at 100% 0, rgba(255,214,10,0.18), transparent 55%),
    var(--pidey-cream);
  padding: var(--section-py) 0;
}
.reconcile-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.reconcile-text h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
}
.reconcile-text > p {
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--pidey-gray-900);
  line-height: 1.6;
  max-width: 540px;
}
.reconcile-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reconcile-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
  color: var(--pidey-ink);
}
.reconcile-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2ECC71;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

/* Tarjeta visual de conciliación */
.reconcile-visual { display: flex; justify-content: center; }
.rec-card {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 50px -20px rgba(20,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.04);
}
.rec-row.rec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--pidey-gray-200);
  font-weight: 700;
}
.rec-amount { font-size: 22px; font-weight: 900; color: var(--pidey-ink); }
.rec-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--pidey-gray-900);
  padding: 7px 0;
}
.rec-line b { margin-left: auto; color: #2ECC71; font-size: 16px; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #2ECC71; flex-shrink: 0; }
.rec-stamp {
  margin-top: 16px;
  text-align: center;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 13px;
  color: #1e9e57;
  background: rgba(46,204,113,0.12);
  border: 1.5px dashed #2ECC71;
  border-radius: 12px;
  padding: 10px;
}

/* ===== Footer claro ===== */
.site-footer {
  background: var(--pidey-white);
  color: var(--pidey-ink);
  border-top: 4px solid var(--pidey-yellow);
}
.footer-tagline { color: var(--pidey-gray-500); }
.footer-nav h4 {
  color: var(--pidey-ink);
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.footer-nav h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 24px; height: 3px;
  border-radius: 3px;
  background: var(--pidey-yellow);
}
.footer-nav a { color: var(--pidey-gray-500); }
.footer-nav a:hover { color: var(--pidey-red); }
.footer-loc { color: var(--pidey-gray-500); font-size: 15px; }
.footer-bottom { border-top: 1px solid var(--pidey-gray-200); }
.footer-bottom,
.footer-bottom a { color: var(--pidey-gray-500); }
.footer-bottom a { border-bottom: 1px dashed transparent; }
.footer-bottom a:hover { color: var(--pidey-red); border-color: var(--pidey-red); }
/* Logo revolut: footer ya es blanco como el JPG → sin chip */
.footer-credit .credit-logo {
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  height: 26px;
}
.footer-credit .credit-label { color: var(--pidey-gray-500); }

/* ===== Modal WhatsApp ===== */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wa-modal[hidden] { display: none; }
.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 8, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .2s ease;
}
.wa-modal.is-open .wa-modal-backdrop { opacity: 1; }
.wa-modal-card {
  position: relative;
  width: min(440px, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 30px 26px 26px;
  text-align: center;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.5);
  transform: translateY(16px) scale(.97);
  opacity: 0;
  transition: transform .25s cubic-bezier(.2,1.1,.4,1), opacity .25s ease;
}
.wa-modal.is-open .wa-modal-card { transform: none; opacity: 1; }
.wa-modal-x {
  position: absolute;
  top: 12px; right: 14px;
  border: 0; background: none;
  font-size: 26px; line-height: 1;
  color: var(--pidey-gray-500);
  cursor: pointer;
}
.wa-modal-x:hover { color: var(--pidey-ink); }
.wa-modal-ico {
  width: 60px; height: 60px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  background: rgba(37,211,102,0.12);
  border-radius: 50%;
}
.wa-modal-card h3 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.wa-modal-sub { color: var(--pidey-gray-500); font-size: 14px; margin-bottom: 20px; }
.wa-modal-opts { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.wa-opt {
  display: block;
  border: 2px solid var(--pidey-gray-200);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.wa-opt:hover { transform: translateY(-2px); border-color: var(--pidey-red); }
.wa-opt strong { display: block; color: var(--pidey-ink); font-size: 15px; }
.wa-opt span { display: block; color: var(--pidey-gray-500); font-size: 13px; margin-top: 3px; }
.wa-opt-primary {
  border-color: transparent;
  background: linear-gradient(180deg, #FF5446, var(--pidey-red-dark));
}
.wa-opt-primary strong { color: #fff; }
.wa-opt-primary span { color: rgba(255,255,255,0.85); }
.wa-opt-primary:hover { transform: translateY(-2px); filter: brightness(1.05); border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .wa-modal-backdrop, .wa-modal-card { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .reconcile-inner { grid-template-columns: 1fr; gap: 36px; }
  .reconcile-visual { order: -1; }
  .reconcile-text > p { max-width: none; }
}
@media (max-width: 600px) {
  .btn-lg { padding: 15px 24px; font-size: 15px; }
  .wa-modal-card { padding: 26px 18px 20px; }
  .footer-nav h4::after { left: 0; }
}
