:root{
  --bg:#0a0c10;
  --card: rgba(255,255,255,.04);
  --line: rgba(255,255,255,.10);
  --text:#f4f6ff;
  --muted: rgba(244,246,255,.74);
  --muted2: rgba(244,246,255,.56);
  --gold: #c7b37d;
  --gold2:#a89255;
  --shadow: 0 22px 60px rgba(0,0,0,.55);
  --radius: 20px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(199,179,125,.18), transparent 60%),
    radial-gradient(1100px 700px at 88% 10%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(1200px 700px at 50% 100%, rgba(199,179,125,.10), transparent 60%),
    var(--bg);
}

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 40px;
}

/* Banner */
.topBanner{
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}
.topBanner__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:14px;
}
.brand__logo{
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.45));
}
.brand__kicker{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted2);
}
.brand__title{
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}
.brand__sub{
  color: var(--muted);
  font-size: 13px;
}

.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  box-shadow: var(--shadow);
  padding: 18px;
  margin-top: 14px;
}

/* Perfil */
.profile{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  align-items: stretch;
}
.photoFrame{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
  height: 100%;
  min-height: 260px;
}
.photoFrame img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.profile__name{
  margin:0;
  font-size: 30px;
  line-height:1.1;
}
.profile__meta{
  margin: 8px 0 12px;
  color: var(--muted);
}
.profile__subtitle{
  margin: 0 0 12px;
  color: rgba(244,246,255,.86);
}
.profile__bio{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 85ch;
}

.notice{
  margin-top: 14px;
  border: 1px solid rgba(199,179,125,.25);
  background: rgba(199,179,125,.08);
  border-radius: 16px;
  padding: 12px;
}
.notice strong{
  color: rgba(255,255,255,.95);
}
.muted{ color: var(--muted); }
.small{ font-size: 12px; }
.dot{ margin: 0 8px; color: var(--muted2); }

/* Form */
h2{
  margin: 0 0 10px;
  font-size: 18px;
}
.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.field{ margin-top: 12px; }
label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
input, textarea{
  width:100%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 12px;
  outline:none;
}
textarea{ resize: vertical; min-height: 160px; }
input:focus, textarea:focus{
  border-color: rgba(199,179,125,.55);
  box-shadow: 0 0 0 4px rgba(199,179,125,.12);
}

.hint{
  display:flex;
  justify-content:flex-end;
  margin-top: 6px;
  color: var(--muted2);
  font-size: 12px;
}

.check{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.check input{ width:auto; margin-top: 3px; }

.btn{
  margin-top: 14px;
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  color: #141414;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
}
.btn:active{ transform: translateY(1px); }

.formMsg{
  margin-top: 10px;
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
}

.preview{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.preview .prevItem{
  width: 78px;
  height: 78px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
}
.preview img{
  width:100%;
  height:100%;
  object-fit: cover;
}

/* Wall */
.wallHeader{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}
.pill{
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.16);
  padding: 6px 10px;
  border-radius: 999px;
}

.wall{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.note{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.14));
  padding: 14px;
}
.note__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
}
.note__name{ font-weight: 850; }
.note__time{
  font-size: 12px;
  color: var(--muted2);
  white-space: nowrap;
}
.note__text{
  margin-top: 10px;
  color: rgba(244,246,255,.92);
  line-height: 1.55;
  word-break: break-word;
}

.note__images{
  margin-top: 12px;
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.thumb{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Pager */
.pager{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pager__btn{
  text-decoration:none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(0,0,0,.16);
  padding: 9px 12px;
  border-radius: 14px;
}
.pager__btn.is-disabled{
  opacity: .45;
  pointer-events: none;
}
.pager__info{ color: var(--muted); font-size: 13px; }

.footer{
  margin-top: 16px;
  text-align:center;
  padding: 12px 10px 0;
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 50;
}
.modal.is-open{ display: grid; }
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.66);
}
.modal__content{
  position: relative;
  width: min(980px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(10,12,16,.92);
  box-shadow: var(--shadow);
  padding: 12px;
}
.modal__close{
  border: 1px solid var(--line);
  background: rgba(0,0,0,.22);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
.modal__content img{
  margin-top: 10px;
  width: 100%;
  height: auto;
  max-height: calc(86vh - 70px);
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 980px){
  .profile{ grid-template-columns: 1fr; }
  .photoFrame{ min-height: 240px; }
  .row{ grid-template-columns: 1fr; }
}
/* ✅ Subtitle em parágrafos (opção B) */
.profile__subtitle.subtitle--p p{
  margin: 0 0 14px 0;
}
.profile__subtitle.subtitle--p p:last-child{
  margin-bottom: 0;
}
/* ✅ Botão flutuante "Dejar un mensaje" / "Ver mensajes" */
.jumpBtn{
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(199,179,125,.35);
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #141414;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 45px rgba(0,0,0,.55);
  transform: translateZ(0);
}

.jumpBtn:hover{
  filter: brightness(1.03);
}

.jumpBtn:active{
  transform: translateY(1px);
}

/* versão mobile um pouco mais compacta */
@media (max-width: 520px){
  .jumpBtn{
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 11px 13px;
    font-size: 14px;
  }
}
