/* Q6.9.7-HF.1.18C REV3 — SALINAS ONLY + comentarios unificados */

/* Admin */
.hf118c-r3-admin-head{
  display:grid;
  gap:16px;
  margin-bottom:16px;
}

.hf118c-r3-admin-title{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.hf118c-r3-admin-title h2{
  margin:5px 0 7px;
}

.hf118c-r3-share{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:10px;
}

.hf118c-r3-share input{
  min-width:0;
}

.hf118c-r3-filters{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.hf118c-r3-comment-list{
  display:grid;
  gap:14px;
}

.hf118c-r3-comment-card{
  transition:
    transform .2s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

.hf118c-r3-comment-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}

.hf118c-r3-author{
  display:grid;
  gap:3px;
}

.hf118c-r3-author span{
  color:var(--portal-muted,#999);
  font-size:.9rem;
}

.hf118c-r3-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:7px 10px;
  font-size:.73rem;
  font-weight:800;
  letter-spacing:.08em;
  white-space:nowrap;
}

.hf118c-r3-badge.pending{
  border:1px solid rgba(224,191,115,.30);
  color:#e0bf73;
  background:rgba(224,191,115,.08);
}

.hf118c-r3-badge.approved{
  border:1px solid rgba(158,231,178,.30);
  color:#9ee7b2;
  background:rgba(158,231,178,.08);
}

.hf118c-r3-badge.hidden{
  border:1px solid rgba(255,255,255,.12);
  color:#aaa;
  background:rgba(255,255,255,.04);
}

.hf118c-r3-body{
  width:100%;
  box-sizing:border-box;
  resize:vertical;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:#0a0a0a;
  color:inherit;
  padding:12px 13px;
  font:inherit;
  line-height:1.5;
}

.hf118c-r3-meta,
.hf118c-r3-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.hf118c-r3-meta{
  color:var(--portal-muted,#999);
  font-size:.9rem;
}

.hf118c-r3-order{
  width:90px;
}

.hf118c-r3-approve{
  background:linear-gradient(135deg,#e0bf73,#b98b35)!important;
  color:#090909!important;
  border-color:transparent!important;
}

.hf118c-r3-approved-pulse{
  animation:hf118cR3Approved 1.05s ease;
}

@keyframes hf118cR3Approved{
  0%{transform:scale(1);box-shadow:none}
  35%{transform:scale(1.012);border-color:rgba(158,231,178,.65);box-shadow:0 0 0 4px rgba(158,231,178,.08)}
  100%{transform:scale(1);box-shadow:none}
}

.hf118c-r3-empty{
  display:grid;
  gap:5px;
}

/* Public comments */
.hf118c-r3-public-comments{
  padding:78px 0;
  border-top:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 12% 10%,rgba(218,173,86,.08),transparent 34%),
    #070707;
}

.hf118c-r3-public-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:26px;
}

.hf118c-r3-public-head h2{
  margin:7px 0 8px;
}

.hf118c-r3-public-head p{
  opacity:.7;
  margin:0;
}

.hf118c-r3-public-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.hf118c-r3-public-card{
  display:grid;
  align-content:space-between;
  gap:20px;
  min-height:160px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  padding:22px;
  background:rgba(255,255,255,.025);
}

.hf118c-r3-public-card p{
  margin:0;
  white-space:pre-wrap;
  line-height:1.62;
}

.hf118c-r3-public-author{
  display:grid;
  gap:3px;
}

.hf118c-r3-public-author span{
  opacity:.6;
  font-size:.9rem;
}

.hf118c-r3-public-empty{
  opacity:.62;
}

/* Modal */
.hf118c-r3-modal[hidden]{display:none!important}

.hf118c-r3-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:18px;
}

.hf118c-r3-backdrop{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  background:rgba(0,0,0,.82);
}

.hf118c-r3-dialog{
  position:relative;
  z-index:1;
  width:min(680px,100%);
  max-height:92vh;
  overflow:auto;
  border:1px solid rgba(255,255,255,.12);
  border-radius:24px;
  padding:28px;
  background:#090909;
  box-shadow:0 28px 90px rgba(0,0,0,.55);
}

.hf118c-r3-x{
  position:absolute;
  top:13px;
  right:15px;
  border:0;
  background:none;
  color:#fff;
  font-size:29px;
  cursor:pointer;
}

.hf118c-r3-form{
  display:grid;
  gap:15px;
  margin-top:22px;
}

.hf118c-r3-form label{
  display:grid;
  gap:7px;
}

.hf118c-r3-form input,
.hf118c-r3-form textarea{
  width:100%;
  box-sizing:border-box;
  border:1px solid rgba(255,255,255,.13);
  border-radius:13px;
  padding:12px 13px;
  background:#0e0e0e;
  color:#fff;
  font:inherit;
}

.hf118c-r3-consent{
  grid-template-columns:auto 1fr!important;
  align-items:start;
}

.hf118c-r3-consent input{
  width:auto;
  margin-top:4px;
}

.hf118c-r3-honeypot{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}

.hf118c-r3-form-status{
  min-height:1.35em;
  margin:0;
  color:#ff9b9b;
}

.hf118c-r3-submit,
#experienceSubmit{
  background:linear-gradient(135deg,#e0bf73,#b98b35)!important;
  color:#080808!important;
  border:0!important;
  font-weight:900!important;
}

.hf118c-r3-success{
  min-height:300px;
  display:grid;
  place-items:center;
  align-content:center;
  text-align:center;
  gap:10px;
}

.hf118c-r3-success-check{
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:1px solid rgba(158,231,178,.38);
  color:#9ee7b2;
  background:rgba(158,231,178,.08);
  font-size:34px;
  animation:hf118cR3Success .55s ease both;
}

@keyframes hf118cR3Success{
  from{opacity:0;transform:scale(.72) rotate(-8deg)}
  to{opacity:1;transform:scale(1) rotate(0)}
}

body.hf118c-r3-modal-open{
  overflow:hidden;
}

/* Standalone experiencia/comment page */
.hf118c-r3-standalone{
  min-height:calc(100vh - 180px);
  padding:64px 0;
}

.hf118c-r3-standalone-card{
  width:min(720px,100%);
  box-sizing:border-box;
  margin:0 auto;
  border:1px solid rgba(255,255,255,.11);
  border-radius:24px;
  padding:28px;
  background:rgba(255,255,255,.025);
}

.hf118c-r3-standalone-card h1{
  margin:7px 0 10px;
}

.hf118c-r3-standalone-card .hf118c-r3-form{
  margin-top:24px;
}

@media(max-width:850px){
  .hf118c-r3-public-grid{
    grid-template-columns:1fr;
  }

  .hf118c-r3-public-head,
  .hf118c-r3-admin-title{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(max-width:680px){
  .hf118c-r3-share{
    grid-template-columns:1fr;
  }

  .hf118c-r3-comment-top{
    flex-direction:column;
  }

  .hf118c-r3-dialog{
    padding:24px 18px;
  }

  .hf118c-r3-standalone{
    padding:34px 0;
  }

  .hf118c-r3-standalone-card{
    padding:22px 18px;
  }
}
