/* ==========================================================
   Labur App - estilos
   Paleta tomada de la app (app_colors.dart)
   ========================================================== */
:root {
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-2: #2a2a2a;
  --border: #3a3a3a;
  --red: #e53935;
  --red-dark: #c62828;
  --yellow: #ffc107;
  --text: #ffffff;
  --text-2: #bdbdbd;
  --text-3: #9e9e9e;
  --success: #4caf50;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-title: "Poppins", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 40px); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--yellow); color: #000; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 14px; border: 2px solid transparent;
  font: 700 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s, background .15s, box-shadow .15s, border-color .15s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(229, 57, 53, .35); }
.btn--primary:hover { background: var(--red-dark); }
.btn--ghost { background: transparent; color: #fff; border-color: var(--border); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--yellow { background: var(--yellow); color: #111; }
.btn--yellow:hover { background: #ffd54f; }
.btn--sm { padding: 8px 16px; min-height: 40px; font-size: .95rem; }
.btn--lg { padding: 15px 28px; font-size: 1.1rem; min-height: 56px; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 18, 18, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.35rem var(--font-title); }
.brand img { border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; color: var(--text-2); font-weight: 500; transition: color .15s; }
.nav a:not(.btn):hover { color: var(--yellow); }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 3px; background: #fff; border-radius: 3px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 80px;
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(229, 57, 53, .22), transparent 60%),
    radial-gradient(600px 380px at 10% 90%, rgba(255, 193, 7, .10), transparent 60%),
    var(--bg);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--yellow); font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.02em; }
.accent { color: var(--red); }
.lead { color: var(--text-2); font-size: 1.2rem; margin: 22px 0 30px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: var(--text-2); font-size: .95rem; }
.hero__trust li::before { content: "✓"; color: var(--success); font-weight: 800; margin-right: 8px; }

/* Mockup de celular */
.hero__visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 290px; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #3a3a3a, #1a1a1a);
  box-shadow: var(--shadow), 0 0 0 1px #4a4a4a inset;
  transform: rotate(3deg);
}
.phone__notch { width: 90px; height: 22px; background: #0a0a0a; border-radius: 0 0 14px 14px; margin: 0 auto -22px; position: relative; z-index: 2; }
.phone__screen { background: var(--bg); border-radius: 30px; padding: 40px 14px 18px; min-height: 500px; }
.app-bar { font: 700 1.05rem var(--font-title); margin-bottom: 12px; }
.app-search { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; font-size: .85rem; color: var(--text-2); margin-bottom: 14px; }
.pro-card { position: relative; display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.pro-card--featured { border-color: var(--yellow); box-shadow: 0 0 0 1px rgba(255, 193, 7, .35); }
.pro-card__info { display: flex; flex-direction: column; font-size: .78rem; color: var(--text-3); line-height: 1.35; min-width: 0; }
.pro-card__info strong { color: #fff; font-size: .92rem; }
.stars { color: var(--yellow); }
.stars em { color: var(--text-3); font-style: normal; font-size: .75rem; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: var(--red); }
.avatar--b { background: #3f51b5; }
.avatar--c { background: #00897b; }
.badge { position: absolute; top: 8px; right: 8px; background: var(--yellow); color: #111; font-size: .62rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.app-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.app-gallery span { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, var(--surface-2), #3a3a3a); }
.app-gallery span:nth-child(2) { background: linear-gradient(135deg, #5a2a2a, var(--red)); }
.app-gallery span:nth-child(3) { background: linear-gradient(135deg, #5a4a10, var(--yellow)); }

.float {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 16px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow);
  animation: bob 5s ease-in-out infinite;
}
.float--a { top: 40px; left: -10px; color: var(--yellow); }
.float--b { bottom: 60px; right: -6px; color: #fff; animation-delay: -2.5s; }
.float--b::before { content: "● "; color: var(--success); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Oficios ---------- */
.trades { background: var(--surface); border-block: 1px solid var(--border); padding: 20px 0; }
.trades__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.trades__list li { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 600; font-size: .95rem; color: var(--text-2); }

/* ---------- Secciones ---------- */
.section { padding: 92px 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--border); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.01em; }
.section__sub { color: var(--text-2); margin-top: 14px; font-size: 1.12rem; }
.section__sub--left { max-width: 30em; }
.example-note { font-size: .95rem; font-style: italic; color: var(--text-3); }

.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, border-color .2s;
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); border-color: var(--red); }
.card .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 1.7rem; background: var(--surface-2); margin-bottom: 18px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 1rem; }
.card--cta { background: linear-gradient(145deg, rgba(229, 57, 53, .25), var(--surface)); border-color: var(--red); display: flex; flex-direction: column; align-items: flex-start; }
.card--cta .btn { margin-top: 18px; }

/* Pasos */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.steps-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font: 700 .9rem var(--font); }
.tag--red { background: rgba(229, 57, 53, .16); color: #ff6f6b; }
.tag--yellow { background: rgba(255, 193, 7, .15); color: var(--yellow); }
.steps { margin-top: 24px; display: grid; gap: 22px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps strong { display: block; font-size: 1.08rem; }
.steps p { color: var(--text-2); font-size: .98rem; margin-top: 2px; }
.n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 1.1rem var(--font-title); background: var(--red); }
.n--y { background: var(--yellow); color: #111; }

/* ---------- Planes ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; max-width: 900px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: 24px; padding: 34px; }
.plan h3 { font-size: 1.4rem; }
.plan__price { font: 800 2.6rem var(--font-title); margin: 12px 0 22px; }
.plan__price small { font: 500 1rem var(--font); color: var(--text-3); }
.checks { display: grid; align-content: start; gap: 12px; margin-bottom: 28px; flex: 1; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li strong { color: #fff; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; }
.checks--y li::before { color: var(--yellow); }
.plan--premium { border: 2px solid var(--yellow); box-shadow: 0 0 40px rgba(255, 193, 7, .12); background: linear-gradient(180deg, rgba(255, 193, 7, .07), var(--bg) 40%); }
.plan__ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--yellow); color: #111; font: 800 .8rem var(--font); padding: 5px 16px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.plan__checkout { margin-top: 10px; }
.plan__note { margin-top: 16px; font-size: .88rem; color: var(--text-3); text-align: center; }

/* ---------- Testimonios ---------- */
.quote { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote blockquote { margin: 0; color: var(--text); font-size: 1.05rem; flex: 1; }
.quote figcaption { display: flex; flex-direction: column; font-size: .9rem; color: var(--text-3); }
.quote figcaption strong { color: #fff; font-size: 1rem; }

/* ---------- Zona ---------- */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.zone h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px dashed var(--border); color: var(--text-3); font-weight: 600; font-size: .95rem; }
.chip--on { border: 1px solid var(--red); background: rgba(229, 57, 53, .14); color: #fff; }
.zone__map {
  position: relative; aspect-ratio: 4 / 3; border-radius: 24px; border: 1px solid var(--border); overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(circle at 45% 55%, rgba(229, 57, 53, .28), transparent 55%),
    var(--bg);
}
.pin { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 8px rgba(229, 57, 53, .25), 0 0 0 18px rgba(229, 57, 53, .1); }
.pin--1 { left: 30%; top: 55%; }
.pin--2 { left: 62%; top: 38%; background: var(--yellow); box-shadow: 0 0 0 8px rgba(255, 193, 7, .25), 0 0 0 18px rgba(255, 193, 7, .1); }
.pin--3 { left: 48%; top: 70%; width: 12px; height: 12px; }
.zone__label { position: absolute; font-weight: 700; font-size: .85rem; background: var(--surface); border: 1px solid var(--border); padding: 4px 10px; border-radius: 8px; }
.zone__label--1 { left: 20%; top: 66%; }
.zone__label--2 { left: 56%; top: 25%; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s; }
.faq details[open] { border-color: var(--yellow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--yellow); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); }
.faq a { color: var(--yellow); }

/* ---------- CTA final ---------- */
.cta {
  padding: 96px 0; text-align: center;
  background: radial-gradient(600px 300px at 50% 0, rgba(229, 57, 53, .3), transparent 70%), var(--surface);
  border-top: 1px solid var(--border);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta__inner > img { border-radius: 50%; box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.cta p { color: var(--text-2); font-size: 1.15rem; }
.signup { width: min(480px, 100%); margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--border); }
.signup label { display: block; color: var(--text-2); margin-bottom: 12px; font-size: .98rem; }
.signup__row { display: flex; gap: 10px; }
.signup input {
  flex: 1; min-width: 0; padding: 12px 16px; min-height: 48px; border-radius: 14px;
  border: 2px solid var(--border); background: var(--bg); color: #fff; font: 1rem var(--font);
}
.signup input:focus { border-color: var(--yellow); outline: none; }
.signup input[aria-invalid="true"] { border-color: var(--red); }
.signup__msg { min-height: 1.4em; margin-top: 10px; font-size: .95rem !important; }
.signup__msg.ok { color: var(--success) !important; }
.signup__msg.err { color: #ff6f6b !important; }

/* ---------- Footer ---------- */
.footer { background: #0c0c0c; border-top: 1px solid var(--border); padding: 44px 0 26px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand img { border-radius: 50%; }
.footer__brand p { color: var(--text-3); font-size: .92rem; }
.footer__links, .footer__social { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer__copy { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .85rem; text-align: center; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .zone { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero__visual { margin-top: 20px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 520px; }
}

@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 420px; }
  .nav a:not(.btn) { padding: 16px 24px; border-top: 1px solid var(--border); font-size: 1.05rem; }
  .nav .nav__cta { margin: 14px 24px 18px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .section { padding: 68px 0; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
  .phone { width: 260px; }
  .phone__screen { min-height: 460px; }
  .float--a { left: 0; }
  .float--b { right: 0; }
  .signup__row { flex-direction: column; }
  .plan { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
