/* ==========================================================================
   ios.css — capa de estilo "iOS" de Zuma + secciones nuevas
   (historias, menú, búsqueda, publicar y descargas)
   ========================================================================== */

/* ------------------------------- marca ---------------------------------- */
.brand-text { display: flex; flex-direction: column; line-height: 1.02; min-width: 0; }
.brand-word {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -.9px;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}
.brand-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-top: 1px;
}
@media (max-width: 900px) {
  .brand-sub { display: none; }
}
@media (max-width: 767px) {
  .brand-text { display: flex; }
  .brand-word { font-size: 19px; letter-spacing: -.7px; }
  .brand img { width: 34px; height: 34px; border-radius: 10px; }
}
@media (max-width: 360px) {
  .brand-word { font-size: 17px; }
}

/* ------------------------- profundidad iOS general ----------------------- */
body {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(10, 132, 255, .10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(10, 132, 255, .16), transparent 70%),
    var(--bg);
}
.card, .page-card, .post, .shop-feed, .menu-card, .search-block,
.profile-header, .story-tile, .compose-card, .story-editor-panel {
  border-radius: 22px;
}
.card.post, .shop-feed { border-radius: 24px; }
.btn { height: 38px; border-radius: 14px; }
.btn.lg { height: 46px; border-radius: 16px; }
.btn.sm { height: 31px; border-radius: 11px; }
.btn.primary {
  background: linear-gradient(180deg, #2f93ff, #0a84ff);
  box-shadow: 0 8px 18px -10px rgba(10, 132, 255, .9);
}
.btn.primary:hover { background: linear-gradient(180deg, #238bff, #0071e3); }
.btn.soft { background: var(--brand-soft); color: var(--brand); }
.input, .textarea, .select { border-radius: 15px; }
.side-item { border-radius: 15px; }
.avatar { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08); }
html[data-theme="dark"] .avatar { box-shadow: 0 0 0 .5px rgba(255, 255, 255, .12); }
.mobile-nav {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
}
html[data-theme="dark"] .mobile-nav { background: rgba(18, 18, 20, .84); }
.page-head h1 { letter-spacing: -.6px; }

/* ------------------------------ historias -------------------------------- */
.stories-wrap { margin-bottom: 16px; }
.stories-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px 8px;
}
.stories-title { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.story-card { border-radius: 18px; }
.story-rail-text {
  position: absolute; left: 8px; right: 8px; top: 52px;
  color: #fff; text-align: center; font-size: 12.5px; line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; pointer-events: none;
}
.story-card .sc-name {
  display: block;
  -webkit-line-clamp: initial;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.search-big input::-webkit-search-cancel-button,
.search-big input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.stories-page { padding-bottom: 24px; }
.stories-head { align-items: flex-end; }
.stories-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: 12px;
}
.story-tile {
  position: relative; aspect-ratio: 9 / 14; overflow: hidden;
  background: var(--card-2); border: .5px solid var(--line-soft);
  box-shadow: var(--shadow-sm); padding: 0;
  transition: transform 160ms cubic-bezier(.2, .8, .3, 1);
}
.story-tile:hover { transform: translateY(-2px); }
.story-tile:active { transform: scale(.97); }
.story-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-tile-gradient { position: absolute; inset: 0; }
.story-tile-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 35%, transparent 55%, rgba(0, 0, 0, .68));
}
.story-tile-head {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; align-items: center; gap: 8px; color: #fff; z-index: 2;
}
.story-tile-name {
  font-size: 12.5px; font-weight: 700; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.story-tile-meta {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; justify-content: space-between;
  color: rgba(255, 255, 255, .92); font-size: 11.5px; font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .6); z-index: 2;
}
.story-tile-count { background: rgba(0, 0, 0, .35); border-radius: 999px; padding: 2px 8px; }
.story-tile-text {
  position: absolute; left: 12px; right: 12px; top: 42%;
  transform: translateY(-50%); color: #fff; text-align: center;
  font-size: 15px; line-height: 1.2; text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
  z-index: 2;
}
.story-tile.create {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: var(--card); border: 2px dashed var(--line);
  color: var(--text-2); box-shadow: none;
}
.story-tile-create {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.story-tile-create-label { font-size: 13px; font-weight: 700; }

/* fuentes del texto de las historias */
.story-font-clasica {
  font-family: -apple-system, "SF Pro Display", "Segoe UI", Helvetica, sans-serif;
  font-weight: 700;
}
.story-font-manuscrita {
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-weight: 600;
}
.story-font-serif {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 600;
}
.story-font-moderna {
  font-family: -apple-system, "SF Pro Display", "Segoe UI", Helvetica, sans-serif;
  font-weight: 800; text-transform: uppercase; letter-spacing: 1.6px;
}
.story-font-neon {
  font-family: -apple-system, "SF Pro Display", "Segoe UI", Helvetica, sans-serif;
  font-weight: 800;
  text-shadow: 0 0 8px #fff, 0 0 20px var(--brand), 0 0 36px var(--brand);
}

/* visor */
.story-viewer .sv-card { border-radius: 22px; }
.sv-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv-text {
  position: absolute; left: 20px; right: 20px; top: 21%; z-index: 2;
  color: #fff; text-align: center; font-size: clamp(22px, 6vw, 34px);
  line-height: 1.16; white-space: pre-wrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55); pointer-events: none;
}
.sv-text.hide { display: none; }
.sv-close { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(255, 255, 255, .18); }
.story-viewer .sv-head { padding: 14px; z-index: 3; }
.story-viewer .sv-head .sv-close { flex: none; }

/* --------------------------- creador de historias ------------------------ */
.story-composer { padding-bottom: 24px; }
.story-composer-head { align-items: flex-end; }
.story-stage { margin-top: 2px; }
.story-camera {
  position: relative; width: min(100%, 440px); margin: 0 auto;
  height: min(76vh, 780px); overflow: hidden;
  border-radius: 26px; background: #000;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .7);
}
.story-video { width: 100%; height: 100%; object-fit: cover; }
.story-camera-top {
  position: absolute; top: 14px; left: 14px; right: 14px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #fff;
}
.story-camera-title { font-size: 15px; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.story-round-btn {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .18); color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.story-round-btn:hover { background: rgba(255, 255, 255, .28); }
.story-camera-foot {
  position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3;
  display: flex; align-items: center; justify-content: space-around; padding: 0 18px;
}
.story-shutter {
  width: 76px; height: 76px; border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .9);
  display: flex; align-items: center; justify-content: center;
  transition: transform 120ms var(--ease);
}
.story-shutter:active { transform: scale(.92); }
.story-shutter span { width: 58px; height: 58px; border-radius: 50%; background: #fff; }
.story-gallery-btn {
  width: 84px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: #fff; font-size: 11.5px; font-weight: 600;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}
.story-gallery-btn.ghost { visibility: hidden; }
.story-camera-error {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 26px; text-align: center; color: #fff;
  background: radial-gradient(600px 400px at 50% 20%, rgba(10, 132, 255, .28), rgba(8, 12, 22, .94));
}
.story-camera-error .big-ic {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex; align-items: center; justify-content: center;
}
.story-camera-error p { max-width: 380px; font-size: 14px; color: rgba(255, 255, 255, .82); }

.story-editor {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px; align-items: start;
}
.story-editor-preview {
  position: relative; width: min(100%, 440px); margin: 0 auto;
  aspect-ratio: 9 / 16; max-height: 76vh; overflow: hidden;
  border-radius: 26px; background: #000;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .7);
}
.story-editor-img { width: 100%; height: 100%; object-fit: cover; }
.story-editor-top {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  color: #fff;
}
.story-editor-title { font-size: 14px; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.story-text-overlay {
  position: absolute; left: 20px; right: 20px; top: 22%; z-index: 2;
  color: #fff; text-align: center; font-size: clamp(22px, 4vw, 32px);
  line-height: 1.16; white-space: pre-wrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .55); pointer-events: none;
}
.story-text-overlay.hide { display: none; }
.story-editor-panel {
  background: var(--card); border: .5px solid var(--line-soft);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-sm);
}
.story-text-input {
  width: 100%; min-height: 64px; resize: vertical;
  background: var(--card-2); border-radius: 14px; padding: 12px 14px;
  font-size: 15px; border: .5px solid var(--line-soft);
}
.story-text-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3.5px rgba(10, 132, 255, .18); }
.story-fonts { display: flex; gap: 8px; flex-wrap: wrap; }
.story-font-chip {
  padding: 8px 14px; border-radius: 13px; background: var(--card-2);
  color: var(--text); font-size: 14px; border: 1.5px solid transparent;
  transition: border-color var(--fast), background var(--fast), color var(--fast);
}
.story-font-chip.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }

@media (max-width: 1100px) {
  .story-editor { grid-template-columns: 1fr; }
  .story-editor-preview { max-height: 62vh; }
}
@media (max-width: 767px) {
  .story-camera {
    width: 100%;
    border-radius: 0;
    height: calc(100dvh - var(--topbar-h) - var(--nav-h) - 140px);
    min-height: 400px;
  }
  .story-composer { padding-bottom: 96px; }
  .story-editor-preview { border-radius: 20px; max-height: 58vh; }
  .stories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .story-tile { border-radius: 16px; }
}

/* --------------------------------- menú ---------------------------------- */
.menu-page { padding-bottom: 28px; }
.menu-hero {
  position: relative; margin-bottom: 16px; overflow: hidden;
  background: var(--card); border: .5px solid var(--line-soft);
  border-radius: 26px; box-shadow: var(--shadow-sm);
}
.menu-hero-cover {
  height: 128px;
  background: linear-gradient(135deg, #0a84ff, #7c3aed 60%, #ff2d55);
}
.menu-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.menu-hero-body {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
  padding: 0 18px 18px; margin-top: -36px; position: relative;
}
.menu-hero-avatar .avatar { box-shadow: 0 0 0 4px var(--card); }
.menu-hero-info { flex: 1 1 240px; min-width: 0; }
.menu-hero-name { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.menu-hero-fullname { font-size: 14px; color: var(--text-2); }
.menu-hero-stats {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 4px; font-size: 13px; color: var(--text-2);
}
.menu-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
.menu-card {
  background: var(--card); border: .5px solid var(--line-soft);
  overflow: hidden; box-shadow: var(--shadow-xs);
}
.menu-card-title {
  padding: 14px 16px 6px; font-size: 11.5px; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; color: var(--text-3);
}
.menu-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 16px; text-align: left; color: var(--text);
  background: none; border: 0; border-top: .5px solid var(--line-soft);
}
.menu-card-title + .menu-row { border-top: 0; }
.menu-row:hover { background: var(--hover); text-decoration: none; }
.menu-ic {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-2); color: var(--brand);
}
.menu-ic.blue { background: rgba(10, 132, 255, .12); color: #0a84ff; }
.menu-ic.green { background: rgba(52, 199, 89, .14); color: #248a3d; }
.menu-ic.orange { background: rgba(255, 149, 0, .16); color: #c93400; }
.menu-ic.purple { background: rgba(175, 82, 222, .14); color: #8944ab; }
.menu-ic.red { background: rgba(255, 59, 48, .13); color: #d70015; }
.menu-ic.teal { background: rgba(48, 176, 199, .14); color: #0071a4; }
.menu-ic.pink { background: rgba(255, 45, 85, .13); color: #d70036; }
.menu-ic.gray { background: var(--card-2); color: var(--text-2); }
.menu-body { flex: 1; min-width: 0; }
.menu-title { font-size: 15px; font-weight: 600; }
.menu-sub { font-size: 12.5px; color: var(--text-2); }
.menu-row .badge { flex: none; }
.menu-foot {
  padding: 18px 6px 4px; text-align: center;
  color: var(--text-3); font-size: 12px; line-height: 1.7;
}
.menu-info p { font-size: 14px; line-height: 1.55; margin-bottom: 10px; }

.delete-account { display: flex; flex-direction: column; gap: 14px; }
.delete-warning {
  display: flex; gap: 12px; padding: 14px;
  background: var(--danger-soft); border-radius: 16px;
}
.delete-warning-ic { color: var(--danger); flex: none; margin-top: 1px; }
.delete-warning strong { display: block; color: var(--danger); margin-bottom: 3px; }
.delete-warning p { font-size: 13px; line-height: 1.45; color: var(--text-2); }

@media (max-width: 767px) {
  .menu-hero { border-radius: 0; margin-inline: 0; }
  .menu-card { border-radius: 18px; }
  .menu-grid { gap: 12px; }
}

/* -------------------------------- búsqueda -------------------------------- */
.search-page { padding-bottom: 26px; }
.search-head { align-items: flex-end; }
.search-hero { padding: 12px; }
.search-big {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 14px; border-radius: 16px;
  background: var(--card-2); color: var(--text-2);
}
.search-big input { flex: 1; min-width: 0; font-size: 16px; background: transparent; }
.search-clear {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--card-3); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.search-tabs {
  display: flex; gap: 6px; padding: 12px 2px; overflow-x: auto;
  scrollbar-width: none;
}
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: .5px solid var(--line-soft);
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.search-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.search-tab-count {
  padding: 1px 7px; border-radius: 999px; font-size: 11.5px;
  background: rgba(0, 0, 0, .08);
}
.search-tab.active .search-tab-count { background: rgba(255, 255, 255, .24); }
.search-block {
  background: var(--card); border: .5px solid var(--line-soft);
  margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-xs);
}
.search-block-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 16px 6px;
}
.search-block-title {
  font-size: 11.5px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-3);
}
.search-block .search-row { border-top: .5px solid var(--line-soft); }
.search-block .search-row:hover { background: var(--hover); text-decoration: none; }
.search-thumb {
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  overflow: hidden; background: var(--card-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.search-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-empty { text-align: center; padding: 24px 10px; }
.search-empty-ic {
  width: 68px; height: 68px; border-radius: 22px; margin: 0 auto 12px;
  background: var(--card); border: .5px solid var(--line-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xs);
}
.search-empty h2 { font-size: 20px; letter-spacing: -.4px; }
.search-empty > p { margin-top: 4px; }
.recent-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.recent-chip {
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--card); border: .5px solid var(--line-soft);
}
.recent-chip:hover { background: var(--hover); }
.search-empty .search-block { margin-top: 18px; text-align: left; }
@media (max-width: 767px) {
  .search-hero { border-radius: 0; }
  .search-block { border-radius: 18px; }
}

/* -------------------------------- publicar -------------------------------- */
.compose-page { padding-bottom: 26px; }
.compose-head { align-items: flex-end; }
.compose-head .btn { flex: none; }
.compose-owner { display: flex; align-items: center; gap: 12px; }
.compose-privacy {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 4px; height: 27px; padding: 0 10px;
  border-radius: 10px; background: var(--card-2);
  color: var(--text-2); font-size: 12.5px; font-weight: 600;
}
.compose-privacy:hover { background: var(--card-3); color: var(--text); }
.compose-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.compose-chips.hide { display: none; }
.compose-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px 6px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12.5px; font-weight: 600;
}
.compose-chip button {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .08); color: inherit;
}
.compose-tools {
  display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap;
  gap: 4px; margin-top: 14px; padding: 10px 0 0;
  border: 0; border-top: .5px solid var(--line-soft); border-radius: 0;
}
.compose-tool {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px;
  width: auto; height: auto; padding: 9px 12px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
}
.compose-tool:hover { background: var(--hover); color: var(--text); }
.compose-tool .ico { color: var(--brand); }
.compose-palette { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding-top: 10px; }
.compose-palette.hide { display: none; }
.compose-bg-dot {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--line-soft);
}
.compose-bg-dot.active { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--brand); }
.compose-bg-clear { font-size: 12.5px; font-weight: 600; color: var(--text-2); padding: 0 6px; }
.compose-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 12px;
}
.feeling-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  max-height: 52vh; overflow-y: auto;
}
.feeling-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 13px; text-align: left; font-size: 14px;
}
.feeling-opt:hover { background: var(--hover); }
.feeling-emoji { font-size: 21px; }

/* fondos del compositor y del muro */
.compose-text.compose-bg-azul, .post-text.post-bg-azul {
  background: linear-gradient(135deg, #e8f3ff, #cfe7ff); color: #0b3d91;
}
.compose-text.compose-bg-rosa, .post-text.post-bg-rosa {
  background: linear-gradient(135deg, #ffe9ec, #ffd4dd); color: #8c1d3c;
}
.compose-text.compose-bg-verde, .post-text.post-bg-verde {
  background: linear-gradient(135deg, #e6f9ec, #c9f2d8); color: #14532d;
}
.compose-text.compose-bg-arena, .post-text.post-bg-arena {
  background: linear-gradient(135deg, #fff6e0, #ffe9b8); color: #7a4b00;
}
.compose-text.compose-bg-violeta, .post-text.post-bg-violeta {
  background: linear-gradient(135deg, #f1ecff, #e2d7ff); color: #4c1d95;
}
.compose-text.compose-bg-oscuro, .post-text.post-bg-oscuro {
  background: linear-gradient(135deg, #24303f, #101827); color: #f8fafc;
}
html[data-theme="dark"] .compose-text.compose-bg-azul, html[data-theme="dark"] .post-text.post-bg-azul {
  background: linear-gradient(135deg, #102a45, #0b1d33); color: #cfe7ff;
}
html[data-theme="dark"] .compose-text.compose-bg-rosa, html[data-theme="dark"] .post-text.post-bg-rosa {
  background: linear-gradient(135deg, #3a1420, #2a0d17); color: #ffd4dd;
}
html[data-theme="dark"] .compose-text.compose-bg-verde, html[data-theme="dark"] .post-text.post-bg-verde {
  background: linear-gradient(135deg, #102a1a, #0a1f13); color: #c9f2d8;
}
html[data-theme="dark"] .compose-text.compose-bg-arena, html[data-theme="dark"] .post-text.post-bg-arena {
  background: linear-gradient(135deg, #33280f, #241c0a); color: #ffe9b8;
}
html[data-theme="dark"] .compose-text.compose-bg-violeta, html[data-theme="dark"] .post-text.post-bg-violeta {
  background: linear-gradient(135deg, #251a45, #1a1233); color: #e2d7ff;
}
html[data-theme="dark"] .compose-text.compose-bg-oscuro, html[data-theme="dark"] .post-text.post-bg-oscuro {
  background: linear-gradient(135deg, #101827, #060b14); color: #f8fafc;
}
.compose-text.compose-bg-azul, .compose-text.compose-bg-rosa, .compose-text.compose-bg-verde,
.compose-text.compose-bg-arena, .compose-text.compose-bg-violeta, .compose-text.compose-bg-oscuro {
  border-radius: 18px; padding: 22px 18px; margin-top: 10px; font-size: 22px;
  line-height: 1.35; min-height: 180px;
  text-align: center; font-weight: 700;
}
.post-text.post-bg {
  margin: 8px 12px 4px; padding: 26px 20px; border-radius: 18px;
  font-size: 20px; line-height: 1.4; font-weight: 700; text-align: center;
  white-space: pre-wrap;
}
@media (max-width: 767px) {
  .compose-card { border-radius: 0; }
  .compose-tools { gap: 2px; }
  .compose-tool { padding: 9px 10px; }
  .compose-text.compose-bg-azul, .compose-text.compose-bg-rosa, .compose-text.compose-bg-verde,
  .compose-text.compose-bg-arena, .compose-text.compose-bg-violeta, .compose-text.compose-bg-oscuro {
    font-size: 19px;
  }
}

/* -------------------------------- perfiles -------------------------------- */
.profile-hero { border-radius: 26px; }
.profile-hero .profile-cover { height: 210px; }
.profile-bio { max-width: 560px; margin-top: 4px; }
.profile-tabs { gap: 4px; }
.profile-tabs .tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 14px;
}
.profile-tabs .tab .ico { opacity: .75; }
.profile-tabs .tab.active .ico { opacity: 1; }
.profile-share { background: var(--card-2); }
.profile-share:hover { background: var(--card-3); }
.profile-actions-row .btn-icon { width: 42px; height: 42px; }
.about-card .about-row { align-items: center; }
.about-ic {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: var(--card-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
}
.about-row .muted { min-width: 120px; }
@media (max-width: 767px) {
  .profile-hero { border-radius: 0; }
  .profile-hero .profile-cover { height: 160px; }
  .about-row .muted { min-width: 100px; }
}

/* -------------------------- descargar imágenes ---------------------------- */
.lb-download {
  position: absolute; top: 14px; right: 64px;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.lb-download:hover { background: rgba(255, 255, 255, .24); }

/* ----------------------------- toques iOS finos --------------------------- */
.cover-edit-box { border-radius: 16px; overflow: hidden; }
.user-tile { border-radius: 18px; }
.group-card { border-radius: 20px; }
.shop-card { border-radius: 20px; }
.shop-fab {
  border-radius: 999px;
  box-shadow: 0 18px 34px -14px rgba(10, 132, 255, .85), 0 4px 12px rgba(0, 0, 0, .16);
}
.dd { border-radius: 18px; }
.install-banner { border-radius: 22px; }
.sv-close, .story-round-btn { transition: transform 120ms var(--ease), background var(--fast); }
.sv-close:active, .story-round-btn:active { transform: scale(.92); }
.link:active, .recent-chip:active, .search-tab:active { transform: scale(.97); }

/* el neón conserva su brillo aunque otras reglas definan text-shadow */
.sv-text.story-font-neon,
.story-text-overlay.story-font-neon,
.story-tile-text.story-font-neon,
.story-rail-text.story-font-neon {
  text-shadow: 0 0 8px #fff, 0 0 20px var(--brand), 0 0 36px var(--brand);
}

/* --------------------------- insignias verificadas ----------------------- */
.verified-badge {
  display: inline-flex; flex: none; align-items: center; justify-content: center;
  padding: 0; border: 0; background: none; vertical-align: middle; line-height: 0;
}
.verified-badge-inner, .verified-badge svg { display: block; width: 100%; height: 100%; }
.verified-badge .verified-seal { fill: var(--badge, #1d9bf0); }
.verified-badge .verified-check {
  fill: none; stroke: #fff; stroke-width: 2.1;
  stroke-linecap: round; stroke-linejoin: round;
}
.verified-badge.celeste { --badge: #1d9bf0; color: #1d9bf0; }
.verified-badge.morado { --badge: #8b5cf6; color: #8b5cf6; }
.verified-badge.dorado { --badge: #e5a50a; color: #e5a50a; }
button.verified-badge { cursor: pointer; transition: transform 120ms var(--ease); }
button.verified-badge:hover { transform: scale(1.15); }

.post-name-row, .comment-name-row, .name-row, .profile-name-row,
.ch-name-row, .cv-name-row, .story-name-row {
  display: flex; align-items: center; gap: 5px; min-width: 0;
}
.post-name-row .post-name,
.comment-name-row .comment-name,
.profile-name-row .profile-name,
.ch-name-row .ch-name,
.cv-name-row .cv-name,
.name-row .name {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ----------------------- historias: vista previa ------------------------- */
.story-publish {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.story-publish-preview {
  position: relative; width: min(100%, 440px); aspect-ratio: 9 / 16;
  max-height: 76vh; overflow: hidden; border-radius: 26px; background: #000;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .7);
}
.story-publish-preview img { width: 100%; height: 100%; object-fit: cover; }
.story-publish-close { position: absolute; top: 12px; left: 12px; z-index: 2; }
.story-publish-actions {
  width: min(100%, 440px); display: flex; flex-direction: column; gap: 8px;
}
@media (max-width: 767px) {
  .story-publish-preview { width: 100%; max-height: 62vh; border-radius: 20px; }
  .story-publish-actions { width: 100%; }
}

/* --------------------------- página de insignias ------------------------- */
.verification-page { padding-bottom: 28px; }
.verification-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.verification-card {
  background: var(--card); border: .5px solid var(--line-soft);
  border-radius: 24px; padding: 24px 20px; text-align: center;
  box-shadow: var(--shadow-sm);
}
.verification-card .verified-badge { margin: 0 auto 14px; }
.verification-card h2 { font-size: 20px; letter-spacing: -.4px; }
.verification-card .verification-audience {
  margin: 6px 0 10px; font-size: 11px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-3);
}
.verification-card p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.verification-note {
  margin-top: 18px; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start;
}
.verification-note .ico { color: var(--brand); flex: none; margin-top: 2px; }
.verification-note p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
@media (max-width: 767px) {
  .verification-card { border-radius: 18px; padding: 20px 16px; }
}

.story-composer { padding-bottom: 84px; }
@media (max-width: 767px) {
  .story-composer { padding-bottom: calc(var(--nav-h) + 24px); }
}

.menu-hero-name-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
