/* App v8: las capturas y el teléfono se componen sin alterar los PNG originales. */
.app-section { position: relative; isolation: isolate; padding-block: 78px 88px; }
.app-atmosphere { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 18% 50%, #155dfd15, transparent 45%), radial-gradient(ellipse at 45% 70%, #ff631619, transparent 40%); -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 75%, transparent); }
[data-theme='dark'] .app-atmosphere { background: radial-gradient(ellipse at 18% 42%, #155dfd25, transparent 45%), radial-gradient(ellipse at 47% 70%, #ff63161c, transparent 43%); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(48px, 7vw, 110px); }
.app-preview { margin: 0; min-width: 0; }
.app-device-stage { display: grid; place-items: center; padding-inline: 12px; }
.app-device { position: relative; width: min(100%, 340px); aspect-ratio: 389 / 800; filter: drop-shadow(0 35px 36px #0b1c4030); }
[data-theme='dark'] .app-device { filter: drop-shadow(0 30px 40px #0009); }
.app-device-frame { position: relative; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.app-device-screen { position: absolute; top: 1.5%; bottom: 1.5%; left: 3.856%; right: 3.856%; overflow: hidden; border-radius: 16% / 7.4%; background: #edf0f4; color: #111827; }
[data-theme='dark'] .app-device-screen { background: #0b1117; color: #f8fafc; }
.app-device-status { position: absolute; top: 1.9%; left: 8%; right: 8%; height: 3.8%; display: flex; align-items: center; justify-content: space-between; font-size: 11px; line-height: 1; font-weight: 650; }
.device-status-icons { display: inline-flex; align-items: center; gap: 4px; }
.device-status-icons img { height: 11px; width: auto; }
[data-theme='dark'] .device-status-icons img { filter: invert(1); }
.app-screen-content { position: absolute; inset: 6.2% 0 0; overflow: hidden; }
.app-screen-image { position: absolute; max-width: none; object-fit: fill; }
/* Ventana de contenido del PNG claro: x=42, y=70, ancho=380, alto=804. */
.app-screen-light { width: 117.368421%; height: 113.308458%; left: -11.052632%; top: -8.706468%; }
/* Ventana de contenido del PNG oscuro: x=43, y=79, ancho=386, alto=806. */
.app-screen-dark { width: 118.911917%; height: 113.399504%; left: -11.139896%; top: -9.801489%; }
[data-app-theme='dark'] { display: none; }
[data-theme='dark'] [data-app-theme='light'] { display: none; }
[data-theme='dark'] [data-app-theme='dark'] { display: block; }
.app-preview figcaption { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 27px; color: var(--muted); font-size: .8125rem; }
.app-caption-mark { width: 19px; height: 3px; border-radius: 10px; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.app-copy { max-width: 560px; padding-block: 30px; }
.app-copy > .eyebrow { margin-bottom: 26px; }
.app-copy h2 { font-size: clamp(2.8rem, 4.8vw, 4.4rem); line-height: 1.08; letter-spacing: -.055em; }
.app-description { max-width: 440px; margin-top: 26px; font-size: 1.0625rem; line-height: 1.85; }
.app-platforms { display: flex; align-items: center; gap: 9px; margin-top: 31px; font-size: .875rem; font-weight: 550; color: var(--ink); }
.app-platforms .icon { color: var(--blue-ink); width: 19px; height: 19px; flex-basis: 19px; }
.app-store-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.store-button { display: flex; align-items: center; justify-content: flex-start; gap: 14px; min-height: 70px; min-width: 195px; padding: 12px 21px; border: 1px solid #ffffff24; border-radius: 16px; background: #111826; color: #fff; text-align: left; box-shadow: 0 10px 25px -15px #11182660; transition: transform .25s, box-shadow .25s, border-color .25s; }
.store-button:hover { transform: translateY(-4px); box-shadow: 0 18px 32px -17px #155dfd65; border-color: #155dfd; }
.store-button:active { transform: translateY(-1px); }
.store-button .store-brand-icon { flex: 0 0 29px; width: 29px; height: 32px; object-fit: contain; filter: invert(1); }
.store-button small { display: block; font-size: .75rem; line-height: 1.35; letter-spacing: .025em; color: #e0e7f2; }
.store-button strong { display: block; margin-top: 3px; font-size: 1.3rem; line-height: 1.2; letter-spacing: -.03em; font-weight: 600; }
[data-theme='dark'] .store-button { background: #13233a; border-color: #2c405c; box-shadow: 0 12px 25px -18px #000; }
[data-theme='dark'] .store-button:hover { border-color: #85adff; }
.app-store-status { max-width: 440px; margin-top: 18px; font-size: .875rem; line-height: 1.7; }
.app-store-status strong { color: var(--orange-ink); font-weight: 600; }
.app-theme-note { display: flex; align-items: flex-start; gap: 9px; max-width: 350px; margin-top: 33px; font-size: .875rem; line-height: 1.65; }
.app-theme-note .icon { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px; color: var(--blue-ink); }

/* Aviso de las tiendas: el diálogo hereda los mismos colores de la página. */
html.store-dialog-open { overflow: hidden; }
.store-dialog:not([open]) { display: none; }
.store-dialog { width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 40px); margin: auto; padding: 39px; overflow: auto; border: 1px solid var(--line); border-radius: 28px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 120px #0005; }
.store-dialog[open] { animation: rise-in .25s ease-out; }
.store-dialog::backdrop { background: #06101f75; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.store-dialog form { margin: 0; }
.store-dialog-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; }
.store-dialog .eyebrow { margin: 27px 0 13px; font-size: .75rem; }
.store-dialog h2 { font-size: 2rem; line-height: 1.15; }
.store-dialog p:not(.eyebrow) { margin-top: 19px; font-size: 1rem; line-height: 1.8; }
.store-dialog .button { width: 100%; margin-top: 28px; }

@media (max-width: 1150px) {
  .app-grid { gap: 40px; }
  .app-device { max-width: 310px; }
  .app-store-buttons { gap: 10px; }
  .store-button { min-width: 180px; padding-inline: 17px; gap: 11px; }
}
@media (max-width: 900px) {
  .app-section { padding-block: 60px; }
  .app-grid { gap: 32px; }
  .app-device { max-width: 290px; }
  .app-copy h2 { font-size: 3rem; }
  .app-description { font-size: 1rem; }
  .app-store-buttons { flex-direction: column; align-items: flex-start; }
  .store-button { width: 195px; }
}
@media (max-width: 760px) {
  .app-grid { grid-template-columns: 1fr; gap: 42px; }
  .app-copy { grid-row: 1; max-width: 560px; padding-block: 0; }
  .app-copy h2 { font-size: clamp(2.8rem, 8vw, 3.7rem); }
  .app-copy > .eyebrow { margin-bottom: 21px; }
  .app-description { margin-top: 22px; }
  .app-platforms { margin-top: 25px; }
  .app-store-buttons { flex-direction: row; align-items: stretch; }
  .store-button { flex: 1 1 165px; min-width: 0; max-width: 225px; padding-inline: 15px; gap: 10px; }
  .store-button strong { font-size: 1.2rem; }
  .store-button .store-brand-icon { width: 25px; flex-basis: 25px; }
  .app-theme-note { margin-top: 24px; max-width: 440px; }
  .app-device { max-width: 320px; }
  .app-device-status { font-size: 10px; }
  .app-preview figcaption { margin-top: 22px; }
}
@media (max-width: 400px) {
  .store-button { flex-basis: 135px; padding: 12px; gap: 9px; }
  .store-button strong { font-size: 1.075rem; }
  .store-button .store-brand-icon { width: 23px; flex-basis: 23px; }
  .store-dialog { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .store-button:hover, .store-button:active { transform: none; }
}
@media print { .store-dialog, .app-store-buttons { display: none; } }
