/* Responsive text and spacing refinements.
   Loaded after style.css so these rules only adjust layout readability. */

html {
  overflow-wrap: break-word;
}

.hero-slide-text h2,
.hero-slide-text p,
.event-card-title,
.event-datetime,
.catalogo-banner h2,
.half-section h2,
.half-section p,
.publicacion-item span,
.sponsors-strip p,
.site-footer h3,
.site-footer p,
.site-footer a {
  overflow-wrap: anywhere;
}

.btn-pill-dark,
.eventos-load-more .btn-load-more,
.newsletter-form .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.15;
}

.hero-carousel .hero-slide,
.amigos-carousel .carousel-cell,
.sponsor-carousel .carousel-cell {
  opacity: 0.45;
  transition: opacity 0.75s ease;
}

.hero-carousel .hero-slide.is-selected,
.amigos-carousel .carousel-cell.is-selected,
.sponsor-carousel .carousel-cell.is-selected {
  opacity: 1;
}

.sponsor-carousel {
  margin-left: auto;
  margin-right: auto;
}

.sponsor-carousel .flickity-viewport {
  display: flex;
  align-items: center;
}

.sponsor-carousel .flickity-slider {
  display: flex;
  align-items: center;
}

.sponsor-carousel .carousel-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0.25;
  transition: opacity 1.25s ease;
}

.sponsor-carousel .carousel-cell.is-selected {
  opacity: 1;
}

.sponsor-carousel img {
  display: block;
  margin: auto;
  object-position: center;
}

.site-footer {
  background: #000;
  color: #f6efe9;
  padding-bottom: 20px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  opacity: 0.7;
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer a {
  font-family: var(--font-main);
}

.footer-top {
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  color: #fff;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.18;
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0;
}

.footer-col a {
  display: block;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 10px;
  opacity: 0.92;
}

.footer-social {
  display: flex;
  gap: 14px;
  padding: 18px 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-right: 0;
  color: #fff;
  font-size: 1.4rem;
  opacity: 1;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  text-align: left;
}

.footer-links a {
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.2;
  opacity: 0.9;
}

.footer-logo {
  text-align: right;
  line-height: 1.2;
  padding: 6px 0;
}

.footer-logo__img {
  display: inline-block;
  height: 36px;
  max-width: min(200px, 52vw);
  width: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 1199px) {
  .container-xl-custom {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .main-nav {
    font-size: 0.78rem;
  }

  .main-nav .nav-link {
    padding-left: 0.48rem;
    padding-right: 0.48rem;
  }

  .hero-slide-text {
    padding: 4rem 4.5rem 2rem;
  }

  .hero-slide-text h2 {
    font-size: 1.95rem;
    line-height: 1.12;
  }

  .hero-slide-text p {
    font-size: 1.32rem;
    line-height: 1.22;
  }

  .event-card-title {
    font-size: 1.18rem;
  }

  .event-datetime {
    font-size: 0.86rem;
    line-height: 1.25;
  }
}

@media (max-width: 991px) {
  .top-bar {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .brand-logo img {
    height: 46px;
  }

  .navbar-collapse {
    padding-top: 0.75rem;
  }

  .main-nav {
    align-items: stretch !important;
    font-size: 1rem;
  }

  .main-nav .nav-link,
  .main-nav .dropdown-item {
    padding: 0.7rem 0.25rem;
    line-height: 1.2;
  }

  .main-nav .dropdown-menu.mega-menu {
    min-width: 0;
    columns: 1;
  }

  .hero-slide-text {
    height: 460px;
    padding: 3rem 3.5rem 2rem;
  }

  .hero-slide-image {
    height: 460px;
  }

  .hero-slide-text h2 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .hero-slide-text p {
    font-size: 1.12rem;
    line-height: 1.28;
  }

  .hero-slide-text .btn-pill-dark,
  .half-section .btn-pill-dark {
    font-size: 1rem;
    min-width: 8rem;
  }

  .event-card {
    height: 390px;
  }

  .event-card-title {
    font-size: 1.1rem;
    line-height: 1.18;
  }

  .event-datetime {
    font-size: 0.82rem;
  }

  .catalogo-banner h2 {
    font-size: 1.35rem;
    line-height: 1.18;
  }

  .half-section h2 {
    font-size: 1.75rem;
    line-height: 1.1;
  }

  .half-section p {
    font-size: 1.12rem;
    line-height: 1.25;
  }

  .sponsors-strip p {
    font-size: 1.15rem;
    line-height: 1.3;
  }
}

@media (max-width: 767px) {
  .container-xl-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .top-bar {
    padding: 0.55rem 0.75rem;
    font-size: 0.66rem;
  }

  .brand-logo img {
    height: 40px;
  }

  .hero-slide-text {
    padding: 1.25rem 1rem 1rem;
  }

  .hero-slide-text h2 {
    font-size: 1.45rem;
    line-height: 1.14;
    margin-bottom: 0.75rem;
  }

  .hero-slide-text p {
    font-size: 1rem;
    line-height: 1.28;
    margin-bottom: 1rem;
  }

  .hero-slide-text .text-end {
    text-align: left !important;
  }

  .hero-slide-text .btn-pill-dark,
  .catalogo-banner .btn-pill-dark,
  .half-section .btn-pill-dark {
    align-self: flex-start !important;
    justify-content: center;
    gap: 0.75rem;
    min-width: 7.25rem;
    max-width: 100%;
    font-size: 0.9rem;
    padding: 0.62rem 1rem;
  }

  .eventos-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .eventos-section h2.section-title {
    font-size: 1.35rem;
  }

  .event-card {
    height: 365px;
  }

  .event-card-body {
    padding: 0.9rem 0.85rem 1rem;
  }

  .event-card-title {
    font-size: 1rem;
    line-height: 1.2;
  }

  .event-datetime {
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .events-carousel.list-view .event-card {
    min-height: 0;
  }

  .events-carousel.list-view .event-card-title {
    display: block;
    overflow: visible;
  }

  .catalogo-banner {
    align-items: flex-start !important;
  }

  .catalogo-banner h2 {
    width: 100%;
    font-size: 1.2rem;
    line-height: 1.22;
  }

  .half-section .half-text {
    justify-content: flex-start !important;
    min-height: 0;
    padding: 1.35rem 1rem !important;
  }

  .half-section h2,
  .half-section.heading-xl h2 {
    font-size: 1.55rem;
    line-height: 1.12;
    margin-bottom: 0.65rem;
  }

  .half-section p,
  .half-section.heading-xl p {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  .half-section .note {
    font-size: 0.78rem;
    line-height: 1.25;
    margin-top: -0.35rem;
  }

  .publicaciones-section {
    padding: 2.25rem 0;
  }

  .publicaciones-section h2.section-title {
    font-size: 1.55rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
  }

  .publicacion-item span {
    font-size: 0.95rem;
    line-height: 1.1;
  }

  .sponsors-strip {
    padding: 2.25rem 1rem 1.75rem;
  }

  .sponsors-strip p {
    font-size: 1rem;
    line-height: 1.35;
  }

  .sponsor-carousel .carousel-cell {
    height: 220px;
  }

  .sponsor-carousel img {
    max-height: 200px;
  }

  .footer-info,
  .footer-newsletter,
  .footer-bottom-info {
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
  }

  .site-footer h3 {
    font-size: 0.86rem;
    line-height: 1.2;
  }

  .site-footer p,
  .site-footer a {
    font-size: 0.88rem;
    line-height: 1.32;
  }

  .footer-newsletter h3 {
    line-height: 1.18;
  }

  .footer-top {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .footer-col a {
    font-size: 0.95rem;
    line-height: 1.24;
    margin-bottom: 6px;
  }

  .footer-social {
    gap: 12px;
  }

  .footer-social a {
    font-size: 1.25rem;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-links a {
    font-size: 0.75rem;
  }

  .footer-logo {
    text-align: left;
  }
}

@media (max-width: 575px) {
  .main-nav {
    font-size: 0.95rem;
  }

  .hero-slide-text h2 {
    font-size: 1.28rem;
  }

  .hero-slide-text p {
    font-size: 0.95rem;
  }

  .eventos-section > .d-flex {
    align-items: flex-start !important;
    gap: 0.75rem;
  }

  .event-card {
    height: auto;
    min-height: 0;
  }

  .event-card-img {
    height: 190px;
    flex-basis: 190px;
  }

  .event-date-badge {
    top: 10px;
    left: 10px;
    padding: 0.35rem 0.55rem;
  }

  .event-date-badge .day {
    font-size: 1.1rem;
  }

  .event-date-badge .month {
    font-size: 0.62rem;
  }

  .event-card-title {
    display: block;
    overflow: visible;
    font-size: 0.98rem;
  }

  .event-tag {
    margin-top: 0.75rem;
    font-size: 0.78rem;
  }

  .half-section h2,
  .half-section.heading-xl h2 {
    font-size: 1.38rem;
  }

  .half-section p,
  .half-section.heading-xl p {
    font-size: 0.95rem;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter-form .form-control,
  .newsletter-form .btn {
    width: 100%;
    border-radius: 14px;
  }

  .footer-bottom {
    font-size: 0.72rem;
    line-height: 1.35;
    padding-top: 16px;
  }

  .footer-social {
    justify-content: flex-end;
    padding: 0;
  }

  .footer-links .col-4 {
    width: 100%;
  }

  .footer-logo__img {
    height: 30px;
    max-width: 170px;
  }
}

/* Eventos: vista de lista igual al original */
.event-list-date {
  display: none;
}

.events-carousel.list-view {
  display: block !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: 1px solid #ddd;
  border-bottom: 0;
  background: #fff;
}

.events-carousel.list-view .event-col {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.events-carousel.list-view .event-card {
  display: grid !important;
  grid-template-columns: 90px 92px minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
  min-height: 155px !important;
  height: auto !important;
  padding: 32px 24px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #ddd !important;
  border-radius: 0 !important;
  background: #fff;
  color: #111;
}

.events-carousel.list-view .event-card:hover {
  transform: none;
  box-shadow: none;
}

.events-carousel.list-view .event-card-img {
  width: 90px !important;
  height: 90px !important;
  flex: 0 0 90px !important;
  border-radius: 3px !important;
  background-size: cover;
  background-position: center;
}

.events-carousel.list-view .event-card-img .event-date-badge {
  display: none !important;
}

.events-carousel.list-view .event-list-date {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  color: #555;
}

.events-carousel.list-view .event-list-date span {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.events-carousel.list-view .event-list-date strong {
  font-size: 24px;
  line-height: 24px;
  font-weight: 700;
  color: #555;
}

.events-carousel.list-view .event-list-date small {
  margin-top: 3px;
  font-size: 14px;
  line-height: 16px;
  font-weight: 400;
  color: #555;
  text-transform: uppercase;
}

.events-carousel.list-view .event-list-date em {
  font-style: normal;
  font-size: 22px;
  line-height: 24px;
  color: #555;
}

.events-carousel.list-view .event-card-body {
  min-width: 0;
  padding: 0 !important;
}

.events-carousel.list-view .event-card-title {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  font-size: 20px !important;
  line-height: 25px !important;
  font-weight: 700;
  margin: 0 0 14px !important;
}

.events-carousel.list-view .event-datetime {
  font-size: 16px !important;
  line-height: 20px !important;
  color: #555;
  margin-bottom: 18px !important;
}

.events-carousel.list-view .event-datetime i {
  margin-right: 6px;
  color: #555;
}

.events-carousel.list-view .event-tag {
  font-size: 14px !important;
  line-height: 15px !important;
  padding: 6px 8px !important;
  border-radius: 3px !important;
}

@media (max-width: 767px) {
  .events-carousel.list-view {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
  }

  .events-carousel.list-view .event-card {
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 10px;
    min-height: 0 !important;
    padding: 18px 14px !important;
  }

  .events-carousel.list-view .event-card-img {
    width: 82px !important;
    height: 82px !important;
    flex-basis: 82px !important;
  }

  .events-carousel.list-view .event-list-date {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 7px;
  }

  .events-carousel.list-view .event-list-date strong {
    font-size: 18px;
    line-height: 18px;
  }

  .events-carousel.list-view .event-list-date small {
    font-size: 11px;
    line-height: 13px;
  }

  .events-carousel.list-view .event-list-date em {
    font-size: 16px;
    line-height: 18px;
  }

  .events-carousel.list-view .event-card-body {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .events-carousel.list-view .event-card-title {
    font-size: 16px !important;
    line-height: 20px !important;
    margin-bottom: 9px !important;
  }

  .events-carousel.list-view .event-datetime {
    font-size: 12px !important;
    line-height: 16px !important;
    margin-bottom: 12px !important;
  }

  .events-carousel.list-view .event-tag {
    font-size: 12px !important;
    line-height: 13px !important;
    padding: 5px 7px !important;
  }
}

@media (max-width: 380px) {
  .brand-logo img {
    height: 34px;
  }

  .top-bar {
    font-size: 0.62rem;
  }

  .hero-slide-text h2,
  .half-section h2,
  .half-section.heading-xl h2 {
    font-size: 1.22rem;
  }

  .hero-slide-text p,
  .half-section p,
  .half-section.heading-xl p {
    font-size: 0.9rem;
  }

  .btn-pill-dark {
    width: 100%;
  }
}

/* Portada museo.precolombino.cl parity overrides */
.container-xl-custom {
  max-width: 1320px;
}

.hero-slide-text {
  height: 560px;
  padding: 5.625rem 8.5rem 1.875rem;
}

.hero-slide-image {
  height: 560px;
}

.hero-slide-text h2 {
  font-size: 2.1875rem;
  font-weight: 500;
  line-height: 1.114;
}

.hero-slide-text p {
  font-size: 1.5625rem;
  font-weight: 400;
  line-height: 1.16;
}

.hero-slide-text .btn-pill-dark,
.half-section .btn-pill-dark {
  font-size: 1.25rem;
}

.eventos-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.eventos-section h2.section-title {
  font-size: 1.5rem;
  font-weight: 500;
}

.event-card {
  height: 415px;
}

.event-card-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.event-datetime {
  font-size: 0.95rem;
  line-height: 1.35;
}

.catalogo-banner {
  padding: 1.5rem clamp(1rem, 4vw, 3rem);
}

.catalogo-banner h2 {
  font-size: 1.5625rem;
  font-weight: 400;
}

.half-section .half-text,
.half-section .half-image {
  min-height: 350px;
}

.half-section h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.05;
}

.half-section p {
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.15;
}

.half-section.heading-xl h2,
.publicaciones-section h2.section-title {
  font-size: 3.125rem;
}

.half-section.heading-xl p {
  font-size: 1.75rem;
  line-height: 1.15;
}

.publicacion-item span {
  font-size: 1.1rem;
}

.sponsors-strip {
  background: #fff;
  padding: 3rem 1rem 2.5rem;
}

.sponsors-strip p {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  color: #212529;
  margin: 0 0 1.5rem;
}

.sponsor-carousel .carousel-cell {
  height: 340px;
  padding: 0;
}

.sponsor-carousel img {
  max-height: 320px;
}

.site-footer {
  background: #000;
  color: #b6b6b6;
  padding-bottom: 0;
}

.site-footer a {
  color: #bbb;
}

.footer-info,
.footer-newsletter,
.footer-bottom-info {
  background: #000;
}

.footer-info {
  padding: 20px 0;
}

.footer-newsletter {
  padding: 20px 0;
}

.footer-bottom-info {
  padding: 20px 0 50px;
}

.site-footer h3 {
  color: #b6b6b6;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0;
}

.site-footer p,
.site-footer p a {
  color: #969696;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.footer-mobile-line {
  display: none;
}

.footer-apoyo-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-apoyo-icons img {
  height: 34px;
  width: auto;
  margin: 0;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.newsletter-form {
  width: 475px;
  max-width: 100%;
  margin-left: auto;
}

.newsletter-form .form-control {
  height: 30px;
  min-height: 30px;
  border-radius: 0;
  font-size: 18px;
  padding: 0 0.375rem;
}

.newsletter-form .btn {
  width: 118px;
  height: 30px;
  border-radius: 20px;
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
}

.newsletter-form .btn:hover {
  background: #065689;
  color: #fff;
}

.social-icons a {
  width: auto;
  height: auto;
  margin-right: 0.25rem;
  color: #b6b6b6;
  font-size: 19px;
}

.social-icons a:hover {
  color: #fff;
}

@media (max-width: 1366px) {
  .half-section.heading-xl h2,
  .publicaciones-section h2.section-title {
    font-size: 2.3125rem;
  }

  .half-section.heading-xl p {
    font-size: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .half-section.heading-xl h2,
  .publicaciones-section h2.section-title {
    font-size: 1.6875rem;
  }

  .half-section.heading-xl p {
    font-size: 0.875rem;
  }
}

@media (max-width: 991px) {
  .hero-slide-text {
    height: 460px;
    padding: 3rem 3.5rem 2rem;
  }

  .hero-slide-image {
    height: 460px;
  }

  .hero-slide-text h2 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .hero-slide-text p {
    font-size: 1.12rem;
    line-height: 1.28;
  }

  .newsletter-form {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .hero-slide-text {
    height: auto;
    padding: 10px;
  }

  .hero-slide-image {
    height: 300px;
  }

  .hero-slide-text h2 {
    font-size: 1.375rem;
  }

  .hero-slide-text p {
    font-size: 1.25rem;
    line-height: 1.16;
  }

  .hero-slide-text .btn-pill-dark,
  .half-section .btn-pill-dark {
    width: auto;
    font-size: 1rem;
  }

  .event-card {
    height: auto;
    min-height: 365px;
  }

  .event-card-title {
    display: block;
    overflow: visible;
    font-size: 1rem;
  }

  .event-datetime {
    font-size: 0.78rem;
  }

  .half-section .half-text,
  .half-section .half-image {
    min-height: 260px;
  }

  .half-section h2,
  .half-section.heading-xl h2,
  .publicaciones-section h2.section-title {
    font-size: 1.75rem;
  }

  .half-section p,
  .half-section.heading-xl p {
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .site-footer .row > [class*="col-"] {
    text-align: center;
  }

  .site-footer h3 {
    font-size: 22px;
  }

  .site-footer p,
  .site-footer p a {
    font-size: 18px;
  }

  .footer-info {
    padding: 20px 0;
  }

  .footer-bottom-info {
    padding: 0 0 50px;
  }

  .footer-info p:not(.footer-mobile-line) {
    display: none;
  }

  .footer-mobile-line {
    display: block;
  }

  .footer-apoyo-icons,
  .social-icons {
    justify-content: center;
  }

  .newsletter-form {
    width: 310px;
    margin: 0 auto;
    flex-direction: row;
    gap: 0;
  }

  .newsletter-form .form-control {
    width: auto;
    border-radius: 0;
  }

  .newsletter-form .btn {
    width: 118px;
    border-radius: 20px;
  }
}

@media (max-width: 575px) {
  .btn-pill-dark {
    width: auto;
  }

  .newsletter-form {
    width: 310px;
    max-width: calc(100vw - 20px);
  }
}

/* Site-wide width parity with museo.precolombino.cl */
:root {
  --site-page-width: 1640px;
  --site-content-width: 1367px;
  --site-side-padding: 15px;
  --site-section-offset: 136px;
  --container-max: var(--site-content-width);
}

.container-xl-custom,
.site-header .container-xl-custom,
.eventos-section.container-xl-custom,
.publicaciones-section .container-xl-custom,
.sponsors-strip .container-xl-custom {
  width: 100% !important;
  max-width: var(--site-content-width) !important;
  padding-left: var(--site-side-padding) !important;
  padding-right: var(--site-side-padding) !important;
}

.top-bar,
.site-header,
.hero-carousel,
.catalogo-banner,
.half-section,
.sponsors-strip,
.site-footer-wrapper {
  width: 100%;
}

.hero-carousel,
.catalogo-banner,
.half-section,
.publicaciones-section,
.sponsors-strip {
  max-width: var(--site-page-width);
  margin-left: auto;
  margin-right: auto;
}

.catalogo-banner,
.hero-slide-text {
  padding-left: var(--site-section-offset) !important;
  padding-right: var(--site-section-offset) !important;
}

.hero-slide .row,
.half-section .row {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 1200px) and (max-width: 1919px) {
  :root {
    --site-page-width: 1640px;
    --site-content-width: 1140px;
    --site-section-offset: 136px;
  }
}

.btn-pill-dark {
  justify-content: space-between;
  width: auto;
  min-width: 0;
  max-width: 210px;
  border-radius: 17px;
  padding: 13px 22px 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.btn-pill-dark i {
  margin-left: 18px;
  font-size: 0.7em;
  line-height: 1;
}

.hero-slide-text .btn-pill-dark,
.catalogo-banner .btn-pill-dark,
.half-section .btn-pill-dark {
  min-width: 0;
  max-width: 210px;
  padding: 13px 22px 12px;
  font-size: 20px;
  line-height: 24px;
}

.eventos-load-more .btn-load-more {
  border-radius: 4px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

@media (max-width: 1199px) {
  :root {
    --site-page-width: 100vw;
    --site-content-width: 960px;
    --site-section-offset: calc((100vw - min(var(--site-content-width), calc(100vw - 30px))) / 2 + 15px);
  }

  .btn-pill-dark,
  .hero-slide-text .btn-pill-dark,
  .catalogo-banner .btn-pill-dark,
  .half-section .btn-pill-dark {
    border-radius: 14px;
    padding: 10px;
    font-size: 18px;
    line-height: 21px;
  }
}

@media (max-width: 1023px) {
  .btn-pill-dark,
  .hero-slide-text .btn-pill-dark,
  .catalogo-banner .btn-pill-dark,
  .half-section .btn-pill-dark {
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 16px;
    line-height: 19px;
  }
}

@media (max-width: 991px) {
  :root {
    --site-content-width: 720px;
    --site-section-offset: calc((100vw - min(var(--site-content-width), calc(100vw - 30px))) / 2 + 15px);
  }
}

@media (max-width: 767px) {
  :root {
    --site-content-width: 540px;
    --site-section-offset: calc((100vw - min(var(--site-content-width), calc(100vw - 30px))) / 2 + 15px);
  }

  .btn-pill-dark,
  .hero-slide-text .btn-pill-dark,
  .catalogo-banner .btn-pill-dark,
  .half-section .btn-pill-dark {
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 14px;
    line-height: 17px;
  }
}

@media (max-width: 575px) {
  :root {
    --site-content-width: 100vw;
    --site-side-padding: 10.66vw;
    --site-section-offset: 10.66vw;
  }

  .container-xl-custom,
  .site-header .container-xl-custom,
  .eventos-section.container-xl-custom,
  .publicaciones-section .container-xl-custom,
  .sponsors-strip .container-xl-custom {
    max-width: none !important;
  }

  .btn-pill-dark,
  .hero-slide-text .btn-pill-dark,
  .catalogo-banner .btn-pill-dark,
  .half-section .btn-pill-dark {
    width: auto;
    max-width: 210px;
  }
}

/* Interior sizing for the colored split boxes */
:root {
  --split-box-height: 400px;
  --split-box-x-padding: 136px;
  --split-box-y-padding: 20px;
}

.half-section {
  overflow: hidden;
}

.half-section > .row {
  min-height: var(--split-box-height);
  align-items: stretch;
}

.half-section .half-text,
.half-section .half-image {
  flex: 0 0 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  height: var(--split-box-height) !important;
  min-height: var(--split-box-height) !important;
}

.half-section .half-text {
  padding: var(--split-box-y-padding) var(--split-box-x-padding) !important;
}

.half-section .half-image {
  background-size: cover;
  background-position: center;
}

.half-section h2 {
  margin-bottom: 14px;
}

.half-section p {
  margin-bottom: 20px;
}

.half-section .note {
  margin-top: -10px;
  margin-bottom: 20px;
}

.amigos-carousel,
.amigos-carousel .carousel-cell {
  height: var(--split-box-height) !important;
  min-height: var(--split-box-height) !important;
}

@media (min-width: 1200px) and (max-width: 1919px) {
  :root {
    --split-box-height: 350px;
    --split-box-x-padding: 7.9vw;
    --split-box-y-padding: 20px;
  }
}

@media (max-width: 1199px) {
  :root {
    --split-box-height: 280px;
    --split-box-x-padding: 6.8vw;
    --split-box-y-padding: 18px;
  }
}

@media (max-width: 991px) {
  :root {
    --split-box-height: 220px;
    --split-box-x-padding: 5.4vw;
    --split-box-y-padding: 16px;
  }
}

@media (max-width: 767px) {
  :root {
    --split-box-height: auto;
    --split-box-x-padding: 10px;
    --split-box-y-padding: 10px;
  }

  .half-section > .row {
    min-height: 0;
  }

  .half-section .half-text,
  .half-section .half-image {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .half-section .half-text {
    height: auto !important;
    min-height: 220px !important;
  }

  .half-section .half-image,
  .amigos-carousel,
  .amigos-carousel .carousel-cell {
    height: 260px !important;
    min-height: 260px !important;
  }
}

/* Restore the approved footer layout */
.site-footer-wrapper {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.site-footer {
  width: 100%;
  max-width: none;
  background: #000;
  color: #f6efe9;
  padding-bottom: 20px;
}

.site-footer .container {
  max-width: 1320px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  opacity: 0.7;
}

.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer a {
  font-family: var(--font-main);
}

.footer-top {
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  color: #fff;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.18;
  margin: 0 0 10px;
  text-transform: none;
  letter-spacing: 0;
}

.footer-col a {
  display: block;
  color: #fff;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 10px;
  opacity: 0.92;
}

.footer-social {
  display: flex;
  gap: 14px;
  padding: 18px 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-right: 0;
  color: #fff;
  font-size: 1.4rem;
  opacity: 1;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin-top: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  text-align: left;
}

.footer-links a {
  color: #fff;
  font-weight: 400;
  font-size: 0.8rem;
  line-height: 1.2;
  opacity: 0.9;
}

.footer-logo {
  text-align: right;
  line-height: 1.2;
  padding: 6px 0;
}

.footer-logo__img {
  display: inline-block;
  height: 36px;
  max-width: min(200px, 52vw);
  width: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-logo {
    text-align: left;
  }
}

@media (max-width: 575px) {
  .footer-top {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .footer-col a {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .footer-social {
    justify-content: flex-end;
    gap: 12px;
    padding: 0;
  }

  .footer-bottom {
    padding-top: 16px;
  }

  .footer-links a {
    font-size: 0.75rem;
  }

  .footer-logo__img {
    height: 30px;
    max-width: 170px;
  }
}

/* Footer width and background alignment */
.site-footer-wrapper {
  background: #000;
}

.sponsors-strip {
  background: #fff;
}

.site-footer {
  background: #000;
}

/* Final hero color and typography lock */
.hero-carousel,
.hero-slide {
  background: #fff !important;
}

.hero-slide-text {
  background-color: #403e3f1c !important;
}

.hero-slide-text h2 {
  color: #1a1a1a;
  font-size: 35px !important;
  font-weight: 500 !important;
  line-height: 39px !important;
  margin: 0 0 20px !important;
  letter-spacing: 0 !important;
}

.hero-slide-text p {
  color: #54595f;
  font-size: 25px !important;
  font-weight: 400 !important;
  line-height: 29px !important;
  margin: 0 0 20px !important;
  letter-spacing: 0 !important;
}

.hero-slide-text .btn-pill-dark {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 24px !important;
  text-transform: uppercase;
}

@media (max-width: 1199px) {
  .hero-slide-text h2 {
    font-size: 28px !important;
    line-height: 32px !important;
  }

  .hero-slide-text p {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

@media (max-width: 767px) {
  .hero-slide-text h2 {
    font-size: 22px !important;
    line-height: 25px !important;
  }

  .hero-slide-text p {
    font-size: 18px !important;
    line-height: 21px !important;
  }
}

/* Final mobile hero visibility fix */
@media (max-width: 767px) {
  .hero-carousel {
    height: auto !important;
    min-height: 0;
    overflow: hidden;
  }

  .hero-carousel .flickity-viewport {
    min-height: 620px !important;
  }

  .hero-slide {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-height: 620px !important;
  }

  .hero-slide-text {
    order: 2;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important;
    height: auto !important;
    padding: 24px var(--site-section-offset) !important;
  }

  .hero-slide-image {
    order: 1;
    flex: 0 0 300px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
  }
}

/* Final mobile hero visibility fix */
@media (max-width: 767px) {
  .hero-carousel {
    height: auto !important;
    min-height: 0;
    overflow: hidden;
  }

  .hero-carousel .flickity-viewport {
    min-height: 620px !important;
  }

  .hero-slide {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-height: 620px !important;
  }

  .hero-slide-text {
    order: 2;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important;
    height: auto !important;
    padding: 24px var(--site-section-offset) !important;
  }

  .hero-slide-image {
    order: 1;
    flex: 0 0 300px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
  }
}

/* Final mobile hero visibility fix */
@media (max-width: 767px) {
  .hero-carousel {
    height: auto !important;
    min-height: 0;
    overflow: hidden;
  }

  .hero-carousel .flickity-viewport {
    min-height: 620px !important;
  }

  .hero-slide {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-height: 620px !important;
  }

  .hero-slide-text {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important;
    height: auto !important;
    padding: 24px var(--site-section-offset) !important;
  }

  .hero-slide-image {
    flex: 0 0 300px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
  }
}

/* Mobile hero visibility fix */
@media (max-width: 767px) {
  .hero-carousel {
    height: auto !important;
    min-height: 0;
    overflow: hidden;
  }

  .hero-carousel .flickity-viewport {
    min-height: 620px;
  }

  .hero-slide {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-height: 620px;
  }

  .hero-slide-text {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important;
    height: auto !important;
    padding: 24px var(--site-section-offset) !important;
  }

  .hero-slide-image {
    flex: 0 0 300px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
  }
}

/* Hero color and typography parity */
.hero-carousel {
  background: #fff;
}

.hero-slide {
  background: #fff;
}

.hero-slide-text {
  background-color: #403e3f1c;
}

.hero-slide-text h2 {
  color: #1a1a1a;
  font-size: 35px !important;
  font-weight: 500 !important;
  line-height: 39px !important;
  margin: 0 0 20px !important;
  letter-spacing: 0;
}

.hero-slide-text p {
  color: #54595f;
  font-size: 25px !important;
  font-weight: 400 !important;
  line-height: 29px !important;
  margin: 0 0 20px !important;
  letter-spacing: 0;
}

.hero-slide-text .btn-pill-dark {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 24px !important;
  text-transform: uppercase;
}

@media (max-width: 1199px) {
  .hero-slide-text h2 {
    font-size: 28px !important;
    line-height: 32px !important;
  }

  .hero-slide-text p {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

@media (max-width: 767px) {
  .hero-slide-text h2 {
    font-size: 22px !important;
    line-height: 25px !important;
  }

  .hero-slide-text p {
    font-size: 18px !important;
    line-height: 21px !important;
  }
}

/* Detailed hero and events parity with the reference capture */
.hero-carousel {
  width: 100%;
  max-width: var(--site-page-width) !important;
  height: 560px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  background: #f2f2f2;
}

.hero-carousel .flickity-viewport,
.hero-carousel .flickity-slider,
.hero-slide {
  height: 560px !important;
}

.hero-slide {
  width: 100%;
  margin: 0 !important;
  display: flex;
  align-items: stretch;
  background: #f2f2f2;
}

.hero-slide-text,
.hero-slide-image {
  flex: 0 0 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  height: 560px !important;
}

.hero-slide-text {
  padding: 90px 136px 30px !important;
}

.hero-slide-text > div {
  width: 100%;
}

.hero-slide-text h2 {
  max-width: 570px;
  margin-bottom: 20px;
}

.hero-slide-text p {
  max-width: 570px;
  margin-bottom: 20px;
}

.hero-slide-text .text-end {
  max-width: 570px;
}

.hero-slide-image {
  background-size: cover;
  background-position: center;
}

.eventos-section.container-xl-custom {
  width: 100% !important;
  max-width: var(--site-page-width) !important;
  margin-left: auto;
  margin-right: auto;
  padding: 20px var(--site-section-offset) 30px !important;
  background: #fff;
}

@media (min-width: 1200px) {
  .eventos-section.container-xl-custom {
    width: calc(100% - (var(--site-section-offset) * 1)) !important;
  }
}

.eventos-section > .d-flex {
  margin-bottom: 20px !important;
}

.eventos-section h2.section-title {
  font-size: 25px;
  line-height: 1.2;
  font-weight: 500;
}

.eventos-toggle .btn {
  width: 34px;
  height: 34px;
  padding: 0;
}

.events-carousel {
  --bs-gutter-x: 30px;
  --bs-gutter-y: 0;
}

.events-carousel:not(.flickity-enabled) {
  display: flex;
  flex-wrap: wrap;
}

.events-carousel:not(.flickity-enabled) .event-col {
  flex: 0 0 33.333333%;
  width: 33.333333%;
  max-width: 33.333333%;
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 0;
}

.events-carousel.flickity-enabled .event-col {
  width: 86%;
  max-width: 420px;
}

.event-card {
  height: 400px !important;
  min-height: 0;
  border-radius: 0;
  border: 1px solid #e2e2e2;
  box-shadow: none;
}

.event-card-img {
  height: 230px !important;
  flex: 0 0 230px !important;
  border-radius: 0;
}

.event-date-badge {
  top: 10px;
  left: 10px;
  border-radius: 0;
  padding: 7px 9px;
}

.event-card-body {
  padding: 14px 14px 16px;
}

.event-card-title {
  font-size: 22px !important;
  line-height: 31px !important;
  font-weight: 700;
  margin-bottom: 8px;
  -webkit-line-clamp: 2;
}

.event-datetime {
  font-size: 15px !important;
  line-height: 21px !important;
}

.event-tag {
  font-size: 14px;
  line-height: 15px;
  border-radius: 0;
  padding: 5px 7px;
}

.eventos-load-more {
  margin-top: 30px;
}

@media (min-width: 1200px) and (max-width: 1919px) {
  .hero-slide-text {
    padding: 90px 8.5rem 30px !important;
  }

  .eventos-section.container-xl-custom {
    max-width: 100vw !important;
    padding-left: 15.8rem !important;
    padding-right: 15.8rem !important;
  }
}

@media (max-width: 1199px) {
  .hero-carousel,
  .hero-carousel .flickity-viewport,
  .hero-carousel .flickity-slider,
  .hero-slide,
  .hero-slide-text,
  .hero-slide-image {
    height: 460px !important;
  }

  .hero-slide-text {
    padding: 48px var(--site-section-offset) 28px !important;
  }

  .eventos-section.container-xl-custom {
    max-width: 100vw !important;
    padding: 24px var(--site-section-offset) 30px !important;
  }

  .event-card {
    height: 340px !important;
  }

  .event-card-img {
    height: 190px !important;
    flex-basis: 190px !important;
  }
}

@media (max-width: 991px) {
  .events-carousel.flickity-enabled .event-col {
    width: 78%;
    max-width: 360px;
  }
}

@media (max-width: 767px) {
  .hero-carousel {
    height: auto !important;
  }

  .hero-carousel .flickity-viewport,
  .hero-carousel .flickity-slider,
  .hero-slide {
    height: auto !important;
  }

  .hero-slide {
    display: block;
  }

  .hero-slide-text,
  .hero-slide-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .hero-slide-text {
    padding: 24px var(--site-section-offset) !important;
  }

  .hero-slide-image {
    height: 300px !important;
  }

  .eventos-section.container-xl-custom {
    padding-top: 20px !important;
  }

  .eventos-section > .d-flex {
    align-items: center !important;
  }
}

.site-footer .container {
  width: 100%;
  max-width: var(--site-content-width) !important;
  padding-left: var(--site-side-padding);
  padding-right: var(--site-side-padding);
}

@media (max-width: 575px) {
  .site-footer .container {
    max-width: none !important;
    padding-left: var(--site-side-padding);
    padding-right: var(--site-side-padding);
  }
}

/* Page background contrast and sponsor footer background */
body {
  background: #f2f2f2;
}

main {
  background: transparent;
}

.site-header {
  background: #f4f2f2;
}

.eventos-section,
.publicaciones-section {
  background: #fff;
}

.site-footer-wrapper {
  background: transparent;
}

.sponsors-strip {
  width: 100%;
  max-width: none !important;
  background: #fff !important;
}

.sponsors-strip .container-xl-custom {
  max-width: var(--site-content-width) !important;
}

.sponsor-carousel,
.sponsor-carousel .carousel-cell {
  background: #fff;
}

.site-footer {
  background: #000;
}

/* Final hero color and typography lock */
.hero-carousel,
.hero-slide {
  background: #fff !important;
}

.hero-slide-text {
  background-color: #403e3f1c !important;
}

.hero-slide-text h2 {
  color: #1a1a1a;
  font-size: 35px !important;
  font-weight: 500 !important;
  line-height: 39px !important;
  margin: 0 0 20px !important;
  letter-spacing: 0 !important;
}

.hero-slide-text p {
  color: #54595f;
  font-size: 25px !important;
  font-weight: 400 !important;
  line-height: 29px !important;
  margin: 0 0 20px !important;
  letter-spacing: 0 !important;
}

.hero-slide-text .btn-pill-dark {
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 24px !important;
  text-transform: uppercase;
}

@media (max-width: 1199px) {
  .hero-slide-text h2 {
    font-size: 28px !important;
    line-height: 32px !important;
  }

  .hero-slide-text p {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}

@media (max-width: 767px) {
  .hero-slide-text h2 {
    font-size: 22px !important;
    line-height: 25px !important;
  }

  .hero-slide-text p {
    font-size: 18px !important;
    line-height: 21px !important;
  }
}
/* Final mobile hero visibility fix */
@media (max-width: 767px) {
  .hero-carousel {
    height: auto !important;
    min-height: 0;
    overflow: hidden;
  }

  .hero-carousel .flickity-viewport {
    min-height: 620px !important;
  }

  .hero-slide {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-height: 620px !important;
  }

  .hero-slide-text {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 320px !important;
    height: auto !important;
    padding: 24px var(--site-section-offset) !important;
  }

  .hero-slide-image {
    flex: 0 0 300px !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
  }
}

@media (max-width: 767px) {
  .hero-slide-text {
    order: 2 !important;
  }

  .hero-slide-image {
    order: 1 !important;
  }
}

/* Final header scale lock */
.top-bar {
  background: #000 !important;
  padding: 15px 0 15px !important;
  min-height: 28px;
  font-size: 20px !important;
  font-weight: 400;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase;
}

.top-bar a,
.top-bar strong {
  color: #fff !important;
}

.site-header {
  background: #f4f2f2 !important;
  padding: 25px 0 0 !important;
  box-shadow: none;
}

.site-header .container-xl-custom {
  display: block;
  max-width: var(--site-content-width) !important;
}

.utility-nav {
  padding-bottom: 0 !important;
  margin-bottom: 0;
  font-size: 14px !important;
  line-height: 1.2;
  font-weight: 400;
}

.utility-nav a {
  color: #e1007e !important;
  margin-left: 24px;
}

.site-header .navbar {
  min-height: 72px;
  padding: 0 !important;
}

.site-header .container-fluid {
  align-items: center !important;
}

.brand-logo {
  flex: 0 0 15.915%;
  width: 15.915%;
  max-width: 15.915%;
  margin-right: 20px;
  padding: 0;
}

.brand-logo img {
  width: min(100%, 288px) !important;
  height: auto !important;
  max-height: 97px;
  display: block;
}

.navbar-collapse {
  flex: 1 1 auto;
}

.main-nav {
  width: 100%;
  justify-content: flex-end;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.2;
}

.main-nav .nav-link {
  color: #1a1a1a !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
  color: #e1007e !important;
}

.main-nav .dropdown-toggle::after {
  margin-left: 5px;
  vertical-align: 0.12em;
}

@media (min-width: 1200px) and (max-width: 1919px) {
  .top-bar {
    min-height: 22px;
    font-size: 14px !important;
  }

  .site-header {
    padding-top: 18px !important;
  }

  .site-header .navbar {
    min-height: 62px;
  }

  .brand-logo {
    flex-basis: 15.915%;
    width: 15.915%;
    max-width: 15.915%;
  }

  .main-nav .nav-link,
  .utility-nav {
    font-size: 14px !important;
  }

  .main-nav .nav-link {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }
}

@media (max-width: 1199px) {
  .top-bar {
    min-height: 20px;
    font-size: 12px !important;
  }

  .site-header {
    padding-top: 12px !important;
  }

  .brand-logo {
    flex-basis: auto;
    width: auto;
    max-width: 210px;
  }

  .brand-logo img {
    max-width: 210px;
  }
}

@media (max-width: 991px) {
  .site-header .navbar {
    min-height: 58px;
  }

  .brand-logo img {
    max-width: 180px;
  }

  .navbar-toggler {
    padding: 4px 8px;
  }

  .navbar-collapse {
    padding-top: 12px;
  }

  .main-nav {
    align-items: stretch !important;
    font-size: 14px !important;
  }

  .main-nav .nav-link {
    padding: 9px 0 !important;
    white-space: normal;
  }
}

@media (max-width: 767px) {
  .top-bar {
    min-height: 18px;
    padding: 5px 25px 3px !important;
    font-size: 9px !important;
    line-height: 1 !important;
  }

  .site-header {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .brand-logo {
    max-width: 50%;
  }

  .brand-logo img {
    width: 50vw !important;
    max-width: 150px;
  }
}

/* Final responsive typography pass */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.top-bar,
.site-header,
.container-xl-custom,
.hero-carousel,
.hero-slide,
.hero-slide-text,
.hero-slide-image,
.eventos-section.container-xl-custom,
.catalogo-banner,
.half-section,
.half-section .half-text,
.half-section .half-image,
.publicaciones-section,
.sponsors-strip,
.site-footer {
  box-sizing: border-box;
}

.top-bar a,
.catalogo-banner h2,
.hero-slide-text h2,
.hero-slide-text p,
.half-section h2,
.half-section p,
.event-card-title,
.event-datetime {
  overflow-wrap: anywhere;
}

@media (min-width: 1200px) and (max-width: 1919px) {
  .top-bar {
    font-size: 18px !important;
    line-height: 18px !important;
  }

  .utility-nav,
  .main-nav,
  .main-nav .nav-link {
    font-size: 14px !important;
    line-height: 20px !important;
  }

  .hero-slide-text h2 {
    font-size: 35px !important;
    line-height: 39px !important;
  }

  .hero-slide-text p {
    font-size: 25px !important;
    line-height: 29px !important;
  }

  .eventos-section h2.section-title {
    font-size: 24px !important;
    line-height: 34px !important;
  }

  .event-card-title {
    font-size: 22px !important;
    line-height: 31px !important;
  }

  .event-datetime {
    font-size: 15px !important;
    line-height: 21px !important;
  }

  .event-tag {
    font-size: 14px !important;
  }

  .eventos-load-more .btn-load-more {
    font-size: 15px !important;
    line-height: 22.5px !important;
  }

  .catalogo-banner h2 {
    font-size: 25px !important;
    line-height: 25px !important;
  }

  .catalogo-banner .btn-pill-dark {
    font-size: 15px !important;
    line-height: 15px !important;
  }

  .half-section h2 {
    font-size: 32px !important;
    line-height: 32px !important;
  }

  .half-section p {
    font-size: 22px !important;
    line-height: 22px !important;
  }

  .half-section.heading-xl h2,
  .publicaciones-section h2.section-title {
    font-size: 50px !important;
    line-height: 1.05 !important;
  }

  .half-section.heading-xl p {
    font-size: 28px !important;
    line-height: 1.15 !important;
  }
}

@media (max-width: 1199px) {
  .hero-slide-text h2 {
    font-size: 26px !important;
    line-height: 30px !important;
  }

  .hero-slide-text p {
    font-size: 18px !important;
    line-height: 22px !important;
  }

  .event-card-title {
    font-size: 15px !important;
    line-height: 1.18 !important;
  }

  .event-datetime {
    font-size: 11px !important;
  }

  .catalogo-banner h2,
  .half-section p,
  .half-section.heading-xl p {
    font-size: 17px !important;
    line-height: 1.22 !important;
  }

  .half-section h2,
  .half-section.heading-xl h2,
  .publicaciones-section h2.section-title {
    font-size: 25px !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .top-bar {
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 9px !important;
    line-height: 1.15 !important;
    white-space: normal;
  }

  .top-bar a {
    display: block;
    max-width: 100%;
  }

  .hero-slide-text h2 {
    font-size: 20px !important;
    line-height: 24px !important;
  }

  .hero-slide-text p {
    font-size: 15px !important;
    line-height: 20px !important;
  }

  .hero-slide-text .btn-pill-dark,
  .catalogo-banner .btn-pill-dark,
  .half-section .btn-pill-dark {
    font-size: 13px !important;
    line-height: 16px !important;
  }

  .eventos-section h2.section-title {
    font-size: 20px !important;
  }

  .event-card-title {
    font-size: 15px !important;
    line-height: 1.18 !important;
  }

  .event-datetime {
    font-size: 12px !important;
    line-height: 1.28 !important;
  }

  .catalogo-banner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .catalogo-banner h2 {
    flex: 1 1 100%;
    width: 100%;
    font-size: 20px !important;
    line-height: 24px !important;
  }

  .half-section h2,
  .half-section.heading-xl h2,
  .publicaciones-section h2.section-title {
    font-size: 22px !important;
    line-height: 25px !important;
  }

  .half-section p,
  .half-section.heading-xl p {
    font-size: 15px !important;
    line-height: 20px !important;
  }

  .publicacion-item span {
    font-size: 13px !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 575px) {
  :root {
    --site-side-padding: 24px;
    --site-section-offset: 24px;
  }

  .top-bar {
    font-size: 6.8px !important;
  }

  .hero-slide-text > div,
  .hero-slide-text h2,
  .hero-slide-text p,
  .hero-slide-text .text-end,
  .catalogo-banner h2,
  .half-section h2,
  .half-section p {
    width: 100% !important;
    max-width: calc(100vw - 48px) !important;
    inline-size: calc(100vw - 48px) !important;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-slide-text h2 {
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .hero-slide-text p {
    font-size: 13px !important;
    line-height: 18px !important;
  }

  .event-card-title {
    font-size: 14px !important;
  }

  .catalogo-banner h2,
  .half-section h2,
  .half-section.heading-xl h2,
  .publicaciones-section h2.section-title {
    font-size: 19px !important;
    line-height: 22px !important;
  }

  .half-section p,
  .half-section.heading-xl p {
    font-size: 13px !important;
    line-height: 18px !important;
  }
}

/* Override final: Eventos en vista de lista */
@media (min-width: 1200px) and (max-width: 1919px) {
  .eventos-section.container-xl-custom:has(.events-carousel.list-view) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.events-carousel.list-view {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border: 1px solid #ddd !important;
  border-bottom: 0 !important;
  background: #fff !important;
}

.events-carousel.list-view .event-col {
  display: block !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.events-carousel.list-view .event-card {
  display: grid !important;
  grid-template-columns: 90px 92px minmax(0, 1fr) !important;
  column-gap: 22px !important;
  align-items: start !important;
  min-height: 155px !important;
  height: auto !important;
  padding: 32px 24px 20px !important;
  border: 0 !important;
  border-bottom: 1px solid #ddd !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #111 !important;
}

.events-carousel.list-view .event-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

.events-carousel.list-view .event-card-img {
  width: 90px !important;
  height: 90px !important;
  flex: 0 0 90px !important;
  border-radius: 3px !important;
}

.events-carousel.list-view .event-card-img .event-date-badge {
  display: none !important;
}

.events-carousel.list-view .event-list-date {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 14px !important;
  color: #555 !important;
}

.events-carousel.list-view .event-list-date strong {
  font-size: 24px !important;
  line-height: 24px !important;
  font-weight: 700 !important;
  color: #555 !important;
}

.events-carousel.list-view .event-list-date small {
  margin-top: 3px !important;
  font-size: 14px !important;
  line-height: 16px !important;
  color: #555 !important;
  text-transform: uppercase !important;
}

.events-carousel.list-view .event-list-date em {
  font-style: normal !important;
  font-size: 22px !important;
  line-height: 24px !important;
  color: #555 !important;
}

.events-carousel.list-view .event-card-body {
  min-width: 0 !important;
  padding: 0 !important;
}

.events-carousel.list-view .event-card-title {
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  font-size: 20px !important;
  line-height: 25px !important;
  font-weight: 700 !important;
  margin: 0 0 14px !important;
}

.events-carousel.list-view .event-datetime {
  font-size: 15px !important;
  line-height: 19px !important;
  color: #555 !important;
  margin-bottom: 16px !important;
}

.events-carousel.list-view .event-datetime i {
  margin-right: 6px !important;
  color: #555 !important;
}

.events-carousel.list-view .event-tag {
  font-size: 14px !important;
  line-height: 15px !important;
  padding: 6px 8px !important;
  border-radius: 3px !important;
}

@media (max-width: 767px) {
  .events-carousel.list-view .event-card {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
    min-height: 0 !important;
    padding: 18px 14px !important;
  }

  .events-carousel.list-view .event-card-img {
    width: 82px !important;
    height: 82px !important;
    flex-basis: 82px !important;
  }

  .events-carousel.list-view .event-list-date {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-content: flex-start !important;
    gap: 7px !important;
  }

  .events-carousel.list-view .event-list-date strong {
    font-size: 18px !important;
    line-height: 18px !important;
  }

  .events-carousel.list-view .event-list-date small {
    font-size: 11px !important;
    line-height: 13px !important;
  }

  .events-carousel.list-view .event-list-date em {
    font-size: 16px !important;
    line-height: 18px !important;
  }

  .events-carousel.list-view .event-card-body {
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
  }

  .events-carousel.list-view .event-card-title {
    font-size: 16px !important;
    line-height: 20px !important;
    margin-bottom: 9px !important;
  }

  .events-carousel.list-view .event-datetime {
    font-size: 12px !important;
    line-height: 16px !important;
    margin-bottom: 12px !important;
  }
}
