/* ========================
   ESTILOS GENERALES
   ======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #f7f4f0;
  color: #1a1a1a;
  min-height: 100vh;
}

/* ========================
   HERO / PORTADA
   ======================== */
.hero {
  background-image: url('/fondo-artistas.png');
  background-size: cover;
  background-position: center 25%;
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 540px;
}

.hero-overlay {
  width: 100%;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    180deg,
    rgba(61, 0, 24, 0.15) 0%,
    rgba(61, 0, 24, 0.0) 35%,
    rgba(61, 0, 24, 0.75) 80%,
    rgba(61, 0, 24, 0.95) 100%
  );
}

.hero-title-bar {
  width: 100%;
  padding: 28px 20px 24px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: transparent;
  color: #c9a0b4;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-family: 'Segoe UI', sans-serif;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 400;
  color: #fff;
  font-family: 'Georgia', serif;
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.hero h1 em {
  font-style: italic;
  color: #e8c4d4;
}

.hero-subtitle {
  font-size: 1rem;
  color: #c9a0b4;
  font-style: italic;
  font-family: 'Georgia', serif;
}

/* ========================
   INFORMACIÓN DEL EVENTO
   ======================== */
.event-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  background: #fff;
  border-bottom: 3px solid #3d0018;
}

.info-card {
  background: #fff;
  padding: 20px 28px;
  text-align: center;
  flex: 1;
  min-width: 130px;
  border-right: 1px solid #e8e0e0;
  transition: background 0.2s;
}

.info-card:last-child {
  border-right: none;
}

.info-card:hover {
  background: #fdf8f9;
}

.info-card .icon {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.info-card .label {
  font-size: 0.65rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
  font-family: 'Segoe UI', sans-serif;
}

.info-card .value {
  font-size: 0.98rem;
  font-weight: 700;
  color: #3d0018;
  font-family: 'Segoe UI', sans-serif;
}

.info-card .value.highlight {
  color: #3d0018;
  font-size: 1.2rem;
}

/* Participantes */
.participantes-section {
  background: #3d0018;
  padding: 28px 20px;
  text-align: center;
}

.participantes-section h3 {
  font-size: 0.68rem;
  color: #c9a0b4;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-family: 'Segoe UI', sans-serif;
  margin-bottom: 14px;
}

.participantes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 24px;
  max-width: 700px;
  margin: 0 auto;
}

.participante {
  font-style: italic;
  color: #e8c4d4;
  font-size: 0.9rem;
  font-family: 'Georgia', serif;
}

/* ========================
   DISPONIBILIDAD
   ======================== */
.availability-section {
  text-align: center;
  padding: 24px 20px 16px;
  background: #f7f4f0;
}

.availability-bar {
  max-width: 500px;
  margin: 0 auto 10px;
  background: #e0d5d5;
  border-radius: 20px;
  height: 8px;
  overflow: hidden;
}

.availability-fill {
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(90deg, #3d0018, #8b3056);
  transition: width 0.5s ease;
}

.availability-text {
  font-size: 0.9rem;
  color: #888;
  font-family: 'Segoe UI', sans-serif;
}

.availability-text strong {
  color: #3d0018;
  font-size: 1rem;
}

/* ========================
   SECCIÓN DE RESERVA
   ======================== */
.reserve-section {
  max-width: 560px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: #3d0018;
  font-family: 'Georgia', serif;
  font-style: italic;
}

.ticket-selector {
  background: #fff;
  border: 1px solid #e8d5d5;
  border-top: 3px solid #3d0018;
  border-radius: 0 0 12px 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.ticket-selector label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-family: 'Segoe UI', sans-serif;
}

.ticket-counter {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.counter-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #3d0018;
  background: transparent;
  color: #3d0018;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', sans-serif;
}

.counter-btn:hover:not(:disabled) {
  background: #3d0018;
  color: #fff;
}

.counter-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

#ticket-count {
  font-size: 2.5rem;
  font-weight: 400;
  color: #3d0018;
  min-width: 50px;
  text-align: center;
  font-family: 'Georgia', serif;
}

.total-display {
  border-top: 1px solid #e8d5d5;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-display .total-label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Segoe UI', sans-serif;
}

.total-display .total-amount {
  font-size: 1.8rem;
  font-weight: 400;
  color: #3d0018;
  font-family: 'Georgia', serif;
}

/* SINPE */
.sinpe-box {
  background: #f0f9f0;
  border: 1px solid #b2d8b2;
  border-left: 4px solid #2e7d32;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: none;
}

.sinpe-box.visible {
  display: block;
}

.sinpe-box h3 {
  color: #2e7d32;
  font-size: 0.85rem;
  margin-bottom: 8px;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.sinpe-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 3px;
  margin: 6px 0;
  font-family: 'Segoe UI', sans-serif;
}

.sinpe-detail {
  font-size: 0.85rem;
  color: #555;
  font-family: 'Segoe UI', sans-serif;
}

.sinpe-detail strong {
  color: #2e7d32;
}

/* ========================
   FORMULARIO
   ======================== */
.form-card {
  background: #fff;
  border: 1px solid #e8d5d5;
  border-top: 3px solid #3d0018;
  border-radius: 0 0 12px 12px;
  padding: 28px;
  display: none;
}

.form-card.visible {
  display: block;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  font-family: 'Segoe UI', sans-serif;
}

.form-group label .required {
  color: #3d0018;
}

.form-group input,
.form-group select {
  width: 100%;
  background: #faf7f7;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #1a1a1a;
  font-size: 1rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Segoe UI', sans-serif;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #3d0018;
  background: #fff;
}

.form-group input::placeholder {
  color: #bbb;
}

.upload-area {
  border: 2px dashed #ddd;
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #faf7f7;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: #3d0018;
  background: #fdf5f7;
}

.upload-area .upload-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.upload-area .upload-text {
  color: #888;
  font-size: 0.9rem;
  font-family: 'Segoe UI', sans-serif;
}

.upload-area .upload-hint {
  color: #bbb;
  font-size: 0.75rem;
  margin-top: 4px;
  font-family: 'Segoe UI', sans-serif;
}

.upload-area.has-file {
  border-color: #2e7d32;
  background: #f0f9f0;
}

.upload-area.has-file .upload-text {
  color: #2e7d32;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: #3d0018;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 400;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Segoe UI', sans-serif;
}

.btn-submit:hover:not(:disabled) {
  background: #5a001f;
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================
   MENSAJES
   ======================== */
.message {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-size: 0.92rem;
  display: none;
  font-family: 'Segoe UI', sans-serif;
}

.message.error {
  background: #fdf0f0;
  border: 1px solid #e8b4b4;
  border-left: 4px solid #c0392b;
  color: #7b1a1a;
  display: block;
}

.message.success {
  background: #f0f9f0;
  border: 1px solid #b2d8b2;
  border-left: 4px solid #2e7d32;
  color: #1a5c1a;
  display: block;
}

.message.info {
  background: #fdf5f7;
  border: 1px solid #e8c4d0;
  border-left: 4px solid #3d0018;
  color: #3d0018;
  display: block;
}

/* ========================
   PANEL ADMIN
   ======================== */
.admin-body {
  background: #f7f4f0;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
}

.admin-header {
  background: #3d0018;
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-header h1 {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 400;
  font-family: 'Georgia', serif;
  font-style: italic;
}

.admin-stats {
  display: flex;
  gap: 12px;
  padding: 20px 30px;
  flex-wrap: wrap;
}

.stat-card {
  background: #fff;
  border: 1px solid #e8d5d5;
  border-top: 3px solid #ddd;
  border-radius: 0 0 8px 8px;
  padding: 16px 20px;
  flex: 1;
  min-width: 130px;
}

.stat-card .stat-label {
  font-size: 0.7rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #3d0018;
  font-family: 'Georgia', serif;
}

.stat-card.stat-pendiente { border-top-color: #e6a817; }
.stat-card.stat-pendiente .stat-value { color: #8a6000; }
.stat-card.stat-confirmado { border-top-color: #2e7d32; }
.stat-card.stat-confirmado .stat-value { color: #1a5c1a; }
.stat-card.stat-rechazado { border-top-color: #c0392b; }
.stat-card.stat-rechazado .stat-value { color: #7b1a1a; }

.admin-table-wrap {
  padding: 0 30px 40px;
  overflow-x: auto;
}

.admin-table-wrap h2 {
  font-size: 0.7rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: #fff;
  border: 1px solid #e8d5d5;
}

th {
  background: #fdf5f7;
  color: #888;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid #e8d5d5;
  font-weight: 600;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0e8e8;
  vertical-align: middle;
}

tr:hover td {
  background: #fdf8f9;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pendiente {
  background: #fef9e7;
  color: #8a6000;
  border: 1px solid #e6a81755;
}

.badge-confirmado {
  background: #f0f9f0;
  color: #1a5c1a;
  border: 1px solid #2e7d3255;
}

.badge-rechazado {
  background: #fdf0f0;
  color: #7b1a1a;
  border: 1px solid #c0392b55;
}

.action-btns {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.btn-action {
  padding: 4px 10px;
  border-radius: 4px;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}

.btn-action:hover { opacity: 0.8; }

.btn-confirm { background: #2e7d32; color: #fff; }
.btn-reject { background: #c0392b; color: #fff; }
.btn-pending { background: #e6a817; color: #fff; }
.btn-whatsapp { background: #1a6e36; color: #fff; display: block; margin-top: 4px; font-size: 0.68rem; }

.btn-comprobante {
  background: #3d0018;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-style: italic;
}

.filter-bar {
  display: flex;
  gap: 8px;
  padding: 0 30px 18px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 4px;
  border: 1px solid #ddd;
  background: #fff;
  color: #888;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: #3d0018;
  color: #3d0018;
  background: #fdf5f7;
}

/* ========================
   PIE DE PÁGINA
   ======================== */
.site-footer {
  background: #3d0018;
  text-align: center;
  padding: 40px 20px 48px;
}

.footer-logo {
  width: 220px;
  max-width: 70%;
  height: auto;
  opacity: 0.95;
}

@media (max-width: 600px) {
  .event-info { flex-direction: column; }
  .info-card { border-right: none; border-bottom: 1px solid #e8e0e0; }
  .admin-stats { flex-direction: column; }
  .admin-table-wrap { padding: 0 16px 40px; }
  .admin-header { padding: 14px 16px; flex-direction: column; gap: 8px; }
  th, td { padding: 10px 10px; }
  .footer-logo { width: 180px; }
}
