/* ===== PrecioScout — Landing ===== */

:root {
  --green: #2ECC71;
  --green-dark: #23a55b;
  --green-600: #27b365;
  --ink: #0f1b14;
  --ink-soft: #3c4a41;
  --muted: #6b7a70;
  --bg: #ffffff;
  --bg-alt: #f3faf5;
  --line: #e4ede7;
  --card: #ffffff;
  --shadow: 0 18px 40px -18px rgba(16, 40, 25, .28);
  --shadow-sm: 0 8px 22px -12px rgba(16, 40, 25, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(46, 204, 113, .7);
}
.btn--primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px -8px rgba(46,204,113,.8);
}
.brand__logo-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.brand__name { font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; }
.brand__name strong { color: var(--green-dark); font-weight: 800; }

.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--ink-soft); font-weight: 600; font-size: .98rem; transition: color .15s ease; }
.nav__links a:hover { color: var(--green-dark); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 64px 0 88px; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 78% 8%, rgba(46,204,113,.16), transparent 70%),
    radial-gradient(50% 50% at 8% 30%, rgba(46,204,113,.10), transparent 70%),
    linear-gradient(180deg, #f6fdf8, #ffffff 55%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line);
  color: var(--green-dark); font-weight: 700; font-size: .85rem;
  padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; margin: 18px 0 14px; }
.grad { background: linear-gradient(120deg, var(--green), var(--green-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--ink-soft); font-size: 1.12rem; max-width: 46ch; }

.hero__actions { display: flex; gap: 14px; margin: 26px 0 30px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 34px; }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.hero__stats span { font-size: .9rem; color: var(--muted); }

/* ===== Phone mockup ===== */
.hero__phone, .how__phone, .community__phone { display: grid; place-items: center; position: relative; }
.phone {
  position: relative;
  width: 288px;
  background: #0f1b14;
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow);
  z-index: 2;
}
.phone--tilt { transform: rotate(-4deg); }
.phone__notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px; background: #0f1b14; border-radius: 0 0 14px 14px; z-index: 3;
}
.phone__screen {
  background: linear-gradient(180deg, #f4fbf6, #ffffff);
  border-radius: 32px;
  padding: 34px 15px 16px;
  height: 560px;
  overflow: hidden;
}

.app-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.app-topbar__title { font-weight: 800; font-size: 1.05rem; }
.app-topbar__title strong { color: var(--green-dark); }
.app-topbar__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(46,204,113,.2); }

.app-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; font-size: .92rem; color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.app-section-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin: 10px 4px 8px; }
.app-product { font-size: .8rem; color: var(--muted); margin: 0 4px 10px; font-weight: 600; }

/* tarjeta de ahorro (comparador real) */
.app-save--top {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  margin: 0 0 10px; padding: 12px;
}
.app-save__label { font-size: .8rem; color: var(--green-dark); font-weight: 700; }
.app-save__amount { font-size: 2rem; font-weight: 800; color: var(--green-dark); line-height: 1.1; }
.app-save__detail { font-size: .7rem; color: var(--muted); text-align: center; }

/* total de la cesta optimizada */
.app-total {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; padding: 11px 14px; border-radius: 12px;
  background: #0f1b14; color: #fff; font-size: .88rem; font-weight: 600;
}
.app-total strong { font-size: 1.12rem; font-weight: 800; color: var(--green); }

.price-card {
  display: flex; align-items: center; gap: 11px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 12px; margin-bottom: 9px;
}
.price-card--best { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46,204,113,.14); }
.price-card__chain {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.1rem;
  background: var(--c, #999);
}
.price-card__info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.price-card__name { font-weight: 700; font-size: .95rem; }
.price-card__tag { font-size: .76rem; color: var(--muted); }
.price-card--best .price-card__tag { color: var(--green-dark); font-weight: 700; }
.price-card__price { font-weight: 800; font-size: 1.05rem; }

.app-save {
  margin-top: 14px; text-align: center; font-size: .9rem;
  background: rgba(46,204,113,.12); color: var(--green-dark);
  border-radius: 12px; padding: 11px; font-weight: 600;
}
.app-save strong { font-weight: 800; }

/* mini map (con calles, radio y pines de cadena) */
.map-mini {
  position: relative; height: 190px; border-radius: 16px; margin-bottom: 14px;
  background:
    radial-gradient(120% 120% at 50% 50%, #f2fbf5 0%, #e9f6ee 100%);
  border: 1px solid var(--line); overflow: hidden;
}
/* calles */
.road { position: absolute; background: #ffffff; box-shadow: 0 0 0 1px #e0ece4; }
.road--h1 { top: 34%; left: -5%; right: -5%; height: 12px; transform: rotate(-4deg); }
.road--h2 { top: 72%; left: -5%; right: -5%; height: 16px; transform: rotate(3deg); }
.road--v1 { top: -5%; bottom: -5%; left: 30%; width: 12px; transform: rotate(6deg); }
.road--v2 { top: -5%; bottom: -5%; left: 66%; width: 14px; transform: rotate(-5deg); }

/* radio de búsqueda alrededor de "tú" */
.map-radius {
  position: absolute; top: 50%; left: 50%; width: 150px; height: 150px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(46,204,113,.12); border: 1.5px dashed rgba(46,204,113,.55);
}
.map-here {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 18px; height: 18px; border-radius: 50%; background: #2ECC71;
  border: 3px solid #fff; box-shadow: 0 0 0 3px rgba(46,204,113,.3); z-index: 3;
}
.map-here__dot { display: none; }

/* marcadores de cadena tipo "gota" con inicial + precio/oferta */
.map-mk {
  position: absolute; z-index: 4;
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--c, #999);
  display: grid; place-items: center;
  box-shadow: 0 4px 8px -2px rgba(0,0,0,.35);
}
.map-mk b {
  transform: rotate(45deg);
  color: #fff; font-weight: 800; font-size: .85rem;
}
.map-mk i {
  position: absolute; top: -12px; left: 50%;
  transform: rotate(45deg) translate(-50%, -50%);
  background: #0f1b14; color: #fff; font-style: normal;
  font-size: .58rem; font-weight: 800; padding: 2px 6px; border-radius: 6px;
  white-space: nowrap;
}
.map-mk--a { top: 22%; left: 24%; }
.map-mk--b { top: 30%; left: 62%; }
.map-mk--c { top: 66%; left: 40%; }
.map-mk--d { top: 58%; left: 74%; }
.map-count {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--ink); font-size: .72rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); z-index: 5;
}
.map-new {
  position: absolute; top: 10px; right: 10px; z-index: 6;
  background: var(--green); color: #fff; font-size: .68rem; font-weight: 800;
  padding: 4px 9px; border-radius: 999px; box-shadow: var(--shadow-sm);
  letter-spacing: .02em;
}

.offer {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px; margin-bottom: 9px;
}
.offer__chain {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem;
  background: var(--c, #999);
}
.offer__badge {
  background: var(--green); color: #fff; font-weight: 800; font-size: .72rem;
  padding: 8px 9px; border-radius: 9px; flex: none;
}
.offer__info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.offer__name { font-weight: 700; font-size: .88rem; line-height: 1.2; }
.offer__meta { font-size: .73rem; color: var(--muted); }
.offer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.offer__price { font-weight: 800; font-size: 1.02rem; color: var(--green-dark); }
.offer__time { font-size: .68rem; color: #c0392b; font-weight: 700; }

/* ranking (por provincias, cabecera naranja como la app) */
.phone__screen--rank { padding-top: 0; }
.rank-header {
  background: #F39C12; margin: 0 -16px 14px; padding: 20px 18px 16px;
  border-bottom-left-radius: 22px; border-bottom-right-radius: 22px; color: #fff;
}
.rank-header__title { display: block; font-size: 1.25rem; font-weight: 800; }
.rank-header__sub { display: block; font-size: .76rem; color: rgba(255,255,255,.9); margin-top: 2px; }
.rank-tabs { display: flex; gap: 5px; background: rgba(255,255,255,.9); border-radius: 11px; padding: 4px; margin-top: 12px; }
.rank-tab { flex: 1; text-align: center; font-size: .74rem; font-weight: 700; color: #a8720f; padding: 7px 4px; border-radius: 8px; }
.rank-tab--active { background: #F39C12; color: #fff; }

.rank {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 11px; margin-bottom: 8px;
}
.rank__pos { min-width: 26px; text-align: center; font-weight: 800; color: var(--muted); font-size: 1.05rem; }
.rank__info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rank__name { font-weight: 700; font-size: .95rem; }
.rank__meta { font-size: .72rem; color: var(--muted); }
.rank__pts { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; font-size: 1rem; color: var(--muted); line-height: 1; }
.rank__pts small { font-weight: 600; font-size: .62rem; color: var(--muted); }
.rank--gold { border-left: 3px solid #F39C12; }
.rank--silver { border-left: 3px solid #F39C12; }
.rank--bronze { border-left: 3px solid #F39C12; }
.rank--gold .rank__pts, .rank--silver .rank__pts, .rank--bronze .rank__pts { color: #F39C12; }

/* pestañas de ofertas */
.offer-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.offer-tab { flex: 1; text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 8px 4px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.offer-tab--active { background: var(--green); color: #fff; border-color: var(--green); }

.hero__blob { position: absolute; border-radius: 50%; filter: blur(8px); z-index: 1; opacity: .5; }
.hero__blob--1 { width: 180px; height: 180px; background: rgba(46,204,113,.35); top: 8%; right: 2%; }
.hero__blob--2 { width: 140px; height: 140px; background: rgba(46,204,113,.25); bottom: 6%; left: 0; }

/* ===== Chains strip ===== */
.chains { padding: 30px 0 6px; border-top: 1px solid var(--line); }
.chains__title { text-align: center; color: var(--muted); font-weight: 600; font-size: .95rem; margin: 0 0 16px; }
.chains__row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-weight: 700; font-size: .9rem; color: #fff;
  padding: 8px 15px; border-radius: 999px; background: var(--c, #999);
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.eyebrow { color: var(--green-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 10px 0 12px; }
.section__head p { color: var(--ink-soft); font-size: 1.08rem; }

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

.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; background: rgba(46,204,113,.12); margin-bottom: 14px;
}
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: .96rem; margin: 0; }

/* ===== How ===== */
.how, .community { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 8px 16px -8px rgba(46,204,113,.8);
}
.step h3 { font-size: 1.12rem; margin-bottom: 3px; }
.step p { color: var(--ink-soft); margin: 0; }

/* ===== Community ===== */
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-soft); }
.perks li span {
  min-width: 38px; height: 34px; padding: 0 8px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800; color: var(--green-dark);
  background: rgba(46,204,113,.14);
}

/* ===== FAQ ===== */
.faq { max-width: 760px; }
.qa {
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 18px; margin-bottom: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.qa[open] { border-color: var(--green); box-shadow: var(--shadow-sm); }
.qa summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 14px 0; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.5rem; color: var(--green-dark); font-weight: 700; line-height: 1; }
.qa[open] summary::after { content: "−"; }
.qa p { color: var(--ink-soft); margin: 0 0 16px; }

/* ===== CTA ===== */
.cta { padding: 20px 0 90px; }
.cta__inner {
  text-align: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff; border-radius: 28px; padding: 56px 30px;
  box-shadow: 0 30px 60px -30px rgba(46,204,113,.9);
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 80% at 90% 0%, rgba(255,255,255,.18), transparent 70%);
}
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; position: relative; }
.cta p { font-size: 1.1rem; opacity: .95; margin: 12px 0 28px; position: relative; }
.cta__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #0f1b14; color: #fff; padding: 12px 22px; border-radius: 14px;
  transition: transform .15s ease, opacity .2s ease;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 800; font-size: 1.15rem; text-align: left; }
.store-btn small { font-weight: 600; font-size: .72rem; opacity: .8; }
.store-btn--soon { opacity: .72; }

/* ===== Footer ===== */
.footer { background: #0f1b14; color: #d5e4da; padding: 56px 0 26px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__name strong { color: var(--green); }
.footer__brand p { color: #9fb3a7; margin: 14px 0 0; max-width: 34ch; font-size: .95rem; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__col a { display: block; color: #9fb3a7; padding: 5px 0; font-size: .95rem; transition: color .15s ease; }
.footer__col a:hover { color: var(--green); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px;
  color: #8ba296; font-size: .88rem; flex-wrap: wrap; gap: 8px;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { text-align: center; margin: 0 auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .how, .community { grid-template-columns: 1fr; gap: 40px; }
  .community__phone { order: 2; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta__inner { padding: 40px 20px; }
}
