/* ============================================================
   SP Agency — custom styles (complements Tailwind CDN)
   ============================================================ */

:root {
  /* ---- Color tokens ---- */
  --cream:    #FDFBF7;
  --cream-2:  #F6F1E8;
  --coral:    #E0574A;
  --coral-dk: #C9463A;
  --charcoal: #1C1B19;
  --gold:     #C9A86A;
  --teal:     #2A9D8F; /* complementary accent — used only inside the example mock-ups */
  --teal-dk:  #1C6F64;

  /* ---- Design tokens (single source of truth) ---- */
  --radius-sm:   0.65rem;
  --radius-md:   1rem;
  --radius-lg:   1.25rem;   /* cards */
  --radius-xl:   1.5rem;
  --radius-pill: 9999px;

  /* Elevation — one consistent shadow ramp across the whole site */
  --shadow-sm:   0 8px 20px -14px rgba(28, 27, 25, 0.22);
  --shadow-md:   0 14px 36px -24px rgba(28, 27, 25, 0.28);
  --shadow-lg:   0 30px 60px -34px rgba(28, 27, 25, 0.38);
  --shadow-coral: 0 16px 30px -12px rgba(224, 87, 74, 0.45);

  /* Borders */
  --border-soft: 1px solid rgba(28, 27, 25, 0.08);
}

html { scroll-behavior: smooth; }

/* Warm, editorial gradient glow — subtle, fixed behind the content */
body {
  background-color: var(--cream);
  background-image:
    radial-gradient(60% 45% at 12% 0%, rgba(224, 87, 74, 0.06), transparent 60%),
    radial-gradient(48% 40% at 100% 4%, rgba(201, 168, 106, 0.08), transparent 55%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Tailwind font-weight helpers used in markup */
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }

/* Stats grid — clean cell separators that follow the real grid position
   (avoids the stray divider that divide-x leaves on a wrapping 2-col grid) */
.stats-grid > * { border-color: rgba(28, 27, 25, 0.10); }

/* Mobile / tablet: 2 columns, 2 rows → each stat in its own cell */
@media (max-width: 1023px) {
  .stats-grid > :nth-child(even) { border-left: 1px solid rgba(28, 27, 25, 0.10); }
  .stats-grid > :nth-child(n + 3) { border-top: 1px solid rgba(28, 27, 25, 0.10); }
}
/* Desktop: single row of 4 → vertical separators only */
@media (min-width: 1024px) {
  .stats-grid > :not(:first-child) { border-left: 1px solid rgba(28, 27, 25, 0.10); }
}

/* ---------- Stats marquee (floating ticker) ---------- */
.stats-band {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  background: var(--cream-2);
  border: 1px solid rgba(28, 27, 25, 0.07);
  box-shadow: 0 30px 60px -34px rgba(28, 27, 25, 0.4), 0 10px 24px -18px rgba(28, 27, 25, 0.22);
  padding: 1rem 0;
  animation: stats-float 7s ease-in-out infinite;
}
.stats-band::before,
.stats-band::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}
.stats-band::before { left: 0;  background: linear-gradient(to right, var(--cream-2), rgba(246, 241, 232, 0)); }
.stats-band::after  { right: 0; background: linear-gradient(to left,  var(--cream-2), rgba(246, 241, 232, 0)); }

.stats-track {
  display: flex;
  width: max-content;
  animation: stats-scroll 30s linear infinite;
}
.stats-band:hover .stats-track { animation-play-state: paused; }

.stats-set { display: flex; align-items: center; }
.stats-set > .stat-chip,
.stats-set > .stat-sep { margin-right: 2.6rem; }

.stat-chip { display: inline-flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.stat-ic {
  width: 2.1rem; height: 2.1rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.65rem;
  background: rgba(224, 87, 74, 0.1);
  color: var(--coral);
}
.stat-ic svg { width: 1.1rem; height: 1.1rem; }
.stat-num { font-weight: 700; font-size: 1.05rem; color: var(--charcoal); letter-spacing: -0.01em; }
.stat-text { font-size: 0.9rem; color: rgba(28, 27, 25, 0.6); }
.stat-sep { color: var(--gold); font-size: 0.85rem; line-height: 1; }

@keyframes stats-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes stats-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .stats-track,
  .stats-band { animation: none; }
}

/* Fraunces optical sizing for big display type */
.font-serif {
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
}

/* ---------- Header ---------- */
#header.scrolled {
  background-color: rgba(253, 251, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(28, 27, 25, 0.08);
}

.nav-link {
  position: relative;
  color: rgba(28, 27, 25, 0.75);
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1.5px;
  background: var(--coral);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--charcoal); }
.nav-link:hover::after { width: 100%; }

.mobile-link { color: rgba(28, 27, 25, 0.85); }
.mobile-link:active { color: var(--coral); }

/* Language toggle */
.lang-btn { color: rgba(28, 27, 25, 0.45); }
.lang-btn:hover { color: var(--charcoal); }
.lang-btn.active { color: var(--coral); }

/* ---------- Service cards ---------- */
.service-card {
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(28, 27, 25, 0.28);
  border-color: rgba(224, 87, 74, 0.35);
}
.icon-wrap {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.9rem;
  background: rgba(224, 87, 74, 0.09);
  color: var(--coral);
  margin-bottom: 1.1rem;
}
.icon-wrap svg {
  width: 1.5rem; height: 1.5rem;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#sketch); /* subtle hand-drawn / editorial wobble */
}
.card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.card-text {
  color: rgba(28, 27, 25, 0.65);
  line-height: 1.6;
  font-size: 0.975rem;
}

/* ---------- Process steps ---------- */
.step {
  position: relative;
  text-align: center;
}
@media (max-width: 767px) {
  .step { text-align: left; }
}

/* ---------- Proceso: drawn-on-scroll connector line (under the numbers) ---------- */
.proceso-path {
  position: absolute;
  top: 2.95rem; /* sits in the 1rem margin between the "01..04" numerals and the step title (final state, after .reveal animation settles) */
  left: 0; right: 0;
  width: 100%; height: 0.9rem;
  color: var(--coral);
  pointer-events: none;
  z-index: 0;
}
.proceso-path svg { width: 100%; height: 100%; display: block; }
.proceso-stroke {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.proceso-dot {
  /* Each dot sits exactly at the visual center of its grid column.
     Math: with 4 equal cols + 3 gaps (lg:gap-6 = 1.5rem), col width = (100% - 4.5rem) / 4.
     Center of col n (1-indexed) = (n - 0.5) * col_width + (n - 1) * gap.
     Using calc(): center is then a function of the parent width. */
  --col: calc((100% - 4.5rem) / 4);
  --gap: 1.5rem;
  position: absolute;
  top: 50%;
  width: 0.55rem; height: 0.55rem;
  margin-left: -0.275rem; margin-top: -0.275rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  box-shadow: 0 0 0 4px rgba(224, 87, 74, 0.12);
}
.proceso-dot-1 { left: calc(0.5 * var(--col)); }
.proceso-dot-2 { left: calc(1.5 * var(--col) + 1 * var(--gap)); }
.proceso-dot-3 { left: calc(2.5 * var(--col) + 2 * var(--gap)); }
.proceso-dot-4 { left: calc(3.5 * var(--col) + 3 * var(--gap)); }
.proceso-path.is-drawn .proceso-stroke { stroke-dashoffset: 0; }
.proceso-path.is-drawn .proceso-dot:nth-of-type(1) { opacity: 1; transition-delay: 0.25s; }
.proceso-path.is-drawn .proceso-dot:nth-of-type(2) { opacity: 1; transition-delay: 0.85s; }
.proceso-path.is-drawn .proceso-dot:nth-of-type(3) { opacity: 1; transition-delay: 1.45s; }
.proceso-path.is-drawn .proceso-dot:nth-of-type(4) { opacity: 1; transition-delay: 2s; }
@media (prefers-reduced-motion: reduce) {
  .proceso-stroke { transition: none; stroke-dashoffset: 0; }
  .proceso-dot { transition: none; opacity: 1; }
}
.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--coral);
  display: block;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.9;
}
.step-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}
.step-text {
  color: rgba(28, 27, 25, 0.65);
  line-height: 1.6;
  font-size: 0.975rem;
  max-width: 16rem;
}
@media (min-width: 768px) { .step-text { margin-left: auto; margin-right: auto; } }
@media (max-width: 767px) { .step-text { max-width: none; } }

/* ---------- About values ---------- */
.value-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.value-row:hover {
  border-color: rgba(201, 168, 106, 0.6);
  transform: translateX(3px);
}
.value-mark {
  color: var(--gold);
  font-size: 1.15rem;
  line-height: 1;
}

/* ---------- About: manifesto (3 non-generic values) ---------- */
.manifesto {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 30rem;
}
.manifesto li {
  display: flex;
  gap: 0.85rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--charcoal);
}
.manifesto-n {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  color: var(--coral);
  padding-top: 0.28rem;
  letter-spacing: 0.02em;
}

/* ---------- About: scattered pill cards cluster (floating, coral shadows) ---------- */
.value-cluster {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1.05;
  margin: 0 auto;
  container-type: size;
}
.vcard {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.04);
  border-radius: 9999px;
  padding: 2.2cqmin 4cqmin;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 3.1cqmin;
  line-height: 1.1;
  color: var(--charcoal);
  white-space: nowrap;
  box-shadow:
    0 14px 28px -10px rgba(224, 87, 74, 0.32),
    0 4px 10px -4px rgba(224, 87, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: vcard-pulse 5.6s ease-in-out infinite;
  will-change: transform;
  transition: box-shadow 0.25s ease, z-index 0.01s;
}
.vcard::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.78em;
  line-height: 1;
  flex-shrink: 0;
}
.vcard:hover {
  z-index: 10;
  box-shadow:
    0 20px 36px -10px rgba(224, 87, 74, 0.45),
    0 6px 14px -6px rgba(224, 87, 74, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Size variations */
.vc-xl { padding: 3.2cqmin 5.4cqmin; font-size: 4.6cqmin; font-weight: 500; z-index: 4; box-shadow: 0 22px 40px -10px rgba(224, 87, 74, 0.45), 0 6px 14px -4px rgba(224, 87, 74, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
.vc-xl::before { font-size: 0.72em; }
.vc-l  { padding: 2.6cqmin 4.6cqmin; font-size: 3.6cqmin; z-index: 3; }
.vc-m  { padding: 2.2cqmin 4cqmin;   font-size: 3.1cqmin; z-index: 2; }
.vc-s  { padding: 1.8cqmin 3.4cqmin; font-size: 2.7cqmin; z-index: 1; }

/* Organic, out-of-sync pulse (gentle float + tiny scale, like breathing) */
.value-cluster .vcard:nth-child(2n) { animation-duration: 5.1s;  animation-delay: -1.4s; }
.value-cluster .vcard:nth-child(3n) { animation-duration: 6.4s;  animation-delay: -2.8s; }
.value-cluster .vcard:nth-child(4n) { animation-duration: 7.0s;  animation-delay: -0.6s; }
.value-cluster .vcard:nth-child(5n) { animation-duration: 5.9s;  animation-delay: -2.1s; }
.value-cluster .vcard:nth-child(7n) { animation-duration: 6.8s;  animation-delay: -3.4s; }

@keyframes vcard-pulse {
  0%, 100% { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateY(0)    scale(1);     }
  50%      { transform: translate(-50%, -50%) rotate(var(--r, 0deg)) translateY(-5px) scale(1.02);  }
}
@media (prefers-reduced-motion: reduce) {
  .vcard { animation: none; }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.09);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  box-shadow: var(--shadow-md);
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.3s ease;
}
.testimonial-card:hover { box-shadow: 0 22px 44px -22px rgba(28, 27, 25, 0.32); }

/* ---------- Testimonials carousel (perspective 3D, scrolls right) ---------- */
.testimonials-carousel {
  position: relative;
  overflow: hidden;
  perspective: 1400px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 7%, black 93%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0, black 7%, black 93%, transparent 100%);
  padding: 1.5rem 0;
}
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  transform-style: preserve-3d;
  animation: testimonials-right 70s linear infinite;
}
.testimonials-carousel:hover .testimonials-track { animation-play-state: paused; }

.testimonials-carousel .testimonial-card {
  flex: 0 0 320px;
  max-width: 320px;
  transform-style: preserve-3d;
  /* Each card gets a tiny tilt for the "passing-by" feel */
  transform: rotateY(-4deg);
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}
.testimonials-carousel .testimonial-card:nth-child(even) { transform: rotateY(4deg); }
.testimonials-carousel .testimonial-card:hover {
  transform: rotateY(0deg) translateZ(20px);
  box-shadow: 0 26px 48px -22px rgba(224, 87, 74, 0.4);
}

@keyframes testimonials-right {
  /* Start with the duplicated set in view, slide right back to the original set → seamless loop */
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

@media (max-width: 640px) {
  .testimonials-carousel .testimonial-card { flex-basis: 280px; max-width: 280px; }
  .testimonials-track { animation-duration: 55s; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none; transform: translateX(-25%); }
}
.quote-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 3.5rem;
  line-height: 0.5;
  color: rgba(224, 87, 74, 0.25);
  margin-bottom: 0.75rem;
}
.testimonial-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.5;
  color: rgba(28, 27, 25, 0.82);
  flex-grow: 1;
}
.testimonial-author {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
}
.author-name { font-weight: 600; color: var(--charcoal); }
.author-biz { font-size: 0.85rem; color: rgba(28, 27, 25, 0.55); }

/* ---------- FAQ accordion ---------- */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.4rem 0;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--charcoal);
  cursor: pointer;
  transition: color 0.2s ease;
}
.faq-q:hover { color: var(--coral); }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.4rem; height: 1.4rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--coral);
  border-radius: 2px;
}
.faq-icon::before { /* horizontal */
  top: 50%; left: 0;
  width: 100%; height: 2px;
  transform: translateY(-50%);
}
.faq-icon::after { /* vertical */
  left: 50%; top: 0;
  width: 2px; height: 100%;
  transform: translateX(-50%);
}
/* Rotate the whole icon 135° → the + becomes an × on open */
.faq-item.open .faq-icon { transform: rotate(135deg); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.faq-item.open .faq-a { opacity: 1; }
.faq-a p {
  color: rgba(28, 27, 25, 0.68);
  line-height: 1.65;
  padding-bottom: 1.4rem;
  max-width: 46rem;
}
@media (prefers-reduced-motion: reduce) {
  .faq-icon, .faq-a { transition: none; }
}

/* ---------- Team / founders (equipo.html) ---------- */
.founder-card {
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.09);
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.founder-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px -26px rgba(28, 27, 25, 0.32);
}
.founder-avatar {
  position: relative;
  width: 4.25rem; height: 4.25rem;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  overflow: hidden;
  background: rgba(224, 87, 74, 0.1);
  color: var(--coral);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.founder-avatar img {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate(-50%, -50%);
}
/* Pedro: amplía la foto para ocultar el marco negro de las esquinas y centrar la cara */
.founder-avatar--zoom img {
  transform: translate(-50%, -44%) scale(1.36);
}
.founder-initials { line-height: 1; }
.founder-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.55;
  font-style: italic;
  color: rgba(28, 27, 25, 0.82);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}
.founder-linkedin {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(28, 27, 25, 0.18);
  border-radius: 9999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(28, 27, 25, 0.8);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.founder-linkedin:hover {
  color: var(--coral);
  border-color: var(--coral);
  background: rgba(224, 87, 74, 0.06);
}

/* ---------- Contact ---------- */
.contact-ic {
  width: 2.25rem; height: 2.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.65rem;
  background: rgba(224, 87, 74, 0.09);
  color: var(--coral);
  flex-shrink: 0;
}

/* WhatsApp button: gentle pulse ring (like the hint, but green) */
a.bg-\[\#25D366\] {
  position: relative;
  overflow: visible;
}
a.bg-\[\#25D366\]::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid #25D366;
  opacity: 0;
  pointer-events: none;
  animation: wa-pulse 2.6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes wa-pulse {
  0%        { transform: scale(1);    opacity: 0.55; }
  60%, 100% { transform: scale(1.06); opacity: 0;    }
}

/* Address pin: subtle "drop & bob" animation */
a[href*="maps"] .contact-ic svg {
  transform-origin: center 75%;
  animation: pin-drop 3.4s ease-in-out infinite;
}
@keyframes pin-drop {
  0%, 100%      { transform: translateY(0)     scale(1);    }
  40%           { transform: translateY(-3px)  scale(1);    }
  55%, 65%      { transform: translateY(0)     scale(1.06, 0.94); }
  80%           { transform: translateY(-1px)  scale(1);    }
}

@media (prefers-reduced-motion: reduce) {
  a.bg-\[\#25D366\]::before,
  a[href*="maps"] .contact-ic svg { animation: none; }
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(28, 27, 25, 0.7);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  background: var(--cream);
  border: 1px solid rgba(28, 27, 25, 0.15);
  border-radius: 0.75rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder { color: rgba(28, 27, 25, 0.35); }
.form-input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(224, 87, 74, 0.12);
}
.form-select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%231C1B19' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}

/* ---------- Legal pages (aviso-legal / privacidad) ---------- */
.legal h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1.25;
  margin: 2.25rem 0 0.85rem;
  color: var(--charcoal);
}
.legal h2:first-child { margin-top: 0; }
.legal p,
.legal li {
  color: rgba(28, 27, 25, 0.75);
  line-height: 1.7;
  font-size: 1rem;
}
.legal p { margin-bottom: 1rem; }
.legal ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.legal li { margin-bottom: 0.4rem; }
.legal strong { color: var(--charcoal); font-weight: 600; }
.legal a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--coral-dk); }
.legal .legal-placeholder {
  background: rgba(201, 168, 106, 0.18);
  border-bottom: 1px dashed var(--gold);
  padding: 0 0.2rem;
  border-radius: 2px;
}

/* ---------- Team page: Pedro × Santiago chat conversation ---------- */
.chat-wrap {
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.07);
  border-radius: 1.5rem;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: 0 30px 60px -32px rgba(28, 27, 25, 0.25), 0 10px 24px -16px rgba(28, 27, 25, 0.12);
  display: flex; flex-direction: column; gap: 0.7rem;
}
@media (min-width: 768px) {
  .chat-wrap { padding: 1.75rem 1.75rem 2rem; gap: 0.85rem; }
}
.chat-meta {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(28, 27, 25, 0.45);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(28, 27, 25, 0.06);
  margin-bottom: 0.4rem;
}
.chat-live {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.4);
  animation: chat-live-pulse 1.8s ease-out infinite;
}
@keyframes chat-live-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(42, 157, 143, 0.4); }
  70%  { box-shadow: 0 0 0 8px  rgba(42, 157, 143, 0);   }
  100% { box-shadow: 0 0 0 0    rgba(42, 157, 143, 0);   }
}
.chat-msg {
  display: flex; flex-direction: column; max-width: 85%;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.chat-msg.is-shown { opacity: 1; transform: translateY(0); }
.chat-msg-in  { align-self: flex-start; }
.chat-msg-out { align-self: flex-end; align-items: flex-end; }
.chat-who {
  font-size: 0.7rem; font-weight: 600;
  color: rgba(28, 27, 25, 0.45);
  letter-spacing: 0.02em;
  margin: 0 0.6rem 0.18rem;
}
.chat-bubble {
  font-size: 0.95rem; line-height: 1.45;
  padding: 0.65rem 0.9rem;
  border-radius: 1rem;
  max-width: 100%;
}
.chat-msg-in  .chat-bubble {
  background: var(--cream-2);
  color: var(--charcoal);
  border-bottom-left-radius: 0.3rem;
}
.chat-msg-out .chat-bubble {
  background: var(--coral);
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}
.chat-bubble-end { font-weight: 600; }
.chat-foot {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(28, 27, 25, 0.06);
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
  text-align: center;
  color: rgba(28, 27, 25, 0.6);
}

/* Mini map: Málaga ↔ EE.UU. */
.team-map {
  max-width: 540px;
  margin: 2.5rem auto 0;
  color: var(--coral);
}
.team-map svg { width: 100%; height: auto; display: block; }
.map-arc { opacity: 0.6; animation: map-dash 18s linear infinite; }
@keyframes map-dash { to { stroke-dashoffset: -200; } }
.map-pin { fill: var(--coral); }
.map-dot { fill: var(--gold); opacity: 0.95; }
.map-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  fill: rgba(28, 27, 25, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .chat-live, .map-arc, .map-dot { animation: none; }
}

/* ---------- 404 page: reservation mini-mock ---------- */
.not404-card {
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 30px 60px -28px rgba(224, 87, 74, 0.35), 0 10px 26px -14px rgba(28, 27, 25, 0.18);
  overflow: hidden;
  transform: rotate(-1.5deg);
  animation: not404-float 6s ease-in-out infinite;
}
.not404-card-head {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--cream-2);
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(28, 27, 25, 0.06);
}
.not404-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgba(28, 27, 25, 0.15); }
.not404-dot:nth-child(1) { background: rgba(224, 87, 74, 0.5); }
.not404-card-title {
  margin-left: 0.6rem; font-size: 0.78rem; color: rgba(28, 27, 25, 0.5);
  font-family: 'Inter', sans-serif;
}
.not404-card-body { padding: 1.4rem 1.5rem 1.5rem; }
.not404-slot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.55rem;
  background: var(--cream-2);
  border: 1px solid rgba(28, 27, 25, 0.06);
  color: rgba(28, 27, 25, 0.6);
  margin-bottom: 0.45rem;
}
.not404-slot-pick {
  background: rgba(224, 87, 74, 0.1);
  border-color: rgba(224, 87, 74, 0.25);
  color: var(--coral-dk);
  font-weight: 600;
}
.not404-cta {
  margin-top: 1.1rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--coral);
  color: #fff; font-weight: 600; font-size: 0.92rem;
  padding: 0.7rem 1.2rem;
  border-radius: 9999px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.not404-cta:hover { background: var(--coral-dk); transform: translateY(-2px); }

.not404-spark {
  position: absolute;
  top: -1rem; right: -0.5rem;
  color: var(--gold);
  font-size: 1.6rem;
  animation: not404-spark 3s ease-in-out infinite;
}

@keyframes not404-float {
  0%, 100% { transform: rotate(-1.5deg) translateY(0); }
  50%      { transform: rotate(-1.5deg) translateY(-8px); }
}
@keyframes not404-spark {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.9; }
  50%      { transform: rotate(20deg) scale(1.15); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .not404-card, .not404-spark { animation: none; }
}

/* ---------- "Para quién" cards ---------- */
.forwho-card {
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.forwho-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(224, 87, 74, 0.3);
}
.forwho-ic {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.7rem;
  background: rgba(224, 87, 74, 0.1);
  color: var(--coral);
  margin-bottom: 0.9rem;
}
.forwho-ic svg { width: 1.3rem; height: 1.3rem; }
.forwho-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
.forwho-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(28, 27, 25, 0.65);
}

/* ---------- Pricing cards ---------- */
.price-card {
  position: relative;
  background: #fff;
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.price-card--feat { border-color: rgba(201, 168, 106, 0.5); }
.price-name { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.25rem; margin-bottom: 0.6rem; }
.price-amount { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 2.1rem; color: var(--charcoal); line-height: 1; margin-bottom: 0.85rem; }
.price-amount--free { color: var(--teal-dk); }
.price-from { font-size: 0.85rem; color: rgba(28, 27, 25, 0.5); font-family: 'Inter', sans-serif; font-weight: 500; margin-right: 0.25rem; }
.price-desc { font-size: 0.95rem; line-height: 1.55; color: rgba(28, 27, 25, 0.65); }

/* ---------- Lead magnet ---------- */
.lead-magnet {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .lead-magnet { flex-direction: row; align-items: center; justify-content: space-between; padding: 2.5rem 3rem; gap: 2.5rem; }
}
.lead-magnet-text { max-width: 34rem; }
.lead-magnet-text h2 { color: var(--cream); }
.lead-magnet-text p { color: rgba(253, 251, 247, 0.65); }
.lead-magnet-tag {
  display: inline-block; margin-bottom: 0.8rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold);
}
.lead-magnet-form { display: flex; gap: 0.6rem; flex-shrink: 0; width: 100%; max-width: 26rem; }
.lead-magnet-form .form-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--cream);
}
.lead-magnet-form .form-input::placeholder { color: rgba(253, 251, 247, 0.45); }
.lead-magnet-status { margin-top: 0.9rem; font-size: 0.9rem; font-weight: 600; text-align: center; }

/* ---------- Resource / blog cards ---------- */
.resource-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  min-height: 170px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.resource-kicker {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--coral); margin-bottom: 0.7rem;
}
.resource-title { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 1.15rem; line-height: 1.25; color: var(--charcoal); }
.resource-soon { margin-top: auto; padding-top: 1rem; font-size: 0.75rem; color: rgba(28, 27, 25, 0.4); }

/* ---------- Booking card (Cal.com) ---------- */
.book-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  background: #fff;
  border: 1px solid rgba(224, 87, 74, 0.25);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow-coral);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.book-card:hover { transform: translateY(-2px); box-shadow: 0 22px 38px -12px rgba(224, 87, 74, 0.5); }
.book-card-ic {
  width: 2.6rem; height: 2.6rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(224, 87, 74, 0.1); color: var(--coral);
}
.book-card-ic svg { width: 1.3rem; height: 1.3rem; }
.book-card-body { display: flex; flex-direction: column; }
.book-card-body strong { font-size: 1rem; color: var(--charcoal); }
.book-card-body span { font-size: 0.82rem; color: rgba(28, 27, 25, 0.55); }
.book-card-arrow { width: 1.2rem; height: 1.2rem; margin-left: auto; color: var(--coral); flex-shrink: 0; transition: transform 0.25s ease; }
.book-card:hover .book-card-arrow { transform: translateX(3px); }

/* ---------- Footer ---------- */
.footer-link {
  color: rgba(253, 251, 247, 0.7);
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--coral); }
.footer-quote {
  margin: 0;
  border-left: 2px solid rgba(224, 87, 74, 0.5);
  padding-left: 0.9rem;
}
.footer-quote p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
.footer-quote-author {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(253, 251, 247, 0.4);
}

/* ---------- Premium polish: buttons, focus, 3D tilt ---------- */

/* Primary coral CTAs: lift + soft glow on hover (targets existing Tailwind classes) */
a.bg-coral,
button.bg-coral {
  transition: background-color 0.25s ease,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
  will-change: transform;
}
a.bg-coral:hover,
button.bg-coral:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(224, 87, 74, 0.55);
}
a.bg-coral:active,
button.bg-coral:active { transform: translateY(0); }

/* WhatsApp green button: same lift treatment */
.bg-\[\#25D366\] {
  transition: background-color 0.25s ease,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.bg-\[\#25D366\]:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px rgba(37, 211, 102, 0.45);
}

/* Outline pill buttons: subtle lift too */
a.border.rounded-full:hover { transform: translateY(-2px); }
a.border.rounded-full {
  transition: border-color 0.25s ease, color 0.25s ease,
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visible keyboard focus (accessibility) */
a:focus-visible,
button:focus-visible,
.form-input:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Lightweight 3D tilt for cards (rotation set from JS on mousemove) */
.service-card,
.founder-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Featured "Más popular" service cards (star badge) */
.service-card { position: relative; }
.service-card--featured { border-color: rgba(201, 168, 106, 0.5); }
.featured-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.62rem 0.28rem 0.48rem;
  border-radius: 9999px;
  background: rgba(201, 168, 106, 0.16);
  color: #8a6a2e;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.featured-badge svg {
  width: 0.82rem;
  height: 0.82rem;
  color: var(--gold);
}
.featured-badge { backface-visibility: hidden; -webkit-backface-visibility: hidden; }

/* ---------- Flip service cards ---------- */
.service-card--flip {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none !important;
  transform-style: flat;
  perspective: 1600px;
  cursor: pointer;
}
.service-card--flip .flip-inner {
  display: grid;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}
.service-card--flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
  grid-area: 1 / 1;
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.08);
  border-radius: 1.25rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}
.service-card--flip.service-card--featured .flip-face { border-color: rgba(201, 168, 106, 0.5); }
.flip-back { transform: rotateY(180deg); }
.service-card--flip:focus-visible { outline: none; }
.service-card--flip:focus-visible .flip-face { outline: 2px solid var(--coral); outline-offset: 3px; }

/* Hover / focus: lean the card in 3D so it's clear it can be flipped */
.service-card--flip:not(.is-flipped):hover .flip-inner,
.service-card--flip:not(.is-flipped):focus-visible .flip-inner {
  transform: rotateY(-13deg);
}
.service-card--flip:hover .flip-face {
  box-shadow: 0 22px 46px -24px rgba(28, 27, 25, 0.4);
}
@media (prefers-reduced-motion: reduce) {
  .service-card--flip:not(.is-flipped):hover .flip-inner,
  .service-card--flip:not(.is-flipped):focus-visible .flip-inner { transform: none; }
}

.flip-cue {
  margin-top: auto;
  padding-top: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--coral);
  font-weight: 600;
  font-size: 0.95rem;
}
.flip-back-label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  color: rgba(28, 27, 25, 0.5);
  margin-bottom: 0.7rem;
}
.flip-cap {
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(28, 27, 25, 0.7);
  margin-top: 0.6rem;
}
.flip-return {
  margin-top: auto;
  padding-top: 0.6rem;
  color: rgba(28, 27, 25, 0.45);
  font-size: 0.78rem;
}

/* mini mockups inside the back face */
.mini-mock {
  background: var(--cream-2);
  border: 1px solid rgba(28, 27, 25, 0.08);
  border-radius: 0.75rem;
  padding: 0.65rem 0.7rem;
}
.mm-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.45rem; }
.mm-strong { font-weight: 600; font-size: 0.78rem; color: var(--charcoal); }
.mm-up { color: var(--teal-dk); font-weight: 700; font-size: 0.76rem; }
.mm-bars { display: flex; align-items: flex-end; gap: 0.35rem; height: 1.9rem; margin-bottom: 0.45rem; }
.mm-bars > span { flex: 1; background: rgba(42, 157, 143, 0.3); border-radius: 3px; }
.mm-bar-hi { background: var(--teal) !important; }
.mm-foot { display: flex; justify-content: space-between; font-size: 0.7rem; color: rgba(28, 27, 25, 0.6); border-top: 1px solid rgba(28, 27, 25, 0.08); padding-top: 0.45rem; }
.mm-ok { color: var(--teal-dk); font-weight: 600; }
.mm-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; color: rgba(28, 27, 25, 0.7); padding: 0.18rem 0; }
.mm-check svg { width: 0.95rem; height: 0.95rem; color: var(--teal); flex-shrink: 0; }
.mm-check-hi { color: var(--teal-dk); font-weight: 600; }
.mm-check-hi svg { color: var(--teal); }
.mm-slot { display: flex; justify-content: space-between; font-size: 0.76rem; padding: 0.32rem 0.55rem; border-radius: 0.5rem; background: #fff; border: 1px solid rgba(28, 27, 25, 0.07); color: rgba(28, 27, 25, 0.6); margin-bottom: 0.32rem; }
.mm-slot:last-child { margin-bottom: 0; }
.mm-slot-booked { background: rgba(42, 157, 143, 0.12); color: var(--teal-dk); font-weight: 600; border-color: transparent; }

/* mockup: WhatsApp chat */
.mm-chat { display: flex; flex-direction: column; gap: 0.35rem; }
.mm-bubble { max-width: 88%; font-size: 0.75rem; line-height: 1.35; padding: 0.38rem 0.6rem; border-radius: 0.7rem; }
.mm-bubble-in { align-self: flex-start; background: #fff; border: 1px solid rgba(28, 27, 25, 0.08); color: rgba(28, 27, 25, 0.7); border-bottom-left-radius: 0.2rem; }
.mm-bubble-out { align-self: flex-end; background: rgba(42, 157, 143, 0.14); color: var(--teal-dk); border-bottom-right-radius: 0.2rem; }
.mm-auto { align-self: flex-end; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.66rem; font-weight: 600; color: var(--teal); margin-top: 0.1rem; }
.mm-auto svg { width: 0.8rem; height: 0.8rem; }

/* mockup: Google result */
.mm-search { display: flex; align-items: center; gap: 0.4rem; background: #fff; border: 1px solid rgba(28, 27, 25, 0.08); border-radius: 9999px; padding: 0.34rem 0.6rem; font-size: 0.74rem; color: rgba(28, 27, 25, 0.55); margin-bottom: 0.6rem; }
.mm-search svg { width: 0.85rem; height: 0.85rem; flex-shrink: 0; color: rgba(28, 27, 25, 0.4); }
.mm-result { display: flex; align-items: center; gap: 0.55rem; }
.mm-rank { width: 1.55rem; height: 1.55rem; flex-shrink: 0; border-radius: 0.5rem; background: var(--teal); color: #fff; font-weight: 700; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; }
.mm-result-title { font-size: 0.82rem; font-weight: 600; color: var(--teal-dk); line-height: 1.2; }
.mm-result-meta { font-size: 0.68rem; color: rgba(28, 27, 25, 0.55); margin-top: 1px; }

/* mockup: chart */
.mm-chart .mm-line { display: block; width: 100%; height: 2.6rem; margin-top: 0.25rem; overflow: visible; }
.mm-area { fill: rgba(42, 157, 143, 0.14); stroke: none; }
.mm-stroke { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* Section hint pill ("Pulsa para ver un ejemplo") */
.services-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(224, 87, 74, 0.1);
  color: var(--coral-dk);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
  animation: hint-bob 2.4s ease-in-out infinite;
}
.services-hint::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 1.5px solid var(--coral);
  opacity: 0;
  pointer-events: none;
  animation: hint-ping 2.4s ease-out infinite;
}
.services-hint svg {
  width: 0.95rem;
  height: 0.95rem;
  transform-origin: 60% 65%;
  animation: hint-tap 2.4s ease-in-out infinite;
}
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
@keyframes hint-ping {
  0%        { transform: scale(1);    opacity: 0.5; }
  55%, 100% { transform: scale(1.28); opacity: 0; }
}
@keyframes hint-tap {
  0%, 58%, 100% { transform: translateY(0) rotate(0deg); }
  68%           { transform: translateY(2px) rotate(-13deg); }
  78%           { transform: translateY(0) rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .services-hint,
  .services-hint::before,
  .services-hint svg { animation: none; }
}

/* ---------- Hero v2: counter, logos strip, live product panel ---------- */
.hero-counter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
@media (min-width: 768px) { .hero-counter { justify-content: flex-start; } }
.hero-counter-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  background: rgba(224, 87, 74, 0.1);
  color: var(--coral-dk);
  padding: 0.35rem 0.7rem 0.35rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
  line-height: 1;
}
.hero-counter-pill svg { width: 1.05rem; height: 1.05rem; align-self: center; }
.hero-counter-num { font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hero-counter-unit { font-size: 1rem; }
.hero-counter-label { font-size: 0.92rem; color: rgba(28, 27, 25, 0.6); }

.hero-logos { margin-top: 2.5rem; }
.hero-logos-label {
  display: block;
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(28, 27, 25, 0.4);
  margin-bottom: 0.8rem;
}
.hero-logos-row {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  justify-content: center;
}
@media (min-width: 768px) { .hero-logos-row { justify-content: flex-start; } }
.hero-logo-ph {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 5.5rem; height: 2.5rem;
  border: 1px dashed rgba(28, 27, 25, 0.18);
  border-radius: 0.6rem;
  font-size: 0.72rem; font-weight: 600;
  color: rgba(28, 27, 25, 0.32);
  background: rgba(255, 255, 255, 0.5);
}

/* Live product panel */
.hero-panel {
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.08);
  border-radius: 1.1rem;
  box-shadow: 0 36px 70px -36px rgba(28, 27, 25, 0.4), 0 12px 28px -18px rgba(224, 87, 74, 0.25);
  overflow: hidden;
  transform: rotate(0.6deg);
  animation: hp-float 7s ease-in-out infinite;
}
@keyframes hp-float { 0%,100% { transform: rotate(0.6deg) translateY(0); } 50% { transform: rotate(0.6deg) translateY(-8px); } }
.hp-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--cream-2);
  border-bottom: 1px solid rgba(28, 27, 25, 0.06);
}
.hp-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(28, 27, 25, 0.15); }
.hp-dot:nth-child(1) { background: rgba(224, 87, 74, 0.5); }
.hp-url { margin-left: 0.5rem; font-size: 0.74rem; color: rgba(28, 27, 25, 0.5); }
.hp-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.32rem;
  font-size: 0.66rem; font-weight: 600; color: var(--teal);
}
.hp-live-dot {
  width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--teal);
  animation: hp-pulse 1.8s ease-out infinite;
}
@keyframes hp-pulse { 0% { box-shadow: 0 0 0 0 rgba(42,157,143,.4); } 70% { box-shadow: 0 0 0 6px rgba(42,157,143,0); } 100% { box-shadow: 0 0 0 0 rgba(42,157,143,0); } }
.hp-body { padding: 1.1rem 1.2rem 1.3rem; }
.hp-row { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.7rem; }
.hp-k { font-size: 0.72rem; color: rgba(28, 27, 25, 0.5); margin-bottom: 0.15rem; }
.hp-v { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; font-weight: 600; color: var(--charcoal); }
.hp-up { font-size: 0.8rem; font-weight: 700; color: var(--teal); margin-left: 0.3rem; }
.hp-mini { text-align: right; }
.hp-r { font-size: 0.72rem; color: rgba(28, 27, 25, 0.5); margin-bottom: 0.15rem; }
.hp-rn { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; font-weight: 600; }
.hp-chart { width: 100%; height: 3rem; display: block; margin: 0.2rem 0 0.9rem; overflow: visible; }
.hp-area { fill: rgba(42, 157, 143, 0.13); stroke: none; }
.hp-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hp-feed { display: flex; flex-direction: column; gap: 0.5rem; }
.hp-toast {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--cream-2);
  border: 1px solid rgba(28, 27, 25, 0.06);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  opacity: 0;
  animation: hp-toast-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hp-toast-1 { animation-delay: 1.1s; }
.hp-toast-2 { animation-delay: 2.4s; }
@keyframes hp-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hp-toast-ic {
  width: 1.3rem; height: 1.3rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--teal); color: #fff;
  font-size: 0.7rem; font-weight: 700;
}
.hp-toast strong { display: block; font-size: 0.78rem; color: var(--charcoal); line-height: 1.2; }
.hp-toast span { font-size: 0.7rem; color: rgba(28, 27, 25, 0.55); }
@media (prefers-reduced-motion: reduce) {
  .hero-panel { animation: none; }
  .hp-toast { opacity: 1; animation: none; }
  .hp-live-dot { animation: none; }
}

/* ---------- Hero typewriter cursor ---------- */
.tw-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--coral);
  vertical-align: -0.16em;
  animation: tw-blink 1s steps(1, end) infinite;
}
@keyframes tw-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tw-cursor { animation: none; }
}

/* ---------- Hero: live counter ---------- */
.hero-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.hero-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(224, 87, 74, 0.1);
  color: var(--coral-dk);
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
}
.hero-counter-pill svg { width: 1.05rem; height: 1.05rem; }
.hero-counter-num { font-size: 1.25rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hero-counter-unit { font-size: 1rem; margin-left: 1px; }
.hero-counter-label { font-size: 0.95rem; color: rgba(28, 27, 25, 0.6); }
@media (max-width: 767px) { .hero-counter { justify-content: center; } }

/* ---------- Hero: client logos strip ---------- */
.hero-logos { margin-top: 2.25rem; }
.hero-logos-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(28, 27, 25, 0.4);
  margin-bottom: 0.8rem;
}
.hero-logos-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
@media (max-width: 767px) { .hero-logos-row { justify-content: center; } }
.hero-logo-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  height: 2.4rem;
  padding: 0 1rem;
  border: 1px dashed rgba(28, 27, 25, 0.18);
  border-radius: 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(28, 27, 25, 0.35);
  background: rgba(255, 255, 255, 0.4);
}
/* Real client logos */
.hero-logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
}
.hero-logo {
  max-height: 2.5rem;
  max-width: 8.75rem;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  mix-blend-mode: multiply; /* dissolves white logo backgrounds into the cream */
  transition: opacity 0.28s ease, filter 0.28s ease;
}
.hero-logo:hover { filter: grayscale(0); opacity: 1; }
/* Graceful fallback: show the name pill only if the image file is missing */
.hero-logo-slot .hero-logo-ph { display: none; }
.hero-logo-slot.logo-missing .hero-logo { display: none; }
.hero-logo-slot.logo-missing .hero-logo-ph { display: inline-flex; }

/* ---------- Hero: live product panel ---------- */
.hero-panel {
  background: #fff;
  border: 1px solid rgba(28, 27, 25, 0.08);
  border-radius: 1.25rem;
  box-shadow: 0 36px 70px -34px rgba(28, 27, 25, 0.4), 0 12px 28px -18px rgba(224, 87, 74, 0.22);
  overflow: hidden;
  transform: rotate(0.6deg);
  animation: hero-panel-float 7s ease-in-out infinite;
  max-width: 440px;
  margin-left: auto;
}
@keyframes hero-panel-float { 0%,100%{transform:rotate(0.6deg) translateY(0)} 50%{transform:rotate(0.6deg) translateY(-8px)} }
.hp-bar {
  display: flex; align-items: center; gap: 0.4rem;
  background: var(--cream-2);
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(28, 27, 25, 0.06);
}
.hp-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: rgba(28, 27, 25, 0.15); }
.hp-dot:first-child { background: rgba(224, 87, 74, 0.5); }
.hp-url { margin-left: 0.55rem; font-size: 0.74rem; color: rgba(28, 27, 25, 0.5); }
.hp-live { margin-left: auto; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 600; color: var(--teal-dk); }
.hp-live-dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--teal); animation: hp-pulse 1.8s ease-out infinite; }
@keyframes hp-pulse { 0%{box-shadow:0 0 0 0 rgba(42,157,143,.4)} 70%{box-shadow:0 0 0 7px rgba(42,157,143,0)} 100%{box-shadow:0 0 0 0 rgba(42,157,143,0)} }
.hp-body { padding: 1.25rem 1.35rem 1.4rem; }
.hp-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.9rem; }
.hp-k { font-size: 0.74rem; color: rgba(28, 27, 25, 0.5); margin-bottom: 0.2rem; }
.hp-v { font-family: 'Fraunces', Georgia, serif; font-size: 1.7rem; font-weight: 500; color: var(--charcoal); }
.hp-up { font-size: 0.78rem; font-weight: 700; color: var(--teal-dk); margin-left: 0.3rem; vertical-align: 0.18em; }
.hp-mini { text-align: right; }
.hp-r { font-size: 0.72rem; color: rgba(28, 27, 25, 0.5); }
.hp-rn { font-family: 'Fraunces', Georgia, serif; font-size: 1.35rem; font-weight: 500; color: var(--coral); }
.hp-chart { width: 100%; height: 3rem; display: block; margin-bottom: 1rem; overflow: visible; }
.hp-area { fill: rgba(42, 157, 143, 0.12); stroke: none; }
.hp-line { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.hp-feed { display: flex; flex-direction: column; gap: 0.55rem; }
.hp-toast {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--cream-2);
  border: 1px solid rgba(28, 27, 25, 0.06);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  opacity: 0;
  transform: translateX(14px);
  animation: hp-toast-in 9s ease-in-out infinite;
}
.hp-toast-2 { animation-delay: 4.5s; }
.hp-toast-ic {
  width: 1.5rem; height: 1.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(42, 157, 143, 0.16); color: var(--teal-dk);
  font-size: 0.78rem; font-weight: 700;
}
.hp-toast strong { display: block; font-size: 0.78rem; color: var(--charcoal); }
.hp-toast span { font-size: 0.7rem; color: rgba(28, 27, 25, 0.55); }
@keyframes hp-toast-in {
  0%, 100% { opacity: 0; transform: translateX(14px); }
  6%, 44%  { opacity: 1; transform: translateX(0); }
  50%      { opacity: 0; transform: translateX(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-panel, .hp-live-dot, .hp-toast { animation: none; }
  .hp-toast { opacity: 1; transform: none; }
}

/* ---------- Hero scroll indicator (soft bounce) ---------- */
.scroll-indicator svg {
  animation: bounce-soft 1.9s ease-in-out infinite;
}
@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator svg { animation: none; }
}

/* ---------- Scroll reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card:hover, .value-row:hover { transform: none; }
}

/* ---- Demo stats strip — "rocket landing" pill that parks horizontally ---- */
.demo-strip {
  /* Desktop: parked in the empty gap at the top-right of the Precios section */
  position: absolute;
  top: -0.5rem;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: stretch;
  gap: 0.9rem;
  background: var(--cream);
  border: 1px solid rgba(28,27,25,0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -22px rgba(28,27,25,0.35), 0 0 0 1px rgba(28,27,25,0.03);
  padding: 0.85rem 1.05rem;
  transform-origin: 85% 0;
  /* Pre-landing state: stood up vertical, high above (drops in from ~2 sections up) */
  opacity: 0;
  transform: translateY(-460px) rotate(-90deg) scale(0.72);
  will-change: transform, opacity;
}
.demo-strip.is-landed {
  animation: rocket-land 1.7s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes rocket-land {
  0%   { opacity: 0; transform: translateY(-460px) rotate(-90deg) scale(0.72); }
  22%  { opacity: 1; }
  70%  { opacity: 1; transform: translateY(11px) rotate(6deg)  scale(1.015); } /* long descent, overshoot past horizontal */
  85%  {              transform: translateY(-5px) rotate(-2.5deg) scale(1); }  /* touchdown bounce */
  100% { opacity: 1; transform: translateY(0)    rotate(0deg)  scale(1); }
}

/* Eyebrow — "A los 30 días" */
.ds-eyebrow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  padding-right: 0.9rem;
  border-right: 1px solid rgba(28,27,25,0.1);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--coral);
  max-width: 5.2rem;
}
.ds-mark { font-size: 0.72rem; line-height: 1; }

.ds-items {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.ds-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ds-icon {
  width: 20px;
  height: 20px;
  color: var(--coral);
  flex-shrink: 0;
}
.ds-text { display: flex; flex-direction: column; }
.ds-val {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
.ds-val--zero { font-size: 1.55rem; }
.ds-label {
  font-size: 0.62rem;
  line-height: 1.25;
  color: rgba(28,27,25,0.5);
  font-weight: 500;
  white-space: nowrap;
}
.ds-sep {
  width: 1px;
  align-self: stretch;
  margin: 0.1rem 0;
  background: rgba(28,27,25,0.08);
}

/* Mobile / tablet: no absolute parking — sits in flow above the pricing cards, no rocket rotation */
@media (max-width: 1023px) {
  .demo-strip {
    position: static;
    margin: 0 auto 2.25rem;
    width: fit-content;
    max-width: 100%;
    transform: none;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1);
  }
  .demo-strip:not(.is-landed) { transform: translateY(18px); }
  .demo-strip.is-landed { animation: none; opacity: 1; transform: none; }
}
@media (max-width: 460px) {
  .demo-strip { flex-wrap: wrap; gap: 0.65rem 0.75rem; padding: 0.8rem 0.9rem; }
  .ds-eyebrow { border-right: none; border-bottom: 1px solid rgba(28,27,25,0.1);
                flex-direction: row; align-items: center; gap: 0.4rem;
                padding: 0 0 0.55rem; max-width: none; width: 100%; }
  .ds-items { gap: 0.75rem; width: 100%; justify-content: space-between; }
  .ds-val { font-size: 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-strip { transform: none; opacity: 1; transition: opacity 0.3s ease; }
  .demo-strip.is-landed { animation: none; opacity: 1; transform: none; }
}
