:root{
  --brand:#e84b9c; --brand-dark:#cf3d8a;
  --soft:#ffe8f1; --card:#ffffff; --ink:#2b2b2b; --muted:#6b6b6b;
  --ok:#23b26d; --warn:#f8b400;
  --shadow:0 10px 24px rgba(232,75,156,.18);
  --radius:18px;
  --appbar-h:76px;
  --icon-btn:64px;
  --icon-font:26px;
  --brand-logo:60px;
  --border:#eee;
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  background:#fff;
  color:var(--ink);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:16px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.app-bg{
  background: linear-gradient(180deg,var(--soft),#fff 22%,var(--soft) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
a{color:var(--brand);text-decoration:none}
.container{
  max-width:1100px;
  margin:18px auto;
  padding:0 16px 36px;
}
/* Nubes intro (por ahora sólo estilos, sin lógica) */
.nubes-inicio{
  position:fixed; top:0; left:0; width:100%;
  height:100vh;
  background:linear-gradient(to bottom,#cceaff,#f0f8ff);
  z-index:9999; display:none; justify-content:space-between;
  align-items:center;  animation:desaparecer 2s ease 2.5s forwards
}
.nube{width:50%; max-height:100vh; object-fit:cover; transition:transform 2s ease}
.nube-izquierda{transform:translateX(0); animation:nubeIzq 2s ease forwards}
.nube-derecha{transform:translateX(0); animation:nubeDer 2s ease forwards}
@keyframes nubeIzq{to{transform:translateX(-100%)}}
@keyframes nubeDer{to{transform:translateX(100%)}}
@keyframes desaparecer{to{opacity:0; pointer-events:none}}
.muted{color:var(--muted)}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.7rem 1.1rem; border-radius:12px; border:0; cursor:pointer;
  font-weight:800; box-shadow:var(--shadow);
  transition:.15s transform;
}
.btn:active{transform:translateY(1px)}
.btn-brand{background:var(--brand); color:#fff}
.btn-ghost{background:#fff; border:2px solid #f1d1e3; color:var(--brand)}
.btn-dark{background:#222; color:#fff}
.pill{
  display:inline-flex; align-items:center; gap:8px;
  background:#fff; color:var(--brand);
  border-radius:999px; padding:6px 12px;
  font-weight:800; font-size:.92rem;
  box-shadow:var(--shadow);
}
/* Perfil */
.profile-card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
}
.profile-top{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:18px;
  align-items:center;
}
.avatar{
  width:140px; height:140px;
  border-radius:999px; overflow:hidden;
  border:4px solid #ffd3e7;
  box-shadow:0 6px 16px rgba(0,0,0,.06);
  position:relative;
}
.avatar img{width:100%; height:100%; object-fit:cover}
.name{
  font-size:clamp(1.5rem,3.1vw,1.9rem);
  margin:0 0 4px;
  color:var(--brand-dark);
  font-weight:900;
}
.meta{
  display:flex; flex-wrap:wrap; gap:10px; margin:6px 0;
  font-size:.95rem;
  font-weight:600;
}
.actions{display:flex; flex-wrap:wrap; gap:10px; margin-top:8px}
.avatar-ctrls{
  position:absolute; inset:auto 6px 6px auto;
  display:flex; gap:8px;
}
.mini-btn{
  display:inline-grid; place-items:center;
  width:40px; height:40px;
  border-radius:12px; border:0;
  box-shadow:var(--shadow); background:#fff;
  cursor:pointer;
}
.mini-btn:hover{transform:translateY(-1px)}
.mini-btn.danger{background:#222; color:#fff}
/* Seguidores / seguidos */
.social-line{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}
.social-pill{
  border-radius:999px;
  border:0;
  padding:6px 12px;
  background:#fff;
  box-shadow:var(--shadow);
  font-size:.85rem;
  font-weight:800;
  color:var(--muted);
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
}
.social-pill strong{color:var(--brand-dark);}
.social-avatars{ display:flex; margin-left:4px; }
.social-avatars img{
  width:22px; height:22px; border-radius:999px; border:2px solid #fff;
  object-fit:cover; margin-left:-8px;
}
.social-avatars img:first-child{margin-left:6px;}
/* Tabs */
.tabs{
  display:flex; gap:10px; flex-wrap:wrap; margin:18px 0;
}
.tab{
  background:#fff;
  border:2px solid #f1d1e3;
  color:var(--brand);
  padding:.6rem 1rem;
  border-radius:999px;
  font-weight:800;
  cursor:pointer;
}
.tab.active, .tab:hover{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
/* GRID tipo IG para servicios/galería */
.grid-cards{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:16px;
  align-items:stretch;
}
.card{
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:14px;
  border:1px solid var(--border);
}
.svc-card, .gal-card{
  position:relative; padding:0; overflow:hidden;
}
.svc-card img, .gal-card img{
  width:100%;
  aspect-ratio:4/5;
  height:auto;
  object-fit:cover;
  display:block;
}
.svc-ctrls, .gal-ctrls{ display:none !important; }
.card-dots{ position:absolute; top:8px; right:8px; z-index:5; }
.card-menu{
  position:absolute;
  top:52px;
  right:8px;
  background:#fff;
  border-radius:14px;
  box-shadow:0 14px 28px rgba(0,0,0,.18);
  padding:8px;
  display:none;
  z-index:6;
  min-width:170px;
  border:1px solid rgba(0,0,0,.06);
}
.card-menu button, .card-menu label{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 10px;
  border-radius:12px;
  border:0;
  background:transparent;
  cursor:pointer;
  font-weight:800;
  color:#333;
}
.card-menu button:hover, .card-menu label:hover{ background:#f7f7f8; }
.card-menu .danger{ color:#ef4444; }
.svc-card.menu-open .card-menu,
.gal-card.menu-open .card-menu{ display:block; }
.svc-card h4, .gal-card h4{
  position:absolute; left:8px; right:8px; bottom:28px;
  margin:0; font-size:.9rem; font-weight:700; color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.5); z-index:1;
}
.svc-card::after, .gal-card::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:42%;
  background:linear-gradient(to top,rgba(0,0,0,.55),transparent);
  z-index:0;
}
.svc-card .price{
  position:absolute; left:8px; right:8px; bottom:8px;
  margin:0; font-size:.78rem; font-weight:800; color:#fff;
  text-shadow:0 1px 3px rgba(0,0,0,.55);
  z-index:1; opacity:.95;
}
/* ===== Crear servicio (nuevo diseño compacto) ===== */
.svc-new-icon{
  width:40px; height:40px; border-radius:14px;
  background:var(--soft); color:var(--brand-dark);
  display:grid; place-items:center;
  box-shadow:var(--shadow);
  font-size:1.2rem;
  flex-shrink:0;
}
.svc-new-title{ font-weight:900; font-size:1rem; color:var(--brand-dark); }
.svc-new-sub{ font-size:.8rem; color:var(--muted); }
.svc-new-btns{
  display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; justify-content:flex-end;
}
.svc-main-btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:.6rem 1.4rem; border-radius:999px;
  font-size:.85rem; font-weight:800;
  box-shadow:var(--shadow);
}
.svc-sec-btn{ padding:.55rem 1.2rem; border-radius:999px; font-size:.8rem; }
#svcFormModalBody .svc-editor .row{
  display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px;
}
#svcFormModalBody .svc-editor input,
#svcFormModalBody .svc-editor textarea{
  flex:1 1 0; width:100%;
  border-radius:12px; border:1px solid #f3d1e3;
  padding:8px 10px; font-size:.9rem; font-family:inherit;
  background:#fff; color:var(--ink);
}
#svcFormModalBody .svc-editor textarea{ min-height:70px; resize:vertical; }
#svcFormModalBody .svc-editor input[type="file"]{ padding:6px 10px; cursor:pointer; }
#svcFormModalBody .svc-editor input[type="file"]::file-selector-button{
  border:none; border-radius:999px; background:var(--brand);
  color:#fff;
  font-weight:800; padding:6px 12px; margin-right:8px; cursor:pointer;
  box-shadow:var(--shadow); font-size:.8rem;
}
#svcFormModalBody .svc-editor input[type="file"]::file-selector-button:hover{
  filter:brightness(1.05);
}
@media (max-width:640px){
  .svc-new-btns{ flex-direction:column; align-items:stretch; }
  .svc-main-btn, .svc-sec-btn{ width:100%; justify-content:center; }
}
.svc-card .muted, .svc-card p.muted,
.gal-card .muted, .gal-card p.muted{ display:none; }
.svc-card .svc-editor, .gal-card .gal-editor{
  padding:14px; position:static;
}
.svc-card .svc-editor::after, .gal-card .gal-editor::after{ content:none; }
.svc-header{
  display:flex; justify-content:flex-end; align-items:center; margin:0 0 12px;
}
.svc-create-btn{
  display:inline-flex; align-items:center; gap:6px;
  font-size:.9rem; font-weight:800; text-transform:none;
}
.svc-create-btn i{ font-size:1rem; }
/* Opiniones */
.review{
  display:flex; gap:12px; align-items:flex-start;
  padding:12px; background:#fff;
  border-radius:14px; box-shadow:var(--shadow);
  border:1px solid var(--border);
}
.rev-avatar{
  width:44px; height:44px; border-radius:999px;
  background:#ffe7f2; display:grid; place-items:center;
  font-weight:900;
}
.rev-name{font-weight:800}
.stars{color:#f59e0b}
/* ===== Modales servicio / galería – ESCRITORIO ===== */
@media (min-width:769px){
  #svcModalBox, #galModalBox{
    max-width:980px;
    max-height:calc(100vh - 80px);
  }
  #svcModalBody, #galModalBody{
    display:grid; grid-template-columns:1.2fr .8fr; gap:0;
    min-height:0; max-height:calc(100vh - 120px);
  }
  #svcModalBody > div:first-child, #galModalBody > div:first-child{
    display:flex; align-items:center; justify-content:center; background:#000;
  }
  #svcModalBody > div:first-child img, #galModalBody > div:first-child img{
    width:100%; height:auto; max-height:calc(100vh - 140px);
    object-fit:contain;
  }
  #svcModalBody > div:last-child, #galModalBody > div:last-child{
    max-height:calc(100vh - 120px); overflow:auto; padding:16px 18px;
  }
}
/* ===== MODO INSTAGRAM MÓVIL MODALES ===== */
@media (max-width: 768px){
  #svcModal, #galModal{
    position:fixed; inset:0; background:#ffffff; padding:0 !important;
    display:flex; align-items:stretch; justify-content:center; z-index:9999;
  }
  #svcModalBox, #galModalBox{
    margin:0 !important; width:100% !important; height:100% !important;
    max-width:none !important; border-radius:0 !important;
    display:flex; flex-direction:column;
  }
  #svcModalBox > :first-child, #galModalBox > :first-child{
    flex:0 0 auto; padding:8px 16px; margin:0; border-bottom:1px solid #eee;
  }
  #svcModalBox > :first-child h2, #galModalBox > :first-child h2{
    font-size:16px; margin:0;
  }
  #svcModalBody, #galModalBody{
    flex:1 1 auto; display:flex !important; flex-direction:column !important;
    min-height:0; height:auto;
  }
  #svcModalBody > div:first-child, #galModalBody > div:first-child{
    flex:0 0 auto; max-height:60vh; background:#ffeef7;
    display:flex; align-items:center; justify-content:center;
  }
  #svcModalBody > div:first-child img, #galModalBody > div:first-child img{
    width:100%; height:100%; object-fit:cover;
  }
  #svcModalBody > div:last-child, #galModalBody > div:last-child{
    flex:1 1 auto; overflow:auto; padding:12px 16px 16px;
  }
  #svcModalBody h3, #galModalBody h3{ margin-top:0; }
  #svcModalBody .price, #svcModalBody .meta,
  #galModalBody .price, #galModalBody .meta{ margin-bottom:6px; }
}
.svc-photo-wrap{
  position:relative; width:100%; height:100%;
}
.svc-photo-wrap img{
  width:100%; height:100%; object-fit:cover; display:block;
}
.svc-reserve-hero{
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:14px;
  width:min(92%, 520px);
  padding:14px 16px;
  border:0;
  border-radius:16px;
  font-weight:900;
  font-size:22px;
  letter-spacing:.2px;
  text-transform:lowercase;
  background:rgba(232,75,156,.92);
  color:#fff;
  box-shadow:0 14px 28px rgba(0,0,0,.25);
  cursor:pointer;
  z-index:10;
}
.svc-reserve-hero:active{
  transform:translateX(-50%) translateY(1px);
}
@media (max-width:768px){
  .svc-reserve-hero{
    bottom:18px;
    font-size:28px;
    padding:16px 18px;
    border-radius:18px;
  }
}
/* Botón “Ver comentarios” debajo del servicio */
.svc-open-comments{
  border:none;
  background:#fff;
  cursor:pointer;
  padding:9px 13px;
  border-radius:14px;
  font-weight:900;
  box-shadow:0 6px 18px rgba(0,0,0,.06);
  font-size:.95rem;
}
/* ===== FEED PUBLICACIONES ===== */
#publicaciones{ max-width:760px; margin:0 auto; }
.feed-list{
  display:flex; flex-direction:column; gap:18px; margin-top:12px;
}
.feed-card{
  position: relative;
  background:#fff;
  border-radius:16px;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  padding:16px 16px 12px;
}
.feed-header{
  display:flex; align-items:center; gap:12px; margin-bottom:8px;
}
.feed-avatar{
  width:44px; height:44px; border-radius:999px; overflow:hidden;
  background:#ffe7f2; flex-shrink:0;
}
.feed-avatar img{ width:100%; height:100%; object-fit:cover; }
.feed-name{ font-weight:900; font-size:1.12rem; letter-spacing:.01em; }
.feed-meta{ font-size:.92rem; color:var(--muted); font-weight:500; }
.feed-pill{
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  background:#ffe8f1;
  color:var(--brand-dark);
  border-radius:999px;
  padding:3px 10px;
  font-weight:800;
}
.feed-text{
  font-size:1.12rem;
  line-height:1.6;
  margin:4px 0 10px;
  white-space:pre-wrap;
  font-weight:600;
}
.feed-embed{
  margin-top:6px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #f3e1ec;
  cursor:pointer;
}
.feed-embed img{ width:100%; display:block; }
.feed-embed-inner{
  display:flex; gap:10px; padding:8px 10px; align-items:center;
}
.feed-embed-inner img{
  width:90px; height:90px; border-radius:12px; object-fit:cover; flex-shrink:0;
}
.feed-embed-title{ font-weight:800; font-size:.98rem; }
.feed-embed-meta{ font-size:.88rem; color:var(--muted); }
/* ===== Fila de acciones (like / comentarios / compartir) ===== */
.feed-actions{
  margin-top:10px;
  width:100%;
  box-sizing:border-box;
}
.feed-actions-left{
  width:100%;
  display:flex;
  align-items:stretch;
  gap:0;
  padding:6px;
  box-sizing:border-box;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(232,75,156,.18);
  border-radius:999px;
  box-shadow:
    0 10px 24px rgba(232,75,156,.14),
    0 2px 8px rgba(0,0,0,.04);
  overflow:hidden;
}
.feed-btn{
  position:relative;
  flex:1 1 0;
  min-width:0;
  height:46px;
  background:transparent;
  border:0;
  padding:0 10px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  font-size:.98rem;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  white-space:nowrap;
  width:100%;
  box-sizing:border-box;
  color:#5f5b63;
  box-shadow:none;
}
.feed-btn + .feed-btn::before{
  content:"";
  position:absolute;
  left:-1px;
  top:10px;
  bottom:10px;
  width:1px;
  background:rgba(232,75,156,.16);
}
.feed-btn i{
  flex:0 0 auto;
  font-size:1.08rem;
  color:#d98aac;
}
.feed-btn:hover{
  background:linear-gradient(180deg,#fff7fb 0%,#ffeef6 100%);
  color:#c23d84;
}
.feed-btn:hover i{
  color:#e84b9c;
}
.feed-btn span{
  display:inline-block;
}
.feed-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}
.feed-count{
  flex:0 0 auto;
  color:#3b2b33;
}
.feed-btn[data-act="share-pub"] .feed-count{
  display:none;
}
.feed-btn.is-liked{
  color:#c23d84;
}
.feed-btn.is-liked i,
.feed-btn.is-liked .feed-label,
.feed-btn.is-liked .feed-count{
  color:#e84b9c;
}
.feed-metrics{ display:none; }  /* ya no usamos la métrica separada */
.feed-comments{
  margin-top:10px;
  border-top:1px solid #f1d1e3;
  padding-top:8px;
  display:none;
}
.feed-comment{ margin-bottom:8px; font-size:1rem; }
.feed-comment strong{ font-weight:800; }
.feed-comment-meta{ font-size:.88rem; opacity:.8; }
.feed-comment-empty{ font-size:.9rem; opacity:.7; }
.feed-comment-form{
  display:flex; gap:8px; margin-top:8px;
}
.feed-comment-form input{
  flex:1; border-radius:999px; border:1px solid:#eee;
  padding:9px 12px; font-size:.9rem;
}
.feed-comment-form button{
  border-radius:999px; border:0; padding:8px 13px;
  background:var(--brand); color:#fff; font-weight:800; cursor:pointer;
  font-size:.85rem;
}
.feed-composer textarea{
  width:100%;
  resize:vertical;
  min-height:70px;
  border-radius:14px;
  border:1px solid:#eee;
  padding:10px;
  font-family:inherit;
  font-size:1rem;
}
.feed-composer-footer{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:8px; gap:8px; flex-wrap:wrap;
}
.feed-composer-footer button{
  border-radius:999px; border:0; padding:8px 16px;
  font-weight:800; cursor:pointer;
  background:var(--brand); color:#fff;
  box-shadow:var(--shadow); font-size:.9rem;
}
.feed-composer-tools{
  display:flex; align-items:center; gap:8px;
  flex-wrap:wrap;
  font-size:.88rem;
}
.feed-composer-attach{
  background:#fff;
  border-radius:999px;
  border:1px solid #f3d1e3;
  padding:6px 11px;
  font-size:.85rem;
  font-weight:800;
  color:var(--brand-dark);
  display:inline-flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
}
.feed-composer-attach i{ font-size:1rem; }
  .feed-photo-preview{
    margin-top:10px;
    display:none;
    grid-template-columns:repeat(auto-fill,minmax(92px,1fr));
    gap:8px;
  }
  .feed-photo-preview-item{
    border-radius:14px;
    overflow:hidden;
    border:1px solid #eee;
    aspect-ratio:4/5;
    background:#fff;
  }
  .feed-photo-preview-item img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
  }
.feed-photo{
  margin-top:6px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #f3e1ec;
}
.feed-photo img{ width:100%; display:block; }
/* FIX menú de publicaciones */
.feed-header .card-dots{ position: static; margin-left: 8px; }
.feed-card .card-menu{ position: absolute; top: 44px; right: 10px; }
.feed-card.menu-open .card-menu{ display: block; }
/* Barra social superior (search + mensajes) */
.top-social-bar{
  position: sticky;
  top: 0;
  z-index: 130;
  background: #fff;
  border-bottom: 1px solid #f0e0ef;
  padding-top: env(safe-area-inset-top, 0);
}
.top-social-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-search{
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft);
  border: 1px solid #f0d6e6;
  border-radius: 999px;
  padding: 6px 12px;
}
.top-search i{ font-size: 14px; color: var(--muted); }
.top-search input{
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: .9rem;
  color: var(--ink);
}
.top-msg-btn{
  position: relative;
  border: none;
  background: transparent;
  width: var(--icon-btn);
  height: var(--icon-btn);
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--brand);
}
.top-msg-btn:hover{ background: #fcecf6; }
.top-msg-btn i{ font-size: var(--icon-font); }
.top-msg-badge{
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Ajustes feed: texto y botones más legibles */
.feed-text{ font-size:1.16rem; }
/* Ajustes móviles (manteniendo los 3 botones iguales) */
@media (max-width:640px){
  .container{ padding:0 8px 28px; }
  #publicaciones{ margin:0 -6px; }
  .feed-card{ border-radius:20px; padding:16px 14px 12px; }
  .feed-name{ font-size:1.3rem; }
  .feed-text{ font-size:1.32rem; line-height:1.75; }
  .feed-meta, .feed-comment{ font-size:1rem; }
  .feed-actions{
    gap:0;
  }
  .feed-actions-left{
    padding:4px;
  }
  .feed-btn{
    height:42px;
    font-size:.88rem;
    padding:0 8px;
    gap:6px;
  }
  .feed-btn i{
    font-size:1rem;
  }
}
/* anti-flicker auth extra para perfil */
html[data-auth="checking"] main{
  visibility:hidden;
}
html[data-auth="checking"] .modal-mask{
  display:none !important;
}
/* ===== Vista detalle de publicación (para ver la imagen completa) ===== */
.detalle-publicacion .feed-photo img{
  width:100%;
  height:auto;
  max-height:calc(100vh - 140px);
  object-fit:contain;
}

/* ===== Historias sobre avatar de perfil ===== */
.profile-card .avatar{
  isolation:isolate;
}

.profile-card .avatar #perfilStoryMount{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:4;
}

.profile-card .avatar .avatar-ctrls{
  z-index:7;
}

.profile-card .avatar.ba-profile-has-story{
  padding:4px;
  border:0;
  background:linear-gradient(135deg,#f08fc1 0%, #b7d8ff 48%, #9ee2d7 100%);
  box-shadow:0 10px 24px rgba(232,75,156,.24);
}

.profile-card .avatar.ba-profile-has-story #pfp,
.profile-card .avatar #pfp.ba-profile-story-photo{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:999px;
  border:3px solid #fff;
  background:#fff;
}

.profile-card .avatar.ba-profile-has-story .ba-story-avatar-trigger{
  position:absolute;
  inset:0;
  border:0;
  background:transparent;
  border-radius:999px;
  cursor:pointer;
  pointer-events:auto;
  z-index:5;
}

.profile-card .avatar .ba-story-avatar-plus{
  position:absolute;
  top:4px;
  right:4px;
  width:32px;
  height:32px;
  border:0;
  border-radius:999px;
  background:linear-gradient(180deg,#e84b9c 0%, #cf3d8a 100%);
  color:#fff;
  display:grid;
  place-items:center;
  box-shadow:0 10px 18px rgba(232,75,156,.28);
  cursor:pointer;
  pointer-events:auto;
  z-index:8;
}

.profile-card .avatar .ba-story-avatar-plus i{
  font-size:.95rem;
}

/* ===== AJUSTE FINAL BARRA PREMIUM ACCIONES ===== */
.feed-actions{
  margin-top:12px;
  width:100%;
  display:flex;
  justify-content:center;
  box-sizing:border-box;
}

.feed-actions-left{
  width:min(100%, 560px);
  margin:0 auto;
  padding:5px;
  background:#fff;
  border:1px solid rgba(232,75,156,.16);
  border-radius:999px;
  box-shadow:
    0 10px 24px rgba(232,75,156,.12),
    0 4px 0 rgba(232,75,156,.08),
    0 18px 26px rgba(232,75,156,.10);
}

.feed-btn{
  height:44px;
  padding:0 12px;
  gap:7px;
  font-size:.97rem;
  font-weight:700;
  color:#66626a;
  letter-spacing:-0.01em;
}

.feed-btn i{
  font-size:1.26rem;
  color:#d78dad;
}

.feed-btn + .feed-btn::before{
  left:0;
  top:11px;
  bottom:11px;
  width:1px;
  background:rgba(215,141,173,.28);
}

.feed-label{
  overflow:hidden;
  text-overflow:ellipsis;
}

.feed-count{
  color:#5d5961;
  font-weight:700;
}

.feed-btn:hover,
.feed-btn:active{
  background:rgba(255,241,247,.9);
  color:#c23d84;
}

.feed-btn:hover i,
.feed-btn:active i{
  color:#e84b9c;
}

@media (max-width:640px){
  .feed-actions{
    margin-top:10px;
  }

  .feed-actions-left{
    width:100%;
    padding:4px;
  }

  .feed-btn{
    height:41px;
    padding:0 8px;
    gap:5px;
    font-size:.84rem;
  }

  .feed-btn i{
    font-size:1.08rem;
  }

  .feed-btn + .feed-btn::before{
    top:9px;
    bottom:9px;
  }
}

@media (max-width:390px){
  .feed-btn{
    font-size:.79rem;
    padding:0 6px;
    gap:4px;
  }

  .feed-btn i{
    font-size:1rem;
  }
}
/* ===== FIN AJUSTE FINAL BARRA PREMIUM ===== */

/* ===== SPRINT 1 · PERFIL PREMIUM BASE ===== */
.profile-main{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}

.profile-card{
  border:1px solid rgba(232,75,156,.10);
  box-shadow:0 18px 40px rgba(232,75,156,.12);
  padding:22px 18px;
}

.profile-top{
  align-items:flex-start;
}

.avatar{
  width:148px;
  height:148px;
  padding:4px;
  border:0;
  background:linear-gradient(135deg,#f5b6d6 0%, #bfe1ff 52%, #c8f1e8 100%);
  box-shadow:0 12px 26px rgba(232,75,156,.18);
}

.avatar #pfp{
  border-radius:999px;
  border:4px solid #fff;
  background:#fff;
}

.avatar-ctrls{
  right:8px;
  bottom:8px;
  gap:10px;
}

.mini-btn{
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(232,75,156,.14);
  background:rgba(255,255,255,.96);
  color:var(--brand-dark);
  box-shadow:0 10px 18px rgba(232,75,156,.14);
  backdrop-filter:blur(10px);
}

.mini-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 24px rgba(232,75,156,.18);
}

.mini-btn.danger{
  background:#fff4f8;
  color:#d9488f;
  border:1px solid rgba(217,72,143,.14);
}

.profile-card .meta{
  gap:10px 12px;
  margin-top:8px;
}

.profile-card .pill{
  min-height:44px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(232,75,156,.12);
  background:linear-gradient(180deg,#fff 0%, #fff7fb 100%);
  box-shadow:0 8px 18px rgba(232,75,156,.08);
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.profile-card .actions{
  gap:12px;
  margin-top:12px;
}

.profile-card .actions .btn{
  min-height:48px;
  padding:0 18px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:1rem;
  font-weight:900;
  box-shadow:0 12px 24px rgba(232,75,156,.10);
}

.profile-card .actions .btn i{
  font-size:1rem;
}

.profile-card .actions .btn-brand{
  border:0;
}

.profile-card .actions .btn-ghost{
  background:#fff;
  border:2px solid #f1c9de;
  color:var(--brand);
}

.profile-card .actions .btn-dark{
  background:linear-gradient(180deg,#3a2b35 0%, #22181f 100%);
  color:#fff;
  border:0;
}

.social-pill{
  min-height:44px;
  padding:8px 14px;
  border:1px solid rgba(232,75,156,.10);
  background:linear-gradient(180deg,#fff 0%, #fff8fb 100%);
  box-shadow:0 10px 18px rgba(232,75,156,.08);
}

.tabs{
  gap:12px;
  margin:20px 0 18px;
}

.tab{
  min-height:48px;
  padding:.75rem 1.18rem;
  background:rgba(255,255,255,.92);
  border:2px solid #f1d1e3;
  box-shadow:0 8px 18px rgba(232,75,156,.07);
}

.tab.active,
.tab:hover{
  box-shadow:0 12px 24px rgba(232,75,156,.16);
}

#informacion{
  padding:22px 18px;
}

#informacion .info-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}

#informacion h3{
  margin:0;
  font-size:1.55rem;
  color:var(--brand-dark);
}

#informacion .info-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

#informacion .info-actions .btn{
  min-height:46px;
  padding:0 16px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:900;
}

#informacion .info-actions .btn-ghost{
  background:#fff;
  border:2px solid #f1c9de;
  color:var(--brand);
}

.bio-render{
  margin:0;
  padding:20px;
  border-radius:20px;
  border:1px solid rgba(232,75,156,.10);
  background:linear-gradient(180deg,#fff 0%, #fff7fb 100%);
  box-shadow:0 14px 30px rgba(232,75,156,.08);
  color:#5a4954;
}

.bio-render p{
  margin:0 0 12px;
}

.bio-render p:last-child{
  margin-bottom:0;
}

.bio-render b,
.bio-render strong{
  color:var(--brand-dark);
}

#bio-editor{
  margin-top:16px;
  padding:18px;
  border-radius:20px;
  border:1px solid rgba(232,75,156,.10);
  background:#fff;
  box-shadow:0 16px 32px rgba(232,75,156,.08);
}

#bio-editor .row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:12px;
}

#bio-editor input:not([type="checkbox"]),
#bio-editor textarea{
  width:100%;
  box-sizing:border-box;
  border:1.5px solid #f0d6e6;
  border-radius:16px;
  padding:12px 14px;
  font:inherit;
  color:#4b3b46;
  background:#fff;
  outline:none;
}

#bio-editor input:not([type="checkbox"]):focus,
#bio-editor textarea:focus{
  border-color:rgba(232,75,156,.45);
  box-shadow:0 0 0 4px rgba(232,75,156,.10);
}

#bio-editor textarea{
  min-height:110px;
  resize:vertical;
}

#bio-editor label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:800;
  color:#6a5965;
}

#bio-editor input[type="checkbox"]{
  width:20px;
  height:20px;
  accent-color:#e84b9c;
}

#bio-editor .btn{
  min-height:46px;
  border-radius:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:900;
}

#bio-editor .btn-ghost{
  background:#fff;
  border:2px solid #f1c9de;
  color:var(--brand);
}

#bio-preview{
  margin-top:10px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff7fb;
  border:1px dashed rgba(232,75,156,.22);
}

@media (max-width: 768px){
  .profile-top{
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
  }

  .profile-main{
    width:100%;
    align-items:center;
  }

  .profile-card .meta,
  .profile-card .actions,
  .social-line{
    justify-content:center;
  }

  .tabs{
    flex-wrap:nowrap;
    overflow:auto;
    padding-bottom:4px;
  }

  #informacion .info-head{
    flex-direction:column;
    align-items:flex-start;
  }

  #bio-editor .row{
    grid-template-columns:1fr;
  }
}

/* ===== SPRINT 1 · PERFIL PREMIUM PULIDO FINAL ===== */
.profile-card{
  border-radius:28px;
  padding:24px 18px 20px;
  box-shadow:
    0 20px 46px rgba(232,75,156,.12),
    0 2px 10px rgba(0,0,0,.03);
}

.profile-top{
  gap:20px;
}

.profile-card .avatar{
  width:154px;
  height:154px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:
    0 16px 32px rgba(232,75,156,.16),
    0 4px 12px rgba(0,0,0,.05);
}

.profile-card .avatar #pfp{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  border-radius:999px;
  border:0;
  background:#fff;
}

.profile-card .avatar .avatar-ctrls{
  right:2px;
  bottom:8px;
  gap:8px;
}

.profile-card .avatar .mini-btn{
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid rgba(232,75,156,.12);
  background:rgba(255,255,255,.96);
  box-shadow:0 8px 18px rgba(232,75,156,.14);
}

.profile-card .avatar .mini-btn i{
  font-size:.92rem;
}

.profile-card .avatar .mini-btn:hover{
  transform:translateY(-1px) scale(1.02);
}

.profile-card .avatar .mini-btn.danger{
  background:rgba(255,244,248,.98);
  color:#d84b95;
  border-color:rgba(216,75,149,.14);
}

.profile-card .actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  width:min(100%, 520px);
}

.profile-card .actions .btn{
  min-height:56px;
  height:56px;
  padding:0 18px;
  border-radius:20px;
  font-size:1rem;
  font-weight:900;
  letter-spacing:.01em;
  box-shadow:0 12px 24px rgba(232,75,156,.10);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-card .actions .btn i{
  font-size:1.02rem;
}

.profile-card .actions .btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 28px rgba(232,75,156,.16);
}

.profile-card .actions .btn-ghost{
  background:linear-gradient(180deg,#ffffff 0%, #fff8fb 100%);
  border:2px solid #efc4db;
  color:#d34691;
}

.profile-card .actions .btn-dark{
  background:linear-gradient(180deg,#3b2b35 0%, #21171e 100%);
  color:#fff;
  box-shadow:0 14px 28px rgba(34,24,31,.24);
}

.profile-card .meta{
  justify-content:center;
}

.profile-card .pill{
  min-height:46px;
  padding:10px 15px;
  border-radius:999px;
  box-shadow:
    0 10px 18px rgba(232,75,156,.08),
    inset 0 1px 0 rgba(255,255,255,.75);
}

.social-line{
  justify-content:center;
}

.social-pill{
  min-height:46px;
  padding:8px 16px;
  border-radius:999px;
}

.tabs{
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  padding:4px 2px 8px;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.tabs::-webkit-scrollbar{
  display:none;
}

.tab{
  flex:0 0 auto;
  min-height:48px;
  padding:.72rem 1.18rem;
  border-radius:999px;
  white-space:nowrap;
  box-shadow:0 8px 16px rgba(232,75,156,.06);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.tab:hover,
.tab.active{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(232,75,156,.14);
}

#informacion{
  border-radius:28px;
  padding:24px 18px;
  box-shadow:
    0 20px 46px rgba(232,75,156,.10),
    0 2px 10px rgba(0,0,0,.03);
}

#informacion .info-actions .btn{
  min-height:52px;
  height:52px;
  border-radius:18px;
}

.bio-render{
  border-radius:24px;
}

#bio-editor{
  border-radius:24px;
}

@media (max-width: 768px){
  .profile-card{
    padding:22px 14px 18px;
  }

  .profile-card .avatar{
    width:146px;
    height:146px;
  }

  .profile-card .actions{
    grid-template-columns:1fr 1fr;
    width:100%;
  }

  .profile-card .actions .btn{
    min-height:54px;
    height:54px;
    padding:0 14px;
    font-size:.98rem;
  }

  .profile-card .actions .btn span{
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .tab{
    min-height:46px;
    padding:.68rem 1.02rem;
    font-size:.98rem;
  }

  .social-pill{
    font-size:.9rem;
  }
}

@media (max-width: 420px){
  .profile-card .actions{
    grid-template-columns:1fr;
  }

  .profile-card .actions .btn{
    width:100%;
  }

  .profile-card .avatar .avatar-ctrls{
    right:0;
    bottom:6px;
  }

  .profile-card .avatar .mini-btn{
    width:36px;
    height:36px;
  }

  .tab{
    min-height:44px;
    padding:.62rem .95rem;
    font-size:.94rem;
  }
}

/* ===== SPRINT 2A · GALERIA IG + SERVICIOS PREMIUM ===== */

/* ===== GALERÍA tipo Instagram ===== */
#galeria{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
  align-items:start;
}

#galeria > .gal-editor,
#galeria > .muted,
#galeria > .card:not(.gal-card),
#galeria > .gal-empty{
  grid-column:1 / -1;
}

#galeria .gal-card{
  position:relative;
  padding:0;
  overflow:hidden;
  border-radius:20px;
  border:1px solid rgba(232,75,156,.10);
  background:#fff;
  box-shadow:
    0 12px 28px rgba(232,75,156,.10),
    0 2px 8px rgba(0,0,0,.03);
  aspect-ratio:1 / 1;
  min-height:0;
}

#galeria .gal-card img{
  width:100%;
  height:100%;
  min-height:100%;
  object-fit:cover;
  display:block;
  aspect-ratio:1 / 1;
}

#galeria .gal-card:hover{
  transform:translateY(-1px);
  box-shadow:
    0 18px 34px rgba(232,75,156,.14),
    0 3px 10px rgba(0,0,0,.04);
}

#galeria .gal-card .card-dots{
  position:absolute;
  top:8px;
  right:8px;
  z-index:3;
}

#galeria .gal-editor{
  background:linear-gradient(180deg,#fff 0%, #fff8fb 100%);
  border:1px solid rgba(232,75,156,.12);
  border-radius:24px;
  padding:16px;
  box-shadow:
    0 16px 34px rgba(232,75,156,.10),
    0 2px 8px rgba(0,0,0,.03);
}

#galeria .gal-empty,
#galeria .muted{
  background:#fff;
  border:1px solid rgba(232,75,156,.10);
  border-radius:22px;
  padding:18px;
  box-shadow:0 12px 28px rgba(232,75,156,.08);
}

/* ===== SERVICIOS más premium y cercanos al look del feed ===== */
#servicios-wrap .grid-cards{
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}

#servicios-wrap .svc-card{
  overflow:hidden;
  border-radius:24px;
  border:1px solid rgba(232,75,156,.10);
  background:linear-gradient(180deg,#ffffff 0%, #fff8fb 100%);
  box-shadow:
    0 18px 38px rgba(232,75,156,.10),
    0 2px 8px rgba(0,0,0,.03);
}

#servicios-wrap .svc-card img{
  display:block;
  width:100%;
  aspect-ratio:4 / 4.8;
  object-fit:cover;
}

#servicios-wrap .svc-card:hover{
  transform:translateY(-1px);
  box-shadow:
    0 22px 42px rgba(232,75,156,.14),
    0 4px 10px rgba(0,0,0,.04);
}

#servicios-wrap .svc-card .card-dots{
  position:absolute;
  top:10px;
  right:10px;
  z-index:4;
}

#servicios-wrap .svc-card .btn,
#servicios-wrap .svc-card button{
  border-radius:18px;
  min-height:50px;
  font-weight:900;
}

#servicios-wrap .svc-card .btn-brand,
#servicios-wrap .svc-card button.btn-brand{
  box-shadow:0 12px 24px rgba(232,75,156,.16);
}

#servicios-wrap .svc-card .btn-ghost,
#servicios-wrap .svc-card button.btn-ghost{
  border:2px solid #efc7dc;
  background:linear-gradient(180deg,#fff 0%, #fff8fb 100%);
}

#servicios-wrap .svc-header{
  margin-bottom:14px;
}

#servicios-wrap .svc-header .btn,
#servicios-wrap .svc-header button{
  border-radius:18px;
  min-height:50px;
}

#informacion .btn-dark{
  background:linear-gradient(180deg,#3b2b35 0%, #21171e 100%);
  color:#fff;
  box-shadow:0 14px 28px rgba(34,24,31,.24);
}

/* ===== móvil ===== */
@media (max-width: 768px){
  #galeria{
    gap:8px;
  }

  #galeria .gal-card{
    border-radius:16px;
  }

  #servicios-wrap .svc-card{
    border-radius:22px;
  }
}

@media (min-width: 900px){
  #servicios-wrap .grid-cards{
    gap:18px;
  }
}

/* ===== CLON VISUAL INICIO -> COMPOSER PERFIL ===== */
#pub-composer{
  background:#fff;
  border-radius:18px;
  box-shadow:0 14px 30px rgba(0,0,0,.07);
  border:1px solid rgba(232,75,156,.12);
  padding:14px;
  margin:10px 0 14px;
}

#pub-composer .feed-avatar{
  width:44px;
  height:44px;
  border-radius:999px;
  overflow:hidden;
  flex-shrink:0;
  border:1px solid rgba(232,75,156,.18);
  background:#fff;
}

#pub-composer .feed-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

#pub-composer textarea{
  width:100%;
  min-height:44px;
  border-radius:14px;
  border:1px solid #eee;
  padding:10px 12px;
  resize:none;
  font-size:1rem;
  outline:none;
}

#pub-composer .feed-composer-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
}

#pub-composer .feed-composer-tools{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

#pub-composer .feed-composer-attach{
  border:1px solid rgba(232,75,156,.18);
  background:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#222;
}

#pub-composer .feed-composer-attach i{
  color:#e84b9c;
  font-size:1rem;
}

#pub-composer #pub-enviar{
  background:#e84b9c;
  color:#fff;
  border:none;
  border-radius:999px;
  padding:10px 16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 22px rgba(232,75,156,.18);
}

#pub-composer .muted{
  font-size:.88rem;
}

/* ===== DETALLE PUBLICACION · CENTRADO VERTICAL FINAL ===== */
#svcModalBody .feed-actions-left{
  align-items:center;
  flex-wrap:nowrap;
}

#svcModalBody .feed-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:center;
  line-height:1;
}

#svcModalBody .feed-btn span{
  display:inline-flex;
  align-items:center;
  line-height:1;
}

#svcModalBody .feed-label,
#svcModalBody .feed-count,
#svcModalBody .feed-btn i{
  line-height:1;
}
