@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;1,9..144,400&family=Manrope:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #3b82f6; --brand-2: #8b5cf6;
  --ink: #0f0f14; --body: #1a1a24; --surface: #22222e;
  --border: #2e2e40; --text: #e8e8f4; --muted: #7878a0;
  --radius: 8px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Manrope', sans-serif; background: var(--ink); color: var(--text); font-weight: 300; line-height: 1.6; }

/* ─── Topbar ─────────────────────────────────────────────────────────────── */
.topbar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 1.1rem 3rem; display: flex; justify-content: space-between; align-items: center; transition: all .3s; }
.topbar.scrolled { background: rgba(15,15,20,.94); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.logo { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 300; color: var(--text); text-decoration: none; }
.logo span { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.topbar-links { display: flex; gap: 2rem; list-style: none; }
.topbar-links a { color: var(--muted); text-decoration: none; font-size: .85rem; letter-spacing: .06em; transition: color .2s; }
.topbar-links a:hover { color: var(--text); }
.btn-cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: .6rem 1.5rem; border-radius: 50px; font-size: .82rem; text-decoration: none; font-weight: 600; transition: opacity .2s; white-space: nowrap; }
.btn-cta:hover { opacity: .85; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8rem 2rem 5rem; position: relative; overflow: hidden; }
.hero-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 500px; background: radial-gradient(ellipse, rgba(59,130,246,.18) 0%, rgba(139,92,246,.12) 40%, transparent 70%); pointer-events: none; }
.hero-badge { display: inline-flex; align-items: center; gap: .5rem; background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.25); color: var(--brand); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .4rem 1rem; border-radius: 50px; margin-bottom: 2rem; font-weight: 600; }
.hero-badge-dot { width: 6px; height: 6px; background: var(--brand); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-title { font-family: 'Fraunces', serif; font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 300; line-height: 1.08; margin-bottom: 1.5rem; }
.hero-title em { font-style: italic; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin: 0 auto 3rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 5rem; }
.btn-primary { display: inline-block; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: .95rem 2.5rem; border-radius: 50px; font-size: .9rem; text-decoration: none; font-weight: 600; transition: all .2s; box-shadow: 0 4px 24px rgba(59,130,246,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(59,130,246,.4); }
.btn-secondary { display: inline-block; border: 1px solid var(--border); color: var(--text); padding: .9rem 2.5rem; border-radius: 50px; font-size: .9rem; text-decoration: none; font-weight: 400; transition: all .2s; }
.btn-secondary:hover { border-color: var(--muted); }

/* Scroll indicator */
.scroll-hint { display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.scroll-arrow { animation: bounce 2s infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ─── Demos ──────────────────────────────────────────────────────────────── */
.demos { padding: 6rem 2rem; max-width: 1280px; margin: 0 auto; }
.section-label { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; font-weight: 600; }
.section-title { font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 300; margin-bottom: 1rem; }
.section-sub { color: var(--muted); font-size: .95rem; max-width: 540px; }
.demos-header { margin-bottom: 4rem; }

/* Demo cards */
.demo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.5rem; }
.demo-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: all .3s; display: flex; flex-direction: column; }
.demo-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.3); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.demo-preview { position: relative; overflow: hidden; }
.demo-preview iframe { width: 100%; height: 340px; border: none; pointer-events: none; transform-origin: top left; }
.demo-preview-overlay { position: absolute; inset: 0; cursor: pointer; }
.demo-badge { position: absolute; top: 1rem; left: 1rem; background: rgba(0,0,0,.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 50px; font-weight: 600; }
.demo-info { padding: 1.5rem; }
.demo-name { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: .35rem; }
.demo-desc { font-size: .82rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.25rem; }
.demo-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.demo-tag { font-size: .7rem; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--muted); padding: .25rem .65rem; border-radius: 20px; }
.demo-actions { display: flex; gap: .75rem; }
.demo-btn-visit { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.25rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; text-decoration: none; border-radius: 50px; font-size: .8rem; font-weight: 600; transition: opacity .2s; }
.demo-btn-visit:hover { opacity: .85; }
.demo-btn-panel { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem 1.25rem; border: 1px solid var(--border); color: var(--muted); text-decoration: none; border-radius: 50px; font-size: .8rem; transition: all .2s; }
.demo-btn-panel:hover { border-color: var(--muted); color: var(--text); }

/* ─── Features ───────────────────────────────────────────────────────────── */
.features { background: var(--body); padding: 6rem 2rem; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-header { text-align: center; margin-bottom: 4rem; }
.features-header .section-sub { margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: border-color .2s; }
.feature:hover { border-color: rgba(59,130,246,.3); }
.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-title { font-weight: 600; font-size: 1rem; margin-bottom: .5rem; }
.feature-desc { font-size: .85rem; color: var(--muted); line-height: 1.7; }

/* ─── Proceso ────────────────────────────────────────────────────────────── */
.process { padding: 6rem 2rem; max-width: 900px; margin: 0 auto; }
.process-steps { display: grid; gap: 2rem; margin-top: 3rem; counter-reset: steps; }
.step { display: flex; gap: 2rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 48px; height: 48px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; }
.step-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
.step-body p { font-size: .88rem; color: var(--muted); line-height: 1.7; }

/* ─── CTA Final ──────────────────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(139,92,246,.08)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6rem 2rem; text-align: center; }
.cta-section .section-title { max-width: 700px; margin: 0 auto 1.5rem; }
.cta-section .section-sub { margin: 0 auto 3rem; }
.cta-email { display: inline-flex; align-items: center; gap: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 50px; padding: .5rem .5rem .5rem 1.5rem; font-size: .9rem; }
.cta-email input { background: none; border: none; color: var(--text); font-family: inherit; font-size: .9rem; width: 220px; outline: none; }
.cta-email input::placeholder { color: var(--muted); }
.cta-email button { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border: none; padding: .7rem 1.75rem; border-radius: 50px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: opacity .2s; white-space: nowrap; }
.cta-email button:hover { opacity: .85; }
.cta-note { font-size: .75rem; color: var(--muted); margin-top: 1rem; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer { background: var(--body); border-top: 1px solid var(--border); padding: 3rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 300; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .82rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--muted); font-size: .75rem; }

/* ─── Reveal ─────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── Mobile ─────────────────────────────────────────────────────────────── */
@media(max-width: 768px) {
  .topbar { padding: 1rem 1.25rem; }
  .topbar-links { display: none; }
  .demo-cards { grid-template-columns: 1fr; }
  .step { gap: 1rem; }
  .cta-email { flex-direction: column; border-radius: 12px; padding: 1rem; width: 100%; max-width: 360px; }
  .cta-email input { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ─── Demo thumbs (lazy load de iframes) ────────────────────────────────── */
.demo-thumb {
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  transition: opacity .3s;
}
.demo-thumb-brasae  { background: linear-gradient(135deg, #0d0c0b 0%, #2a2014 60%, #1c1510 100%); }
.demo-thumb-sakura  { background: linear-gradient(135deg, #fdf0f3 0%, #f4d0dc 50%, #e8b0c4 100%); }
.demo-thumb-trattoria { background: linear-gradient(135deg, #f9f5ee 0%, #ede0cc 50%, #e0c8a8 100%); }

.demo-thumb-inner { text-align: center; }
.demo-thumb-icon  { font-size: 3rem; display: block; margin-bottom: .75rem; }
.demo-thumb-name  { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 300; margin-bottom: .25rem; }
.demo-thumb-brasae .demo-thumb-name,
.demo-thumb-brasae .demo-thumb-sub { color: #f0ede8; }
.demo-thumb-sakura .demo-thumb-name { color: #1a1a1e; }
.demo-thumb-sakura .demo-thumb-sub  { color: #8a6070; }
.demo-thumb-trattoria .demo-thumb-name { color: #2a2018; }
.demo-thumb-trattoria .demo-thumb-sub  { color: #7a6850; }
.demo-thumb-sub { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }

.demo-load-btn {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .05em;
}
.demo-thumb-sakura .demo-load-btn,
.demo-thumb-trattoria .demo-load-btn {
  background: rgba(0,0,0,.1);
  border-color: rgba(0,0,0,.15);
  color: #2a2018;
}
.demo-load-btn:hover { transform: scale(1.05); background: rgba(255,255,255,.25); }
.demo-thumb-sakura .demo-load-btn:hover,
.demo-thumb-trattoria .demo-load-btn:hover { background: rgba(0,0,0,.18); }

/* iframe cargado */
.demo-preview iframe {
  width: 100%;
  height: 340px;
  border: none;
  pointer-events: none;
}
.demo-preview .demo-preview-link {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

/* ─── Demo desactivada (próximamente) ───────────────────────────────────── */
.demo-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 100%;
}
.demo-x {
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,.15);
}
.demo-thumb-sakura .demo-x,
.demo-thumb-trattoria .demo-x { color: rgba(0,0,0,.12); }

.demo-coming-label {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.25);
}
.demo-thumb-sakura .demo-coming-label,
.demo-thumb-trattoria .demo-coming-label { color: rgba(0,0,0,.2); }

/* Botones deshabilitados */
.demo-btn-disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Equipo ──────────────────────────────────────────────────────────────── */
.team-section { background: var(--body); padding: 7rem 2rem; }
.team-inner   { max-width: 1100px; margin: 0 auto; }
.team-header  { text-align: center; margin-bottom: 4rem; }
.team-header .section-sub { margin: 0 auto; }

.team-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all .3s;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.team-card-featured {
  border-color: rgba(139,92,246,.3);
  background: linear-gradient(160deg, rgba(139,92,246,.06) 0%, var(--surface) 60%);
  transform: translateY(-8px);
}
.team-card-featured:hover { transform: translateY(-12px); }

/* Avatar */
.team-avatar {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.team-avatar svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}
.team-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, var(--ring-a), var(--ring-b)) border-box;
}
.team-ring-blue   { --ring-a: #3b82f6; --ring-b: #06b6d4; }
.team-ring-purple { --ring-a: #8b5cf6; --ring-b: #d4607a; }
.team-ring-green  { --ring-a: #4a6e2a; --ring-b: #7aaa4a; }

/* Info */
.team-name {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .25rem;
  color: var(--text);
}
.team-role {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 1rem;
}
.team-card-featured .team-role { color: #a78bfa; }

.team-bio {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
}
.team-skill {
  font-size: .68rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: .2rem .6rem;
  border-radius: 20px;
  letter-spacing: .04em;
}

@media(max-width: 860px) {
  .team-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .team-card-featured { transform: none; }
  .team-card-featured:hover { transform: translateY(-4px); }
}
