/* ================================================================
   recommendations.css — Sección "Especialmente para ti"
   RollerCoaster World · Design System Dark
   ================================================================ */

/* ── SECTION WRAPPER ─────────────────────────────────────────── */
.rcw-recs-section {
  padding: 0 0 2.5rem;
}

.rcw-recs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rcw-recs-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rcw-recs-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #000;
  font-family: var(--rcw-font-title);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.rcw-recs-ai-badge .ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #000;
  animation: aiPulse 1.8s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.6); }
}

.rcw-recs-refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--rcw-text-muted);
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.rcw-recs-refresh-btn:hover {
  border-color: var(--rcw-green-neon);
  color: var(--rcw-green-neon);
}
.rcw-recs-refresh-btn.spinning i {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── GRID DE CARDS ───────────────────────────────────────────── */
.rcw-recs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .rcw-recs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .rcw-recs-grid { grid-template-columns: 1fr; }
}

/* ── REC CARD ────────────────────────────────────────────────── */
.rcw-rec-card {
  position: relative;
  background: var(--rcw-bg-card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: recCardIn 0.5s ease both;
}

.rcw-rec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.55), 0 0 0 1px rgba(16,185,129,0.3);
  border-color: rgba(16,185,129,0.35);
}

@keyframes recCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rcw-rec-card:nth-child(2) { animation-delay: 0.1s; }
.rcw-rec-card:nth-child(3) { animation-delay: 0.2s; }

/* Imagen del parque */
.rcw-rec-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.rcw-rec-img-placeholder {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 2.5rem;
}

/* Overlay de tipo */
.rcw-rec-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.rcw-rec-type-badge.match {
  background: rgba(16,185,129,0.2);
  border: 1px solid rgba(16,185,129,0.5);
  color: #34d399;
}
.rcw-rec-type-badge.wildcard {
  background: rgba(251,146,60,0.2);
  border: 1px solid rgba(251,146,60,0.5);
  color: #fb923c;
}

/* Affinity score gauge */
.rcw-rec-affinity {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(2,6,23,0.75);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 0.22rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  backdrop-filter: blur(6px);
}

/* Cuerpo */
.rcw-rec-body {
  padding: 1rem 1.1rem 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rcw-rec-park-name {
  font-family: var(--rcw-font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.rcw-rec-country {
  font-size: 0.78rem;
  color: var(--rcw-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rcw-rec-reason {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.5;
  padding: 0.5rem 0.7rem;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--rcw-green-neon);
  border-radius: 0 6px 6px 0;
  margin-top: 0.25rem;
}

/* Detalles: hotel + precio */
.rcw-rec-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.rcw-rec-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--rcw-text-muted);
}

.rcw-rec-detail-row strong {
  color: var(--rcw-text-secondary);
}

.rcw-rec-stars {
  color: #fbbf24;
  font-size: 0.7rem;
}

/* Footer del card */
.rcw-rec-footer {
  padding: 0.7rem 1.1rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.rcw-rec-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.rcw-rec-cta:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 4px 16px rgba(16,185,129,0.4);
  transform: translateY(-1px);
  color: #000;
}

/* ── SKELETON LOADER ─────────────────────────────────────────── */
.rcw-rec-skeleton {
  background: var(--rcw-bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  animation: skeletonPulse 1.6s ease-in-out infinite;
}
@keyframes skeletonPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}
.rcw-rec-skeleton .sk-img {
  width: 100%;
  height: 160px;
  background: #1e293b;
}
.rcw-rec-skeleton .sk-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.rcw-rec-skeleton .sk-line {
  height: 12px;
  background: #334155;
  border-radius: 4px;
}
.rcw-rec-skeleton .sk-line.w-60 { width: 60%; }
.rcw-rec-skeleton .sk-line.w-80 { width: 80%; }
.rcw-rec-skeleton .sk-line.w-40 { width: 40%; }

/* ── MODAL CHECKOUT ──────────────────────────────────────────── */
#rec-checkout-modal .modal-content {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
}
#rec-checkout-modal .modal-header {
  background: #161b22;
  border-bottom: 1px solid rgba(16,185,129,0.2);
}
#rec-checkout-modal .checkout-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.88rem;
}
#rec-checkout-modal .checkout-detail-row:last-child {
  border-bottom: none;
}
#rec-checkout-modal .checkout-total {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--rcw-font-title);
  color: var(--rcw-green-neon);
}

/* Qty spinner */
.rcw-qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
}
.rcw-qty-control button {
  background: none;
  border: none;
  color: var(--rcw-green-neon);
  font-size: 1rem;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.15s;
}
.rcw-qty-control button:hover { background: rgba(16,185,129,0.15); }
.rcw-qty-control .qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Payment success animation */
.rcw-payment-success {
  text-align: center;
  padding: 2rem 1rem;
}
.rcw-payment-success .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 2rem;
  color: #000;
  box-shadow: 0 0 30px rgba(16,185,129,0.4);
  animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}
@keyframes successPop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Itinerary */
.rcw-itinerary-day {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.rcw-itinerary-day h6 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rcw-green-neon);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}
.rcw-itinerary-day ul {
  margin: 0;
  padding-left: 1.1rem;
}
.rcw-itinerary-day ul li {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
