/* =============================================
   STREAMING - Estilos Principales
   ============================================= */

:root {
  --primary:     #e94560;
  --primary-dark:#c0392b;
  --bg:          #0f0f1a;
  --bg-card:     #1a1a2e;
  --bg-card2:    #16213e;
  --text:        #e8e8e8;
  --text-muted:  #888;
  --border:      #2a2a4a;
  --success:     #28a745;
  --warning:     #ffc107;
  --danger:      #dc3545;
  --radius:      10px;
  --shadow:      0 4px 20px rgba(0,0,0,.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* ── Navbar ── */
.navbar {
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand span { color: var(--text); }

.navbar-nav { display: flex; gap: 20px; align-items: center; }
.navbar-nav a { color: var(--text-muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.navbar-nav a:hover { color: var(--primary); }

/* ── Hero / Page Header ── */
.page-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 48px 24px 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-header h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: 8px; }
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* ── Banner de mensajes rotativos ── */
.promo-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 7px 18px;
  background: rgba(233,69,96,.08);
  border: 1px solid rgba(233,69,96,.2);
  border-radius: 30px;
  font-size: .85rem;
  color: #bbb;
  min-width: 260px;
  max-width: 680px;
  min-height: 36px;
  justify-content: center;
}
.promo-icon { font-size: .9rem; flex-shrink: 0; }
#promo-text { opacity: 0; line-height: 1.4; }

/* ── Contenedor principal ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }

/* ── Grid de videos ── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 32px 0;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.video-thumbnail {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-card2);
  position: relative;
  overflow: hidden;
}
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.video-thumbnail .play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  opacity: 0;
  transition: opacity .2s;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-icon {
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.play-icon svg { margin-left: 4px; }

.video-info { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.video-info h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }
.video-info p  { color: var(--text-muted); font-size: .9rem; flex: 1; margin-bottom: 16px; }

.video-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.video-price small { font-size: .75rem; color: var(--text-muted); font-weight: 400; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 6px; font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none; transition: all .2s;
  line-height: 1;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline  { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-success  { background: var(--success); color: #fff; }
.btn-success:hover { background: #218838; }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-secondary { background: #444; color: #eee; }
.btn-secondary:hover { background: #555; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Cards generales ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-sm { padding: 20px; }
.card h2 { margin-bottom: 20px; font-size: 1.3rem; }

/* ── Formularios ── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: .9rem; color: var(--text-muted); }
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(233,69,96,.2);
}
.form-control::placeholder { color: #555; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ── Alertas ── */
.alert {
  padding: 14px 18px; border-radius: 6px; margin-bottom: 20px;
  display: block; line-height: 1.6;
}
.alert-danger  { background: rgba(220,53,69,.15); border: 1px solid rgba(220,53,69,.4); color: #f5a0a8; }
.alert-success { background: rgba(40,167,69,.15);  border: 1px solid rgba(40,167,69,.4);  color: #75d89e; }
.alert-info    { background: rgba(23,162,184,.15); border: 1px solid rgba(23,162,184,.4); color: #7de3f0; }
.alert-warning { background: rgba(255,193,7,.15);  border: 1px solid rgba(255,193,7,.4);  color: #ffd96b; }
.alert p { margin: 0; line-height: 1.6; }

/* ── Métodos de pago ── */
.payment-methods { display: grid; gap: 16px; }
.payment-option {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  transition: all .2s; background: var(--bg-card);
}
.payment-option:hover, .payment-option.selected {
  border-color: var(--primary); background: rgba(233,69,96,.08);
}
.payment-logo { width: 80px; height: 40px; object-fit: contain; filter: brightness(1.2); }
.payment-info h3 { font-size: 1rem; margin-bottom: 4px; }
.payment-info p  { font-size: .85rem; color: var(--text-muted); margin: 0; }

/* ── Steps / Progress ── */
.steps {
  display: flex; gap: 0; margin-bottom: 32px; position: relative;
  justify-content: center;
}
.step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; max-width: 160px; position: relative; z-index: 1;
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; margin-bottom: 6px;
  color: var(--text-muted);
}
.step.active .step-num  { border-color: var(--primary); background: var(--primary); color: #fff; }
.step.done .step-num    { border-color: var(--success); background: var(--success); color: #fff; }
.step-label { font-size: .78rem; color: var(--text-muted); text-align: center; }
.step.active .step-label { color: var(--primary); font-weight: 600; }
.steps::before {
  content: ''; position: absolute; top: 18px; left: 10%; right: 10%;
  height: 2px; background: var(--border); z-index: 0;
}

/* ── Transferencia bancaria ── */
.bank-info {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin: 20px 0;
}
.bank-info table { width: 100%; }
.bank-info td    { padding: 8px 0; }
.bank-info td:first-child { color: var(--text-muted); width: 140px; }
.bank-info td:last-child  { font-weight: 600; font-size: 1.1rem; }
.alias-big {
  font-size: 2rem; font-weight: 800; color: var(--primary);
  text-align: center; letter-spacing: 2px; padding: 16px 0;
}

/* ── Upload zone ── */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center; cursor: pointer;
  transition: all .2s; position: relative; overflow: hidden;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary); background: rgba(233,69,96,.05);
}
.upload-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.upload-icon { font-size: 3rem; margin-bottom: 12px; opacity: .6; }
.upload-zone p { color: var(--text-muted); margin: 0; }

/* ── Video Player ── */
.player-wrapper {
  background: #000; border-radius: var(--radius); overflow: hidden;
  position: relative; width: 100%;
}
.player-wrapper iframe,
.player-wrapper video {
  width: 100%; aspect-ratio: 16/9; border: none; display: block;
}

/* ── Badges ── */
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: .75rem; font-weight: 600;
}
.badge-success  { background: rgba(40,167,69,.2);  color: #75d89e; }
.badge-danger   { background: rgba(220,53,69,.2);  color: #f5a0a8; }
.badge-warning  { background: rgba(255,193,7,.2);  color: #ffd96b; }
.badge-info     { background: rgba(23,162,184,.2); color: #7de3f0; }
.badge-secondary{ background: rgba(108,117,125,.2);color: #adb5bd; }
.badge-primary  { background: rgba(233,69,96,.2);  color: #f88099; }

/* ── Spinner / Loading ── */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%; animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ── */
.footer {
  background: var(--bg-card2); border-top: 1px solid var(--border);
  padding: 24px; text-align: center; color: var(--text-muted);
  font-size: .85rem; margin-top: 60px;
}

/* ── Utilidades ── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-primary{ color: var(--primary); }
.mt-1 { margin-top:  8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom:  8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }

/* ── Modal "Leer más" ── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop.open { display: flex; }
@media (min-width: 600px) {
  .modal-backdrop { align-items: center; padding: 20px; }
}
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  animation: modalSlideUp .22s ease;
}
@media (min-width: 600px) {
  .modal-box { border-radius: var(--radius); max-width: 620px; max-height: 70vh; }
}
@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h2 { font-size: 1.1rem; color: var(--text); margin: 0; flex: 1; padding-right: 12px; }
.modal-close {
  background: none; border: none; color: var(--text-muted);
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 0 4px; flex-shrink: 0;
}
.modal-close:hover { color: var(--text); }
.modal-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
  flex: 1;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  white-space: pre-wrap;
  -webkit-overflow-scrolling: touch;
}

/* Botón inline "Leer más" */
.btn-read-more {
  background: none; border: none;
  color: var(--primary); cursor: pointer;
  font-size: .88rem; font-weight: 600;
  padding: 0; text-decoration: underline;
  vertical-align: baseline; font-family: inherit;
}
.btn-read-more:hover { color: var(--primary-dark); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-header h1 { font-size: 1.6rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .card { padding: 20px; }
  .navbar-brand span { display: none; }
}
