/* ARTERNATIVAS Estudio · app para el móvil */

/* Modo app: Mi estudio y COVA a pantalla completa */
body.estudio-app-shell { margin: 0 !important; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) !important; background: #1a3f5c !important; min-height: 100vh; }
body.estudio-app-shell .estudio-app-main { background: #fdfcf9; min-height: 100vh; }
body.estudio-app-shell .estudio-host { max-width: none !important; margin: 0 !important; }
body.estudio-app-shell .estudio-host > .es { border: 0; border-radius: 0; box-shadow: none; margin: 0; min-height: 100vh; }
body.estudio-app-shell .es-top { position: sticky; top: 0; z-index: 20; }
body.estudio-app-shell .es-acceso { padding: 32px 20px; }

/* Botón «Hacer una foto» (solo en pantallas táctiles) */
.es-drop.es-cam { display: none; }
@media (pointer: coarse) { .es-drop.es-cam { display: grid; } }
.es-cam .es-drop-ico { display: grid; place-items: center; }

/* Aviso para instalar la app */
.es-instalar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 99999; display: grid; grid-template-columns: 56px 1fr; gap: 12px 14px; align-items: center; max-width: 520px; margin: 0 auto; padding: 16px; border-radius: 16px; background: #1a3f5c; color: #fff; border-left: 6px solid #fcb800; box-shadow: 0 14px 40px rgba(0,0,0,.3); font: 15px/1.45 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; animation: es-inst-sube .35s ease-out; }
.es-instalar img { width: 56px; height: 56px; border-radius: 13px; display: block; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.es-instalar strong { display: block; font-size: 16px; line-height: 1.3; margin-bottom: 2px; color: #fff; }
.es-instalar span { color: #d6e2ec; }
.es-instalar .es-inst-acc { grid-column: 1 / -1; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.es-instalar button { font: 600 15px/1 'Inter', system-ui, sans-serif; border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; }
.es-instalar .es-inst-si { background: #fcb800; color: #1a3f5c; }
.es-instalar .es-inst-no { background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 3px; padding: 13px 8px; }
.es-instalar .es-inst-pasos { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,.08); list-style: none; display: grid; gap: 6px; color: #fff; }
.es-instalar .es-inst-pasos b { color: #fcb800; }
.es-instalar svg { width: 18px; height: 18px; vertical-align: -3px; }
@keyframes es-inst-sube { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .es-instalar { animation: none; } }

/* COVA dentro de la app: botón para volver a Mi estudio (en iPhone no hay botón «atrás») */
.es-app-volver { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #fdfcf9; border-bottom: 1px solid #e6e2d8; font: 600 15px/1.2 'Inter', system-ui, sans-serif; }
.es-app-volver a, .es-app-volver a:visited { color: #1a3f5c; text-decoration: none; }
