/* =====================================================================
   FlashBox Server — Design tokens (versión clara y amigable)
   Blanco cálido + crema, azul rey como color de marca, naranja de apoyo.
   ===================================================================== */
:root{
  --bg:            #ffffff;
  --bg-cream:      #faf6ee;
  --bg-cream-2:    #f3ede0;
  --panel:         #ffffff;
  --panel-line:    rgba(23,32,64,.08);
  --panel-line-2:  rgba(23,32,64,.14);

  --text:          #16203f;
  --text-muted:    #5a6382;
  --text-dim:      #8890a8;

  --blue:          #2647e0;
  --blue-dark:     #1a34b8;
  --blue-soft:     #eef1fd;
  --orange:        #ff6a35;
  --orange-dark:   #e8531f;
  --orange-soft:   #fff1e9;
  --green:         #1aa966;

  --grad-flash: linear-gradient(120deg, var(--blue) 0%, #4f6df5 100%);
  --grad-warm:  linear-gradient(120deg, var(--orange) 0%, #ffab63 100%);

  --font-display: 'Roboto', 'Segoe UI', sans-serif;
  --font-body:    'Roboto', 'Segoe UI', sans-serif;
  --font-mono:    'Roboto Mono', 'Courier New', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --container: 1200px;
  --shadow-card: 0 18px 50px -22px rgba(22,32,63,.18);
  --shadow-soft: 0 8px 24px -14px rgba(22,32,63,.14);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body::before{
  content:"";
  position:fixed; inset:0;
  background-image:radial-gradient(rgba(38,71,224,.07) 1.4px, transparent 1.4px);
  background-size:26px 26px;
  mask-image:radial-gradient(ellipse 85% 55% at 50% 0%, black 0%, transparent 68%);
  pointer-events:none;
  z-index:0;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:-0.02em;
  margin:0;
  color:var(--text);
}
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
.container-xl{ max-width:var(--container); margin:0 auto; padding:0 24px; position:relative; z-index:1; }
img{ max-width:100%; display:block; }
::selection{ background:var(--orange); color:#fff; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:.8rem;
  letter-spacing:.04em;
  color:var(--blue);
  padding:7px 16px;
  border:1px solid rgba(38,71,224,.22);
  border-radius:99px;
  background:var(--blue-soft);
}
.eyebrow .dot{
  width:7px; height:7px; border-radius:50%;
  background:var(--green);
  box-shadow:0 0 8px rgba(26,169,102,.6);
  animation:pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot{ 0%,100%{opacity:1;} 50%{opacity:.35;} }

.section-tag{ color:var(--orange-dark); font-weight:700; font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; }

/* Botones */
.btn-flash{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:700; font-size:.95rem;
  padding:15px 30px; border-radius:99px;
  background:var(--grad-warm); color:#fff;
  border:none; cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, filter .25s ease;
  box-shadow:0 14px 34px -12px rgba(255,106,53,.55);
  white-space:nowrap;
}
.btn-flash:hover{ transform:translateY(-3px); filter:brightness(1.05); box-shadow:0 18px 42px -12px rgba(255,106,53,.65); color:#fff; }
.btn-ghost{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:700; font-size:.95rem; padding:14px 28px; border-radius:99px;
  border:2px solid var(--panel-line-2); color:var(--text);
  background:#fff;
  transition:border-color .25s ease, background .25s ease, transform .25s ease, color .25s ease;
}
.btn-ghost:hover{ border-color:var(--blue); background:var(--blue-soft); color:var(--blue); transform:translateY(-3px); }

/* =====================================================================
   Navbar
   ===================================================================== */
.fb-nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:20px 0;
  transition:background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.fb-nav.scrolled{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  padding:12px 0;
  box-shadow:0 4px 24px -12px rgba(22,32,63,.18);
}
.fb-nav .container-xl{ display:flex; align-items:center; justify-content:space-between; }
.fb-logo{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:900; font-size:1.3rem; color:var(--text); }
.fb-logo .bolt{
  width:34px; height:34px; border-radius:10px;
  background:var(--grad-flash);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 8px 20px -6px rgba(38,71,224,.5);
}
.fb-logo .bolt svg{ width:19px; height:19px; }
.fb-logo span.dim{ color:var(--orange); font-weight:900; }

.fb-links{ display:flex; align-items:center; gap:34px; list-style:none; margin:0; padding:0; }
.fb-links a{
  font-size:.94rem; color:var(--text-muted); font-weight:600;
  position:relative; padding:4px 0; transition:color .2s ease;
}
.fb-links a::after{
  content:""; position:absolute; left:0; bottom:-4px; width:0; height:3px; border-radius:3px;
  background:var(--grad-warm); transition:width .25s ease;
}
.fb-links a:hover{ color:var(--text); }
.fb-links a:hover::after{ width:100%; }

.fb-nav-actions{ display:flex; align-items:center; gap:14px; }
.fb-burger{ display:none; background:#fff; border:2px solid var(--panel-line-2); border-radius:9px; width:44px; height:44px; color:var(--text); align-items:center; justify-content:center; }

.fb-mobile-menu{ background:#fff; border-bottom:1px solid var(--panel-line); }
.fb-mobile-menu a{ color:var(--text); font-weight:600; }

/* =====================================================================
   Hero + Editor de código (elemento distintivo)
   ===================================================================== */
.hero{ position:relative; padding:172px 0 104px; overflow:hidden; background:var(--bg-cream); }
.hero::after{
  content:""; position:absolute; top:-220px; right:-180px; width:680px; height:680px;
  background:radial-gradient(circle, rgba(255,106,53,.14), transparent 65%);
  filter:blur(10px); pointer-events:none;
}
.hero::before{
  content:""; position:absolute; bottom:-260px; left:-180px; width:560px; height:560px;
  background:radial-gradient(circle, rgba(38,71,224,.10), transparent 65%);
  filter:blur(10px); pointer-events:none;
}
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:64px; align-items:center; }

.hero h1{
  font-size:clamp(2.4rem, 4.6vw, 3.9rem);
  line-height:1.08;
  margin:22px 0 20px;
}
.hero h1 .accent{
  background:var(--grad-flash);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero h1 .accent2{
  background:var(--grad-warm);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub{ font-size:1.12rem; color:var(--text-muted); max-width:540px; margin-bottom:34px; }
.hero-cta{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:44px; }

.hero-meta{ display:flex; gap:34px; flex-wrap:wrap; }
.hero-meta strong{ display:block; font-size:1.4rem; color:var(--blue); font-weight:900; }
.hero-meta span{ font-size:.8rem; color:var(--text-dim); font-weight:500; }

/* Editor de código (tarjeta clara tipo IDE) */
.editor{
  background:#ffffff;
  border:1px solid var(--panel-line);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-card);
  overflow:hidden;
  position:relative;
}
.editor-bar{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; background:#f6f3ea; border-bottom:1px solid var(--panel-line);
}
.editor-dots{ display:flex; gap:7px; }
.editor-dots span{ width:11px; height:11px; border-radius:50%; display:inline-block; }
.editor-dots span:nth-child(1){ background:#ff6a58; }
.editor-dots span:nth-child(2){ background:#ffb648; }
.editor-dots span:nth-child(3){ background:#39c675; }
.editor-title{ font-family:var(--font-mono); font-size:.78rem; color:var(--text-dim); }
.editor-body{
  font-family:var(--font-mono); font-size:.86rem; line-height:1.9;
  padding:24px 26px; min-height:340px;
  color:#374063;
  white-space:pre-wrap;
}
.editor-body .l-key{ color:var(--blue); font-weight:700; }
.editor-body .l-str{ color:var(--orange-dark); }
.editor-body .l-com{ color:var(--text-dim); font-style:italic; }
.editor-body .l-ok{ color:var(--green); font-weight:700; }
.editor-cursor{ display:inline-block; width:8px; height:16px; background:var(--blue); vertical-align:middle; animation:blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity:0; } }

/* =====================================================================
   Franja de confianza
   ===================================================================== */
.trust-strip{ border-top:1px solid var(--panel-line); border-bottom:1px solid var(--panel-line); padding:28px 0; background:#fff; }
.trust-strip .container-xl{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.trust-item{ display:flex; align-items:center; gap:10px; font-size:.9rem; font-weight:600; color:var(--text-muted); }
.trust-item svg{ width:18px; height:18px; color:var(--blue); flex-shrink:0; }

/* =====================================================================
   Secciones genéricas
   ===================================================================== */
.section{ padding:120px 0; position:relative; }
.section-head{ max-width:640px; margin-bottom:64px; }
.section-head h2{ font-size:clamp(1.9rem, 3.2vw, 2.7rem); margin:14px 0 16px; }
.section-head p{ color:var(--text-muted); font-size:1.08rem; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* Servicios */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.service-card{
  background:#fff; border:1px solid var(--panel-line); border-radius:var(--radius-md);
  padding:32px 28px; transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  box-shadow:var(--shadow-soft);
}
.service-card:hover{ transform:translateY(-6px); border-color:rgba(38,71,224,.3); box-shadow:var(--shadow-card); }
.service-icon{
  width:52px; height:52px; border-radius:14px; margin-bottom:20px;
  display:flex; align-items:center; justify-content:center;
  background:var(--blue-soft); color:var(--blue);
}
.service-icon svg{ width:24px; height:24px; }
.service-card.warm .service-icon{ background:var(--orange-soft); color:var(--orange-dark); }
.service-card h3{ font-size:1.18rem; margin-bottom:10px; }
.service-card p{ color:var(--text-muted); font-size:.95rem; }

/* Marketing digital (bloque destacado tipo promo) */
.marketing-panel{
  background:var(--grad-flash); border-radius:var(--radius-lg);
  padding:56px; color:#fff; position:relative; overflow:hidden;
}
.marketing-panel::after{
  content:""; position:absolute; top:-140px; right:-100px; width:400px; height:400px;
  background:radial-gradient(circle, rgba(255,255,255,.16), transparent 65%);
}
.marketing-head{ max-width:600px; margin-bottom:44px; position:relative; z-index:1; }
.marketing-head .section-tag{ color:#ffd7c2; }
.marketing-head h2{ color:#fff; }
.marketing-head p{ color:rgba(255,255,255,.85); }
.marketing-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; position:relative; z-index:1; }
.marketing-card{
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.22); border-radius:var(--radius-md);
  padding:26px 22px; backdrop-filter:blur(6px);
  transition:transform .3s ease, background .3s ease;
}
.marketing-card:hover{ transform:translateY(-6px); background:rgba(255,255,255,.16); }
.marketing-card .service-icon{ background:rgba(255,255,255,.18); color:#fff; }
.marketing-card h3{ color:#fff; font-size:1.05rem; margin-bottom:8px; }
.marketing-card p{ color:rgba(255,255,255,.82); font-size:.88rem; }

/* Planes */
.plans-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:stretch; }
.plan-card{
  position:relative;
  background:#fff; border:1px solid var(--panel-line); border-radius:var(--radius-md);
  padding:0; display:flex; flex-direction:column; overflow:hidden;
  transition:transform .3s ease, box-shadow .3s ease;
  box-shadow:var(--shadow-soft);
}
.plan-card:hover{ transform:translateY(-8px); box-shadow:var(--shadow-card); }
.plan-card.featured{ border-color:rgba(38,71,224,.35); box-shadow:0 26px 60px -22px rgba(38,71,224,.35); }
.plan-ribbon{
  position:absolute; top:20px; right:20px; font-size:.7rem; font-weight:800; letter-spacing:.04em;
  text-transform:uppercase; color:#fff; background:var(--grad-warm); padding:6px 14px; border-radius:99px;
}
.plan-rack{ height:7px; width:100%; background:var(--grad-flash); }
.plan-card:not(.featured) .plan-rack{ background:var(--bg-cream-2); }
.plan-body{ padding:36px 32px 32px; display:flex; flex-direction:column; flex:1; }
.plan-name{ font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-dim); font-weight:700; }
.plan-card.featured .plan-name{ color:var(--blue); }
.plan-body h3{ font-size:1.55rem; margin:8px 0 6px; }
.plan-tagline{ color:var(--text-muted); font-size:.9rem; margin-bottom:24px; }
.plan-price{ display:flex; align-items:baseline; gap:6px; margin-bottom:28px; }
.plan-price .amount{ font-family:var(--font-display); font-size:2.7rem; font-weight:900; color:var(--text); }
.plan-price .period{ color:var(--text-dim); font-size:.92rem; }
.plan-features{ list-style:none; margin:0 0 30px; padding:0; display:flex; flex-direction:column; gap:13px; }
.plan-features li{ display:flex; align-items:flex-start; gap:10px; font-size:.92rem; color:var(--text-muted); }
.plan-features svg{ width:18px; height:18px; color:var(--green); flex-shrink:0; margin-top:1px; }
.plan-body .btn-flash, .plan-body .btn-ghost{ margin-top:auto; width:100%; }
.plan-card:not(.featured) .plan-body .btn-flash{ background:var(--text); box-shadow:none; }
.plan-card:not(.featured) .plan-body .btn-flash:hover{ background:var(--blue); }

/* Proceso */
.process-strip{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.process-step{ position:relative; padding:30px 26px; border:1px solid var(--panel-line); border-radius:var(--radius-md); background:#fff; box-shadow:var(--shadow-soft); }
.process-step .num{ font-family:var(--font-display); font-weight:900; font-size:1.5rem; color:var(--orange); margin-bottom:14px; display:block; }
.process-step h4{ font-size:1.08rem; margin-bottom:8px; }
.process-step p{ font-size:.9rem; color:var(--text-muted); }

/* Infraestructura */
.specs-panel{
  background:#fff; border:1px solid var(--panel-line); border-radius:var(--radius-lg);
  padding:52px; display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center;
  box-shadow:var(--shadow-soft);
}
.specs-list{ list-style:none; margin:24px 0 0; padding:0; display:grid; grid-template-columns:1fr 1fr; gap:20px 28px; }
.specs-list li{ font-size:.92rem; color:var(--text-muted); border-bottom:1px dashed var(--panel-line); padding-bottom:14px; }
.specs-list li strong{ display:block; color:var(--text); font-weight:700; font-size:.98rem; margin-bottom:3px; }
.specs-visual{
  aspect-ratio:1/1; border-radius:var(--radius-md); border:1px solid var(--panel-line);
  background:linear-gradient(160deg, var(--blue-soft), var(--orange-soft));
  position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.specs-visual .glow-bar{
  position:absolute; left:8%; right:8%; height:38px; border-radius:8px;
  background:rgba(255,255,255,.55); border:1px solid rgba(38,71,224,.18);
  box-shadow:var(--shadow-soft);
}
.specs-visual .led{ width:9px; height:9px; border-radius:50%; background:var(--green); box-shadow:0 0 10px var(--green); position:absolute; }

/* Testimonios */
.testi-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.testi-card{ background:var(--bg-cream); border:1px solid var(--panel-line); border-radius:var(--radius-md); padding:30px 26px; }
.testi-stars{ color:var(--orange); font-size:1rem; margin-bottom:14px; letter-spacing:2px; }
.testi-card p.quote{ color:var(--text); font-size:.96rem; margin-bottom:20px; }
.testi-person{ display:flex; align-items:center; gap:12px; }
.testi-avatar{ width:42px; height:42px; border-radius:50%; background:var(--grad-flash); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:.9rem; }
.testi-person strong{ display:block; font-size:.9rem; }
.testi-person span{ font-size:.8rem; color:var(--text-dim); }

/* Contacto */
.contact-panel{
  background:var(--bg-cream); border:1px solid var(--panel-line); border-radius:var(--radius-lg);
  padding:58px; display:grid; grid-template-columns:.9fr 1.1fr; gap:56px;
}
.contact-info h3{ font-size:1.65rem; margin-bottom:14px; }
.contact-info p{ color:var(--text-muted); margin-bottom:28px; }
.contact-line{ display:flex; align-items:center; gap:12px; font-size:.94rem; color:var(--text-muted); margin-bottom:18px; font-weight:500; }
.contact-line svg{ width:20px; height:20px; color:var(--blue); flex-shrink:0; }

.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.form-field label{ display:block; font-size:.82rem; color:var(--text-muted); margin-bottom:8px; font-weight:700; }
.form-field input, .form-field select, .form-field textarea{
  width:100%; background:#fff; border:1.5px solid var(--panel-line-2); border-radius:var(--radius-sm);
  padding:13px 15px; color:var(--text); font-family:var(--font-body); font-size:.95rem;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{
  outline:none; border-color:var(--blue); box-shadow:0 0 0 4px rgba(38,71,224,.12);
}
.form-field textarea{ resize:vertical; min-height:110px; }
#form-status{ margin-top:16px; font-size:.9rem; font-weight:600; }
#form-status.ok{ color:var(--green); }
#form-status.err{ color:#e0433c; }

/* Footer */
.fb-footer{ border-top:1px solid var(--panel-line); padding:64px 0 30px; background:var(--bg-cream); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.footer-grid h5{ font-size:.84rem; text-transform:uppercase; letter-spacing:.05em; color:var(--text-dim); margin-bottom:18px; font-weight:800; }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.footer-grid ul a{ color:var(--text-muted); font-size:.93rem; font-weight:500; transition:color .2s ease; }
.footer-grid ul a:hover{ color:var(--blue); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid var(--panel-line); flex-wrap:wrap; gap:12px; }
.footer-bottom p{ color:var(--text-dim); font-size:.86rem; }

/* Reveal on scroll */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width:991px){
  .fb-links, .fb-nav-actions .btn-ghost{ display:none; }
  .fb-burger{ display:flex; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero{ padding-top:130px; }
  .services-grid, .plans-grid, .testi-grid{ grid-template-columns:1fr 1fr; }
  .marketing-grid{ grid-template-columns:1fr 1fr; }
  .process-strip{ grid-template-columns:1fr 1fr; }
  .specs-panel{ grid-template-columns:1fr; padding:34px; }
  .contact-panel{ grid-template-columns:1fr; padding:34px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .marketing-panel{ padding:38px; }
}
@media (max-width:640px){
  .services-grid, .plans-grid, .process-strip, .footer-grid, .testi-grid, .marketing-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .hero-meta{ gap:24px; }
  .editor-body{ font-size:.76rem; padding:18px; min-height:280px; }
  .section{ padding:80px 0; }
  .hero{ padding:120px 0 60px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
