/* ==================== VARIABLES Y CONFIGURACIÓN GLOBAL ==================== */
:root {
  /* Nueva Paleta de Colores: Negro Puro + Verde Bonito (Vibrante y Fresco) */
  --primary: #84cc16;        /* Verde lima bonito y brillante del logo */
  --primary-dark: #65a30d;   /* Verde oscuro para contrastes */
  --primary-light: #f7fee7;  /* Fondo verde sumamente claro para tarjetas/alertas */
  
  --dark: #111111;           /* Negro puro para tipografía y fondos premium */
  --dark-light: #262626;     /* Carbón oscuro para textos secundarios */
  --muted: #737373;          /* Gris neutro apagado */
  
  --light: #fafafa;          /* Blanco roto limpio (fondo principal) */
  --white: #ffffff;          /* Blanco puro */
  --border: #e5e5e5;         /* Bordes grises suaves y limpios */
  
  /* Estados */
  --whatsapp: #25d366;
  --whatsapp-dark: #128c7e;
  --success: #16a34a;
  --success-light: #f0fdf4;
  --pending: #ea580c;
  --pending-light: #fff7ed;
  --error: #dc2626;
  --error-light: #fef2f2;
  
  /* Fuentes */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Sombras y Efectos */
  --shadow-sm: 0 2px 8px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 10px 30px rgba(17, 17, 17, 0.06);
  --shadow-lg: 0 20px 50px rgba(17, 17, 17, 0.1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--light);
  color: var(--dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==================== UTILIDADES / ELEMENTOS COMUNES ==================== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-tag {
  display: block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 40px;
}

.section-header-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--dark);
}

.btn-primary:hover {
  background-color: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 204, 22, 0.2);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--dark);
}

.btn-outline:hover {
  background-color: var(--white);
  border-color: var(--dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Formularios Comunes */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark-light);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .col {
  flex: 1;
}

.form-row .col-sm {
  width: 110px;
  flex: 0 0 auto;
}

.form-row .col-2 {
  flex: 2;
}

.textarea-md {
  min-height: 110px;
  resize: vertical;
}

.textarea-sm {
  min-height: 80px;
  resize: vertical;
}

.required-star {
  color: var(--error);
}

.optional-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
}

/* ==================== HEADER / NAVEGACIÓN ==================== */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  background-color: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 38px; /* Tamaño del logo horizontal */
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-light);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-dark);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.admin-btn-icon:hover {
  color: var(--dark);
}

.cta-header-btn {
  background-color: var(--dark);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

.cta-header-btn:hover {
  background-color: var(--primary);
  color: var(--dark);
}

/* ==================== VISTA 1: INICIO (LANDING PAGE) ==================== */
.view-section {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

/* Hero Section: Sin imágenes de IA. Elegante fondo negro puro con destello verde sutil */
.hero-section {
  height: 70vh;
  min-height: 480px;
  background: radial-gradient(circle at 80% 20%, rgba(132, 204, 22, 0.12), transparent 45%), radial-gradient(circle at 15% 85%, rgba(132, 204, 22, 0.06), transparent 35%), var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--white);
}

.hero-content {
  max-width: 700px;
  padding: 0 24px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: 90px;
  width: auto;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
}


.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.hero-actions .btn-outline:hover {
  background-color: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  z-index: 10;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-8px) translateX(-50%); }
  60% { transform: translateY(-4px) translateX(-50%); }
}

/* Tarjetas de Eventos */
.events-section {
  background-color: var(--light);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.event-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.event-card-image-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  /* Degradado moderno de fallback si no hay foto */
  background: linear-gradient(135deg, var(--primary-light) 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-card-img {
  transform: scale(1.04);
}

/* Logo de Vive Algo centrado como marca de agua si no hay imagen de evento */
.event-card-placeholder-logo {
  height: 50px;
  opacity: 0.15;
  object-fit: contain;
}

.event-card-price {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
}

.event-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

.event-card-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-card-meta i {
  color: var(--primary-dark);
}

.event-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-card-desc {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.event-card-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-card-link i {
  transition: transform 0.2s ease;
}

.event-card:hover .event-card-link {
  color: var(--primary-dark);
}

.event-card:hover .event-card-link i {
  transform: translateX(4px);
}

.capacity-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
}

.capacity-available {
  background-color: var(--success-light);
  color: var(--success);
}

.capacity-full {
  background-color: var(--error-light);
  color: var(--error);
}

/* ¿Por qué participar? */
.why-section {
  background-color: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 32px 24px;
  background-color: var(--light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.why-card:hover {
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.why-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.why-card:hover .why-icon-wrapper {
  background-color: var(--primary);
  color: var(--dark);
}

.why-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card-text {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Comunidad */
.community-section {
  background-color: var(--white);
}

.community-box {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.community-box::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.12) 0%, transparent 70%);
}

.community-content {
  position: relative;
  z-index: 10;
  max-width: 600px;
  margin: 0 auto;
}

.community-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.community-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 30px;
}

/* ==================== VISTA 2: DETALLE DE EVENTO ==================== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 24px;
}

.back-link:hover {
  color: var(--dark);
}

.event-detail-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

/* Galería y Contenido Principal */
.event-main-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.event-hero-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--primary-light) 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-header h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-light);
}

.event-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-detail-meta i {
  color: var(--primary-dark);
}

.event-description-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--dark-light);
  white-space: pre-line; /* Permite saltos de línea cargados en admin */
}

/* Highlights */
.highlights-section-detail h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.highlights-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 0.9rem;
}

.highlight-item i {
  color: var(--primary-dark);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* FAQs */
.faqs-section-detail h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.faq-accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--white);
  margin-bottom: 10px;
  transition: var(--transition);
}

.faq-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.faq-header:hover {
  background-color: var(--primary-light);
}

.faq-icon {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: all 0.25s ease-out;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid transparent;
}

.faq-accordion.active .faq-icon {
  transform: rotate(180deg);
}

.faq-accordion.active .faq-body {
  max-height: 250px;
  padding: 16px 20px;
  border-top-color: var(--border);
}

/* Columna Lateral de Compra (Sidebar) */
.event-sidebar-col {
  position: sticky;
  top: 100px;
}

.booking-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.booking-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
}

.booking-card-price-row .label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.booking-card-price-row .price {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--dark);
}

.booking-card-stats {
  padding: 14px;
  background-color: var(--light);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.stat-progress-bar {
  height: 100%;
  background-color: var(--primary-dark);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.booking-card-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==================== VISTA 3: PANEL DE ADMINISTRACIÓN ==================== */
.admin-container {
  padding-top: 30px;
  padding-bottom: 60px;
}

.admin-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.login-card {
  max-width: 440px;
  margin: 40px auto;
  padding: 40px;
  text-align: center;
}

.login-logo {
  height: 50px;
  width: auto;
  margin-bottom: 24px;
}

.login-card h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.login-card p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 0.9rem;
}

.error-banner {
  margin-top: 16px;
  padding: 10px 14px;
  background-color: var(--error-light);
  color: var(--error);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
}

/* Dashboard Header */
.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.admin-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.admin-user-info h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
}

.admin-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Metrics KPIs */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.metric-card {
  background-color: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.metric-icon-box.interest {
  background-color: #f0fdfa;
  color: #0d9488;
}

.metric-icon-box.pending {
  background-color: var(--pending-light);
  color: var(--pending);
}

.metric-icon-box.confirmed {
  background-color: var(--success-light);
  color: var(--success);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
}

/* Tabs */
.admin-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  gap: 6px;
}

.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.tab-btn:hover {
  color: var(--primary-dark);
}

.tab-btn.active {
  color: var(--dark);
  border-bottom-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active-content {
  display: block;
}

.tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tab-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.form-control-inline {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
}

/* CRM Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--white);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.admin-table th, .admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background-color: var(--light);
  font-weight: 700;
  color: var(--dark-light);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background-color: var(--primary-light);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
}

.status-badge.status-pendiente {
  background-color: var(--pending-light);
  color: var(--pending);
}

.status-badge.status-confirmado {
  background-color: var(--success-light);
  color: var(--success);
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.status-pendiente .badge-dot { background-color: var(--pending); }
.status-confirmado .badge-dot { background-color: var(--success); }

.cell-title {
  font-weight: 700;
  color: var(--dark);
}

.cell-subtext {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.action-buttons-cell {
  display: flex;
  gap: 6px;
}

.btn-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background-color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background-color: var(--light);
}

.btn-icon.confirm-btn {
  color: var(--success);
  border-color: rgba(22, 163, 74, 0.2);
}

.btn-icon.confirm-btn:hover {
  background-color: var(--success-light);
}

.btn-icon.delete-btn {
  color: var(--error);
  border-color: rgba(220, 38, 38, 0.2);
}

.btn-icon.delete-btn:hover {
  background-color: var(--error-light);
}

.admin-img-cell {
  width: 60px;
  height: 38px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--primary-light);
}

/* Split Layout Admins */
.admin-split-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.admin-card-sub {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.admin-card-sub h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.admin-card-sub .subtext {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.form-inline {
  display: flex;
  gap: 10px;
}

.form-inline .form-control {
  flex: 1;
}

.admin-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background-color: var(--light);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.admin-list-item span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.msg-banner {
  margin-top: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
}

.msg-banner.success {
  background-color: var(--success-light);
  color: var(--success);
}

.msg-banner.error {
  background-color: var(--error-light);
  color: var(--error);
}

/* ==================== FOOTER ==================== */
.app-footer {
  background-color: var(--dark);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 40px;
}

.footer-about img {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.footer-host {
  font-size: 0.8rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
}

.footer-host a {
  color: var(--primary);
  font-weight: 700;
}

.footer-links h4, .footer-contact h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-socials a:hover {
  background-color: var(--primary);
  color: var(--dark);
  transform: translateY(-2px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ==================== MODALES (VENTANAS EMERGENTES) ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.modal-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  padding: 32px;
  position: relative;
  transform: scale(0.96);
  opacity: 0;
  animation: slideUp 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slideUp {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: var(--light);
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background-color: var(--dark);
  color: var(--white);
}

.modal-header {
  margin-bottom: 24px;
}

.step-badge {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--pending);
  background-color: var(--pending-light);
  padding: 3px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

.step-badge.payment-step {
  color: var(--primary-dark);
  background-color: var(--primary-light);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: 0.88rem;
  color: var(--muted);
}

.form-summary-box {
  margin-top: 20px;
  margin-bottom: 24px;
  padding: 14px;
  background-color: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.summary-price {
  font-size: 1.2rem;
  color: var(--dark);
}

/* Modal de Pago */
.payment-modal-card {
  max-width: 740px;
}

.payment-details-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-bottom: 28px;
}

.total-to-pay-box {
  background-color: var(--primary-light);
  border: 1px solid rgba(132, 204, 22, 0.2);
  padding: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 16px;
}

.total-to-pay-box strong {
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.bank-details-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}

.bank-details-card h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  font-weight: 700;
}

.bank-details-card ul {
  list-style: none;
  font-size: 0.82rem;
}

.bank-details-card li {
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.bank-details-card li strong {
  font-weight: 600;
  color: var(--muted);
}

.alert-box {
  background-color: rgba(17, 17, 17, 0.02);
  border-left: 3px solid var(--muted);
  padding: 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.alert-box i {
  margin-top: 2px;
}

.payment-qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.payment-qr-section h4 {
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 14px;
  font-weight: 600;
}

.qr-wrapper {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  max-width: 180px;
}

.qr-image {
  width: 100%;
}

.qr-subtext {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 10px;
  font-weight: 600;
}

/* Modal Formulario Evento (Admin) */
.event-form-card {
  max-width: 660px;
}

.event-form-card form {
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 6px;
}

.event-form-card form::-webkit-scrollbar {
  width: 6px;
}

.event-form-card form::-webkit-scrollbar-track {
  background: var(--light);
}

.event-form-card form::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* Spinner */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 40px 0;
}

/* ==================== MEDIAS QUERIES (RESPONSIVO) ==================== */
@media (max-width: 992px) {
  .event-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .event-sidebar-col {
    position: static;
  }
  .payment-details-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .payment-qr-section {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .admin-split-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .main-nav {
    display: none;
  }
  .admin-btn-text {
    display: none;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .form-row .col-sm {
    width: 100%;
  }
  .modal-overlay:not(.hidden) {
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important; /* Soluciona scroll táctil e inercial en iPhone/iPad */
    padding: 20px 10px !important;
  }
  .modal-card {
    margin: 20px auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
  }
  .payment-details-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  .admin-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .admin-tabs {
    flex-wrap: wrap;
  }
  .tab-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .form-inline {
    flex-direction: column;
  }
}
