:root {
  --bg: #F4F5F7;
  --surface: #FFF;
  --surface-2: #ECEEF2;
  --ink: #1D1D1F;
  --ink-soft: #5A5A5E;
  --accent: #6C5CE7;
  --accent-2: #00CEC9;
  --line: rgba(29,29,31,0.12);
  --line-strong: rgba(29,29,31,0.22);
  --header-h: 72px;
  --container: 1320px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  interpolate-size: allow-keywords;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

html.no-js .reveal { opacity: 1; transform: none; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 240ms cubic-bezier(.4,0,.2,1); }
a:hover { color: var(--accent-2); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 700;
  transition: top 200ms;
}
.skip-link:focus { top: 12px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.012em;
  color: var(--ink);
}

h1 { font-size: clamp(2.25rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.eyebrow {
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.mono { font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace; font-weight: 500; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

main { padding-top: var(--header-h); }
main section[id] { scroll-margin-top: var(--header-h); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  background: rgba(244, 245, 247, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 240ms ease, box-shadow 240ms ease, padding 240ms ease;
  padding: 16px 0;
}

.site-header.scrolled {
  background: rgba(244, 245, 247, 0.98);
  box-shadow: 0 8px 24px -16px rgba(0,0,0,.18);
  padding: 10px 0;
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  width: 0%;
  transition: width 60ms linear;
  pointer-events: none;
}

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

.logo {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { color: var(--accent); }
.logo svg { width: 28px; height: 28px; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-desktop a {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 240ms cubic-bezier(.4,0,.2,1);
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 280ms cubic-bezier(.2,.7,.2,1);
}

.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a:hover::after { width: 100%; }
.nav-desktop a.is-active { color: var(--accent); }
.nav-desktop a.is-active::after { width: 100%; }

.nav-desktop .nav-cta {
  background: var(--ink);
  color: var(--surface);
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.nav-desktop .nav-cta::after { display: none; }
.nav-desktop .nav-cta:hover { background: var(--accent); color: var(--surface); box-shadow: 0 4px 16px -4px rgba(108,92,231,0.3); }
.nav-desktop .nav-cta.is-active { background: var(--accent); color: var(--surface); }

@media (max-width: 1024px) {
  .nav-desktop { display: none; }
}

/* Drawer-open scroll lock */
html.drawer-open,
html.drawer-open body {
  overflow: hidden !important;
  touch-action: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1024px) {
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), opacity 200ms;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: var(--surface);
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
  padding: calc(var(--header-h) + 24px) 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1.4rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 240ms cubic-bezier(.4,0,.2,1), color 240ms;
  z-index: 2;
}
.drawer-close:hover { background: var(--bg); color: var(--accent); }

.mobile-drawer a {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: block;
  transition: color 240ms, transform 240ms;
}
.mobile-drawer a:hover { color: var(--accent); transform: translateX(4px); }
.mobile-drawer a.is-active { color: var(--accent); }

.mobile-drawer .drawer-cta {
  margin-top: 24px;
  background: var(--accent);
  color: var(--surface);
  padding: 16px 24px;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  border-bottom: none;
}
.mobile-drawer .drawer-cta:hover { background: var(--ink); color: var(--surface); transform: none; }

/* ============ HERO ============ */
.hero {
  padding: clamp(80px, 15vh, 160px) 0 clamp(60px, 10vh, 120px);
  position: relative;
  overflow: hidden;
}

.hero-content { position: relative; z-index: 2; }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 14ch;
}

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 40px;
  line-height: 1.5;
}

.hero-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  transition: gap 280ms cubic-bezier(.2,.7,.2,1);
}
.hero-arrow:hover { gap: 20px; color: var(--accent-2); }
.hero-arrow svg { transition: transform 280ms cubic-bezier(.2,.7,.2,1); }
.hero-arrow:hover svg { transform: translateX(4px); }

/* Hero decorative elements */
.hero-decor {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  opacity: 0.06;
  pointer-events: none;
}

.hero-decor svg {
  width: clamp(200px, 30vw, 500px);
  height: auto;
}

/* Steam animation */
@keyframes steam-rise {
  0% { transform: translateY(0) scaleX(1) rotate(0deg); opacity: 0; }
  15% { opacity: 0.5; }
  50% { transform: translateY(-30px) scaleX(1.4) rotate(8deg); opacity: 0.3; }
  100% { transform: translateY(-60px) scaleX(0.6) rotate(-5deg); opacity: 0; }
}

.steam-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, var(--accent-2), transparent);
  border-radius: 50%;
  opacity: 0;
  animation: steam-rise 3.5s ease-in-out infinite;
  filter: blur(2px);
}
.steam-particle:nth-child(1) { left: 20%; top: 60%; animation-delay: 0s; animation-duration: 2.8s; }
.steam-particle:nth-child(2) { left: 35%; top: 65%; animation-delay: 0.8s; animation-duration: 3.2s; }
.steam-particle:nth-child(3) { left: 50%; top: 58%; animation-delay: 1.6s; animation-duration: 2.6s; }
.steam-particle:nth-child(4) { left: 65%; top: 62%; animation-delay: 2.2s; animation-duration: 3.5s; }
.steam-particle:nth-child(5) { left: 80%; top: 60%; animation-delay: 0.4s; animation-duration: 3s; }

@media (prefers-reduced-motion: reduce) {
  .steam-particle { animation: none; opacity: 0; }
}

/* Dotted flowchart lines */
.dotted-line {
  position: absolute;
  border: none;
  border-left: 2px dashed var(--line-strong);
  height: 80px;
  left: 50%;
  opacity: 0.5;
}

/* ============ CONFIGURADOR ============ */
.configurador {
  padding: clamp(60px, 10vh, 120px) 0;
  background: var(--surface);
  position: relative;
}

.config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 768px) {
  .config-grid { grid-template-columns: 1fr; }
}

.config-panel {
  background: var(--bg);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
}

.config-field {
  margin-bottom: 28px;
}

.config-field label {
  display: block;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.config-field .field-value {
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-weight: 500;
  color: var(--accent);
  float: right;
}

/* Range slider */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(108,92,231,0.3);
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), box-shadow 180ms;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(108,92,231,0.4);
}
.range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(108,92,231,0.3);
}

/* Select */
.config-select {
  width: 100%;
  padding: 14px 18px;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 240ms;
}
.config-select:focus { border-color: var(--accent); }

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.toggle-row:last-child { border-bottom: none; }

.toggle-label {
  font-size: 0.95rem;
  color: var(--ink);
}
.toggle-label small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-switch .slider {
  position: absolute;
  inset: 0;
  background: var(--line-strong);
  border-radius: 13px;
  cursor: pointer;
  transition: background 240ms;
}
.toggle-switch .slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--surface);
  border-radius: 50%;
  transition: transform 240ms cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .slider { background: var(--accent); }
.toggle-switch input:checked + .slider::before { transform: translateX(22px); }

/* Price display */
.price-display {
  background: var(--ink);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 48px);
  color: var(--surface);
  text-align: center;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.price-label {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 8px;
}

.price-total {
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--accent-2);
  line-height: 1;
  margin-bottom: 8px;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1);
}
.price-total.tick { transform: scale(1.05); }

.price-per-person {
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 1rem;
  opacity: 0.6;
  margin-bottom: 24px;
}

.price-breakdown {
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  margin-top: 20px;
}

.price-breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  opacity: 0.8;
  list-style: none;
}

.price-disclaimer {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 16px;
  font-style: italic;
}

.price-cta {
  display: inline-block;
  margin-top: 24px;
  background: var(--accent);
  color: var(--surface);
  padding: 16px 36px;
  border-radius: 8px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  transition: background 240ms, transform 180ms cubic-bezier(.2,.7,.2,1);
  border: none;
  cursor: pointer;
  width: 100%;
}
.price-cta:hover { background: var(--accent-2); color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 24px -6px rgba(0,206,201,0.35), 0 0 40px -10px rgba(108,92,231,0.12); }

/* ============ FORMATOS ============ */
.formatos {
  padding: clamp(60px, 10vh, 120px) 0;
}

.formatos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-top: 48px;
}

@media (max-width: 768px) {
  .formatos-grid { grid-template-columns: 1fr; }
}

.formato-card {
  background: var(--surface);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid var(--line);
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), box-shadow 300ms cubic-bezier(.2,.7,.2,1);
  position: relative;
  overflow: hidden;
}
.formato-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(108,92,231,0.18), 0 0 0 1px rgba(0,206,201,0.1);
  border-color: rgba(108,92,231,0.25);
}

.formato-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: transform 400ms cubic-bezier(.16,.84,.44,1);
  transform-origin: left;
}
.formato-card:hover::before { transform: scaleX(1); }

.formato-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--accent);
}

.formato-card h3 {
  margin-bottom: 12px;
}

.formato-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.formato-features {
  list-style: none;
  padding: 0;
}
.formato-features li {
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}
.formato-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

/* ============ CLIENTES ============ */
.clientes {
  padding: clamp(60px, 10vh, 100px) 0;
  background: var(--surface);
}

.clientes-header {
  text-align: center;
  margin-bottom: 48px;
}

.clientes-stat {
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  opacity: 0.6;
}

.logos-row .logo-item {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  padding: 12px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: opacity 240ms, border-color 240ms;
}
.logos-row .logo-item:hover { opacity: 1; border-color: var(--accent); box-shadow: 0 4px 16px -4px rgba(108,92,231,0.15); }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), box-shadow 300ms, border-color 300ms;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(108,92,231,0.12);
  border-color: var(--accent);
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Outfit', serif;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  position: absolute;
  top: 16px;
  left: 20px;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-top: 8px;
}

.testimonial-author {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}

.testimonial-meta {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ============ CONTACTO ============ */
.contacto {
  padding: clamp(60px, 10vh, 120px) 0;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 768px) {
  .contacto-grid { grid-template-columns: 1fr; }
}

.contacto-info h2 { margin-bottom: 16px; }
.contacto-info p { color: var(--ink-soft); margin-bottom: 24px; max-width: 40ch; }

.contact-channels {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.contact-channels .channel-icon {
  color: var(--ink-soft);
  width: 20px;
  height: 20px;
  margin-top: 2px;
  transition: color 240ms cubic-bezier(.4,0,.2,1), transform 240ms cubic-bezier(.4,0,.2,1);
}
.contact-channels .channel-row {
  display: contents;
  cursor: default;
}
.contact-channels .channel-row:hover .channel-icon { color: var(--accent); transform: scale(1.08); }
.contact-channels .channel-row:hover .channel-text { transform: translateX(4px); }
.contact-channels .channel-text {
  font-size: 0.9rem;
  color: var(--ink);
  transition: transform 240ms cubic-bezier(.4,0,.2,1);
}
.contact-channels .channel-text small { color: var(--ink-soft); display: block; font-size: 0.8rem; }

/* Form */
.form-card {
  background: var(--surface);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
}

.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 240ms, box-shadow 240ms;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}
.field textarea { min-height: 100px; resize: vertical; }

.field input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.field-checkbox label {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--surface);
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 240ms, color 240ms, transform 180ms cubic-bezier(.2,.7,.2,1), box-shadow 240ms;
  text-align: center;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(108,92,231,0.35), 0 0 40px -10px rgba(0,206,201,0.12);
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 240ms, color 240ms, border-color 240ms, transform 180ms;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px -4px rgba(108,92,231,0.15);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: clamp(48px, 8vw, 80px) 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  max-width: 32ch;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; }

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color 240ms, transform 240ms;
}
.footer-col a:hover { color: var(--accent-2); transform: translateX(3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent-2); }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  border: 1px solid var(--line);
  transform: translateY(140%);
  opacity: 0;
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 240ms;
  z-index: 9999;
}
.cookie-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 640px) {
  .cookie-banner { left: 24px; right: auto; max-width: 420px; }
}

.cookie-banner h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-banner p {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-actions button {
  padding: 10px 18px;
  border-radius: 6px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  min-height: 44px;
  transition: background 240ms, color 240ms, border-color 240ms;
}
.cookie-actions button:hover {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--surface);
}
.cookie-actions button[data-consent="accept"] {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.cookie-actions button[data-consent="accept"]:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.cookie-actions button[data-consent="reject"] {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--ink);
}
.cookie-actions button[data-consent="reject"]:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms cubic-bezier(.16,.84,.44,1), transform 700ms cubic-bezier(.16,.84,.44,1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[style*="--i"] {
  transition-delay: calc(var(--i, 0) * 110ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .steam-particle, .flame-flicker, .spice-float { animation: none !important; }
}

/* ============ THEMATIC ANIMATIONS ============ */
/* 1. Flame flicker on accent elements */
@keyframes flame-flicker {
  0%, 100% { opacity: 0.8; transform: scaleY(1) translateY(0); }
  25% { opacity: 1; transform: scaleY(1.05) translateY(-1px); }
  50% { opacity: 0.9; transform: scaleY(0.98) translateY(1px); }
  75% { opacity: 1; transform: scaleY(1.02) translateY(-0.5px); }
}

.flame-icon {
  display: inline-block;
  animation: flame-flicker 2.5s ease-in-out infinite;
}

/* 2. Pan shake on CTA hover */
@keyframes pan-shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-3deg); }
  40% { transform: rotate(3deg); }
  60% { transform: rotate(-2deg); }
  80% { transform: rotate(1deg); }
}

.btn-primary:hover .icon-pan,
.price-cta:hover ~ .pan-icon {
  animation: pan-shake 400ms ease;
}

/* 3. Spice float particles */
@keyframes spice-float {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.3; }
  100% { transform: translate(var(--dx, 30px), var(--dy, -60px)) rotate(var(--rot, 180deg)); opacity: 0; }
}

.spice-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-2);
  pointer-events: none;
  opacity: 0;
  animation: spice-float var(--dur, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

/* 4. Knife chop on card hover */
@keyframes knife-chop {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-8deg); }
}

.formato-card:hover .formato-icon {
  animation: knife-chop 350ms cubic-bezier(.2,.7,.2,1);
}

/* 5. Counter tick pulse */
@keyframes tick-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.price-total.ticking {
  animation: tick-pulse 180ms cubic-bezier(.2,.7,.2,1);
}

/* ============ PAGES ============ */
.page-header {
  padding: clamp(48px, 8vh, 100px) 0 clamp(32px, 5vh, 60px);
  text-align: center;
}
.page-header .eyebrow { margin-bottom: 12px; }
.page-header h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 16px; }
.page-header p { color: var(--ink-soft); max-width: 55ch; margin: 0 auto; }

.page-content {
  padding: 0 0 clamp(60px, 10vh, 120px);
}
.page-content .container { max-width: 820px; }
.page-content h2 { margin: 48px 0 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.page-content h3 { margin: 32px 0 12px; font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.page-content p { margin-bottom: 16px; color: var(--ink-soft); line-height: 1.7; }
.page-content ul, .page-content ol { margin: 12px 0 20px 24px; color: var(--ink-soft); }
.page-content li { margin-bottom: 8px; line-height: 1.6; }

/* Table scroll */
.table-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.table-scroll > table { margin: 0 !important; min-width: 480px; width: 100%; }
:where(*:has(> .table-scroll), *:has(> * > .table-scroll), *:has(> * > * > .table-scroll)) { min-width: 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg);
}

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  padding: 20px 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 240ms;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1);
}
.faq-item[open] summary::after { content: '\2212'; transform: rotate(180deg); }
.faq-item summary:hover { color: var(--accent); }

.faq-item > .faq-answer {
  height: 0;
  padding: 0 0;
  overflow: hidden;
  transition: height 360ms cubic-bezier(.4,0,.2,1), padding-block-end 360ms cubic-bezier(.4,0,.2,1);
}
.faq-item[open] > .faq-answer {
  height: auto;
  padding-block-end: 20px;
}
.faq-item .faq-answer p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item > .faq-answer { transition: none; }
}

/* ============ PROCESS / NOSOTROS ============ */
.process-timeline {
  position: relative;
  padding-left: 40px;
  max-width: 700px;
  margin: 48px auto;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
  border-radius: 1px;
}

.process-step {
  position: relative;
  margin-bottom: 40px;
  padding-left: 24px;
}
.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: -40px;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75rem;
  font-weight: 700;
}
.process-step h4 { margin-bottom: 6px; }
.process-step p { color: var(--ink-soft); font-size: 0.9rem; }
.process-step .step-time {
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-top: 4px;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 300ms cubic-bezier(.2,.7,.2,1), box-shadow 300ms;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(108,92,231,0.12);
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.pricing-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: var(--surface);
  padding: 4px 14px;
  border-radius: 20px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pricing-card h3 { margin-bottom: 8px; }
.pricing-card .price {
  font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.pricing-card .price small { font-size: 0.8rem; color: var(--ink-soft); font-weight: 400; }
.pricing-card .price-note { font-size: 0.75rem; color: var(--ink-soft); margin-bottom: 20px; }

.pricing-includes h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; color: var(--ink); }
.pricing-includes ul { list-style: none; padding: 0; margin-bottom: 16px; }
.pricing-includes li { padding: 5px 0; font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.pricing-includes li::before { content: '\2713'; color: var(--accent-2); font-weight: 700; }
.pricing-excludes li::before { content: '\2717'; color: #e74c3c; }

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  transition: transform 300ms cubic-bezier(.2,.7,.2,1);
}
.team-card:hover { transform: translateY(-4px); }

.team-avatar {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
}
.team-card h4 { margin-bottom: 4px; }
.team-card .role { font-size: 0.8rem; color: var(--accent); font-family: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace; margin-bottom: 12px; }
.team-card p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.6; }

/* Trust badges */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface-2);
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.trust-badge svg { width: 14px; height: 14px; color: var(--accent-2); }

/* ============ UTILITY ============ */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.word-break { word-break: break-word; overflow-wrap: anywhere; }

.btn--primary {
  display: inline-block;
  background: var(--ink);
  color: var(--surface);
  padding: 16px 36px;
  border-radius: 8px;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 240ms, color 240ms, transform 180ms cubic-bezier(.2,.7,.2,1), box-shadow 240ms;
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent);
  color: var(--surface);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -6px rgba(108,92,231,0.35), 0 0 40px -10px rgba(0,206,201,0.12);
}

.prose {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.prose p { margin-bottom: 16px; }
.prose h2 { margin: 48px 0 16px; }
.prose h3 { margin: 32px 0 12px; }

/* Form success/error */
.form-message {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 16px;
  display: none;
}
.form-message.is-success { display: block; background: rgba(0,206,201,0.1); color: #00897b; border: 1px solid rgba(0,206,201,0.3); }
.form-message.is-error { display: block; background: rgba(231,76,60,0.1); color: #c62828; border: 1px solid rgba(231,76,60,0.3); }

/* Section separator - dotted */
.section-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 0;
}
.section-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1280px) {
  :root { --container: 1100px; }
}

@media (max-width: 1024px) {
  .hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
}

@media (max-width: 768px) {
  .formatos-grid { grid-template-columns: 1fr; }
  .config-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .price-display { position: static; margin-top: 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .formato-card { padding: 20px; }
  .config-panel { padding: 20px; }
  .price-display { padding: 24px; }
  .logos-row { gap: 16px; }
  .logos-row .logo-item { padding: 8px 16px; font-size: 0.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .cookie-actions { flex-direction: column; }
  .cookie-actions button { width: 100%; }
  .trust-strip { justify-content: center; }
}

@media (max-width: 360px) {
  body { font-size: 15px; }
  .hero h1 { font-size: 2.2rem; }
  .price-total { font-size: 2.5rem; }
}


/* Warm glow pulse for cooking theme */
@keyframes warm-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,206,201,0); }
  50% { box-shadow: 0 0 24px -4px rgba(0,206,201,0.15); }
}

.hero-arrow:hover {
  animation: warm-glow 1.5s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .hero-arrow:hover { animation: none; }
  .testimonial-card:hover { transform: none; }
}

/* Print */
@media print {
  .site-header, .cookie-banner, .mobile-drawer, .drawer-backdrop, .nav-toggle { display: none !important; }
  main { padding-top: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { color: #000; background: #fff; }
}
