/* ===================================================================
   Lypar — hoja de estilo
   Mobile-first. Identidad: violeta · magenta · tinta oscura.
   =================================================================== */

:root {
  --ink:        #0e0b1a;
  --ink-2:      #15112b;
  --violet:     #7c3aed;
  --violet-2:   #a855f7;
  --pink:       #ff5d8f;
  --grad:       linear-gradient(120deg, #7c3aed 0%, #b14dff 45%, #ff5d8f 100%);

  --bg:         #ffffff;
  --bg-soft:    #f6f4fb;
  --text:       #1b1830;
  --muted:      #6b6780;
  --line:       rgba(20, 16, 40, 0.10);
  --white:      #ffffff;

  --head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius:     18px;
  --radius-lg:  26px;
  --shadow:     0 24px 60px -28px rgba(85, 40, 160, 0.45);
  --shadow-sm:  0 12px 30px -20px rgba(20, 16, 40, 0.40);
  --maxw:       1140px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--solid { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(124, 58, 237, .6); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(124, 58, 237, .7); }
.btn--solid:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -24px rgba(20,16,40,.6); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 32px; height: 32px; }
.brand__name { font-family: var(--head); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a {
  padding: 8px 14px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 100px;
  transition: color .2s ease, background .2s ease;
}
.nav > a:hover { color: var(--violet); }
.nav__cta { background: var(--grad); color: #fff !important; font-weight: 600; box-shadow: 0 10px 24px -12px rgba(124,58,237,.6); }
.nav__cta:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Right cluster + language switch ---------- */
.header__right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255, 255, 255, 0.6);
}
.lang-switch button {
  border: none; background: none; cursor: pointer;
  font-family: var(--body); font-size: .78rem; font-weight: 600;
  color: var(--muted); padding: 5px 9px; border-radius: 100px;
  transition: background .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lang-switch button:hover { color: var(--violet); }
.lang-switch button.is-active { background: var(--grad); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 50% -10%, #1c1640 0%, var(--ink) 60%);
  color: #fff;
  padding: 130px 20px 80px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 700px; height: 700px;
  max-width: 130vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(177, 77, 255, .45) 0%, rgba(255, 93, 143, .25) 35%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #d9ccff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.2rem, 8vw, 4rem); font-weight: 700; margin-bottom: 20px; }
.hero__sub { font-size: clamp(1.02rem, 3.6vw, 1.25rem); color: #c8c2dd; max-width: 620px; margin: 0 auto 32px; }

.hero__actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.hero__actions .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }

.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 48px;
  text-align: center;
}
.hero__stats li {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 18px;
}
.hero__stats strong { display: block; font-family: var(--head); font-size: 1.15rem; font-weight: 600; }
.hero__stats span { font-size: .9rem; color: #b3acc9; }

/* ---------- Secciones ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 80px 20px; }
.section--alt { max-width: none; background: var(--bg-soft); }
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.overline {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 12px;
}
.section__head h2 { font-size: clamp(1.7rem, 5.5vw, 2.6rem); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(124,58,237,.25); }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(255,93,143,.14));
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: 1fr; gap: 18px; }
.value {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.value__num { font-family: var(--head); font-weight: 700; font-size: 1.4rem; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.value h3 { font-size: 1.18rem; margin: 10px 0 6px; }
.value p { color: var(--muted); }

/* ---------- Pasos ---------- */
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 18px; counter-reset: step; }
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 26px 78px;
  box-shadow: var(--shadow-sm);
}
.step__n {
  position: absolute; left: 22px; top: 26px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff; font-family: var(--head); font-weight: 700;
}
.step h3 { font-size: 1.18rem; margin-bottom: 6px; }
.step p { color: var(--muted); }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.plan {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border: none;
  background: radial-gradient(120% 120% at 50% 0%, #1c1640 0%, var(--ink) 70%);
  color: #fff;
  box-shadow: var(--shadow);
}
.plan--featured .plan__for, .plan--featured .plan__list li { color: #c8c2dd; }
.plan--featured .plan__list li::before { color: var(--pink); }
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 100px; white-space: nowrap;
}
.plan__name { font-size: 1.3rem; margin-bottom: 6px; }
.plan__price { font-family: var(--head); font-size: 2rem; font-weight: 700; margin-bottom: 4px; }
.plan__price span { font-family: var(--body); font-size: .85rem; font-weight: 500; color: var(--muted); margin-right: 4px; }
.plan--featured .plan__price span { color: #b3acc9; }
.plan__price small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.plan--featured .plan__price small { color: #b3acc9; }
.plan__for { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.plan__list { list-style: none; margin-bottom: 24px; display: grid; gap: 10px; }
.plan__list li { position: relative; padding-left: 26px; color: var(--text); font-size: .95rem; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 700; }
.plan__cta { width: 100%; }
.plan--featured .plan__cta.btn--solid { background: #fff; color: var(--ink); }
.plans__note { text-align: center; color: var(--muted); margin-top: 24px; font-size: .95rem; }

/* ---------- Trabajo ---------- */
.work { display: grid; grid-template-columns: 1fr; gap: 18px; }
.work__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.work__card--soon { background: var(--bg-soft); border-style: dashed; }
.work__tag { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--violet); margin-bottom: 10px; }
.work__card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.work__card p { color: var(--muted); margin-bottom: 14px; }
.work__link { font-weight: 600; color: var(--violet); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.about__text h2 { margin: 12px 0 16px; }
.about__text p { color: var(--muted); margin-bottom: 14px; }
.about__sign { font-family: var(--head); font-weight: 600; color: var(--text); margin: 4px 0 18px; }
.about__text .btn { margin-top: 8px; }
.about__media { display: grid; place-items: center; }
.about__badge {
  display: grid; place-items: center; gap: 14px;
  width: 100%; max-width: 320px; aspect-ratio: 1;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 50% 0%, #1c1640 0%, var(--ink) 70%);
  color: #fff;
}
.about__badge img { width: 96px; height: 96px; }
.about__badge span { font-family: var(--head); font-weight: 700; font-size: 1.6rem; }

/* ---------- Contacto ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 26px; max-width: 920px; margin: 0 auto; }
.contact__form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--body); font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  color: var(--text);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); background: #fff; }
.field textarea { resize: vertical; }
.contact__hint { margin-top: 12px; font-size: .9rem; color: var(--violet); min-height: 1.2em; }

.contact__direct { display: grid; gap: 12px; align-content: start; }
.contact__or { color: var(--muted); font-size: .95rem; }
.contact__card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease;
}
.contact__card:hover { transform: translateY(-3px); border-color: rgba(124,58,237,.3); }
.contact__ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, rgba(124,58,237,.14), rgba(255,93,143,.14)); }
.contact__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--violet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__card strong { display: block; font-size: 1rem; }
.contact__card small { color: var(--muted); font-size: .85rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #fff; text-align: center; padding: 50px 20px 40px; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer__brand img { width: 30px; height: 30px; }
.footer__brand span { font-family: var(--head); font-weight: 700; font-size: 1.3rem; }
.footer__tag { color: #b3acc9; max-width: 420px; margin: 0 auto 20px; font-size: .95rem; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 22px; }
.footer__nav a { color: #d9ccff; font-size: .95rem; }
.footer__nav a:hover { color: #fff; }
.footer__copy { color: #837d9a; font-size: .85rem; }

/* ---------- Aparición progresiva ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===================================================================
   Tablet / escritorio
   =================================================================== */
@media (min-width: 700px) {
  .hero__actions { flex-direction: row; justify-content: center; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .work { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1.1fr .9fr; }
  .contact__grid { grid-template-columns: 1.3fr .7fr; }
}

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 96px 24px; }
  .hero { padding: 160px 24px 100px; }
}

/* ---------- Menú móvil ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 90px 20px 30px;
    background: var(--white);
    box-shadow: -20px 0 60px -30px rgba(20,16,40,.5);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav > a:hover { background: var(--bg-soft); }
  .nav__cta { text-align: center; margin-top: 8px; }
}
