/* ============================================================
   tunegocioenlaweb.es — estilos principales
   Paleta y variables
============================================================ */
:root {
  --bg: #F8F9FB;
  --white: #FFFFFF;
  --text: #0F172A;
  --secondary: #626975;
  --border: #E6E8ED;
  --primary: #635BFF;
  --primary-dark: #5148D8;
  --success: #22C55E;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(17,19,24,0.04);
  --shadow-md: 0 4px 16px rgba(17,19,24,0.06);
  --shadow-lg: 0 12px 40px rgba(17,19,24,0.08);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;

  --header-h: 96px;
  --container: 1140px;
}

/* ============================================================
   Reset / base
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; }

ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Header
============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,249,251,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.brand-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-mark-img { height: 34px; width: auto; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-name strong { font-weight: 800; }
.brand-tld { color: var(--primary); font-weight: 700; }

.nav-list { display: flex; gap: 6px; }
.nav-list a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-list a:hover { background: rgba(17,19,24,0.05); }
.nav-list a.is-active { color: var(--primary); background: rgba(99,91,255,0.08); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 26px; height: 26px; }

.nav-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  color: var(--text);
}
.nav-close svg { width: 26px; height: 26px; }

.nav-mobile-top, .nav-mobile-bottom { display: none; }

/* ============================================================
   Botones
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-align: center;
  line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99,91,255,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: transparent;
}
.btn-ghost:hover { background: rgba(17,19,24,0.05); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============================================================
   Hero
============================================================ */
.hero {
  padding: 64px 0 48px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--primary); }
.hero-sub {
  font-size: 18px;
  color: var(--secondary);
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}
.hero-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  max-width: 480px;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.hero-checks .check-icon {
  color: var(--success);
  flex-shrink: 0;
}
.hero-checks .check-icon svg { width: 18px; height: 18px; }

/* Mockup hero */
.hero-visual { position: relative; }
.mockup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}
.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup-bar .dot:first-child { background: #f87171; }
.mockup-bar .dot:nth-child(2) { background: #fbbf24; }
.mockup-bar .dot:nth-child(3) { background: #34d399; }
.mockup-url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--secondary);
  background: var(--bg);
  border-radius: 6px;
  padding: 3px 8px;
  margin-left: 8px;
}
.mockup-body { padding: 26px; background: linear-gradient(180deg, #fff 0%, #faf7f2 100%); }
.mockup-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mockup-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.mockup-navlink { font-size: 10px; color: var(--secondary); }
.mockup-hero-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.mockup-hero-sub { font-size: 13px; color: var(--secondary); max-width: 230px; margin-bottom: 16px; }
.mockup-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
}
.mockup-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.mockup-service-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--secondary); grid-column: 1 / -1; }
.mockup-service {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}

/* Tarjetas flotantes */
.float-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}
.float-card .fc-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
}
.float-card .fc-icon svg { width: 14px; height: 14px; }
.float-card-1 { top: -14px; right: -10px; }
.float-card-1 .fc-icon { background: var(--success); }
.float-card-3 { bottom: -16px; left: 50%; transform: translateX(-50%); }
.float-card-3 .online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ============================================================
   Secciones genéricas
============================================================ */
.section { padding: 80px 0; }
.section-soft { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 18px;
  color: var(--secondary);
  max-width: 560px;
}
.section-head.center .section-lead { margin: 0 auto; }

/* ============================================================
   Trust bar
============================================================ */
.trust-bar { padding: 0 0 72px; }
.trust-quote {
  text-align: center;
  font-size: 19px;
  font-weight: 500;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 36px;
}
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.trust-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

/* ============================================================
   Cómo funciona
============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step { position: relative; }
.step-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--secondary); }

/* ============================================================
   Precios
============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.2s;
}
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pricing-card.is-featured {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(99,91,255,0.18);
  background: linear-gradient(180deg, #fff 0%, #f6f6ff 100%);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-name { font-size: 15px; font-weight: 700; color: var(--secondary); margin-bottom: 10px; letter-spacing: 0.02em; }
.pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.pricing-price .price-amount { font-family: var(--font-display); font-size: 38px; font-weight: 800; color: var(--text); }
.pricing-price .price-period { color: var(--secondary); font-size: 15px; }
.pricing-price .price-from { color: var(--secondary); font-size: 14px; padding-right: 4px; }
.pricing-desc { font-size: 14px; color: var(--secondary); margin-bottom: 20px; }
.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 24px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
}
.pricing-features svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-cta { margin-top: auto; }

.pricing-price .price-on-request {
  font-size: 30px;
}
.pricing-note-inline {
  background: rgba(99,91,255,0.08);
  border: 1px dashed rgba(99,91,255,0.35);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: center;
}

/* Franja de entrega (web subida + archivos + BD) */
.delivery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.delivery-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 14px;
}
.delivery-item svg {
  width: 22px;
  height: 22px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}
.delivery-item strong { display: block; margin-bottom: 2px; color: var(--text); }

.pricing-note {
  margin-top: 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.pricing-note h3 { font-size: 17px; margin-bottom: 4px; }
.pricing-note p { color: var(--secondary); font-size: 15px; }

/* ============================================================
   Demos
============================================================ */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}
.demo-card-eyebrow {
  display: inline-block;
  width: max-content;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.demo-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.demo-card-desc {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.demo-card-ideas {
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.demo-card-ideas li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.demo-card-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.demo-card-check svg { width: 10px; height: 10px; }

.demo-card-multi { background: linear-gradient(135deg, #ffffff, #eef4ff); }
.demo-card-multi .demo-card-eyebrow { background: #2563EB; }
.demo-card-multi .demo-card-title { color: #1E40AF; }
.demo-card-restaurante { background: linear-gradient(135deg, #ffffff, #fff2ec); }
.demo-card-restaurante .demo-card-eyebrow { background: #c2410c; }
.demo-card-restaurante .demo-card-title { color: #9a3412; }
.demo-card-fit { background: linear-gradient(135deg, #ffffff, #ecfdf6); }
.demo-card-fit .demo-card-eyebrow { background: #0d9488; }
.demo-card-fit .demo-card-title { color: #0f766e; }
.demo-card-inmo { background: linear-gradient(135deg, #ffffff, #edf3fa); }
.demo-card-inmo .demo-card-eyebrow { background: #1e4b6e; }
.demo-card-inmo .demo-card-title { color: #1e3a5f; }
.demo-card-elektro { background: linear-gradient(135deg, #ffffff, #fff7e6); }
.demo-card-elektro .demo-card-eyebrow { background: #ea580c; }
.demo-card-elektro .demo-card-title { color: #c2410c; }
.demo-card-academia { background: linear-gradient(135deg, #ffffff, #f4f0ff); }
.demo-card-academia .demo-card-eyebrow { background: #7c3aed; }
.demo-card-academia .demo-card-title { color: #6d28d9; }
.demo-card-sistema { background: linear-gradient(135deg, #ffffff, #ecfdf9); }
.demo-card-sistema .demo-card-eyebrow { background: #0f766e; }
.demo-card-sistema .demo-card-title { color: #115e59; }

.demo-card.is-showcase {
  background: linear-gradient(135deg, #635BFF, #2563EB);
  border: none;
  color: #fff;
  grid-column: 1 / -1;
  padding: 28px;
}
.demo-card.is-showcase .demo-card-title { font-size: 24px; }
.demo-card.is-showcase .demo-card-eyebrow { background: rgba(255,255,255,0.22); color: #fff; }
.demo-card.is-showcase .demo-card-title { color: #fff; }
.demo-card.is-showcase .demo-card-desc { color: rgba(255,255,255,0.92); }
.demo-card.is-showcase .demo-card-ideas { border-top-color: rgba(255,255,255,0.28); }
.demo-card.is-showcase .demo-card-ideas li { color: #fff; }
.demo-card.is-showcase .demo-card-check { background: #fff; color: #2563EB; }
.demo-card.is-showcase .demo-card-link { color: #fff; }
.demo-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.demo-card-link svg { width: 16px; height: 16px; }

/* ============================================================
   FAQ
============================================================ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.faq-question .faq-icon {
  width: 20px;
  height: 20px;
  color: var(--secondary);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 20px 18px; color: var(--secondary); font-size: 15px; }

/* ============================================================
   CTA final (fondo oscuro)
============================================================ */
.cta-final {
  background: #0F172A;
  color: #fff;
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(99,91,255,0.15);
  top: -180px;
  right: -120px;
  filter: blur(40px);
}
.cta-final::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(99,91,255,0.12);
  bottom: -160px;
  left: -100px;
  filter: blur(40px);
}
.cta-final h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  max-width: 760px;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}
.cta-final p {
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}
.cta-final .btn { position: relative; z-index: 1; }
.cta-final .btn-primary { background: var(--primary); }
.cta-final .small-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 1;
}

/* ============================================================
   Contacto
============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-info h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.contact-info p.lead { color: var(--secondary); font-size: 17px; margin-bottom: 28px; }
.contact-methods { display: flex; flex-direction: column; gap: 14px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: border-color 0.15s;
}
.contact-method:hover { border-color: var(--primary); }
.contact-method .cm-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99,91,255,0.1);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-method .cm-icon svg { width: 20px; height: 20px; }
.contact-method .cm-label { font-size: 12px; color: var(--secondary); }
.contact-method .cm-value { font-weight: 600; color: var(--text); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.form-control {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,91,255,0.15);
  background: #fff;
}
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23626975' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.form-error {
  display: none;
  font-size: 13px;
  color: #d94444;
  margin-top: 6px;
}
.form-group.has-error .form-control { border-color: #d94444; }
.form-group.has-error .form-error { display: block; }
.form-privacy {
  font-size: 13px;
  color: var(--secondary);
  margin: 4px 0 20px;
}
.form-privacy a { text-decoration: underline; }
.form-hp { display: none !important; }

.form-alert {
  display: none;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 18px;
}
.form-alert.is-error { display: block; background: #fdf0f0; color: #b91c1c; border: 1px solid #f3d8d8; }
.form-alert.is-success { display: block; background: #f0fdf4; color: #15803d; border: 1px solid #cdebd6; }

/* ============================================================
   Gracias / páginas simples
============================================================ */
.thanks { padding: 96px 0; text-align: center; }
.thanks-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  color: var(--success);
  display: grid;
  place-items: center;
}
.thanks-icon svg { width: 36px; height: 36px; }
.thanks h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.thanks p { color: var(--secondary); font-size: 18px; max-width: 480px; margin: 0 auto 32px; }

.legal-page { padding: 72px 0; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 36px; }
.legal-block { margin-bottom: 28px; }
.legal-block h2 { font-size: 20px; margin-bottom: 10px; }
.legal-block p { color: var(--secondary); max-width: 720px; margin-bottom: 8px; }
.legal-block ul { list-style: disc; padding-left: 22px; color: var(--secondary); margin-top: 8px; }
.legal-block li { margin-bottom: 6px; }
.legal-placeholder {
  background: #eeebff;
  color: var(--primary);
  border: 1px dashed var(--primary);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: monospace;
  font-size: 14px;
  display: inline-block;
  margin: 4px 0;
}

/* ============================================================
   Footer
============================================================ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-name { font-size: 18px; }
.footer-logo {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: 18px;
}
.footer-tagline { color: var(--secondary); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer-title {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 14px;
}
.footer-nav ul, .footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { color: var(--secondary); font-size: 14px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-contact .footer-social { flex-direction: row; gap: 10px; padding: 0; margin: 0; }
.footer-contact .footer-social-title { margin-top: 18px; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--secondary);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.footer-social-link svg { width: 18px; height: 18px; }
.footer-social-link[hidden] { display: none; }
.footer-social-link:hover { transform: translateY(-2px); }
.footer-social-link:hover svg { color: #fff; }

.footer-social-link[data-social="whatsapp"]:hover {
  background: #25D366;
  border-color: #25D366;
}
.footer-social-link[data-social="linkedin"]:hover {
  background: #0A66C2;
  border-color: #0A66C2;
}
.footer-social-link[data-social="facebook"]:hover {
  background: #1877F2;
  border-color: #1877F2;
}
.footer-social-link[data-social="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}
.footer-social-link[data-social="youtube"]:hover {
  background: #FF0000;
  border-color: #FF0000;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.footer-bottom p { font-size: 13px; color: var(--secondary); text-align: center; }

/* Animación de aparición (solo si hay JS activo, para no ocultar contenido) */
.js .pricing-card, .js .demo-card, .js .step, .js .trust-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.15s, border-color 0.15s;
}
.js .pricing-card.in-view, .js .demo-card.in-view,
.js .step.in-view, .js .trust-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
============================================================ */
@media (max-width: 1024px) {
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.is-featured { order: -1; }
  .delivery-strip { grid-template-columns: 1fr; }

  /* Navegación móvil */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile-top, .nav-close { display: flex; }
  .nav-mobile-bottom { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(248,249,251,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .nav-mobile-top {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
  .nav-close {
    position: static;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
  }
  .nav-list {
    flex-direction: column;
    gap: 8px;
    padding: 16px 0;
  }
  .nav-list a {
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s, color 0.15s;
  }
  .nav-list a::after {
    content: '';
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.15s;
  }
  .nav-list a:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-1px); color: var(--primary); }
  .nav-list a:hover::after { transform: translateX(3px); }
  .nav-list a.is-active { color: var(--primary); border-color: var(--primary); background: rgba(99,91,255,0.06); box-shadow: 0 4px 14px rgba(99,91,255,0.14); }
  .nav-mobile-bottom {
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
  .nav-mobile-cta { width: 100%; }
  .nav-cta { display: none; }
}

@media (max-width: 520px) {
  .hero { padding: 40px 0 36px; }
  .hero-checks { grid-template-columns: 1fr; }
  .trust-items { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-note { flex-direction: column; text-align: center; }
}

/* ============================================================
   Movimiento reducido
============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .float-card, .pricing-card, .demo-card { transition: none !important; }
}
