/* Inicio landing: featured / weekly / rankings */
#sec-inicio {
  position: relative;
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 179, 0, 0.14), transparent 28%),
    radial-gradient(circle at 92% 0%, rgba(45, 138, 78, 0.12), transparent 26%),
    linear-gradient(180deg, #e7f6ee 0%, #f4f9f6 42%, #d5ebdf 100%);
}

.inicio-page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 88px;
}

.inicio-status {
  text-align: center;
  color: var(--color-text-muted, #5c6b62);
  font-size: 14px;
  font-weight: 600;
  margin: -12px auto 28px;
}

.inicio-block {
  margin: 0 0 48px;
}

/* Must NOT be <header>: base.css fixes all header tags to the top nav. */
.inicio-block-head {
  position: static;
  display: block;
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: auto;
  top: auto;
  left: auto;
  right: auto;
  width: auto;
  overflow: visible;
}

.inicio-kicker {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c48a00;
}

.inicio-block-head h4 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.4px;
  color: var(--color-primary-dark, #0f3a20);
}

.inicio-note {
  margin: 8px 0 0;
  color: var(--color-text-muted, #5c6b62);
  font-size: 14px;
}

.inicio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.inicio-rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.inicio-card {
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(30, 94, 53, 0.12);
  box-shadow: 0 14px 28px rgba(11, 21, 15, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.inicio-card:hover,
.inicio-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(11, 21, 15, 0.14);
  outline: none;
}

.inicio-card.is-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  min-height: 280px;
}

.inicio-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  background:
    linear-gradient(145deg, rgba(30, 94, 53, 0.18), rgba(255, 179, 0, 0.16)),
    #d7ebdf;
  overflow: hidden;
  flex: 0 0 auto;
}

.inicio-card.is-hero .inicio-thumb {
  aspect-ratio: auto;
  min-height: 100%;
}

.inicio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inicio-thumb.is-placeholder::after {
  content: "";
  position: absolute;
  inset: 18% 22%;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px dashed rgba(30, 94, 53, 0.25);
}

.inicio-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
  min-width: 0;
}

.inicio-card-body h5 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: #0f3a20;
}

.inicio-card-body p {
  margin: 0;
  color: #4a5b52;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inicio-card.is-hero .inicio-card-body p {
  -webkit-line-clamp: 5;
}

.inicio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inicio-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 94, 53, 0.08);
  color: #1e5e35;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inicio-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.inicio-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 255, 204, 0.12);
  color: #0f3a20;
  border: 1px solid rgba(0, 180, 140, 0.35);
  font-size: 12px;
  font-weight: 700;
}

.inicio-badge.is-gold {
  background: rgba(255, 179, 0, 0.18);
  border-color: rgba(255, 179, 0, 0.45);
  color: #8a5a00;
}

.inicio-badge.is-mute {
  background: rgba(11, 21, 15, 0.05);
  border-color: rgba(11, 21, 15, 0.08);
  color: #5c6b62;
}

.inicio-campaign {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700;
  color: #c48a00 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inicio-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.inicio-features li {
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(30, 94, 53, 0.08);
  color: #1e5e35;
  font-size: 12px;
  font-weight: 600;
}

.inicio-cta {
  margin-top: auto;
  align-self: flex-start;
  padding-top: 8px;
  color: #1e5e35;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inicio-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 42px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb300, #f0d48a);
  color: #0b150f;
  font-size: 12px;
  font-weight: 900;
}

.inicio-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: auto;
  padding-top: 8px;
  color: #5c6b62;
  font-size: 12px;
}

.inicio-stats strong {
  color: #0f3a20;
  font-weight: 800;
}

.inicio-total {
  color: #8a5a00;
}

@media (max-width: 800px) {
  .inicio-card.is-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .inicio-card.is-hero .inicio-thumb {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .inicio-page {
    padding: 10px 14px 72px;
  }

  .inicio-block {
    margin-bottom: 28px;
  }

  .inicio-block-head {
    margin-bottom: 12px;
  }

  .inicio-block-head h4 {
    font-size: 22px;
  }

  /* Compact 2-column grids like Turismo on phone */
  .inicio-grid,
  .inicio-rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .inicio-card {
    border-radius: 16px;
  }

  .inicio-thumb {
    aspect-ratio: 16 / 10;
  }

  .inicio-card-body {
    gap: 5px;
    padding: 10px 10px 12px;
  }

  .inicio-card-body h5 {
    font-size: 14px;
    line-height: 1.25;
  }

  .inicio-card-body p {
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }

  .inicio-chip {
    padding: 3px 7px;
    font-size: 9px;
  }

  .inicio-rank {
    min-width: 34px;
    padding: 3px 8px;
    font-size: 11px;
  }

  .inicio-stats {
    gap: 6px 8px;
    padding-top: 4px;
    font-size: 10px;
  }

  /* Weekly hero stays readable (full width, not squeezed into 2-col) */
  .inicio-card.is-hero {
    grid-column: 1 / -1;
    border-radius: 18px;
  }

  #inicio-weekly .inicio-card.is-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  #inicio-weekly .inicio-card.is-hero .inicio-thumb {
    aspect-ratio: 16 / 9;
  }

  #inicio-weekly .inicio-card-body {
    padding: 14px;
    gap: 7px;
  }

  #inicio-weekly .inicio-card-body h5 {
    font-size: 18px;
  }

  #inicio-weekly .inicio-card-body p {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  #inicio-weekly .inicio-cta {
    font-size: 12px;
  }
}

/* ===== Inicio: events carousel ===== */
.inicio-events-block {
  margin-bottom: 8px;
}

.inicio-events {
  max-width: 860px;
  margin: 0 auto;
  outline: none;
}

.inicio-events:focus-visible .inicio-event-card {
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.55), 0 22px 44px rgba(15, 58, 32, 0.22);
}

.inicio-events-stage {
  position: relative;
  padding: 6px;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffcf4a 0%, #ffb300 38%, #2d8a4e 72%, #0f3a20 100%);
  box-shadow:
    0 26px 50px rgba(15, 58, 32, 0.24),
    0 8px 18px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.inicio-event-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 320px;
  overflow: hidden;
  border-radius: 21px;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: inicioEventIn 0.32s ease;
}

.inicio-event-card:hover {
  transform: translateY(-2px);
}

.inicio-event-card:focus-visible {
  outline: 3px solid #ffb300;
  outline-offset: -3px;
}

@keyframes inicioEventIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: none; }
}

.inicio-event-visual {
  position: relative;
  min-height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 179, 0, 0.35), transparent 50%),
    linear-gradient(135deg, #1e5e35, #0f3a20);
}

.inicio-event-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inicio-event-visual.is-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/app_icon.png') center / 72px no-repeat;
  opacity: 0.55;
}

.inicio-event-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px 22px;
  min-width: 0;
}

.inicio-event-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.inicio-event-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.inicio-event-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.inicio-event-status.is-upcoming {
  color: #0f6b38;
  background: rgba(0, 255, 204, 0.16);
  border-color: rgba(45, 138, 78, 0.35);
}

.inicio-event-status.is-past {
  color: #6e5a1f;
  background: rgba(255, 179, 0, 0.16);
  border-color: rgba(196, 138, 0, 0.35);
}

.inicio-event-status.is-inactive {
  color: #5c6b62;
  background: rgba(110, 136, 120, 0.14);
  border-color: rgba(110, 136, 120, 0.32);
}

.inicio-event-land {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c48a00;
}

.inicio-event-body h5 {
  margin: 2px 0 0;
  font-family: var(--font-headings, 'Outfit', sans-serif);
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.15;
  color: var(--color-primary-dark, #0f3a20);
  overflow-wrap: anywhere;
}

.inicio-event-when,
.inicio-event-place {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary, #1e5e35);
}

.inicio-event-place {
  font-weight: 600;
  color: var(--color-text-muted, #5c6b62);
}

.inicio-event-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-dark, #1a3b28);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inicio-event-cta {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f3a20;
  background: linear-gradient(180deg, #ffd45a 0%, #ffb300 100%);
  box-shadow: 0 4px 0 #c48a00, 0 8px 16px rgba(196, 138, 0, 0.3);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.inicio-event-cta:hover {
  transform: translateY(-1px);
}

.inicio-event-cta:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #c48a00, 0 3px 8px rgba(196, 138, 0, 0.25);
}

.inicio-events-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.inicio-events-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid #ffb300;
  border-radius: 14px;
  color: #ffd45a;
  background: linear-gradient(180deg, #1e5e35 0%, #0f3a20 100%);
  box-shadow: 0 4px 0 #082414, 0 10px 18px rgba(15, 58, 32, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.inicio-events-nav svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.inicio-events-nav:hover {
  transform: translateY(-1px);
}

.inicio-events-nav:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #082414, 0 4px 8px rgba(15, 58, 32, 0.25);
}

.inicio-events-nav:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

.inicio-events-count {
  min-width: 74px;
  padding: 7px 14px;
  border-radius: 999px;
  text-align: center;
  font-family: var(--font-headings, 'Outfit', sans-serif);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffd45a;
  background: #0f3a20;
  box-shadow: inset 0 0 0 1px rgba(255, 179, 0, 0.45);
}

@media (max-width: 760px) {
  .inicio-event-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .inicio-event-visual {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 480px) {
  .inicio-events-stage {
    padding: 4px;
    border-radius: 20px;
  }

  .inicio-event-card {
    border-radius: 16px;
  }

  .inicio-event-visual {
    aspect-ratio: 16 / 11;
  }

  .inicio-event-body {
    gap: 6px;
    padding: 14px 14px 16px;
  }

  .inicio-event-body h5 {
    font-size: 20px;
  }

  .inicio-event-when,
  .inicio-event-place,
  .inicio-event-desc {
    font-size: 13px;
  }

  .inicio-event-desc {
    -webkit-line-clamp: 2;
  }

  .inicio-event-cta {
    align-self: stretch;
    text-align: center;
    padding: 10px 14px;
    margin-top: 6px;
  }

  .inicio-events-controls {
    gap: 12px;
    margin-top: 12px;
  }

  .inicio-events-nav {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inicio-event-card { animation: none; }
}
