/* Shared styles for Difusion Cultural pages (home + eventos anteriores) */

/* Hero video section */
#hero-video {
  position: relative;
  height: 550px;
  overflow: hidden;
  isolation: isolate;
}

#hero-video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero-video .hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.45) 22%,
    rgba(255, 255, 255, 0) 58%
  );
  pointer-events: none;
  z-index: 1;
}

#hero-video .hero-mark {
  position: absolute;
  left: clamp(12px, 4vw, 48px);
  top: clamp(80px, 20vw, 160px);
  width: clamp(160px, 28vw, 420px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18));
}

@media (max-width: 576px) {
  #hero-video {
    height: 360px;
  }

  #hero-video .hero-tint {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0.35) 28%,
      rgba(255, 255, 255, 0) 65%
    );
  }

  #hero-video .hero-mark {
    left: 16px;
    top: 24px;
    width: clamp(140px, 46vw, 260px);
  }
}

/* Expand/collapse event cards */
.extra-eventos {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.extra-eventos.is-open {
  max-height: 2000px;
  opacity: 1;
}

/* Utility text styles */
.hashtag-banner {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.t.no-capitalize {
  text-transform: none !important;
}

/* Secondary green button */
.btn-segundario {
  background-color: #c1d13f;
  border-color: #c1d13f;
  color: #fff;
}

.btn-segundario:hover,
.btn-segundario:focus,
.btn-segundario:active {
  background-color: #b7c43b;
  border-color: #b7c43b;
  color: #fff;
}

/* Shared tab pills */
.tab-pill-strip {
  --tab-arrow-size: 10px;
  position: relative;
  width: 100%;
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: center;
  border-bottom: 0;
  padding-bottom: var(--tab-arrow-size);
  margin-bottom: 2.25rem !important;
  gap: 0.9rem;
  align-items: center;
}

.tab-pill-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--tab-arrow-size);
  height: 2px;
  background: #d9d9d9;
}

.tab-pill-strip .nav-item {
  margin-bottom: 0;
}

.tab-pill-strip .tab-pill {
  position: relative;
  margin-bottom: 0;
  border: 1px solid #d6d6d6 !important;
  border-radius: 1px !important;
  background: #ffffff !important;
  color: #3f3f3f !important;
  font-size: 20px;
  font-weight: 700;
  padding: 10px 35px;
  min-width: 210px;
  line-height: 1.15;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  opacity: 1 !important;
}

.tab-pill-strip--two .tab-pill {
  min-width: clamp(180px, 17vw, 320px);
  padding-left: 28px;
  padding-right: 28px;
}

.tab-pill-strip--three .tab-pill {
  min-width: auto;
  font-size: 16px;
  padding: 10px 18px;
}

.tab-pill-strip .tab-pill:hover,
.tab-pill-strip .tab-pill:focus {
  border-color: #b7c43b !important;
  color: #5a5a5a !important;
}

.tab-pill-strip .tab-pill.active,
.tab-pill-strip .show > .tab-pill,
.tab-pill-strip .tab-pill[aria-selected="true"],
.tab-pill-strip .tab-pill[aria-expanded="true"] {
  background: var(--color-secondary, #b7c43b) !important;
  border-color: var(--color-secondary, #b7c43b) !important;
  color: #ffffff !important;
}

.tab-pill-strip .tab-pill.active::after,
.tab-pill-strip .show > .tab-pill::after,
.tab-pill-strip .tab-pill[aria-selected="true"]::after,
.tab-pill-strip .tab-pill[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: var(--tab-arrow-size) solid transparent;
  border-right: var(--tab-arrow-size) solid transparent;
  border-top: var(--tab-arrow-size) solid var(--color-secondary, #b7c43b);
  z-index: 2;
}

@media (max-width: 992px) {
  .tab-pill-strip {
    --tab-arrow-size: 12px;
    margin-bottom: 2rem !important;
    flex-wrap: wrap !important;
  }

  .tab-pill-strip .tab-pill {
    min-width: 170px;
    font-size: 18px;
    padding: 0.85rem 1.15rem;
  }

  .tab-pill-strip--three .tab-pill {
    font-size: 15px;
    padding: 0.75rem 0.8rem;
  }
}

@media (max-width: 576px) {
  .tab-pill-strip {
    --tab-arrow-size: 10px;
    gap: 0.5rem;
    margin-bottom: 1.8rem !important;
    flex-wrap: wrap;
  }

  .tab-pill-strip .tab-pill {
    min-width: 140px;
    font-size: 1rem;
    padding: 0.7rem 0.8rem;
  }

  .tab-pill-strip--three .tab-pill {
    min-width: 120px;
    font-size: 0.9rem;
    padding: 0.65rem 0.7rem;
  }
}

/* Typewriter cursor animation */
.typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink-cursor 0.8s steps(1) infinite;
}

.typewriter-cursor.done {
  animation: none;
  opacity: 1;
}

@keyframes blink-cursor {
  0%,
  50% {
    opacity: 1;
  }

  50.01%,
  100% {
    opacity: 0;
  }
}
