/* «Mi app» on mesero-tpv.es (2026-10-28, asked by the Mi app lane): each Pro venue's own customer app (live 30 Oct, marked «Nuevo»).
 * Used by /app-propia, /en/own-app and the homes' section, on top of home.css (and product.css on the two pages).
 * Two phones drawn in code, an iPhone and an Android, show one made-up venue's app and are labelled as an illustration;
 * the page's preview takes the visitor's name and colour (js/miapp.js: nothing leaves the browser). The offer's three
 * sentences sit beside every offer (.miapp-terms, the lane's legal review). Nothing moves under reduced motion. */

/* «Nuevo» / «New»: a pill with a slow pulse */
.miapp-new{display:inline-flex;align-items:center;gap:7px;margin-left:10px;padding:5px 11px 5px 9px;border-radius:999px;background:rgba(194,50,31,.09);color:var(--coral-ink);font:800 .68rem/1 var(--body);letter-spacing:.12em;text-transform:uppercase;vertical-align:middle}
.hero .miapp-new{margin-left:0;background:rgba(255,143,122,.14);color:var(--coral-soft)}
.miapp-new::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:currentColor;animation:miapp-ping 2.4s ease-out infinite}
@keyframes miapp-ping{0%{box-shadow:0 0 0 0 rgba(255,97,82,.5)}70%,100%{box-shadow:0 0 0 9px rgba(255,97,82,0)}}

/* The offer, in the same view as every mention of it */
.miapp-terms{display:grid;gap:10px;max-width:36rem;margin:26px 0 0;padding:0;list-style:none}
.miapp-terms li{position:relative;padding-left:30px;color:var(--text-2);font-size:.95rem;line-height:1.55}
.miapp-terms li::before{content:"";position:absolute;left:0;top:.15em;width:20px;height:20px;border-radius:50%;background:rgba(235,64,55,.11) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2321f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M12 7.2h.01'/%3E%3C/svg%3E") center/14px no-repeat}
.miapp-terms li:first-child{color:var(--text);font-weight:700}
.miapp-terms li:first-child::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2321f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}
.hero .miapp-terms li{color:var(--on-ink-2)}
.hero .miapp-terms li:first-child{color:var(--on-ink)}
.hero .miapp-terms li::before{background-color:rgba(255,143,122,.16);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8f7a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 11v6'/%3E%3Cpath d='M12 7.2h.01'/%3E%3C/svg%3E")}
.hero .miapp-terms li:first-child::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8f7a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")}

/* The phones: one app, an iPhone in front and an Android behind it. --app is the venue's colour. */
.miapp-stage{--app:#127a62;position:relative;isolation:isolate;margin:0}
.miapp-duo{position:relative;display:flex;justify-content:center;align-items:center;min-height:640px}
.miapp-duo::before{content:"";position:absolute;z-index:-1;inset:8% 4%;border-radius:50%;background:radial-gradient(closest-side,rgba(18,122,98,.5),transparent);background:radial-gradient(closest-side,color-mix(in srgb,var(--app) 52%,transparent),transparent);filter:blur(34px);opacity:.8}
.miapp-phone{position:relative;flex:none;width:272px;height:580px;padding:10px;border-radius:48px;background:linear-gradient(150deg,#34363d,#0d0e11 52%,#202228);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.16),0 0 0 1px rgba(0,0,0,.55),0 44px 90px -30px rgba(0,0,0,.7)}
.miapp-phone.is-android{border-radius:40px;padding:9px;background:linear-gradient(150deg,#2c3a36,#0e1211 55%,#1d2523)}
.miapp-duo .is-ios{z-index:2;translate:-24% 2%;rotate:-5deg;animation:miapp-float 7s ease-in-out infinite}
.miapp-duo .is-android{position:absolute;z-index:1;left:50%;top:50%;margin:-290px 0 0 -136px;translate:34% -3%;rotate:6deg;scale:.9;animation:miapp-float 7s ease-in-out -3.5s infinite}
.miapp-stage--one .is-ios{translate:none;rotate:none}
@keyframes miapp-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-12px)}}
.miapp-ex{margin-top:8px;color:var(--on-ink-3);font-size:.8rem;font-weight:600;text-align:center}

.miapp-scr{position:relative;display:flex;flex-direction:column;height:100%;overflow:hidden;border-radius:39px;background:#f8f6f2;color:#17181c;font:500 12px/1.4 var(--body);text-align:left}
.is-android .miapp-scr{border-radius:32px}
.miapp-scr::after{content:"";position:absolute;z-index:3;left:50%;bottom:7px;width:96px;height:4px;margin-left:-48px;border-radius:3px;background:#17181c;opacity:.85}
.is-android .miapp-scr::after{bottom:6px;width:72px;height:3px;margin-left:-36px;opacity:.6}
.miapp-island{position:absolute;z-index:5;top:10px;left:50%;width:86px;height:25px;margin-left:-43px;border-radius:14px;background:#000}
.miapp-hole{position:absolute;z-index:5;top:11px;left:50%;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#000;box-shadow:0 0 0 2px #151515}
.miapp-status{display:flex;flex:none;justify-content:space-between;align-items:center;height:44px;padding:4px 22px 0 30px;font:700 12.5px/1 var(--body)}
.is-android .miapp-status{height:36px;padding:2px 18px 0;font-size:11.5px;font-weight:600}
.miapp-status svg{width:52px;height:12px}

.miapp-head{display:flex;flex:none;align-items:center;gap:10px;padding:6px 16px 10px}
.miapp-logo{display:grid;flex:none;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--app);color:#fff;font:700 13px/1 var(--display);letter-spacing:.02em;box-shadow:0 8px 16px -8px var(--app);transition:background-color .5s var(--ease)}
.miapp-name{display:block;max-width:168px;overflow:hidden;font:700 15px/1.2 var(--display);letter-spacing:-.01em;white-space:nowrap;text-overflow:ellipsis}
.miapp-open{display:block;color:#5f636c;font-size:10.5px;font-weight:600}
.miapp-open::before{content:"";display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#2e9d62;vertical-align:1px}
.miapp-hi{flex:none;padding:2px 16px 0}
.miapp-hi b{display:block;font:700 17px/1.2 var(--display);letter-spacing:-.02em}
.miapp-hi span{color:#5f636c}
.miapp-seg{display:flex;flex:none;margin:12px 16px 0;padding:3px;border-radius:12px;background:#ece8e1}
.miapp-seg span{flex:1;padding:7px 0;border-radius:9px;color:#5f636c;font-size:11px;font-weight:700;text-align:center}
.miapp-seg .is-on{background:#fff;color:#17181c;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.miapp-pts{flex:none;margin:12px 16px 0;padding:13px 14px 14px;border-radius:17px;background-color:var(--app);background-image:radial-gradient(120% 140% at 100% 0%,rgba(255,255,255,.3),transparent 55%);color:#fff;transition:background-color .5s var(--ease)}
.miapp-pts small{display:block;font-size:9.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;opacity:.86}
.miapp-pts strong{display:block;margin-top:4px;font:700 27px/1 var(--display);letter-spacing:-.03em}
.miapp-pts span{display:block;margin-top:6px;font-size:10.5px;opacity:.92}
.miapp-meter{height:5px;margin-top:8px;overflow:hidden;border-radius:5px;background:rgba(255,255,255,.3)}
.miapp-meter i{display:block;width:80%;height:100%;border-radius:inherit;background:#fff}
.miapp-row{display:flex;flex:none;justify-content:space-between;align-items:baseline;padding:14px 16px 7px;font:700 13px/1.2 var(--display)}
.miapp-row small{color:var(--app);font:700 10.5px/1 var(--body)}
.miapp-dishes{display:grid;flex:none;grid-template-columns:1fr 1fr;gap:9px;padding:0 16px}
.miapp-dish{overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 3px 10px rgba(23,20,18,.07)}
.miapp-dish i{display:grid;place-items:center;height:60px;background:#e3f0ec;background:color-mix(in srgb,var(--app) 13%,#fff8f0);color:var(--app)}
.miapp-dish i svg{width:46px;height:30px}
.miapp-dish b{display:block;padding:7px 9px 0;font-size:10.5px;line-height:1.25}
.miapp-dish span{display:flex;justify-content:space-between;align-items:center;padding:3px 9px 8px;color:#5f636c;font-size:10px;font-weight:700}
.miapp-dish span::after{content:"+";display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--app);color:#fff;font-size:13px;line-height:1}
.miapp-tabs{display:flex;justify-content:space-around;margin-top:auto;padding:8px 6px 22px;border-top:1px solid #ece7df;background:#fff}
.miapp-tabs span{display:flex;flex-direction:column;align-items:center;gap:3px;color:#8b8f98;font-size:9px;font-weight:700}
.miapp-tabs i{display:grid;place-items:center;width:44px;height:24px;border-radius:12px}
.miapp-tabs svg{width:18px;height:18px}
.miapp-tabs .is-on{color:var(--app)}
.is-android .miapp-tabs{padding:8px 6px 17px;border-top:0;background:#f1eee8}
.is-android .miapp-tabs .is-on{color:#17181c}
.is-android .miapp-tabs .is-on i{background:#d5ece5;background:color-mix(in srgb,var(--app) 20%,#fff)}

/* A notice drops onto the iPhone's screen, stays a while and goes. It slides in solid from behind the top edge: a fade
 * let the app's header show through it for a moment (seen by mesero-48 on the 28 Oct render). */
.miapp-push{position:absolute;z-index:4;top:50px;left:12px;right:12px;display:flex;align-items:flex-start;gap:9px;padding:10px 11px;border-radius:19px;background:rgba(250,250,252,.97);-webkit-backdrop-filter:blur(14px) saturate(1.4);backdrop-filter:blur(14px) saturate(1.4);box-shadow:0 14px 32px -10px rgba(0,0,0,.4);color:#17181c;font-size:11px;line-height:1.35;animation:miapp-push 9s var(--ease) 1.2s infinite both}
.miapp-push .miapp-logo{width:28px;height:28px;border-radius:8px;font-size:10px;box-shadow:none}
.miapp-push p{flex:1;min-width:0}
.miapp-push b{display:flex;justify-content:space-between;gap:8px;color:#5f636c;font-size:9.5px;letter-spacing:.04em;text-transform:uppercase}
.miapp-push b span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.miapp-push b em{flex:none;font-style:normal;letter-spacing:0;text-transform:none}
@keyframes miapp-push{0%,4%{transform:translateY(calc(-100% - 64px))}12%,64%{transform:none}74%,100%{transform:translateY(calc(-100% - 64px))}}

/* The product page's hero */
.miapp-hero .hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.miapp-hero .hero-lead{max-width:34rem}
.miapp-hero h1 em{font-style:normal;color:var(--coral-soft)}

/* Sections on paper */
.miapp-sec{padding:clamp(64px,6.7vw,104px) 0}
.miapp-sec--alt{background:var(--paper-2)}
.miapp-sec h2,.miapp-live h2{font-size:clamp(1.95rem,1.3rem + 1.9vw,3rem);line-height:1.04;letter-spacing:-.035em;text-wrap:balance}
.miapp-sec h2 em,.miapp-live h2 em,.miapp-home h2 em,.miapp-price h2 em{font-style:normal;color:var(--coral-ink)}
.miapp-sec .sub,.miapp-live .sub{max-width:42rem;margin-top:16px;color:var(--text-2);font-size:1.075rem;line-height:1.65}
.miapp-feats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:44px 0 0;padding:0;list-style:none}
.miapp-feats li,.miapp-steps li{padding:24px 22px 26px;border-radius:22px;background:#fff;box-shadow:0 0 0 1px var(--line),0 18px 36px -28px rgba(21,22,28,.4)}
.miapp-feats svg{width:42px;height:42px;margin-bottom:16px;padding:10px;border-radius:13px;background:rgba(255,97,82,.12);color:var(--coral-ink)}
.miapp-feats strong,.miapp-steps strong{display:block;margin-bottom:8px;font:700 1.15rem/1.25 var(--display)}
.miapp-feats span,.miapp-steps li > span:last-child{color:var(--text-2);font-size:.95rem;line-height:1.55}

/* Who does what: the five steps */
.miapp-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:44px 0 0;padding:0;list-style:none;counter-reset:miapp-step}
.miapp-steps li{position:relative;padding:22px 20px 24px}
.miapp-steps li::before{counter-increment:miapp-step;content:counter(miapp-step);position:absolute;top:20px;right:20px;color:rgba(21,22,28,.18);font:700 1.6rem/1 var(--display)}
.miapp-who{display:inline-block;margin-bottom:14px;padding:4px 10px;border-radius:999px;background:#ecebf3;color:#3c3f63;font:800 .68rem/1.2 var(--body);letter-spacing:.1em;text-transform:uppercase}
.miapp-who--you{background:rgba(255,97,82,.13);color:var(--coral-ink)}
.miapp-who--stores{background:#e4f0ea;color:#22603c}
.miapp-lock{display:flex;align-items:flex-start;gap:14px;max-width:46rem;margin-top:26px;padding:16px 18px;border-radius:16px;background:#fff;box-shadow:0 0 0 1px var(--line);color:var(--text-2);font-size:.95rem;line-height:1.55}
.miapp-lock svg{flex:none;width:22px;height:22px;margin-top:1px;color:var(--coral-ink)}
.miapp-lock strong{color:var(--text)}

/* The preview with the visitor's own name and colour */
.miapp-live{padding:clamp(64px,6.7vw,104px) 0;background:var(--paper-2)}
.miapp-live-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:clamp(36px,5vw,80px);align-items:center}
.miapp-form{display:grid;gap:24px;max-width:30rem;margin-top:30px}
.miapp-form label[for]{display:block;margin-bottom:8px;font:700 .92rem/1.3 var(--body)}
.miapp-form input[type=text]{width:100%;height:54px;padding:0 16px;border:1.5px solid rgba(21,22,28,.2);border-radius:14px;background:#fff;color:var(--text);font:600 1.05rem/1 var(--body)}
.miapp-form input[type=text]:focus{border-color:var(--coral-btn);outline:3px solid rgba(255,97,82,.3);outline-offset:1px}
.miapp-swatches{display:flex;flex-wrap:wrap;gap:12px;margin:0;padding:0;border:0}
.miapp-swatches legend{margin-bottom:10px;padding:0;font:700 .92rem/1.3 var(--body)}
.miapp-swatches label{position:relative;width:44px;height:44px;border-radius:50%;background:var(--c);box-shadow:inset 0 0 0 2px rgba(255,255,255,.35);cursor:pointer;transition:box-shadow .2s}
.miapp-swatches input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.miapp-swatches label.is-on{box-shadow:0 0 0 3px var(--paper-2),0 0 0 5px var(--c)}
.miapp-swatches label:has(input:focus-visible){outline:3px solid var(--coral-btn);outline-offset:5px}
.miapp-note{color:var(--text-3);font-size:.88rem}
.miapp-live .miapp-duo{min-height:620px}
.miapp-live .miapp-ex,.miapp-home .miapp-ex{color:var(--text-3)}

/* The homes' section */
.miapp-home{position:relative;overflow:hidden;padding:clamp(72px,7vw,112px) 0;background:radial-gradient(60% 70% at 85% 45%,rgba(18,122,98,.09),transparent 70%),var(--paper)}
.miapp-home-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(36px,5vw,80px);align-items:center}
.miapp-home h2{font-size:clamp(2.1rem,1.3rem + 2.4vw,3.4rem);line-height:1.02;letter-spacing:-.035em;text-wrap:balance}
.miapp-home .lead{max-width:34rem;margin-top:18px;color:var(--text-2);font-size:1.075rem;line-height:1.65}
.miapp-home .miapp-duo{min-height:600px}
.miapp-cta{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:30px}

/* The page's price: two plans */
.p-plans.miapp-plans{grid-template-columns:repeat(2,minmax(0,1fr));max-width:52rem}
.miapp-price .miapp-terms{margin-top:28px}

@media (prefers-reduced-motion:reduce){
  .miapp-duo .is-ios,.miapp-duo .is-android,.miapp-new::before{animation:none}
  .miapp-push{animation:none;transform:none}
}
@media (max-width:1099.98px){
  .miapp-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
  .miapp-feats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:959.98px){
  .miapp-hero .hero-grid,.miapp-home-grid,.miapp-live-grid{grid-template-columns:1fr}
}
@media (max-width:679.98px){
  .miapp-duo,.miapp-home .miapp-duo,.miapp-live .miapp-duo{min-height:510px}
  .miapp-phone{width:226px;height:482px;padding:8px;border-radius:40px}
  .miapp-phone.is-android{padding:8px;border-radius:34px}
  .miapp-scr{border-radius:33px;font-size:11px}
  .miapp-island{top:8px;width:64px;height:20px;margin-left:-32px}
  .miapp-status{padding:2px 16px 0 24px;font-size:11px}
  .miapp-status svg{width:44px}
  .is-android .miapp-scr{border-radius:27px}
  .miapp-duo .is-ios{translate:-18% 2%}
  .miapp-duo .is-android{margin:-241px 0 0 -113px;translate:30% -3%;scale:.86}
  .miapp-stage--one .is-ios{translate:none}
  .miapp-name{max-width:132px;font-size:13.5px}
  .miapp-hi b{font-size:15px}
  .miapp-pts strong{font-size:23px}
  .miapp-dish i{height:48px}
  .miapp-steps,.miapp-feats,.p-plans.miapp-plans{grid-template-columns:1fr}
}
