/* ==== Variables Globales y Reset ==== */
:root {
  --background-dark: #111622;
  --background-card: #171d2b;
  --background-soft: #1f2637;
  --surface: #ffffff;
  --primary: #ef3d5a;
  --primary-dark: #d83751;
  --text-main: #f4f6fb;
  --text-muted: #a7afc6;
  --accent-blue: #4f7df3;
  --success: #3dd598;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-strong: 0 25px 70px rgba(15, 20, 36, 0.35);
  --shadow-soft: 0 15px 40px rgba(15, 20, 36, 0.22);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

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

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

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #0b0f1c 0%, #131a2b 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 24px;
}

.section-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.section-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-link::after {
  content: "→";
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.section-link:hover::after {
  transform: translateX(4px);
}

/* ==== Botones ==== */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  padding: 14px 24px;
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  border: none;
  font-size: 1.3rem;
  /* padding: 0.5rem; */
  box-shadow: 0 12px 30px rgba(239, 61, 90, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  padding: 12px 20px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-main);
  padding: 12px 24px;
}

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

/* ==== Navbar ==== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 24, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text-main);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.4rem;
}

/* ==== Hero ==== */
.hero {
  position: relative;
  background: radial-gradient(
      circle at top left,
      rgba(79, 125, 243, 0.35),
      transparent 55%
    ),
    radial-gradient(
      circle at top right,
      rgba(239, 61, 90, 0.4),
      transparent 55%
    ),
    linear-gradient(140deg, #10182b 0%, #0c111f 60%, #141e31 100%);
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1515169067865-5387ec356754?auto=format&fit=crop&w=1600&q=80")
    center/cover no-repeat;
  opacity: 0.18;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-copy p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
}

.hero-kicker {
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-showcase {
  display: flex;
  justify-content: center;
}

.showcase-card {
  background: rgba(23, 29, 43, 0.9);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.05);
  max-width: 320px;
}

.showcase-card h3 {
  font-size: 1.5rem;
  margin: 16px 0 8px;
}

.showcase-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.tag-live {
  background: rgba(239, 61, 90, 0.2);
  color: var(--primary);
}

.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ff738a);
}

/* ==== Filtros ==== */
.filters {
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

.filters .container {
  background: rgba(17, 23, 36, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-item label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.filter-item input,
.filter-item select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 12px;
  font-size: 0.95rem;
  outline: none;
}

.filter-item input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.filter-item input:focus,
.filter-item select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 61, 90, 0.18);
}

.filters-submit {
  align-self: stretch;
  height: 100%;
}

/* ==== Eventos destacados ==== */
.featured {
  padding-top: 10px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.event-card {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(15, 19, 34, 0.9) 75%
  );
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.event-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.event-content h3 {
  font-size: 1.5rem;
}

.event-content p {
  color: rgba(244, 246, 251, 0.85);
}

.event-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.event-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.event-price {
  font-weight: 600;
  color: var(--text-main);
}

/* ==== Categorías ==== */
.trending .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.category-card {
  background: rgba(17, 23, 36, 0.72);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: grid;
  gap: 14px;
}

.category-card i {
  font-size: 1.8rem;
  color: var(--primary);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(15, 20, 36, 0.3);
}

/* ==== Testimonios ==== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(17, 23, 36, 0.8);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 24px;
}

.testimonial-card p {
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-footer img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.testimonial-footer span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ==== Contacto ==== */
.contact {
  background: rgba(9, 13, 24, 0.7);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.contact-form form {
  background: rgba(17, 23, 36, 0.85);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-main);
  font-size: 0.95rem;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 61, 90, 0.18);
  outline: none;
}

.contact-info {
  display: grid;
  gap: 18px;
}

.info-card {
  background: rgba(17, 23, 36, 0.85);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
}

.info-card p {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  font-size: 1.2rem;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--primary);
}

/* ==== Partners ==== */
.partners {
  padding: 60px 0;
}

.partners-grid {
  background: rgba(17, 23, 36, 0.75);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  padding: 32px 40px;
  flex-wrap: wrap;
}

.partners-grid p {
  font-weight: 600;
  color: var(--text-muted);
}

.partner-logos {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.partner-logos img {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.partner-logos img:hover {
  opacity: 1;
}

/* ==== Footer ==== */
footer {
  background: rgba(9, 13, 24, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  padding: 60px 0 32px;
}

.footer-grid img {
  height: 36px;
  width: auto;
}

.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
}

.footer-grid a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--text-main);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.newsletter-form button {
  background: var(--primary);
  color: var(--surface);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  border: none;
  font-weight: 600;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 40px;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.payments {
  display: flex;
  gap: 16px;
  align-items: center;
}

.payments img {
  opacity: 0.7;
}

/* ==== Purchase Page ==== */
.purchase-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.purchase-content {
  position: relative;
  flex: 1;
  display: flex;
  width: 100%;
  background: rgba(9, 13, 24, 0.9);
}

.purchase-frame {
  flex: 1;
  width: 100%;
  border: none;
}

.purchase-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  padding: 32px;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(9, 13, 24, 0.95);
  color: var(--text-main);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* ==== Responsive ==== */
@media (max-width: 1024px) {
  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters-submit {
    height: auto;
    padding: 14px 0;
  }
}

@media (max-width: 820px) {
  .navbar .container {
    flex-wrap: wrap;
    gap: 16px;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 24px;
    right: 24px;
    background: rgba(9, 13, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    flex-direction: column;
    padding: 20px;
    gap: 18px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .filters {
    margin-top: -20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-content {
    grid-template-columns: 1fr;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
