/* ============================================================================
   SECRETARÍA DISTRITAL DEL HÁBITAT
   FERIAS DE VIVIENDA · CSS REORGANIZADO
   ============================================================================
   Archivo: css/turutahogar.css
   - Se conservan componentes heredados de «Tu Ruta al Hogar» para compatibilidad.
   - Se cerró correctamente el @media móvil que envolvía el resto del documento.
   - Se consolidaron reglas repetidas y estilos sucesivos del hero de Ferias.
   - Las cifras animadas siguen dependiendo de js/hero-contadores.js.
   - Las rutas relativas ../img/ se conservan.
   ============================================================================ */


/* ================================================
   00. VARIABLES, RESET Y TIPOGRAFÍA
   ================================================ */

:root {
  scroll-padding-top: 70px;
  --gris-fondo: #6b6b6b;
  --rojo-barra: #F01C20;
  --rojo-1: #F01C20;
  --rojo-2: #C8102E;
  --rojo-3: #C8102E;
  --rojo-4: #A60100;
  --blanco: #ffffff;
  --negro: #000000;
}

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

body {
  background: url("./../img/Fondos_LP.webp?v=20260911") center center/cover no-repeat fixed;
  font-family: "Museo Sans Condensed", sans-serif;
  font-size: 20px;
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

a {
  color: #A60100;
}

h3 {
  text-align: center;
  margin-bottom: 30px;
  color: #000000;
  font-weight: 600;
  font-size: 1.25rem;
}

h4 {
  font-size: 20px;
  font-weight: bold;
}

h1,
h2 {
  color: #1c1c1c;
  font-weight: 700;
  text-align: center;
}

hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.3);
  margin: 25px 0;
}

/* ================================================
   01. UTILIDADES, BOTONES Y ELEMENTOS GENERALES
   ================================================ */

.txt_gris {
  color: #d3d3d3 !important;
}

.over {
  background: rgba(255, 255, 255, 0.9);
}

.overlay {
  padding: 0;
}

.barra-superior {
  height: 12px;
  background-color: var(--rojo-barra);
}

.contenedor {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  justify-self: anchor-center;
}

.card {
  box-shadow: 0 0.6px 10px rgb(0 0 0 / 5%);
  background-color: #ffffff;
}

.text-gray {
  text-align: center !important;
  color: #9E9E9E;
  margin-top: 1rem;
}

.card:nth-child(2) {
  background-color: var(--rojo-2);
}

.card h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.card ul {
  padding-left: 18px;
}

.card li {
  margin-bottom: 8px;
}

.btn-primary {
  background-color: #A60100 !important;
  border-color: #A60100 !important;
}

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

.btn-primary:hover {
  background-color: #C8102E !important;
  border-color: #C8102E !important;
}

.card-hover {
  aspect-ratio: 7 / 9;
  max-width: 300px;
  min-height: 300px;
  position: relative;
  color: white;
  cursor: pointer;
  border: none;
  border-radius: 0.5rem;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.firma-secretaria {
  max-width: 350px;
}

.card-link {
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.card-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: background 0.3s ease;
}

.card-hover:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

.card-hover .card-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.card-title a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
}

.card-title a:hover,
.card-title a:active,
.card-title a:focus {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  text-decoration: none;
}

.card-hover:hover .card-title {
  opacity: 1;
}

.backinno {
  background-color: #F01C20;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 2rem;
  background: #F01C20;
  padding: 0.5rem;
  border-radius: 0.1rem;
}

.card-text {
  height: 110px;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #fff;
  background-color: #F01C20;
}

.link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #000;
  padding: 4px;
}

.link::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
}

.card img {
  max-height: 250px;
}

.nav.nav-pills {
  color: #fff;
  background-color: #F01C20;
  padding: 0px;
}

.pdf::before {
  background-image: url("/core/themes/seven/images/classy/icons/application-pdf.png");
}

.excel::before {
  background-image: url("/core/themes/seven/images/classy/icons/x-office-spreadsheet.png");
}

.word::before {
  background-image: url("/core/themes/seven/images/classy/icons/x-office-document.png");
}

.card-menu {
  align-items: center;
  padding: 2em 0.7em 2em;
  gap: 10px;
  width: 311px;
  min-height: 144px !important;
  background: #ffffff;
  box-shadow: 1px 1px 4px rgb(0 0 0 / 25%);
  border-radius: 8px;
  margin: 10px 20px 10px 20px;
}

.card-menu:hover {
  background: #A60100;
}

.card-menu:hover svg {
  color: #ffffff;
}

.card-menu:visited {
  color: #ffffff;
}

.card-menu a {
  color: #F01C20 !important;
  font-style: normal;
  font-weight: 800;
  font-size: 16px;
  line-height: 22px;
  text-align: center;
}

.card-menu:hover a {
  color: #ffffff !important;
  text-align: center;
}

.card-menu svg {
  color: #A60100;
  display: block;
  text-align: center;
  margin: auto;
  font-size: 16px;
  width: auto;
  height: 100px;
  margin-top: 10px;
}

.card-menu:hover img {
  -webkit-filter: invert(1);
  filter: invert(1);
}

.material-icons {
  font-size: 60px !important;
}

.imagen-circular-container {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  margin: 20px auto;
  padding: 0px;
}

.lineaAm {
  width: 300px;
  height: 4px;
  background: #F01C20;
  margin: 15px auto 0 auto;
  border-radius: 3px;
}

.intro {
  line-height: 1.6;
  opacity: 0.95;
  text-align: center;
  max-width: 900px;
  padding-top: 30px;
}

.imagen-circular-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-block;
  background: #C8102E;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  margin-top: 15px;
  transition: .3s;
}

.btn:hover {
  background: #A60100;
  color: #fff;
  transform: translateY(-2px);
}

.txt_top1 {
  margin-top: 1em;
}

.txt_top {
  margin-top: 3em;
}

.txt_centro {
  text-align: center;
}

.txt_bajo {
  margin-bottom: 3em;
}

.intro p,
.txt_centro {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {

  .card img {
    max-width: 100%;
    height: auto;
    max-height: 100% !important;
  }
}

/* ================================================
   02. NAVEGACIÓN Y MENÚ
   ================================================ */

.logo {
  font-weight: bold;
}

.menu.scrolled {
  background-color: rgba(240, 28, 32, 0.789);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.menu {
  transition: background-color 0.4s ease,
              box-shadow 0.4s ease,
              backdrop-filter 0.4s ease;
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom,
                 rgba(240, 28, 32, 0.12) 0%,
                 rgba(240, 28, 32, 0.10) 30%,
                 rgba(240, 28, 32, 0.07) 55%,
                 rgba(240, 28, 32, 0.04) 75%,
                 rgba(240, 28, 32, 0.02) 90%,
                 rgba(240, 28, 32, 0) 120%);
  backdrop-filter: blur(16px);
  padding: 18px 40px;
  z-index: 3;
  text-transform: uppercase;
}

.menu ul {
  list-style: none;
  display: flex;
  justify-content: space-evenly;
  flex-grow: 1;
  margin: 0;
  padding: 0;
}

.menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 1px;
}

.logo img {
  height: 100px;
  z-index: 1;
  position: absolute;
  top: 5%;
  right: 2%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px;
  border-radius: 2px;
}

@media (max-width: 768px) {

  .menu {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    padding: 5px 20px;
    border-bottom: solid 1px;
    z-index: 1000;
    text-transform: uppercase;
  }

  .menu ul {
    margin-top: 20px;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    text-align: center;
  }

  .menu ul.active {
    display: flex;
    width: 100%;
  }

  .menu ul li {
    margin: 0px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .logo img {
    height: 40px;
    top: 0%;
    right: 0%;
  }

  .menu ul li a {
    font-size: 1rem;
  }
}

/* ================================================
   03. BANNERS Y HERO LEGADOS
   ================================================ */

.hero-banner {
  position: relative;
  display: inline-block;
}

.hero-buttons {
  position: absolute;
  align-self: center;
  bottom: 40px;
  z-index: 1;
  display: flex;
  gap: 15px;
}

.hero-btn {
  padding: 12px 30px;
  border: 2px solid #A6010094;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  background: #A60100;
  border-radius: 40px;
  transition: 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.hero-btn:hover {
  background: rgba(63, 63, 63, 0.771);
  color: white;
}

.img-hero-banner {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

.img-banner {
  width: 100%;
  object-position: center;
}

.img-hero-banner-movil {
  display: none;
}

.hero-slider-col {
  width: 75%;
  display: flex;
  flex-direction: column;
}

.hero_nn {
  width: 100%;
  height: 93vh;
  background: url("../img/Portada_nn.png?v=20260911") center/cover no-repeat;
}

.banner {
  position: relative;
  width: 100%;
  height: auto;
  background: linear-gradient(rgb(0 0 0 / 39%), rgb(0 0 0 / 47%));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 1em;
}

.banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: left;
}

.banner-content h1 {
  font-size: 8rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  color: #F01C20;
  max-width: 40%;
  text-align: left;
  margin: 10% 5%;
}

.banner-content span {
  font-weight: 100;
  color: #fff;
}

.highlight {
  color: #F01C20;
}

.metro-img {
  position: absolute;
  bottom: -15px;
  right: 0;
  max-width: 935px;
  width: auto;
  height: auto;
  z-index: 3;
}

.next-section {
  background: #f4f4f4;
  padding: 50px;
  text-align: center;
}

.heroTR {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background-color: #ffffff;
}

.heroTR picture,
.heroTR img {
  display: block;
  width: 100%;
}

.heroTR img {
  height: auto;
}

@media (max-width: 768px) {

  .hero_nn {
    border-bottom: solid 3px #fff;
    height: 21vh;
  }

  .hero-slider-col {
    width: 100%;
    height: auto;
  }

  .img-hero-banner {
    display: none;
  }

  .img-banner {
    display: none;
    margin-top: 0px;
  }

  .img-hero-banner-movil {
    display: block;
    width: 100%;
    height: auto;
  }

  .hero-buttons {
    position: absolute;
    bottom: 40px;
    z-index: 10;
    display: flex;
    gap: 15px;
  }

  .banner {
    height: auto;
    background: none;
    margin-bottom: 0px;
  }

  .banner-content h1 {
    margin-top: 15%;
    font-size: 2rem !important;
    max-width: 100%;
  }

  .metro-img {
    max-width: 280px;
  }

  .heroTR {
    min-height: 0;
  }
}

/* ================================================
   04. SECCIÓN DE CIFRAS Y TESTIMONIOS LEGADOS
   ================================================ */

.timeline {
  border-left: 4px solid #A60100;
  padding-left: 25px;
  margin-left: 20px;
}

.timeline-item {
  margin-bottom: 25px;
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 18px;
  height: 18px;
  background: #A60100;
  border-radius: 50%;
  position: absolute;
  left: -33px;
  top: 5px;
}

.testimonial-card {
  background: white;
  border-left: 6px solid #A60100;
  border-radius: 8px;
  padding: 20px;
}

.accordion-button {
  background: #A60100;
  color: white;
}

.accordion-button:not(.collapsed) {
  background: #A60100;
  color: white;
}

.cifras-section {
  background-image: linear-gradient(rgba(240, 28, 32,1), rgba(166, 1, 0,0.9));
  mix-blend-mode: multiply;
  color: #333;
  height: 450px;
  flex: 1;
  background: linear-gradient(180deg, #F01C20, #A60100);
  padding: 20px;
}

.cifra-box {
  height: auto;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2.2rem;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cifra-box img {
  max-width: 100%;
}

.cifra-box:hover {
  transform: scale(1.05);
}

blockquote {
  font-family: "Museo Sans Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  border-left: 4px solid #ccc;
  padding-left: 2rem;
  padding-right: 1rem;
  margin: 2rem 0;
  color: #333;
}

.quote-text {
  font-family: "Museo Sans Condensed", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  padding-left: 2rem;
  padding-right: 2rem;
  margin: 2rem 0;
  color: #A60100;
}

.quote-icon::before {
  content: "“";
  font-size: 4rem;
  line-height: 0;
  vertical-align: text-bottom;
  margin-right: 0.5rem;
  color: #A60100;
}

.quote-icon::after {
  content: "”";
  font-size: 4rem;
  line-height: 0;
  vertical-align: text-bottom;
  margin-right: 0.5rem;
  color: #A60100;
}

.cifra-box-movil {
  display: none;
}

.accordion {
  --bs-accordion-btn-focus-border-color: #A60100;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem #A60100;
}

@media (max-width: 768px) {

  .cifras-section {
    border-top: solid 3px #fff;
    height: 600px;
  }

  .cifra-box {
    display: none;
  }

  .cifra-box-movil {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* ================================================
   05. PROGRAMAS: ACCESOS, TARJETAS Y REQUISITOS
   ================================================ */

.features {
  margin-top: clamp(-34px, -3vw, -18px);
  position: relative;
  z-index: 2;
}

.features-grid {
  display: grid;
  gap: 14px !important;
}

.features-grid button {
  text-decoration: none !important;
  border-color: transparent;
}

.feature {
  padding: 30px 22px;
  color: #fff;
  height: auto;
  border: 0;
  border-radius: 8px;
  min-height: 132px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.featureC1 {
  background: #F01C20;
}

.featureC2 {
  background: #C8102E;
}

.featureC3 {
  background: #A60100;
}

.section-programas {
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.92) 100%);
  padding: clamp(42px, 5vw, 72px) 0;
}

.program-grid-top,
.program-grid-bottom {
  display: grid;
  gap: 30px;
  margin-top: 6em;
}

.program-card {
  position: relative;
  background: #fff;
  padding: 50px 20px 30px;
  border: 1px solid #ccc;
  text-align: center;
  transition: .3s;
  display: grid;
  grid-template-rows: 3.1em 4.2em 92px 185px auto;
  height: 100%;
}

.program-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transform: translateY(-4px);
}

.program-icon {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: .3s;
}

.program-card:hover .program-icon {
  transform: translate(-50%, -5px);
}

.program-card h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.destacado {
  background: #f0f4f8;
  padding: 12px;
  margin: 15px 0;
  font-size: 16px;
  text-align: left;
}

.requisitos {
  color: #fff;
  padding: 10px;
  margin: 10px 0;
  font-size: 16px;
}

.program-number {
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 50px;
  color: rgba(0,0,0,0.05);
}

.casa1 {
  background: #F01C20;
}

.casa2 {
  background: #C8102E;
}

.casa3 {
  background: #A60100;
}

.txt_c1 {
  color: #F01C20;
}

.txt_c2 {
  color: #C8102E;
}

.txt_c3 {
  color: #A60100;
}

.borde_c1 {
  border-left: 4px solid #F01C20;
}

.borde_c2 {
  border-left: 4px solid #C8102E;
}

.borde_c3 {
  border-left: 4px solid #A60100;
}

.program-group {
  display: none;
  margin-top: 4em;
}

.program-group.active {
  display: grid;
}

.feature h3 {
  color: #ffffff;
  margin: 0;
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1.1;
}

.feature:hover,
.feature.active {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  filter: saturate(1.04);
}

.feature:focus-visible {
  outline: 4px solid rgba(240, 28, 32, .45);
  outline-offset: 4px;
}

.program-grid-bottom {
  align-items: stretch;
}

.program-card > p {
  display: flex;
  align-items: center;
  justify-content: center;
}

.program-card .requisitos {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.program-card .destacado {
  min-height: 0;
}

.program-card .btn {
  align-self: center;
  justify-self: center;
  margin-top: auto;
}

.program-group > .program-grid-bottom.single-program,
.program-group > .program-grid-bottom:has(.program-card:only-child) {
  grid-template-columns: minmax(0, 386px);
  justify-content: center;
}

@media (min-width:768px) {

  .features-grid {
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
  }

  .program-grid-top {
    grid-template-columns: repeat(3,1fr);
  }

  .program-grid-bottom {
    grid-template-columns: repeat(2,1fr);
    max-width: 800px;
    margin: auto;
  }

  #programasC1 .program-grid-bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1200px;
  }
}

@media (max-width: 767.98px) {

  .features {
    width: calc(100% - 32px);
    margin-top: 18px;
  }

  .features-grid {
    gap: 10px !important;
  }

  .feature {
    min-height: 88px;
    padding: 18px 20px;
    border-radius: 7px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  }

  .feature h3 {
    font-size: clamp(23px, 6.2vw, 28px);
    max-width: 260px;
    margin: 0 auto;
  }

  .program-card {
    display: flex;
    flex-direction: column;
  }

  .program-card h3,
  .program-card > p,
  .program-card .requisitos,
  .program-card .destacado {
    min-height: 0;
  }
}

@media (min-width: 768px) {

  #programasC1 .program-grid-bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ================================================
   06. FRANJA INFORMATIVA
   ================================================ */

.info-strip {
  width: 100%;
  padding: 36px 20px 12px;
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  padding-top: 28px;
}

.info-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(200, 16, 46, 0.22);
  border-left: 7px solid #C8102E;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
  width: min(100% - 24px, 1200px);
}

.info-strip-copy {
  text-align: left;
}

.info-strip h2 {
  margin: 0;
  color: #1c1c1c;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.1;
  text-align: left;
  text-transform: none;
}

.info-strip p {
  margin: 8px 0 0;
  color: #333333;
  line-height: 1.35;
}

.info-strip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  background: #C8102E;
  border: 2px solid #C8102E;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(200, 16, 46, 0.20);
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.info-strip-btn:hover,
.info-strip-btn:focus {
  background: #A60100;
  border-color: #A60100;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(166, 1, 0, 0.24);
}

.btn,
.info-strip-btn,
.btn {
  border-radius: 8px;
}

@media (max-width: 767.98px) {

  .info-strip {
    padding: 28px 16px 4px;
  }

  .info-strip-inner {
    padding: 22px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .info-strip-copy,
  .info-strip h2 {
    text-align: center;
  }

  .info-strip-btn {
    width: 100%;
  }
}

@media (min-width: 1200px) {

  .info-strip-inner {
    width: 1140px;
  }
}

@media (min-width: 1400px) {

  .info-strip-inner {
    width: 1320px;
    max-width: 1320px;
  }
}

/* En móvil, la franja ocupa el ancho completo sin relleno lateral. */
@media (max-width: 767.98px) {
  .info-strip { padding-left: 0; padding-right: 0; }
}

/* ================================================
   07. EVENTOS Y FECHAS
   ================================================ */

.eventos-grid {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

.evento {
  background: #ffffff;
  border: 1px solid rgba(28, 28, 28, 0.12);
  padding: 28px 24px 32px;
  text-align: center;
  min-height: 0;
  display: grid;
  grid-template-rows: 76px 36px 60px auto;
  align-items: start;
  position: relative;
  overflow: visible;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(24, 31, 39, 0.07);
  transition: transform .2s ease, box-shadow .2s ease;
  padding-bottom: 24px;
}

.evento h3 {
  margin-bottom: 0px !important;
  line-height: 1.12;
}

.evento h4 {
  margin: 0;
  line-height: 1.1;
  font-size: 25px;
}

.evento > h3:first-child {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  font-size: 23px;
}

.evento > h3:nth-of-type(2) {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  font-size: 23px;
}

.evento p {
  align-self: start;
  max-width: 92%;
  margin: 22px auto 0;
  line-height: 1.45;
}

.lineaAm_mini {
  width: 203px;
  height: 2px;
  background: #F01C20;
  margin: 17px auto;
  border-radius: 3px;
}

.lineaRo_mini {
  width: 203px;
  height: 2px;
  background: #C8102E;
  margin: 17px auto;
  border-radius: 3px;
}

.lineaVi_mini {
  width: 203px;
  height: 2px;
  background: #A60100;
  margin: 17px auto;
  border-radius: 3px;
}

.evento > h3:first-child,
.evento > h3:nth-of-type(2) {
  overflow-wrap: anywhere;
}

.program-card,
.evento {
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

.evento:hover {
  box-shadow: 0 14px 28px rgba(24, 31, 39, 0.10);
  transform: translateY(-2px);
}

.program-card p,
.evento p {
  color: #1f252d;
}

.evento::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: #C8102E;
}

.evento.ev-c1::before {
  background: #F01C20;
}

.evento.ev-c2::before {
  background: #C8102E;
}

.evento.ev-c3::before {
  background: #A60100;
}

.evento.evento-destacado {
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 70%);
  border-color: rgba(200, 16, 46, 0.35);
}

@media (min-width:768px) {

  .eventos-grid {
    grid-template-columns: repeat(3,1fr);
    margin-bottom: 2em;
  }
}

@media (min-width: 1100px) {

  .eventos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .evento {
    grid-template-rows: 92px 36px 126px 38px 1fr;
    min-height: 410px;
  }
}

@media (min-width: 1100px) and (max-width: 1399px) {

  .evento {
    padding-left: 22px;
    padding-right: 22px;
  }

  .evento > h3:nth-of-type(2) {
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.06;
  }
}

@media (min-width: 768px) and (max-width: 1099px) {

  .eventos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evento {
    grid-template-rows: 88px 34px 82px 32px 1fr;
    min-height: 340px;
    padding: 24px 20px 28px;
  }

  .evento > h3:first-child {
    font-size: 21px;
    min-height: 88px;
  }

  .evento > h3:nth-of-type(2) {
    font-size: 21px;
    min-height: 82px;
  }
}

@media (max-width: 767.98px) {

  .eventos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 120px;
  }

  .evento {
    grid-template-rows: auto auto auto auto auto;
    min-height: 0;
    padding: 26px 18px 28px;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(24, 31, 39, 0.06);
    border: 1px solid rgba(28, 28, 28, 0.10);
  }

  .evento > h3:first-child,
  .evento > h3:nth-of-type(2) {
    min-height: 0;
    font-size: clamp(22px, 6.3vw, 28px);
    line-height: 1.1;
  }

  .evento h4 {
    font-size: clamp(20px, 5.5vw, 25px);
  }

  .evento p {
    max-width: 100%;
    margin-top: 18px;
  }

  .lineaAm_mini,
  .lineaRo_mini,
  .lineaVi_mini {
    width: min(203px, 62vw);
    margin: 14px auto 18px;
  }

  .evento::before {
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 8px 8px 0 0;
  }
}

/* Conservar las dimensiones compactas que terminaban prevaleciendo en el CSS original. */
@media (min-width: 768px) {
  .evento {
    min-height: 0;
    grid-template-rows: 76px 36px 60px auto;
  }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .evento { padding-bottom: 24px; }
}
@media (max-width: 767.98px) {
  .evento { grid-template-rows: 76px 36px 60px auto; }
}

/* ================================================
   08. GALERÍAS, IMÁGENES Y VÍDEOS
   ================================================ */

.ig-card img {
  width: 100%;
  border-radius: 12px;
}

.mfp-img {
  height: 100% !important;
  width: auto;
}

.mfp-content {
  max-width: 80% !important;
  margin: 0 auto;
}

.mfp-figure {
  width: 100% !important;
}

.mfp-container {
  overflow-y: auto !important;
}

.pop-image-p {
  filter: drop-shadow(2px 5px 6px #00000035);
  border-radius: 5px;
}

.pop-image-p:hover {
  filter: drop-shadow(1px 1px 8px #00000035);
}

.mfp-wrap.mfp-close-btn-in.mfp-auto-cursor.mfp-ready {
  background-color: #000000d4;
}

.imagenesBogF {
  padding: 50px 20%;
  display: flex;
  gap: 30px;
}

.imagenesBogF2 {
  padding: 1px 20%;
  display: flex;
  gap: 30px;
}

.fila1BogF {
  justify-content: space-between;
}

.fila2BogF {
  justify-content: center;
}

.imagenesBogF img {
  width: 400px;
  opacity: 0;
  transform: translateY(80px);
  transition: all .8s ease;
}

.imagenesBogF2 img {
  width: 700px;
  opacity: 0;
  transform: translateY(80px);
  transition: all .8s ease;
}

.imagenesBogF img.visible {
  opacity: 1;
  transform: translateY(0);
}

.imagenesBogF2 img.visible {
  opacity: 1;
  transform: translateY(0);
}

.seccionMiniC {
  max-width: 1200px;
  margin: auto;
  padding: 70px 20px;
}

.encabezadoMiniC {
  text-align: center;
  margin-bottom: 50px;
}

.encabezadoMiniC h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.encabezadoMiniC p {
  font-size: 16px;
  opacity: 0.9;
}

.contenedorMiniC {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 25px;
  color: white;
}

.cardMiniC {
  background: #F01C20;
  padding: 30px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.iconoMiniC {
  font-size: 30px;
  margin-bottom: 15px;
}

.cardMiniC h3 {
  margin: 10px 0;
  font-size: 20px;
}

.cardMiniC p {
  font-size: 14px;
  line-height: 1.5;
}

.btnMiniC {
  margin-top: 20px;
  padding: 10px 18px;
  border: none;
  border-radius: 25px;
  background: #F01C20;
  color: #333;
  font-weight: bold;
  cursor: pointer;
}

.card-hoverMiniC {
  transition: transform .25s ease, box-shadow .25s ease;
}

.card-hoverMiniC:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}

.instagram-gallery {
  text-align: center;
  padding: 40px 20px;
}

.gallery-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ig-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 1200px;
  margin: auto;
  grid-auto-flow: dense;
}

.ig-grid-item {
  display: block;
  overflow: hidden;
  border-radius: 10px;
}

.ig-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.ig-grid-item:hover img {
  transform: scale(1.05);
}

.instagram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  padding: 15px 25px;
  margin-top: 20px;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

.instagram-button img {
  height: 20px;
  margin-right: 10px;
}

.instagram-button:hover {
  transform: scale(1.05);
}

.video2-grid {
  display: grid;
  gap: 20px;
}

.video2 {
  position: relative;
  padding-bottom: 56.25%;
}

.video2 iframe {
  position: absolute;
  width: 100%;
  height: 100%;
}

.espacio-top {
  margin-top: 3em;
}

@media (max-width:900px) {

  .contenedorMiniC {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width:500px) {

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

@media (max-width:768px) {

  .container iframe {
    height: auto;
  }
}

@media (max-width: 768px) {

  .gallery-title {
    font-size: 2rem;
  }

  .ig-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-button {
    font-size: 1.2rem;
    padding: 12px 20px;
  }
}

@media (min-width:768px) {

  .video-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

/* ================================================
   09. FORMULARIOS Y CONTENIDO INFORMATIVO
   ================================================ */

.texto-secretaria {
  align-content: center !important;
  text-align: left;
}

.hero-form {
  padding: 30px;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
}

.hero-form h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.hero-form .intro {
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-form label {
  font-size: 12px;
  margin-top: 6px;
  margin-bottom: 3px;
}

.hero-form input[type="text"],
.hero-form input[type="email"],
.hero-form input[type="tel"] {
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 6px;
}

.hero-form .check-opcion {
  font-size: 12px;
  gap: 6px;
  margin-bottom: 6px;
}

.formularioInfo {
  width: 100%;
  min-height: 100vh;
  background-image: url("./../img/back.webp?v=20260911");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  margin-bottom: 20px;
}

.contenedorInfo {
  background: #F01C20;
  max-width: 900px;
  width: 100%;
  padding: 50px;
  border-radius: 25px;
  color: white;
}

.contenedorInfo h2 {
  font-size: 36px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #000000;
}

.item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 20px 0;
}

.check {
  min-width: 60px;
  height: 60px;
  background: white;
  color: #C8102E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
}

.texto {
  line-height: 1.6;
}

.texto ul {
  margin-top: 10px;
  padding-left: 20px;
}

.texto li {
  margin: 5px 0;
}

.hero-form-row {
  display: flex;
  width: 100%;
  height: 77vh;
  background-color: #F01C20;
  padding-top: 3em;
}

.form-col {
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-box {
  background: #F01C20;
  color: white;
  width: 90%;
  max-width: 360px;
  padding: 30px;
  border-radius: 20px;
}

.form-box h2 {
  font-size: 22px;
  margin-bottom: 8px;
  color: white;
}

.form-box .intro {
  font-size: 13px;
  margin-bottom: 14px;
}

.formulario {
  display: flex;
  flex-direction: column;
}

.formulario label {
  font-size: 12px;
  margin-top: 6px;
}

.formulario input {
  padding: 8px;
  font-size: 12px;
  border-radius: 6px;
  border: none;
}

.check-opcion {
  font-size: 12px;
  margin-top: 4px;
}

.btn-enviar {
  margin-top: 16px;
  margin-bottom: 10px;
  padding: 12px;
  min-height: 44px;
  font-size: 14px;
  border: none;
  border-radius: 20px;
  background: #F01C20;
  font-weight: bold;
  cursor: pointer;
  display: block;
  width: 100%;
}

@media (max-width: 768px) {

  .hero-form {
    max-width: 100%;
    padding: 25px;
  }

  .hero-form h2 {
    font-size: 24px;
  }

  .hero-form-row {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .form-col {
    width: 100%;
    height: auto;
    min-height: 80vh;
    padding: 30px 15px;
    overflow-y: visible;
  }

  .form-box {
    max-height: none;
    overflow-y: visible;
  }

  .texto-secretaria {
    align-content: center !important;
    text-align: center;
  }
}

@media (max-width:768px) {

  .contenedorInfo {
    padding: 35px;
  }

  .check {
    min-width: 50px;
    height: 50px;
    font-size: 22px;
  }

  .contenedorInfo h2 {
    font-size: 28px;
  }
}

/* ================================================
   10. VENTANAS MODALES DE PROGRAMAS
   ================================================ */

.program-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.program-modal[aria-hidden="false"] {
  display: block;
}

.program-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 28, 0.54);
  backdrop-filter: blur(3px);
}

.program-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(100% - 28px, 560px);
  max-height: min(86vh, 760px);
  transform: translate(-50%, -50%);
  overflow: auto;
  background: #ffffff;
  border-top: 6px solid #C8102E;
  border-radius: 12px;
  padding: 22px 18px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: modalIn .22s ease-out;
}

.program-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: #f3f3f3;
  color: #333333;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  z-index: 1;
}

.program-modal-close:hover,
.program-modal-close:focus {
  background: #C8102E;
  color: #ffffff;
}

.program-modal h2 {
  margin: 8px 54px 16px 0;
  color: #1c1c1c;
  font-size: 27px;
  line-height: 1.1;
  text-align: left;
  text-transform: none;
}

.program-modal-body > h2,
.program-modal-body > .lineaAm {
  display: none;
}

.program-modal-body > p {
  margin: 0 0 22px;
  text-align: left;
  line-height: 1.35;
  color: #333333;
}

.program-modal-body .program-grid-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: none;
  margin: 0;
}

.program-modal-body .program-card {
  padding: 46px 18px 22px;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.program-modal-body .program-card .btn {
  width: 100%;
  margin-top: 12px;
}

.program-modal-body .program-card h3 {
  font-size: 24px;
  line-height: 1.1;
}

.program-modal-body .destacado,
.program-modal-body .requisitos {
  border-radius: 7px;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px)) scale(.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (min-width: 768px) {

  .program-modal {
    display: none !important;
  }
}

@media (max-width: 767.98px) {

  .program-modal-panel {
    width: min(100% - 28px, 560px);
    max-height: min(88vh, 760px);
    padding: 22px 18px 20px;
  }

  .program-modal-close {
    position: sticky;
    top: 10px;
    margin-left: auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #C8102E;
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(200, 16, 46, 0.26);
    font-size: 21px;
    font-weight: 500;
    line-height: 1;
    z-index: 5;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  }

  .program-modal-close:hover,
  .program-modal-close:focus {
    background: #A60100;
    color: #ffffff;
    transform: scale(1.04);
    box-shadow: 0 10px 22px rgba(166, 1, 0, 0.28);
  }

  .program-modal h2 {
    margin-top: -34px;
    margin-right: 56px;
  }

  .program-modal-body .program-card {
    margin-top: 18px;
    padding-top: 22px;
  }

  .program-modal-body .program-icon {
    position: static;
    width: 92px;
    height: 92px;
    margin: 0 auto 14px;
    transform: none;
  }

  .program-modal-body .program-card:hover .program-icon {
    transform: none;
  }
}

/* ================================================
   11. PIE DE PÁGINA
   ================================================ */

.bloque-final {
  background: url("./../img/back.webp?v=20260911") center center/cover no-repeat fixed;
  background-color: var(--gris-fondo);
  color: var(--negro);
  font-family: "Museo Sans Condensed", sans-serif;
  margin-top: 3em;
}

.tarjeta ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.tarjeta h3 {
  color: #F01C20;
  text-align: start !important;
}

.columnas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: auto;
}

.logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0 20px;
}

.footer-text {
  text-align: center;
  font-size: 0.9rem;
  color: #fff;
}

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

.logo-sdht {
  filter: drop-shadow(2px 4px 6px black);
  max-width: 100%;
}

@media (max-width: 768px) {

  .columnas {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    margin: auto;
  }

  .tarjeta {
    margin: 1rem;
  }
}

/* ================================================
   12. HERO ACTUAL: FERIAS DE VIVIENDA
   ================================================ */

.heroTR.ferias-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: clamp(570px, 78svh, 790px);
  overflow: hidden;
  background: #451119;
  color: #fff;
  line-height: 1.2;
}

.heroTR.ferias-hero .ferias-hero__image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: ferias-zoom 22s ease-out both;
  display: block !important;
  filter: grayscale(100%) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.ferias-hero__red {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
      0deg,
      rgba(40, 5, 12, 0.55) 0%,
      rgba(70, 10, 18, 0.12) 45%,
      rgba(100, 17, 28, 0.08) 100%
    ),
    rgba(145, 21, 36, 0.50);
}

.ferias-hero__grain {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
}

.ferias-hero__inner {
  position: relative;
  z-index: 3;
  width: min(100% - 80px, 1320px);
  margin-inline: auto;
  padding: 112px 0 36px;
}

.ferias-hero__intro {
  max-width: 1100px;
  animation: none !important;
  margin-bottom: 48px;
}

.ferias-hero__eyebrow {
  display: inline-block;
  padding-left: 15px;
  border-left: 4px solid #fbc02d;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(10px, .85vw, 13px);
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.5;
}

.ferias-hero__intro h1 {
  margin: 0 0 20px;
  color: #fff;
  font-family: "Museo Sans Condensed", "Montserrat", sans-serif;
  font-size: clamp(66px, 8.5vw, 128px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.035em;
  text-transform: uppercase;
  opacity: 0;
  animation: ferias-text-enter 1s ease-out .2s forwards;
}

.ferias-hero__intro h1 em {
  color: #fbc02d;
  font-style: normal;
}

.ferias-hero__intro p {
  max-width: 680px;
  margin: 0 0 42px;
  color: rgba(255,255,255,.92);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(14px, 1.35vw, 18px);
  line-height: 1.55;
}

.ferias-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ferias-hero__stat {
  min-width: 0;
  padding: 18px 10px 10px 0;
  border-top: 2px solid rgba(255,255,255,.54);
  animation: ferias-text-enter .8s ease-out forwards;
  opacity: 0;
}

.ferias-hero__stat:nth-child(1) {
  animation-delay: 1.55s;
}

.ferias-hero__stat:nth-child(2) {
  animation-delay: 1.73s;
}

.ferias-hero__stat:nth-child(3) {
  animation-delay: 1.91s;
}

.ferias-hero__stat:nth-child(4) {
  animation-delay: 2.09s;
}

.ferias-hero__number {
  display: block;
  color: #fff;
  font-family: "Museo Sans Condensed", "Montserrat", sans-serif;
  font-size: clamp(43px, 5vw, 74px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}

.ferias-hero__stat-label {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.95);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 600;
  line-height: 1.4;
}

.ferias-hero__disclaimer {
  margin: 16px 0 0;
  color: rgba(255,255,255,.74);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  line-height: 1.4;
}

.ferias-hero__intro h1 span {
  color: #fbc02d;
}

.ferias-hero__intro .ferias-hero__subtitle {
  max-width: 920px;
  margin: 0;
  color: rgba(255,255,255,.96);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(25px, 3.1vw, 46px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.025em;
  opacity: 0;
  animation: ferias-text-enter 1s ease-out .65s forwards;
}

.ferias-hero__subtitle strong {
  color: #fff;
  font-weight: 700;
}

@keyframes ferias-zoom {
  from {
    transform: scale(1.035);
  }
  to {
    transform: scale(1.13);
  }
}

@keyframes ferias-text-enter {
  from {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (max-width: 767.98px) {

  .heroTR.ferias-hero {
    min-height: max(690px, 100svh);
  }

  .heroTR.ferias-hero .ferias-hero__image {
    object-position: 54% center;
  }

  .ferias-hero__inner {
    width: calc(100% - 36px);
    padding: 100px 0 28px;
  }

  .ferias-hero__intro h1 {
    font-size: clamp(53px, 12vw, 76px);
    line-height: .95;
    margin-bottom: 22px;
  }

  .ferias-hero__intro p {
    margin-bottom: 32px;
  }

  .ferias-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 14px;
  }

  .ferias-hero__number {
    font-size: clamp(40px, 10vw, 60px);
  }

  .ferias-hero__stat {
    padding-top: 15px;
  }

  .ferias-hero__intro {
    margin-bottom: 35px;
  }

  .ferias-hero__intro .ferias-hero__subtitle {
    font-size: clamp(23px, 5.8vw, 32px);
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {

  .heroTR.ferias-hero .ferias-hero__image,
  .ferias-hero__intro,
  .ferias-hero__stat {
    animation: none !important;
  }

  .ferias-hero__intro h1,
  .ferias-hero__intro .ferias-hero__subtitle,
  .ferias-hero__stat {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}


/* ==========================================
   HERO FERIAS DE VIVIENDA - RESPONSIVE
   ========================================== */

.heroTR.hero-ferias-imagen {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
  background: transparent;
}

.heroTR.hero-ferias-imagen picture {
  display: block;
  width: 100%;
}

.heroTR.hero-ferias-imagen picture img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: none;
  opacity: 1;
  animation: none;
}
