/* =========================================================
   ByF · estilos
   Colores de la marca: azul, rojo y negro (ver marca/byf/logo-final)
   ========================================================= */
:root {
  --black: #0D0D0F;
  --black-2: #141417;
  --black-3: #24242A;
  --accent: #3B74FF;         /* azul de la marca (sobre negro) */
  --accent-fill: #2A5FF0;    /* azul para fondos de botón: el texto blanco se lee bien */
  --accent-hover: #3B74FF;
  --accent-dark: #1E4FD6;    /* azul para texto sobre fondo claro */
  --red: #F2434E;            /* rojo de la marca (sobre negro) */
  --red-dark: #D42A35;       /* rojo para fondo claro */
  --cream: #F4F5F8;          /* fondo claro de las secciones */
  --cream-2: #E3E6EE;
  --white: #FFFFFF;
  --gray: #A2A3AC;           /* texto secundario sobre negro */
  --gray-dark: #565A66;      /* texto secundario sobre claro */
  --danger: #FF8A7A;

  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-code: "JetBrains Mono", Consolas, monospace;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
/* palabra destacada: degradado de azul a rojo */
.hl { background: linear-gradient(90deg, var(--accent) 0%, var(--red) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl .word__in, .word__in.hl { background: linear-gradient(90deg, var(--accent), var(--red)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent-fill); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.container--narrow { max-width: 820px; }

.eyebrow { font-family: var(--font-code); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.eyebrow::before { content: "</"; color: var(--red); margin-right: .2em; }
.eyebrow::after { content: ">"; color: var(--red); margin-left: .1em; }
.eyebrow--dark { color: var(--accent-dark); }
.lead { font-size: 1.15rem; color: var(--gray); margin-top: 18px; max-width: 34em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent-fill); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--accent); color: var(--white); background: transparent; }
.btn--ghost:hover { background: var(--accent-fill); border-color: var(--accent-fill); color: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }
.btn--block { width: 100%; }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(13,13,13,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--black-3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.header__logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; color: var(--gray); font-weight: 500; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--white); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.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); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--black-3);
    padding: 8px 16px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--black-3); color: var(--white); }
  .nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 80px; overflow: hidden; }
.hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 96px 0 112px; } .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.hero__facts li { display: flex; flex-direction: column; border-left: 2px solid var(--accent); padding-left: 12px; }
.hero__facts li:nth-child(2) { border-color: var(--red); }
.hero__facts strong { font-family: var(--font-code); font-size: 1.1rem; }
.hero__facts span { color: var(--gray); font-size: .9rem; }

/* Maqueta 3D de navegador + teléfono (decorativa, hecha con CSS; la mueve js/motion.js) */
.hero__visual { position: relative; max-width: 560px; margin: 0 auto; width: 100%; }
.scene { position: relative; aspect-ratio: 5 / 4; perspective: 1400px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.scene.is-dragging { cursor: grabbing; }
.stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-22deg); --pop: 1; --phone: 0; }
/* ojo: filter u opacity en estos contenedores "aplanan" el 3D, por eso las sombras van en los hijos */
.mock-browser { position: absolute; left: 0; top: 6%; width: 88%; transform-style: preserve-3d; }
.mock-browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--black-3); border: 1px solid #2c2c2c; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; }
.mock-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.mock-browser__bar span { margin-left: 10px; flex: 1; font-size: .75rem; color: var(--gray); background: var(--black); border-radius: 6px; padding: 3px 10px; }
.mock-site { background: var(--cream); padding: 16px; display: grid; gap: 14px; border-radius: 0 0 var(--radius) var(--radius); transform-style: preserve-3d; box-shadow: 0 40px 70px rgba(0,0,0,.55); }
.mock-site__nav { display: flex; align-items: center; gap: 10px; transform: translateZ(calc(var(--pop) * 14px)); }
.mock-site__nav b { width: 54px; height: 12px; background: var(--black); border-radius: 3px; margin-right: auto; }
.mock-site__nav span { width: 34px; height: 7px; background: var(--cream-2); border-radius: 3px; }
.mock-site__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: center; transform-style: preserve-3d; }
.mock-site__copy { transform: translateZ(calc(var(--pop) * 40px)); }
.mock-site__hero em { display: block; height: 12px; background: var(--black); border-radius: 3px; margin-bottom: 8px; }
.mock-site__hero em.short { width: 65%; }
.mock-site__hero u { display: block; width: 70px; height: 22px; border-radius: 999px; background: var(--accent-fill); margin-top: 12px; }
.mock-site__img { aspect-ratio: 4/3; border-radius: 8px; background: linear-gradient(135deg, #1B2C66, #6A1F2C); transform: translateZ(calc(var(--pop) * 24px)); box-shadow: 0 calc(var(--pop) * 14px) calc(var(--pop) * 24px) rgba(0,0,0,.25); }
.mock-site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; transform-style: preserve-3d; }
.mock-site__cards div { height: 58px; border-radius: 8px; background: var(--white); border: 1px solid var(--cream-2); transform: translateZ(calc(var(--pop) * (18px + var(--i) * 16px))); box-shadow: 0 calc(var(--pop) * 10px) calc(var(--pop) * 18px) rgba(0,0,0,.18); }
.mock-phone { position: absolute; right: 0; bottom: 4%; width: 32%; max-width: 170px; background: var(--black); border: 3px solid var(--black-3); border-radius: 22px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.7);
  transform: translate3d(calc(var(--phone) * -95%), calc(var(--phone) * -10%), calc(60px + var(--pop) * 30px + var(--phone) * 120px)) scale(calc(1 + var(--phone) * .3)); }
.mock-phone__screen { background: var(--cream); border-radius: 15px; padding: 10px; display: grid; gap: 7px; }
.mock-phone__img { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #1B2C66, #6A1F2C); }
.mock-phone__screen em { height: 8px; background: var(--black); border-radius: 3px; }
.mock-phone__screen em.short { width: 60%; }
.mock-phone__wa { margin-top: 4px; background: #25D366; color: #06371b; font-size: .65rem; font-weight: 700; text-align: center; border-radius: 999px; padding: 5px; }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
@media (min-width: 960px) { .section { padding: 110px 0; } }
.section--light { background: var(--cream); color: var(--black); }
.section__intro { font-size: 1.1rem; color: var(--gray-dark); margin-top: 14px; max-width: 40em; }
.section__intro--light { color: var(--gray); }

/* Beneficios */
.features { display: grid; gap: 20px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.feature { background: var(--white); border: 1px solid var(--cream-2); border-radius: var(--radius); padding: 28px 24px; }
.feature__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--black); display: grid; place-items: center; margin-bottom: 18px; }
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature:nth-child(even) .feature__icon svg { stroke: var(--red); }
.feature p { color: var(--gray-dark); margin-top: 8px; font-size: .98rem; }

/* Planes */
.plans { display: grid; gap: 24px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.plan { position: relative; background: var(--black-2); border: 1px solid var(--black-3); border-radius: var(--radius); padding: 32px 26px; display: flex; flex-direction: column; gap: 22px; }
.plan--featured { border: 2px solid var(--accent); box-shadow: 0 0 0 6px rgba(59,116,255,.08), 0 30px 60px rgba(0,0,0,.45); }
.plan__badge { position: absolute; top: -14px; left: 26px; background: var(--red-dark); color: var(--white); font-size: .8rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan__price { font-family: var(--font-code); font-size: 3rem; font-weight: 800; line-height: 1; margin-top: 10px; letter-spacing: -0.04em; }
.plan__price span { font-size: 1.5rem; vertical-align: top; color: var(--accent); margin-right: 2px; }
.plan__for { color: var(--gray); margin-top: 12px; font-size: .97rem; }
.plan__time { display: inline-block; margin-top: 14px; font-size: .85rem; font-weight: 700; color: var(--accent); border: 1px solid rgba(59,116,255,.4); padding: 3px 12px; border-radius: 999px; }
.plan__plus { font-weight: 700; color: var(--accent); font-size: .95rem; margin-bottom: -10px; }
.plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .97rem; }
.plan__list li { position: relative; padding-left: 28px; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.plan__list--no { border-top: 1px solid var(--black-3); padding-top: 18px; color: var(--gray); font-size: .9rem; }
.plan__list--no li::before { width: 12px; height: 2px; top: .8em; border: 0; background: var(--gray); transform: none; left: 2px; }
.plan .btn { margin-top: auto; }

.maint { margin-top: 32px; border: 1px dashed rgba(59,116,255,.5); border-radius: var(--radius); padding: 24px 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.maint p { color: var(--gray); margin-top: 6px; max-width: 40em; }
.maint__tag { font-family: var(--font-body); font-size: .75rem; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { background: var(--white); border: 1px solid var(--cream-2); border-radius: var(--radius); padding: 26px 24px; }
.step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: var(--accent); font-family: var(--font-code); font-weight: 800; margin-bottom: 16px; }
.step:nth-child(even) .step__n { color: var(--red); }
.step p { color: var(--gray-dark); margin-top: 8px; font-size: .97rem; }
.needs { margin-top: 32px; background: var(--black); color: var(--white); border-radius: var(--radius); padding: 28px 26px; }
.needs ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.needs li { padding-left: 22px; position: relative; color: var(--cream-2); }
.needs li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

/* Preguntas */
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: var(--black-2); border: 1px solid var(--black-3); border-radius: var(--radius-sm); }
.faq details[open] { border-color: rgba(59,116,255,.5); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--gray); }

/* Contacto */
.section--contact { background: var(--black-2); border-top: 1px solid var(--black-3); }
.contact { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.contact__list a { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
.form { background: var(--black); border: 1px solid var(--black-3); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--gray); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--white);
  background: var(--black-2); border: 1px solid #3a3a3a; border-radius: var(--radius-sm); padding: 12px 14px;
}
.field input::placeholder, .field textarea::placeholder { color: #6E7180; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,116,255,.25); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .88rem; }

/* Pie */
.footer { padding: 56px 0 96px; border-top: 1px solid var(--black-3); }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer__inner img { width: 110px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.footer__nav a { color: var(--gray); text-decoration: none; }
.footer__nav a:hover { color: var(--white); }
.footer__copy { color: var(--gray); font-size: .9rem; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
.wa-float svg .fill { fill: #fff; stroke: none; }
