:root {
  --bg: #070708;
  --bg-elev: #101114;
  --surface: #16171c;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.14);
  --text: #f3f1ec;
  --muted: #9a958c;
  --accent: #c9a24a;
  --accent-dim: rgba(201,162,74,0.14);
  --gold: #d4af6a;
  --metal: #a8aeb8;
  --ok: #3d9a78;
  --err: #c47a72;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Syne", "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 2.4rem)); margin-inline: auto; }

/* —— Ambient motion background —— */
.fx-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
  overflow: hidden;
}
.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orb-float 18s var(--ease) infinite alternate;
}
.fx-orb.a {
  width: 42vw; height: 42vw; max-width: 520px; max-height: 520px;
  top: -10%; right: -8%;
  background: radial-gradient(circle, rgba(201,162,74,0.35) 0%, transparent 70%);
}
.fx-orb.b {
  width: 36vw; height: 36vw; max-width: 420px; max-height: 420px;
  bottom: 10%; left: -12%;
  background: radial-gradient(circle, rgba(80,90,110,0.45) 0%, transparent 70%);
  animation-delay: -6s;
  animation-duration: 22s;
}
.fx-orb.c {
  width: 28vw; height: 28vw; max-width: 320px; max-height: 320px;
  top: 40%; left: 40%;
  background: radial-gradient(circle, rgba(212,175,106,0.22) 0%, transparent 70%);
  animation-delay: -12s;
  animation-duration: 26s;
}
@keyframes orb-float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-4%, 6%) scale(1.12); }
}
.fx-grain {
  position: absolute; inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Nav —— */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem 0;
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,9,13,0.72);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo-link {
  display: inline-flex; align-items: center; line-height: 0;
  overflow: visible;
}
.logo-nav {
  height: 44px; width: 44px; object-fit: contain; display: block;
  border-radius: 0;
  background: transparent;
}
.logo-hero {
  width: min(380px, 78vw); height: auto; display: block;
  margin: 0 0 1.35rem;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 18px 50px rgba(0,0,0,0.55));
  animation: fade-up 0.9s var(--ease) 0.05s both;
}
.hero-brand { margin-bottom: 0.25rem; }
.nav-links {
  display: flex; align-items: center; gap: 1.6rem; font-size: 0.88rem; color: var(--muted);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--text); color: var(--bg); padding: 0.55rem 1rem;
  border-radius: 999px; font-weight: 600; font-size: 0.8rem;
  transition: transform .2s var(--ease), background .2s;
}
.nav-cta:hover { transform: translateY(-1px); background: #fff; }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* —— Hero —— */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 7.5rem 0 4rem;
  position: relative;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1.25rem;
}
.hero-kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(45,212,191,0.5);
  animation: pulse-dot 2.2s ease infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(201,162,74,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(201,162,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,74,0); }
}
.hero h1 {
  margin: 0 0 1.1rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
}
.hero h1 .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise-in 1s var(--ease) forwards;
}
.hero h1 .line:nth-child(2) span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) span { animation-delay: 0.22s; }
.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, #fff 15%, var(--gold) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@keyframes rise-in {
  to { transform: translateY(0); }
}
.hero-lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.35s forwards;
}
.cta-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 0.48s forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.95rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-main {
  background: var(--accent); color: #1a1408;
  box-shadow: 0 0 0 0 rgba(201,162,74,0.35);
}
.btn-main:hover {
  background: #e0bc66;
  box-shadow: 0 12px 40px rgba(201,162,74,0.28);
}
.btn-ghost {
  background: transparent; border-color: var(--line-2); color: var(--text);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }

.hero-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin-top: 3.5rem; border: 1px solid var(--line); background: var(--line);
  opacity: 0; animation: fade-up 0.9s var(--ease) 0.6s forwards;
}
.metric {
  background: rgba(13,19,26,0.85); padding: 1.2rem 1.1rem;
}
.metric strong {
  display: block; font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.7rem; font-weight: 400; color: var(--gold); line-height: 1;
  margin-bottom: 0.35rem;
}
.metric span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 640px) {
  .hero-metrics { grid-template-columns: 1fr; }
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

section { padding: 5rem 0; position: relative; }
.sec-head { max-width: 40rem; margin-bottom: 2.5rem; }
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 0.7rem;
}
.sec-head h2 {
  margin: 0 0 0.75rem;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  letter-spacing: -0.02em; line-height: 1.08;
}
.sec-head p { margin: 0; color: var(--muted); font-size: 1.02rem; }

/* —— Soft grid —— */
.soft-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (max-width: 800px) { .soft-grid { grid-template-columns: 1fr; } }
.soft-item {
  background: var(--bg-elev); padding: 1.7rem 1.45rem;
  transition: background .3s, transform .3s var(--ease);
}
.soft-item:hover {
  background: var(--surface);
  transform: translateY(-3px);
}
.soft-num {
  font-family: "Instrument Serif", Georgia, serif;
  color: var(--gold); font-size: 1.4rem; display: block; margin-bottom: 0.8rem;
}
.soft-item h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 600; }
.soft-item p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* —— Cliente marquee —— */
.clientes-band {
  padding: 4.5rem 0 5rem;
  border-block: 1px solid var(--line);
  background: rgba(13,19,26,0.55);
}
.marquee {
  margin-top: 0.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 1rem; width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.cliente-card {
  width: min(360px, 82vw); flex: 0 0 auto;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18,26,36,0.95), rgba(10,14,20,0.95));
  padding: 1.45rem 1.35rem 1.5rem;
  display: grid; gap: 1rem;
  transition: border-color .25s, transform .35s var(--ease);
}
.cliente-card:hover {
  border-color: rgba(45,212,191,0.35);
  transform: translateY(-4px);
}
.cliente-top { display: flex; gap: 0.9rem; align-items: center; }
.avatar {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0f766e, #1e3a5f);
  font-weight: 700; letter-spacing: 0.04em; font-size: 0.85rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.cliente-top h3 { margin: 0; font-size: 1.02rem; }
.cliente-top p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.cita {
  margin: 0; color: #c9d4e0; font-size: 1.05rem; line-height: 1.35;
  font-family: "Instrument Serif", Georgia, serif; font-style: italic;
}

/* —— Equipos —— */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.equip-card {
  grid-column: span 4;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
.equip-card:hover {
  border-color: rgba(45,212,191,0.4);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.equip-card.feat { grid-column: span 8; }
@media (max-width: 900px) {
  .equip-card, .equip-card.feat { grid-column: span 12; }
}
.equip-visual {
  height: 160px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(45,212,191,0.2), transparent 55%),
    linear-gradient(145deg, #182230, #0b1016);
  border-bottom: 1px solid var(--line);
}
.equip-card.feat .equip-visual { height: 210px; }
.equip-visual .shine {
  position: absolute; inset: -40% -20%;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  animation: shine 5.5s ease-in-out infinite;
}
@keyframes shine {
  0%, 100% { transform: translateX(-30%); }
  50% { transform: translateX(30%); }
}
.device-mock {
  position: absolute; left: 14%; right: 14%; bottom: 16%; height: 58%;
  border-radius: 12px 12px 6px 6px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, #2a3a4c, #121820);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.device-mock::before {
  content: ""; position: absolute; inset: 10% 10% 20%;
  background: linear-gradient(180deg, rgba(45,212,191,0.25), #0a0f14);
  border: 1px solid rgba(255,255,255,0.06);
}
.equip-body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.tag {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.equip-body h3 { margin: 0; font-size: 1.12rem; font-weight: 600; }
.equip-body p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }
.equip-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-top: 0.55rem; padding-top: 0.75rem; border-top: 1px solid var(--line);
}
.precio { font-family: "Instrument Serif", Georgia, serif; font-size: 1.4rem; }
.precio small { font-family: "Syne", sans-serif; font-size: 0.72rem; color: var(--muted); margin-left: 0.25rem; }
.link-more { color: var(--accent); font-weight: 600; font-size: 0.86rem; }

/* —— Packs —— */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 800px) { .packs { grid-template-columns: 1fr; } }
.pack {
  border: 1px solid var(--line); background: var(--bg-elev);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.85rem;
  transition: transform .35s var(--ease), border-color .25s;
}
.pack:hover { transform: translateY(-4px); }
.pack.hot {
  border-color: rgba(45,212,191,0.5);
  background: linear-gradient(180deg, rgba(45,212,191,0.1), var(--bg-elev) 42%);
  position: relative;
}
.pack.hot::after {
  content: "Recomendado";
  position: absolute; top: 1rem; right: 1rem;
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #04201c; background: var(--accent); padding: 0.25rem 0.55rem; border-radius: 999px;
  font-weight: 700;
}
.pack .from { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pack .amount { font-family: "Instrument Serif", Georgia, serif; font-size: 2.2rem; line-height: 1; }
.pack h3 { margin: 0; font-size: 1.15rem; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.pack ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; flex: 1; }
.pack li {
  font-size: 0.9rem; color: var(--muted); padding-left: 1rem; position: relative;
}
.pack li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* —— Contact —— */
.contact {
  border-top: 1px solid var(--line);
  padding-bottom: 5.5rem;
}
.contact-box {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: end;
  padding: 2.5rem; border: 1px solid var(--line);
  background:
    radial-gradient(80% 100% at 0% 100%, rgba(45,212,191,0.12), transparent 55%),
    var(--bg-elev);
  border-radius: 20px;
}
@media (max-width: 800px) { .contact-box { grid-template-columns: 1fr; padding: 1.5rem; } }
.contact h2 {
  margin: 0 0 0.75rem;
  font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1;
}
.contact p { margin: 0 0 1.5rem; color: var(--muted); max-width: 32rem; }
.contact-side {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.3rem;
  background: rgba(0,0,0,0.25); font-size: 0.92rem; color: var(--muted);
}
.contact-side strong {
  display: block; color: var(--text); margin-bottom: 0.3rem;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.contact-side a { color: var(--accent); font-weight: 600; }

footer {
  border-top: 1px solid var(--line); padding: 1.4rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  color: var(--muted); font-size: 0.8rem;
}
footer .domain { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .fx-orb, .marquee-track, .equip-visual .shine, .hero-kicker::before { animation: none !important; }
  .hero h1 .line span, .hero-lead, .cta-row, .hero-metrics {
    animation: none !important; opacity: 1; transform: none;
  }
  .reveal { opacity: 1; transform: none; }
}

/* —— Admin —— */
.admin-body { background: #0a1017; min-height: 100vh; }
.admin-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem;
}
.admin-bar h1 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.flash {
  padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem;
}
.flash.ok { background: rgba(61,154,120,.15); border: 1px solid rgba(61,154,120,.35); }
.flash.error { background: rgba(196,122,114,.15); border: 1px solid rgba(196,122,114,.35); }
.admin-section {
  border: 1px solid var(--line); background: var(--bg-elev);
  padding: 1.3rem 1.25rem 1.45rem; margin-bottom: 1.2rem; border-radius: 14px;
}
.admin-section h2 {
  margin: 0 0 1rem; font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.grid-form { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid-form { grid-template-columns: 1fr; } }
.grid-form .full { grid-column: 1 / -1; }
label { display: grid; gap: 0.3rem; font-size: 0.78rem; color: var(--muted); }
input, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2);
  color: var(--text); border-radius: 8px; padding: 0.7rem 0.8rem; font: inherit;
}
textarea { min-height: 72px; resize: vertical; }
.check {
  display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem;
  color: var(--text); padding-top: 1.4rem;
}
.check input { width: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-top: 1rem; }
.table th, .table td {
  text-align: left; padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.table th {
  color: var(--muted); font-weight: 500; font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.78rem; border-radius: 999px; }
.btn-danger { border-color: rgba(196,122,114,.5); color: #e2b0ab; }
.muted { color: var(--muted); font-size: 0.82rem; }
.login-box {
  max-width: 400px; margin: 14vh auto; border: 1px solid var(--line);
  background: var(--bg-elev); padding: 1.85rem 1.6rem; border-radius: 16px;
}
.login-box h1 { margin: 0 0 0.35rem; font-size: 1.3rem; font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.login-box p { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.9rem; }
