/* =========================================================
   DRACOLLECTORS - RESEÑAS
   Archivo: css_resenas.css
   Página: dejar_resena.php / resenas.php
   ========================================================= */

:root {
  --dc-bg: #09040d;
  --dc-bg-soft: rgba(16, 7, 24, 0.92);
  --dc-card: rgba(20, 9, 30, 0.88);
  --dc-card-border: rgba(255, 183, 77, 0.35);

  --dc-text: #fff8ec;
  --dc-muted: #d9c6aa;
  --dc-gold: #ffbf55;
  --dc-gold-soft: #ffe0a3;
  --dc-orange: #ff7a1a;
  --dc-red: #b71c1c;
  --dc-purple: #4b1d69;

  --dc-success-bg: rgba(28, 115, 66, 0.22);
  --dc-success-border: rgba(77, 255, 166, 0.45);
  --dc-error-bg: rgba(120, 20, 20, 0.25);
  --dc-error-border: rgba(255, 95, 95, 0.45);

  --dc-radius-lg: 26px;
  --dc-radius-md: 16px;
  --dc-shadow-fire: 0 0 35px rgba(255, 102, 0, 0.22);
}

/* ============================
   Base estable / móvil
   ============================ */

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  background: var(--dc-bg);
}

body.resenas-body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--dc-text);
  background: var(--dc-bg);
}

/* Fondo fijo real sin background-attachment: fixed
   Evita saltos blancos en móvil/Safari/Chrome mobile */
body.resenas-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 122, 26, 0.25), transparent 32%),
    radial-gradient(circle at 15% 20%, rgba(183, 28, 28, 0.28), transparent 35%),
    radial-gradient(circle at 85% 78%, rgba(95, 38, 122, 0.34), transparent 36%),
    linear-gradient(135deg, #08030c 0%, #17071d 44%, #2b0d0d 100%);
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

body.resenas-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.62)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px,
      transparent 9px
    );
  pointer-events: none;
}

/* ============================
   Layout
   ============================ */

.resenas-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 18px;
  box-sizing: border-box;
}

.resenas-card {
  width: min(100%, 760px);
  padding: clamp(24px, 4vw, 46px);
  box-sizing: border-box;
  border-radius: var(--dc-radius-lg);
  border: 1px solid var(--dc-card-border);
  background:
    linear-gradient(145deg, rgba(35, 13, 48, 0.9), rgba(12, 5, 18, 0.94)),
    var(--dc-card);
  box-shadow:
    var(--dc-shadow-fire),
    0 18px 60px rgba(0, 0, 0, 0.48),
    inset 0 0 22px rgba(255, 185, 85, 0.06);
  backdrop-filter: blur(10px);
}

.resenas-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.resenas-logo {
  width: min(220px, 70vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 128, 0, 0.35));
}

.resenas-pretitle {
  margin: 0 0 8px;
  text-align: center;
  color: var(--dc-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.resenas-card h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.05;
  color: var(--dc-gold-soft);
  text-shadow:
    0 0 10px rgba(255, 122, 26, 0.55),
    0 2px 0 rgba(0, 0, 0, 0.7);
}

.resenas-intro {
  max-width: 620px;
  margin: 18px auto 28px;
  text-align: center;
  color: var(--dc-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================
   Alertas
   ============================ */

.resenas-alert {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: var(--dc-radius-md);
  line-height: 1.5;
}

.resenas-alert strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.resenas-alert p {
  margin: 0;
}

.resenas-alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.resenas-alert-success {
  border: 1px solid var(--dc-success-border);
  background: var(--dc-success-bg);
}

.resenas-alert-error {
  border: 1px solid var(--dc-error-border);
  background: var(--dc-error-bg);
}

/* ============================
   Formulario
   ============================ */

.resenas-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.resenas-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resenas-field label,
.resenas-rating-field legend {
  color: var(--dc-gold-soft);
  font-weight: 700;
  font-size: 0.98rem;
}

.resenas-field label span,
.resenas-rating-field legend span {
  color: #ff8a3d;
}

.resenas-field small {
  color: var(--dc-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.resenas-field input,
.resenas-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 191, 85, 0.28);
  border-radius: 14px;
  padding: 14px 15px;
  color: var(--dc-text);
  background: rgba(5, 2, 9, 0.72);
  outline: none;
  font: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.resenas-field textarea {
  min-height: 155px;
  resize: vertical;
  line-height: 1.55;
}

.resenas-field input::placeholder,
.resenas-field textarea::placeholder {
  color: rgba(230, 205, 170, 0.58);
}

.resenas-field input:focus,
.resenas-field textarea:focus {
  border-color: rgba(255, 191, 85, 0.8);
  background: rgba(10, 4, 15, 0.9);
  box-shadow: 0 0 0 3px rgba(255, 145, 35, 0.18);
}

/* Honeypot anti-spam */
.campo-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* ============================
   Rating
   ============================ */

.resenas-rating-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.resenas-rating-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resenas-rating-options label {
  cursor: pointer;
}

.resenas-rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.resenas-rating-options span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 191, 85, 0.28);
  color: rgba(255, 214, 130, 0.88);
  background: rgba(6, 2, 10, 0.58);
  letter-spacing: 0.05em;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.resenas-rating-options input:checked + span,
.resenas-rating-options label:hover span {
  border-color: rgba(255, 191, 85, 0.92);
  background: linear-gradient(135deg, rgba(255, 122, 26, 0.22), rgba(255, 191, 85, 0.16));
  box-shadow: 0 0 16px rgba(255, 132, 32, 0.22);
  transform: translateY(-1px);
}

/* ============================
   Checkbox legal
   ============================ */

.resenas-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(255, 191, 85, 0.2);
  border-radius: 14px;
  background: rgba(5, 2, 9, 0.5);
  color: var(--dc-muted);
  line-height: 1.48;
  cursor: pointer;
}

.resenas-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--dc-orange);
}

.resenas-check span {
  font-size: 0.92rem;
}

/* ============================
   Botón
   ============================ */

.resenas-submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 15px 24px;
  color: #180803;
  background:
    linear-gradient(135deg, #ffe4a3 0%, #ffbf55 36%, #ff7a1a 72%, #d63b13 100%);
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(255, 122, 26, 0.34);
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.resenas-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 122, 26, 0.48);
}

.resenas-submit:active {
  transform: translateY(0);
}

.resenas-legal {
  margin: 0;
  color: rgba(217, 198, 170, 0.82);
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 640px) {
  .resenas-page {
    align-items: flex-start;
    padding: 22px 12px;
  }

  .resenas-card {
    border-radius: 20px;
    padding: 22px 16px;
  }

  .resenas-logo {
    width: min(190px, 74vw);
  }

  .resenas-pretitle {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .resenas-intro {
    margin-bottom: 22px;
    font-size: 0.95rem;
  }

  .resenas-rating-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .resenas-rating-options span {
    width: 100%;
    box-sizing: border-box;
  }

  .resenas-field input,
  .resenas-field textarea {
    font-size: 16px;
  }

  .resenas-check {
    padding: 12px;
  }

  .resenas-submit {
    padding: 14px 18px;
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resenas-field input,
  .resenas-field textarea,
  .resenas-rating-options span,
  .resenas-submit {
    transition: none;
  }
}




/* ============================
   Acciones tras enviar reseña
   ============================ */

.resenas-success-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.resenas-return-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 999px;
  color: #180803;
  background:
    linear-gradient(135deg, #ffe4a3 0%, #ffbf55 40%, #ff7a1a 100%);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(255, 122, 26, 0.34);
  transition:
    transform 0.18s ease,
    filter 0.18s ease,
    box-shadow 0.18s ease;
}

.resenas-return-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 122, 26, 0.48);
}