/* Visor de teléfonos */
:root { --mesa: #EFE4D6; --mesa-2: #E6D8C6; }
html, body { height: 100%; }
body { background: radial-gradient(1200px 700px at 50% 30%, var(--crema) 0%, var(--mesa) 70%, var(--mesa-2) 100%); overflow: hidden; display: flex; flex-direction: column; }

.vbar { display: flex; align-items: center; gap: 14px; padding: 12px 20px; background: rgba(255,248,239,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea); flex-wrap: wrap; z-index: 10; }
.vlogo { display: flex; align-items: center; gap: 10px; }
.vlogo-m { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--tomate), var(--azafran)); color: #fff; display: grid; place-items: center; font: 700 17px var(--f-titulo); }
.vlogo b { font: 700 17px var(--f-titulo); display: block; line-height: 1.1; }
.vlogo small { font-size: 12px; color: var(--tinta-2); }
.vpages { margin: 0 auto; }
.vtools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vselect { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--papel); border: 1px solid var(--linea-2); }
.vselect select { border: 0; outline: 0; background: none; font-weight: 600; font-size: 14px; height: 100%; cursor: pointer; }
.vselect.hide { display: none; }
.vbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--papel); border: 1px solid var(--linea-2); font-weight: 600; font-size: 13.5px; transition: all .2s var(--ease); }
.vbtn.icon { width: 40px; padding: 0; justify-content: center; font-size: 17px; }
.vbtn:hover { border-color: var(--tinta-3); }
.vbtn.on { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.vbtn:active { transform: scale(.94); }

.stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 20px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: rise .6s var(--ease) both; }
.slot:nth-child(2) { animation-delay: .08s; } .slot:nth-child(3) { animation-delay: .16s; }
.slot-box { position: relative; transition: width .5s var(--ease), height .5s var(--ease); }
.slot-label { text-align: center; font-size: 13px; color: var(--tinta-2); }
.slot-label b { color: var(--tinta); display: block; font-size: 14px; }

/* Teléfono */
.device { position: absolute; top: 0; left: 0; transform-origin: top left; background: #1b1411; border-radius: var(--r-dev); padding: var(--bz); box-shadow: 0 0 0 2px #3a2d26, 0 40px 80px rgba(42,28,20,.28), 0 12px 24px rgba(42,28,20,.18); transition: transform .5s var(--ease); }
.device::before, .device::after { content: ""; position: absolute; background: #2d221d; border-radius: 3px; }
.device::before { left: -4px; top: 22%; width: 4px; height: 60px; }   /* botón volumen */
.device::after { right: -4px; top: 28%; width: 4px; height: 90px; }   /* botón encendido */
.screen { position: relative; width: var(--w); height: var(--h); border-radius: var(--r-scr); overflow: hidden; background: var(--crema); display: flex; flex-direction: column; }
.screen iframe { border: 0; width: 100%; flex: 1; min-height: 0; background: var(--crema); display: block; }

.sbar { height: var(--sb); flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 0 34px; font: 600 15px -apple-system, "SF Pro Text", "DM Sans", sans-serif; color: #111; background: var(--crema); position: relative; z-index: 2; }
.sbar .ic { display: flex; gap: 5px; align-items: center; }
.sbar svg { height: 12px; width: auto; }
.android .sbar { font: 500 13px Roboto, "DM Sans", sans-serif; padding: 0 18px; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; background: #000; border-radius: 20px; z-index: 3; }
.punch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 12px; height: 12px; background: #000; border-radius: 50%; z-index: 3; }
.homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 9px; background: #111; z-index: 4; pointer-events: none; }
.android .homebar { width: 100px; height: 4px; bottom: 6px; opacity: .6; }

/* iPhone SE: marcos grandes y botón de inicio */
.device.se { padding: 64px 14px; }
.device.se .screen { border-radius: 0; }
.device.se .sbar { padding: 0 8px; font-size: 12px; justify-content: space-between; }
.device.se .home-btn { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; border-radius: 50%; border: 2px solid #3a2d26; }
.device.se .speaker { position: absolute; top: 30px; left: 50%; transform: translateX(-50%); width: 60px; height: 6px; border-radius: 9px; background: #3a2d26; }

/* Barras del navegador */
.bbar { flex: none; background: #F6F1EA; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: #555; font-size: 13px; }
.bbar .url { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 500; color: #222; white-space: nowrap; overflow: hidden; }
.bbar .url svg { font-size: 12px; color: #666; }
.ios .bbar { height: 88px; align-items: flex-start; padding-top: 10px; border-top: 1px solid #e8e0d4; }
.ios.se .bbar { height: 46px; padding-top: 5px; }
.ios.se .bbar .url { height: 34px; }
.android .bbar { height: 56px; border-bottom: 1px solid #e8e0d4; }
.android .bbar .url { justify-content: flex-start; padding-left: 12px; border-radius: 999px; background: #EEE7DE; box-shadow: none; }
.bbar .tabs { width: 20px; height: 20px; border: 2px solid #555; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 700; }

/* Horizontal */
.landscape .sbar, .landscape .island, .landscape .punch { display: none; }

/* Ventana del QR */
.qr-pop { position: fixed; inset: 0; background: rgba(42,28,20,.45); display: grid; place-items: center; z-index: 100; animation: fadeIn .25s; padding: 16px; }
.qr-pop[hidden] { display: none; }
.qr-card { background: var(--crema); border-radius: 28px; padding: 28px; width: min(380px, 100%); text-align: center; position: relative; box-shadow: var(--sombra-3); animation: rise .4s var(--ease); }
.qr-card h3 { font-size: 24px; }
.qr-card > p.muted { margin-top: 6px; font-size: 14px; }
.qr-x { position: absolute; top: 12px; right: 12px; }
.qr-box { width: 220px; height: 220px; margin: 18px auto; background: #fff; padding: 14px; border-radius: 18px; box-shadow: var(--sombra-1); display: grid; place-items: center; }
.qr-box img, .qr-box canvas { width: 192px !important; height: 192px !important; }
.qr-box .noqr { font-size: 13px; color: var(--tinta-2); }
.link-row { display: flex; align-items: center; gap: 8px; background: var(--papel); border-radius: 12px; padding: 6px 6px 6px 12px; font-weight: 600; font-size: 13.5px; margin-bottom: 12px; text-align: left; }
.link-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
  .vbar { gap: 10px; padding: 10px 12px; }
  .vpages { order: 3; width: 100%; overflow-x: auto; }
  .vbtn span { display: none; }
  .vbtn:not(.icon) { width: 40px; padding: 0; justify-content: center; }
}

/* Tablets */
.tablet .sbar, .tablet.landscape .sbar { display: flex; padding: 0 22px; font-size: 12px; }
.ios.tablet .bbar { height: 50px; align-items: center; padding-top: 0; border-top: 0; border-bottom: 1px solid #e8e0d4; }
.tablet .homebar { width: 180px; }
.tablet.device::before, .tablet.device::after { display: none; }

/* Logo FullMenu */
.vlogo img { height: 34px; width: auto; display: block; }
.vlogo small { font-size: 12px; color: var(--tinta-2); padding-left: 10px; border-left: 1px solid var(--linea-2); }
