.dp-cuenta {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dp-cuenta[hidden] { display: none; }

.dp-cuenta__fondo {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: dpFundido .18s ease-out;
}

.dp-cuenta__caja {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  padding: 34px 30px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  animation: dpEntra .22s cubic-bezier(.16, 1, .3, 1);
}

.dp-cuenta__caja::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, transparent, #e50914, transparent);
}

@keyframes dpFundido { from { opacity: 0 } to { opacity: 1 } }

@keyframes dpEntra {
  from { opacity: 0; transform: translateY(14px) scale(.97) }
  to   { opacity: 1; transform: none }
}

.dp-cuenta__x {
  position: absolute;
  top: 12px; right: 14px;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #9ca3af;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.dp-cuenta__x:hover,
.dp-cuenta__x:focus-visible { background: rgba(255,255,255,.08); color: #fff; }

.dp-cuenta__marca { text-align: center; margin-bottom: 22px; }
.dp-cuenta__marca img { height: 38px; width: auto; }

.dp-cuenta__tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dp-cuenta__tab {
  border: 0;
  background: none;
  padding: 12px 4px;
  font-size: .92rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: color .16s;
}

.dp-cuenta__tab.is-on { color: #fff; }

.dp-cuenta__raya {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 50%;
  height: 2px;
  background: #e50914;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}

.dp-cuenta__tabs[data-en="registro"] .dp-cuenta__raya { transform: translateX(100%); }

.dp-cuenta__form { display: none; flex-direction: column; gap: 16px; }
.dp-cuenta__form.is-on { display: flex; animation: dpFundido .2s ease-out; }

.dp-campo { position: relative; display: block; }

.dp-campo input {
  width: 100%;
  padding: 20px 14px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: .98rem;
  transition: border-color .16s, background .16s;
}

.dp-campo input:focus {
  outline: none;
  border-color: #e50914;
  background: rgba(255,255,255,.06);
}

.dp-campo span {
  position: absolute;
  left: 15px;
  top: 15px;
  color: #6b7280;
  font-size: .95rem;
  pointer-events: none;
  transition: transform .16s ease-out, font-size .16s ease-out, color .16s;
  transform-origin: left top;
}

.dp-campo input:focus + span,
.dp-campo input:not(:placeholder-shown) + span {
  transform: translateY(-9px) scale(.78);
  color: #9ca3af;
}

.dp-cuenta__enviar {
  margin-top: 6px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: #e50914;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s, transform .12s;
}

.dp-cuenta__enviar:hover { background: #ff2d38; }
.dp-cuenta__enviar:active { transform: scale(.985); }

.dp-cuenta__aviso {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(229, 9, 20, .12);
  border: 1px solid rgba(229, 9, 20, .35);
  color: #ffb4b8;
  font-size: .88rem;
}

.dp-cuenta__aviso.es-ok {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .35);
  color: #a7f3c9;
}

.dp-fuerza {
  height: 4px;
  border-radius: 3px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
  margin-top: -6px;
}

.dp-fuerza i {
  display: block;
  height: 100%;
  width: 0;
  background: #e50914;
  transition: width .2s ease-out, background .2s;
}

.dp-fuerza__texto { font-size: .78rem; color: #6b7280; margin-top: -8px; }

.dp-avatar-btn { display: inline-flex; text-decoration: none; }

.dp-avatar {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e50914, #b81d24);
  color: #fff;
  font-weight: 800;
  font-size: .92rem;
  border: 2px solid transparent;
  transition: border-color .16s, transform .16s;
}

.dp-avatar-btn:hover .dp-avatar,
.dp-avatar-btn:focus-visible .dp-avatar { border-color: #fff; transform: scale(1.06); }

.dp-coment { margin-top: 14px; }

.dp-coment__form { display: flex; gap: 12px; margin-bottom: 26px; }

.dp-coment__form textarea {
  flex: 1;
  min-height: 54px;
  max-height: 220px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  resize: vertical;
  transition: border-color .16s;
}

.dp-coment__form textarea:focus { outline: none; border-color: #e50914; }

.dp-coment__item {
  display: flex;
  gap: 13px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.dp-coment__item--hijo { margin-left: 46px; }

.dp-coment__ini {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3c3c3c, #242424);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}

.dp-coment__cuerpo { flex: 1; min-width: 0; }

.dp-coment__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 5px;
  font-size: .82rem;
}

.dp-coment__quien { color: #fff; font-weight: 600; }
.dp-coment__cuando { color: #6b7280; }

.dp-coment__texto {
  color: #d1d5db;
  font-size: .95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.dp-coment__acciones {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.dp-coment__accion {
  border: 0;
  background: none;
  padding: 0;
  color: #6b7280;
  font-size: .8rem;
  cursor: pointer;
  transition: color .15s;
}

.dp-coment__accion:hover { color: #fff; }

.dp-coment__etiqueta {
  font-size: .7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 197, 24, .14);
  color: #f5c518;
}

.dp-coment__vacio { color: #6b7280; padding: 22px 0; }

.dp-coment__entrar {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.12);
  text-align: center;
  color: #9ca3af;
}

@media (prefers-reduced-motion: reduce) {
  .dp-cuenta__caja,
  .dp-cuenta__fondo,
  .dp-cuenta__form { animation: none; }

  .dp-cuenta__raya,
  .dp-campo span,
  .dp-fuerza i { transition: none; }
}
