/* EnvíaMejor — diseño premium, móvil primero */
:root {
  --green: #16a34a;
  --green-d: #0b7a43;
  --green-dd: #0a5c34;
  --green-soft: #eafaf0;
  --gold: #d4a017;
  --gold-soft: #fdf6e3;
  --ink: #101828;
  --muted: #667085;
  --line: #e6eaef;
  --bg: #f6f8f7;
  --card: #ffffff;
  --red: #dc2626;
  --radius: 18px;
  --shadow: 0 2px 12px rgba(16, 24, 40, 0.07);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- barra superior ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--green-dd), var(--green-d));
  color: #fff; position: sticky; top: 0; z-index: 10;
  box-shadow: 0 2px 10px rgba(10, 92, 52, 0.25);
}
.topbar a { color: #fff; text-decoration: none; margin-left: 16px; font-size: 15px; font-weight: 600; }
.topbar .brand { font-weight: 800; margin-left: 0; font-size: 18px; letter-spacing: 0.2px; display: inline-flex; align-items: center; gap: 9px; }
.topbar .brand .logo-e {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--green-d);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 19px; line-height: 1;
}

.wrap { max-width: 860px; margin: 0 auto; padding: 18px 16px 48px; }

/* ---------- héroe (landing) ---------- */
.hero {
  text-align: center; padding: 64px 20px 56px; margin: 6px 0 8px;
  background: linear-gradient(rgba(8,35,22,.78), rgba(8,35,22,.55)), url('img/hero-envio.jpg');
  background-size: cover; background-position: center 30%;
  border-radius: 24px; color: #fff; box-shadow: var(--shadow);
}
.hero h1 { font-size: 31px; line-height: 1.18; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.3px; }
.hero h1 .gold { color: #ffd60a; }
.hero .sub { font-size: 17px; color: rgba(255, 255, 255, 0.88); max-width: 480px; margin: 0 auto; }
.hero .cta-row { margin-top: 22px; }
.hero .muted { color: rgba(255, 255, 255, 0.75); }

.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #1db356, var(--green-d));
  color: #fff; border: 0; min-height: 56px;
  padding: 14px 26px; border-radius: 16px; font-size: 17px; font-weight: 800;
  text-decoration: none; cursor: pointer; text-align: center;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn.big { font-size: 18px; padding: 16px 32px; width: 100%; }
.btn.small { font-size: 14px; padding: 8px 14px; min-height: 0; }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.gold { background: linear-gradient(180deg, #8ce6a8, #4cc978); color: #0a3d24; box-shadow: 0 4px 14px rgba(76, 201, 120, 0.45); }
.btn.paypal { background: #ffc439; color: #111; box-shadow: none; }
.btn.paypal:hover { background: #f0b429; }

.muted { color: var(--muted); font-size: 14px; }

/* ---------- tarjetas ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 20px 0; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card, .box {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.box { margin: 14px 0; }
.box.narrow { max-width: 520px; margin: 24px auto; }
.box.center { text-align: center; }
.box h1 { margin-top: 0; font-size: 25px; letter-spacing: -0.2px; }
.box h2 { font-size: 19px; }

/* pasos 1-2-3 */
.steps { display: flex; gap: 8px; justify-content: center; margin: 18px 0 4px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.step .n { width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft);
  color: var(--green-d); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }

.ticks { list-style: none; padding: 0; }
.ticks li { padding: 6px 0 6px 30px; position: relative; }
.ticks li::before { content: "✔"; position: absolute; left: 4px; color: var(--green); font-weight: 800; }
.alert {
  background: #fef2f2; border: 1px solid #fecaca; color: var(--red);
  padding: 12px 16px; border-radius: 12px; font-weight: 600;
}

/* ---------- formulario comparar ---------- */
.step-title { font-size: 19px; font-weight: 800; margin: 22px 0 4px; display: flex; align-items: center; gap: 10px; }
.step-title .n { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.step-sub { color: var(--muted); font-size: 14px; margin: 0 0 12px; }

.country-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .country-grid { grid-template-columns: 1fr 1fr 1fr; } }
.country-card { position: relative; cursor: pointer; }
.country-card input { position: absolute; opacity: 0; pointer-events: none; }
.country-card .cc-inner {
  display: flex; align-items: center; gap: 12px; min-height: 76px;
  background: #fff; border: 2px solid var(--line); border-radius: 16px;
  padding: 12px 14px; transition: border-color 0.12s ease, background 0.12s ease;
}
.country-card .flag { font-size: 34px; line-height: 1; }
.country-card .cname { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.country-card .cname small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.country-card:has(input:checked) .cc-inner { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green); }
.country-card:has(input:checked) .cc-inner::after {
  content: "✔"; position: absolute; top: 8px; right: 10px;
  color: var(--green-d); font-weight: 800; font-size: 15px;
}
.country-card:has(input:focus-visible) .cc-inner { outline: 2px solid var(--green-d); outline-offset: 2px; }

.amount-wrap { position: relative; margin-top: 12px; }
.amount-wrap .cur { position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-size: 30px; font-weight: 800; color: var(--green-d); }
.amount-wrap input {
  width: 100%; padding: 20px 18px 20px 58px; font-size: 32px; font-weight: 800;
  border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.amount-wrap input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 10px 18px; font-size: 15px; font-weight: 700; color: var(--ink); cursor: pointer; min-height: 44px; }
.chip:active { background: var(--green-soft); border-color: var(--green); }

.form label.f-label { display: block; margin: 12px 0; font-weight: 600; font-size: 15px; }
.form input[type="text"], .form input[type="email"], .form input[type="password"],
.form input[type="number"], .form select {
  display: block; width: 100%; margin-top: 6px; padding: 14px;
  border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff;
}
.form small { font-weight: 400; }
.form.grid { display: grid; gap: 2px; }
@media (min-width: 640px) { .form.grid { grid-template-columns: 1fr 1fr; } .form.grid .btn { grid-column: 1 / -1; } }

.pill { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill.pro { background: #dcfce7; color: var(--green-d); }
.pill.free { background: #e0e7ff; color: #3730a3; }
.pill.gold { background: var(--gold); color: #3a2c00; }
.pill.live { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.pill.live .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.row-between h1 { margin: 0; font-size: 24px; }

/* ---------- resultado: héroe del ahorro ---------- */
.save-hero {
  background: linear-gradient(160deg, var(--green-dd) 0%, var(--green-d) 70%);
  border-radius: 24px; padding: 30px 22px; margin: 14px 0 18px;
  text-align: center; color: #fff; box-shadow: 0 8px 24px rgba(10, 92, 52, 0.3);
}
.save-hero .save-label { font-size: 14px; font-weight: 800; letter-spacing: 2.5px; color: var(--gold); }
.save-hero .save-amount { font-size: 52px; font-weight: 800; color: #fff; line-height: 1.1;
  margin: 6px 0; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.save-hero .save-sub { font-size: 15px; color: rgba(255, 255, 255, 0.88); margin: 0; }
.save-hero .save-sub strong { color: var(--gold); }
.save-hero .best-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 15px; color: rgba(255, 255, 255, 0.92); }
.save-hero .best-line strong { font-size: 17px; }

.result-head { text-align: center; margin: 6px 0 2px; }
.result-head h1 { font-size: 23px; margin: 0 0 8px; letter-spacing: -0.2px; }

/* filas del ranking */
.rank-list { display: grid; gap: 10px; margin: 14px 0 20px; }
.rank-row {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 16px; padding: 16px;
}
.rank-row.winner { border: 2px solid var(--gold); background: var(--gold-soft);
  box-shadow: 0 4px 16px rgba(212, 160, 23, 0.22); }
.rank-num { width: 38px; height: 38px; border-radius: 50%; background: var(--bg);
  color: var(--muted); font-weight: 800; font-size: 16px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; }
.rank-row.winner .rank-num { background: var(--gold); color: #3a2c00; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-weight: 800; font-size: 16.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rank-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.rank-amount { text-align: right; flex-shrink: 0; }
.rank-amount .recv { font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rank-row.winner .rank-amount .recv { color: var(--green-d); font-size: 23px; }
.rank-save { font-size: 12.5px; color: var(--green-d); font-weight: 700; }

/* compatibilidad con tarjetas anteriores */
.best-box {
  background: #f0fdf4; border: 2px solid var(--green);
  border-radius: var(--radius); padding: 20px; margin: 16px 0; text-align: center;
}
.best-name { font-size: 18px; font-weight: 700; margin-top: 8px; }
.best-amount { font-size: 40px; font-weight: 800; color: var(--green-d); margin: 4px 0; }
.save { font-size: 17px; color: var(--green-d); }
.save strong { font-size: 20px; }
.recv { font-size: 26px; font-weight: 800; margin: 6px 0; }

.price-card { border: 2px solid var(--green); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.plans { display: grid; gap: 14px; margin: 16px 0; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan-card { border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; background: #fff; }
.plan-card.recommended { border-color: var(--green); background: #f0fdf4; }
.plan-card h3 { margin: 0 0 4px; font-size: 20px; }
.plan-badge { display: inline-block; background: var(--green); color: #fff; font-size: 12px;
  font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-bottom: 8px; }
.price { font-size: 44px; font-weight: 800; color: var(--green-d); }
.price span { font-size: 18px; color: var(--muted); font-weight: 400; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.tbl th, .tbl td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.mt { margin-top: 18px; }

.foot { text-align: center; font-size: 13px; color: var(--muted); padding: 20px 16px 34px; border-top: 1px solid var(--line); }
.foot p { max-width: 700px; margin: 8px auto; }

/* franja de países en landing */
.flag-strip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.flag-strip span { font-size: 26px; }

/* ---------- prueba social: reseñas (100% datos reales) ---------- */
.proof-strip {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; margin: 14px auto 0; max-width: 640px; box-shadow: var(--shadow);
  font-size: 15px; color: var(--ink);
}
.proof-stars { color: var(--gold); font-size: 19px; letter-spacing: 2px; }
.proof-link { color: var(--green-d); font-weight: 700; text-decoration: underline; }

.reviews { margin: 34px 0 10px; }
.reviews h2 { font-size: 22px; margin: 0 0 14px; text-align: center; }
.review-list { display: grid; gap: 12px; margin-bottom: 18px; }
@media (min-width: 640px) { .review-list { grid-template-columns: 1fr 1fr; } }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); }
.review-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.review-head .stars { color: var(--gold); font-size: 16px; letter-spacing: 2px; }
.review-text { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.review-date { margin: 0; }

.review-form h3 { margin: 0 0 12px; }
.review-form label { display: block; font-weight: 600; font-size: 15px; margin: 12px 0; }
.review-form input[type="text"], .review-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 14px;
  border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff;
  font-family: inherit; box-sizing: border-box;
}
.review-form textarea { resize: vertical; }
.review-form .btn { width: 100%; margin-top: 6px; }
.review-form .hp { position: absolute !important; left: -9999px !important;
  width: 1px !important; height: 1px !important; opacity: 0 !important; }

.star-pick { display: flex; gap: 6px; margin-top: 8px; }
.star-pick button { background: none; border: 0; font-size: 34px; line-height: 1;
  color: #d8dee6; cursor: pointer; padding: 4px; }
.star-pick button.on { color: var(--gold); }

.msg { margin: 12px 0 0; font-size: 15px; min-height: 20px; }
.msg.ok { color: var(--green-d); font-weight: 700; }
.msg.err { color: var(--red); font-weight: 600; }

/* Banner del sorteo semanal Totalclapper */
.giveaway-banner{display:block;text-align:center;background:linear-gradient(90deg,#b8912a,#e6b93e);color:#241a05;font-weight:800;padding:9px 12px;text-decoration:none;font-size:.95rem;letter-spacing:.2px}
.giveaway-banner:hover{filter:brightness(1.06);color:#241a05}

/* ---------- home compacta (2026-10-04): todo claro sin bajar ---------- */
.hero-c {
  padding: 26px 18px 20px; margin: 6px 0 8px; text-align: center;
  background: linear-gradient(160deg, var(--green-dd), var(--green-d));
  border-radius: 24px; color: #fff; box-shadow: var(--shadow);
}
.hero-c h1 { font-size: 27px; line-height: 1.2; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.3px; }
.hero-c h1 .gold { color: #ffd60a; }
.hero-c .sub { font-size: 15px; color: rgba(255, 255, 255, 0.88); max-width: 480px; margin: 0 auto; }
.cmp-form {
  background: #fff; color: var(--ink); border-radius: 18px; padding: 16px;
  margin: 18px auto 0; max-width: 520px; text-align: left;
  box-shadow: 0 8px 24px rgba(10, 92, 52, 0.25);
}
.cmp-form .f-label { display: block; font-weight: 700; font-size: 15px; margin: 14px 0 0; }
.cmp-form .f-label:first-of-type { margin-top: 0; }
.cmp-form select {
  display: block; width: 100%; margin-top: 6px; padding: 14px;
  border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px;
  background: #fff; color: var(--ink);
}
.cmp-form select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.cmp-note { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 520px; margin: 14px auto 0; }
.perk {
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px; padding: 10px 12px; font-size: 13.5px; font-weight: 600;
  line-height: 1.35; text-align: left;
}
.perk a { color: #ffd60a; font-weight: 800; }
.pro-line { margin: 14px auto 0; font-size: 14px; color: rgba(255, 255, 255, 0.9); }
.pro-line a { color: #ffd60a; font-weight: 800; }
