/* ==========================================================
   Mundo App · estilos (mobile-first, modo oscuro)
   ========================================================== */
:root {
  --bg: #0b0b12;
  --bg-2: #10101a;
  --surface: #151522;
  --surface-2: #1c1c2c;
  --line: rgba(255, 255, 255, .09);
  --text: #f4f4f9;
  --muted: #a3a3b8;
  --brand: #ffffff;
  --brand-2: #c7c7d6;
  --wa: #25d366;
  --wa-ink: #04210f;
  --radius: 20px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: 12px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1rem; }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(0, 0, 0, .65); }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .2); }
.btn--wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 10px 28px -12px rgba(37, 211, 102, .8); }
.btn--wa:hover { transform: translateY(-2px); background: #3ae07c; }
.btn[aria-disabled="true"] { opacity: .8; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(11, 11, 18, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand b { background: var(--brand); color: var(--bg); padding: .08em .38em; border-radius: 7px; font-weight: 800; }
.brand__mark { width: 34px; height: 34px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.brand--footer { font-size: 1.25rem; margin-bottom: 6px; }
.header__actions { display: flex; align-items: center; gap: 10px; }

.nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  display: none; flex-direction: column; padding: 8px 16px 16px;
  background: rgba(11, 11, 18, .97); border-bottom: 1px solid var(--line);
}
.nav.is-open { display: flex; }
.nav a { padding: 14px 6px; font-weight: 600; border-bottom: 1px solid var(--line); color: var(--muted); }
.nav a:hover { color: var(--text); }

.burger { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); display: grid; place-content: center; gap: 4px; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 900px) {
  .burger { display: none; }
  .nav { position: static; display: flex !important; flex-direction: row; gap: 4px; padding: 0; background: none; border: 0; }
  .nav a { padding: 8px 12px; border: 0; border-radius: 10px; font-size: .92rem; }
  .nav a:hover { background: rgba(255, 255, 255, .06); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 44px 0 0; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 15% 0%, rgba(255, 255, 255, .12), transparent 70%),
    radial-gradient(520px 340px at 90% 10%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.hero__in { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }

/* ---------- Selector de país ---------- */
.country { position: relative; display: inline-block; }
.country__btn { appearance: none; cursor: pointer; }
.country__chev { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.country__btn[aria-expanded="true"] .country__chev { transform: rotate(180deg); }
.country__menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 5; min-width: 220px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: var(--shadow); display: grid; gap: 2px;
}
.country__menu button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; border: 0;
  background: none; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.country__menu button:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.country__menu button[aria-selected="true"] { background: var(--brand); color: var(--bg); }
h1 { margin-top: 18px; font-size: clamp(2.1rem, 8vw, 4rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 16ch; }
.grad {
  background: var(--brand); color: var(--bg); padding: .04em .18em; border-radius: .22em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lead { margin-top: 18px; max-width: 58ch; color: var(--muted); font-size: clamp(1rem, 2.6vw, 1.15rem); }
.lead strong { color: var(--text); }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { flex: 1 1 200px; }
@media (min-width: 640px) { .hero__cta .btn { flex: 0 0 auto; } }

.trust { margin-top: 36px; display: grid; gap: 12px; grid-template-columns: 1fr; }
.trust li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.trust__ico { width: 42px; height: 42px; flex: none; display: grid; place-items: center; font-size: 1.25rem; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.trust strong { display: block; font-size: .95rem; line-height: 1.3; }
.trust small { color: var(--muted); font-size: .82rem; }
@media (min-width: 640px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* Marquee de servicios */
.marquee { position: relative; z-index: 1; margin-top: 44px; padding: 16px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); box-shadow: 0 0 12px var(--c, var(--brand)); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 32px; max-width: 62ch; }
.kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-2); margin-bottom: 8px; }
h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.section__head .muted { margin-top: 12px; }

/* ---------- Filtros ---------- */
.filters { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .filters { grid-template-columns: 1fr 220px; } }
.search { position: relative; display: block; }
.search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input, .sort select {
  width: 100%; height: 50px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  padding: 0 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.search input { padding-left: 46px; }
.search input:focus, .sort select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }
.sort select { appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; }
.sort option { background: var(--surface); }

.chips { display: flex; gap: 8px; margin: 16px -16px 0; padding: 4px 16px 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) { .chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; overflow: visible; } }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .18s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .22); }
.chip[aria-selected="true"] { background: var(--text); color: #0b0b12; border-color: var(--text); }
.chip small { opacity: .65; font-weight: 700; }
.count { margin: 8px 0 18px; font-size: .88rem; color: var(--muted); }

/* ---------- Tarjetas ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

.card {
  --accent: var(--brand); --on-accent: var(--bg);
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 55%);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; isolation: isolate;
  transition: transform .25s ease, border-color .25s ease;
  animation: pop .45s ease both; animation-delay: calc(var(--i, 0) * 45ms);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent); box-shadow: 0 1px 0 rgba(255, 255, 255, .16); z-index: 1; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
}
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
  .card:hover::after { opacity: 1; }
}
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.card__head { display: flex; align-items: center; gap: 14px; }
.badge { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 1.4rem; box-shadow: 0 10px 24px -10px var(--accent); }
.card__meta { min-width: 0; flex: 1; }
.tipo { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.card__title { font-size: 1.3rem; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 2px; }
.tag { padding: 2px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.desc { color: var(--muted); font-size: .94rem; }
.incluye { display: grid; gap: 8px; font-size: .9rem; }
.incluye li { display: flex; gap: 10px; align-items: flex-start; }
.incluye li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.card__foot { margin-top: auto; padding-top: 6px; display: grid; gap: 14px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.price__cur { font-weight: 700; color: var(--muted); }
.price__amt { font-size: 2.4rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.price__per { color: var(--muted); font-size: .9rem; }
.price__old { margin-left: 6px; color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.price--tbd { color: var(--muted); font-size: .95rem; font-style: italic; }
.save { display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; color: var(--wa); background: rgba(37, 211, 102, .12); }
.btn--card { width: 100%; }
.card--off { opacity: .85; }
.card--off .price__amt { color: var(--muted); }
.btn--ask { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line); box-shadow: none; }

.skeleton { height: 340px; border-radius: var(--radius); background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 220% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -220% 0; } }

.empty { margin-top: 12px; padding: 40px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; gap: 10px; justify-items: center; }
.empty__t { font-weight: 700; font-size: 1.1rem; }
.empty .btn { margin-top: 8px; }

/* ---------- Pasos ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step__n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 16px; font-weight: 800; font-size: 1.2rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0b0b12; }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Renovaciones ---------- */
.renov { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .renov { grid-template-columns: 1fr 1fr; gap: 56px; } }
.renov__txt .muted { margin-top: 14px; }
.next { margin-top: 20px; display: inline-flex; padding: 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); font-weight: 600; }
.days { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.day { position: relative; padding: 22px 16px; text-align: center; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.day:hover { transform: translateY(-3px); }
.day__n { display: block; font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.day__l { display: block; margin-top: 6px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.day.is-next { border-color: var(--brand); background: linear-gradient(180deg, rgba(255, 255, 255, .14), var(--surface)); box-shadow: 0 16px 40px -18px rgba(255, 255, 255, .35); }
.day.is-next::after { content: "Próxima"; position: absolute; top: 10px; right: 10px; padding: 2px 8px; border-radius: 999px; font-size: .66rem; font-weight: 700; background: var(--brand); color: var(--bg); }

/* ---------- Info ---------- */
.cards3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.info { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info__ico { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.4rem; border-radius: 14px; background: rgba(255, 255, 255, .08); margin-bottom: 14px; }
.info h3 { font-size: 1.15rem; margin-bottom: 6px; }
.info p { color: var(--muted); font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: rgba(255, 255, 255, .3); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .07); font-size: 1.2rem; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* ---------- CTA final ---------- */
.final { padding-top: 24px; }
.final__box { padding: 48px 24px; text-align: center; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(500px 260px at 20% 0%, rgba(255, 255, 255, .12), transparent 70%), radial-gradient(500px 260px at 90% 100%, rgba(255, 255, 255, .07), transparent 70%), var(--surface); }
.final__box p { margin-top: 10px; color: var(--muted); }
.final__box .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 100px; background: var(--bg-2); }
.footer__in { display: grid; gap: 20px; }
.footer a[data-wa] { color: var(--wa); font-weight: 600; }
.legal { color: var(--muted); max-width: 70ch; }
@media (min-width: 800px) { .footer__in { grid-template-columns: 1fr 2fr auto; align-items: start; gap: 40px; } .footer { padding-bottom: 40px; } }

/* ---------- Botón flotante ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: var(--wa-ink); box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .8); transition: transform .2s; }
.fab svg { width: 30px; height: 30px; }
.fab:hover { transform: scale(1.08); }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

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