:root {
  --blue: #07398a;
  --blue-deep: #06265f;
  --blue-bright: #087ce8;
  --yellow: #ffd21f;
  --orange: #b94700;
  --ink: #10233f;
  --muted: #53677f;
  --ice: #edf6ff;
  --white: #fff;
  --line: #cfdeed;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
button { color: inherit; }
.wrap { width: min(calc(100% - 40px), var(--wrap)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 100; padding: 12px 16px; color: var(--white); background: var(--blue-deep); border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.app-header { position: absolute; inset: 0 0 auto; z-index: 10; color: var(--white); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.24); }
.brand img { width: 188px; height: auto; filter: drop-shadow(0 5px 12px rgba(0,0,0,.18)); }
.app-header nav { display: flex; align-items: center; gap: 24px; }
.app-header nav a { color: var(--white); font-weight: 750; text-decoration: none; }

.button { min-height: 52px; padding: 14px 22px; border: 2px solid transparent; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 850; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px rgba(6,38,95,.16); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(6,38,95,.24); }
.button:disabled { cursor: default; opacity: .7; transform: none; }
.button-small { min-height: 42px; padding: 9px 15px; color: var(--blue-deep); background: var(--yellow); box-shadow: none; }
.button-primary { color: var(--blue-deep); background: var(--yellow); }
.button-light { color: var(--blue-deep); background: var(--white); box-shadow: none; }
.button-white { color: var(--blue-deep); background: var(--white); }
.text-link { color: var(--white); font-weight: 800; text-underline-offset: 5px; }

.hero { min-height: 740px; padding: 140px 0 72px; overflow: hidden; color: var(--white); background: radial-gradient(circle at 78% 48%, #1ca7f1 0, #087ce8 22%, transparent 48%), linear-gradient(126deg, var(--blue-deep), var(--blue) 64%, #0859bd); }
.hero-grid { display: grid; grid-template-columns: .88fr 1.12fr; align-items: center; gap: 58px; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.kicker, .section-mark { margin: 0 0 14px; color: var(--orange); font-weight: 900; }
.hero .kicker { color: var(--yellow); }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; max-width: 690px; font-size: clamp(3.3rem, 6.6vw, 6.6rem); line-height: .91; letter-spacing: -.065em; }
.hero-lead { max-width: 610px; margin: 26px 0 0; font-size: clamp(1.08rem, 1.6vw, 1.34rem); color: #e5f3ff; }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.install-note { margin: 20px 0 0; color: #cde7ff; font-size: .92rem; font-weight: 720; }
.install-status { min-height: 1.6em; margin: 12px 0 0; color: var(--yellow); font-weight: 800; }

.mascot-stage { position: relative; min-height: 550px; align-self: end; }
.mascot { position: absolute; bottom: -40px; margin: 0; width: 54%; aspect-ratio: 1; overflow: hidden; border: 5px solid rgba(255,255,255,.7); border-radius: 50%; box-shadow: 0 24px 54px rgba(0,16,62,.36); background: #078fe2; }
.mascot img { width: 100%; height: 100%; object-fit: cover; }
.mascot-gasco { left: -3%; z-index: 1; transform: rotate(-7deg); }
.mascot-lipigas { left: 27%; bottom: -28px; z-index: 3; width: 59%; }
.mascot-abastible { right: -13%; z-index: 2; transform: rotate(7deg); }
.home-badge { position: absolute; right: 2%; top: 7%; z-index: 5; padding: 10px 14px 10px 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; display: flex; align-items: center; gap: 9px; color: var(--blue-deep); background: rgba(255,255,255,.94); font-size: .86rem; font-weight: 850; box-shadow: 0 12px 30px rgba(0,29,88,.22); transform: rotate(3deg); }
.home-badge span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--blue-deep); background: var(--yellow); font-size: 1.3rem; }

section { scroll-margin-top: 24px; }
h2 { margin: 0; font-size: clamp(2.25rem, 4.3vw, 4.6rem); line-height: 1; letter-spacing: -.055em; color: var(--blue-deep); }
h3 { margin: 0; font-size: 1.25rem; line-height: 1.15; }
.problem { padding: 104px 0; }
.problem-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 9vw; }
.problem-grid > p { margin: 0 0 4px; max-width: 550px; color: var(--muted); font-size: 1.24rem; }

.agitation { color: var(--white); background: var(--blue-deep); }
.agitation .section-mark { color: #ffad70; }
.agitation-inner { padding: 94px 0 88px; }
.agitation h2 { max-width: 990px; color: var(--white); }
.agitation h2 span { color: #89bff0; }
.friction-line { margin-top: 52px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 18px; color: #dcecff; font-weight: 800; }
.friction-line i { height: 2px; background: linear-gradient(90deg, var(--orange), var(--yellow)); }

.solution { padding: 116px 0; background: var(--ice); }
.solution-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 10vw; }
.app-tile { justify-self: center; text-align: center; font-weight: 850; color: var(--blue-deep); }
.app-tile img { width: min(320px, 62vw); height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 26%; box-shadow: 0 30px 55px rgba(6,38,95,.24); }
.app-tile span { display: block; margin-top: 17px; }
.solution-grid > div:last-child > p:not(.section-mark) { max-width: 630px; margin: 25px 0 30px; color: var(--muted); font-size: 1.15rem; }

.benefits { padding: 110px 0; }
.benefits h2 { max-width: 700px; }
.benefit-list { margin-top: 64px; border-top: 2px solid var(--blue-deep); }
.benefit-list article { min-height: 150px; padding: 32px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 90px 1fr 1.2fr; align-items: start; gap: 30px; }
.benefit-list article > span { color: var(--orange); font-weight: 950; font-size: 1.1rem; }
.benefit-list h3 { color: var(--blue-deep); font-size: 1.55rem; }
.benefit-list p { margin: 0; color: var(--muted); }

.instructions { padding: 110px 0; color: var(--white); background: var(--blue); }
.instructions h2, .instructions .section-mark { color: var(--white); }
.instructions .section-mark { color: var(--yellow); }
.instructions-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.platforms { margin-top: 54px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.platforms article { padding: 34px; border: 1px solid rgba(255,255,255,.24); border-radius: 22px; background: rgba(4,35,91,.44); }
.platforms article.is-recommended { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,210,31,.18); }
.platform-title { display: flex; align-items: center; gap: 16px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.22); }
.platform-title h3 { font-size: 1.55rem; }
.platform-title p { margin: 3px 0 0; color: #bedcf7; }
.platform-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: var(--blue-deep); background: var(--yellow); font-size: 1.25rem; font-weight: 950; }
.platforms ol { list-style: none; counter-reset: steps; margin: 28px 0 0; padding: 0; display: grid; gap: 24px; }
.platforms li { position: relative; min-height: 44px; padding-left: 58px; counter-increment: steps; }
.platforms li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #8cc2f1; border-radius: 50%; color: var(--yellow); font-weight: 900; }
.platforms li strong, .platforms li span { display: block; }
.platforms li span { color: #bedcf7; margin-top: 2px; }

.social-proof { padding: 110px 0; background: #fff8df; }
.proof-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; }
.disclosure { max-width: 500px; margin-top: 24px; color: var(--muted); }
.example-list { border-top: 2px solid var(--orange); }
blockquote { margin: 0; padding: 32px 0; border-bottom: 1px solid #e1cfa3; }
blockquote p { margin: 0; color: var(--blue-deep); font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 780; line-height: 1.35; }
blockquote footer { margin-top: 15px; color: #725f35; font-size: .88rem; font-weight: 800; }

.faq { padding: 110px 0; }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 9vw; }
.faq-list { border-top: 2px solid var(--blue-deep); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 25px 50px 25px 0; cursor: pointer; list-style: none; color: var(--blue-deep); font-size: 1.12rem; font-weight: 850; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 20px; color: var(--orange); font-size: 1.6rem; }
details[open] summary::after { content: "−"; }
details p { margin: -8px 48px 25px 0; color: var(--muted); }

.closing { color: var(--white); background: linear-gradient(105deg, var(--blue-deep), var(--blue)); overflow: hidden; }
.closing-inner { min-height: 260px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 42px; }
.closing img { align-self: end; width: 180px; height: 220px; object-fit: cover; object-position: 50% 18%; border-radius: 95px 95px 0 0; }
.closing h2 { color: var(--white); font-size: clamp(2.2rem, 3.5vw, 3.7rem); }
.closing p { margin: 12px 0 0; color: #bddcf8; }
.app-footer { padding: 34px 0; background: #031b44; color: #b7cee5; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner img { width: 160px; height: auto; }
.footer-inner a { color: var(--white); font-weight: 800; }

@media (max-width: 920px) {
  .app-header nav > a { display: none; }
  .hero { min-height: 0; padding-bottom: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; overflow: hidden; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .mascot-stage { width: min(700px, 100%); min-width: 0; max-width: 100%; min-height: 470px; margin-inline: auto; }
  .problem-grid, .proof-grid, .faq-grid { grid-template-columns: 1fr; gap: 38px; }
  .solution-grid { gap: 7vw; }
  .closing-inner { grid-template-columns: 140px 1fr; }
  .closing img { width: 140px; height: 190px; }
  .closing .button { grid-column: 1 / -1; margin-bottom: 32px; }
}

@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 28px), var(--wrap)); }
  .header-inner { min-height: 72px; }
  .brand img { width: 146px; }
  .button-small { min-height: 40px; padding: 8px 12px; font-size: .9rem; }
  .hero { padding-top: 112px; }
  h1 { font-size: clamp(2.9rem, 14vw, 4.1rem); }
  .hero-actions { display: grid; gap: 16px; }
  .hero-actions .button { width: 100%; }
  /* Los tres círculos quedan dentro de la sección, sin cortes inferior ni lateral. */
  .mascot-stage { width: 100%; min-height: clamp(280px, 90vw, 360px); }
  .mascot { bottom: 22px; width: 46%; border-width: 3px; }
  .mascot-gasco { left: 0; }
  .mascot-lipigas { left: 26%; bottom: 52px; width: 48%; }
  .mascot-abastible { right: 0; }
  .home-badge { top: 0; right: 1%; font-size: .75rem; }
  .problem, .solution, .benefits, .instructions, .social-proof, .faq { padding: 78px 0; }
  .problem-grid > p { font-size: 1.08rem; }
  .friction-line { grid-template-columns: 1fr; gap: 10px; }
  .friction-line i { width: 46px; }
  .solution-grid { grid-template-columns: 1fr; text-align: center; }
  .app-tile img { width: 210px; margin-inline: auto; }
  .solution-grid > div:last-child > p:not(.section-mark) { margin-inline: auto; }
  .benefit-list article { grid-template-columns: 50px 1fr; gap: 12px; }
  .benefit-list article p { grid-column: 2; }
  .instructions-heading { align-items: stretch; flex-direction: column; }
  .platforms { grid-template-columns: 1fr; }
  .platforms article { padding: 25px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .closing-inner { grid-template-columns: 94px 1fr; gap: 18px; padding-top: 34px; }
  .closing img { width: 94px; height: 142px; }
}

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

/* Confirmación posterior a la instalación nativa de la PWA. */
.install-success-backdrop[hidden] { display: none; }
.install-success-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(3, 20, 52, .76); }
.install-success-dialog { position: relative; width: min(100%, 460px); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 42px 28px 32px; border-radius: 24px; background: var(--white); box-shadow: 0 32px 90px rgba(0, 0, 0, .3); text-align: center; }
.install-success-close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ice); color: var(--blue-deep); font-size: 1.6rem; cursor: pointer; }
.install-success-icon { margin: 0 auto 18px; border-radius: 22px; box-shadow: 0 10px 28px rgba(6, 38, 95, .2); }
.install-success-kicker { margin: 0 0 10px; color: var(--blue); font-weight: 850; }
.install-success-dialog h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.08; }
.install-success-dialog > p:not(.install-success-kicker) { margin: 18px auto 25px; max-width: 360px; color: var(--muted); }
.install-success-action { width: 100%; }
body.install-success-open { overflow: hidden; }

/* Aviso de instalación en curso: visible y próximo al botón principal. */
.install-success-dialog .install-success-wait { max-width: none; margin: 0 0 18px; padding: 15px 16px; border: 2px solid #e3a900; border-radius: 14px; color: #423000; background: #fff2b8; font-size: .96rem; font-weight: 600; line-height: 1.45; text-align: left; }
.install-success-wait strong { display: block; margin-bottom: 5px; color: #462900; font-size: 1.03rem; }
.install-success-dialog .install-success-wait-active { border-color: #b94700; background: #ffe0bf; box-shadow: 0 0 0 3px rgba(185, 71, 0, .14); }
