        :root {
           scroll-padding-top: 70px;
           --gris-fondo: #6b6b6b;
           --amarillo-barra: #f4b400;

           --verde-1: #6fb2a5;
           --verde-2: #4fa3a1;
           --verde-3: #3f8f86;
           --verde-4: #2f7a6e;

           --blanco: #ffffff;
           --negro: #000000;
        }


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



        /* Fondo general */
        body {
           background: url('./../img/Fondos_LP.webp') 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;
		}







		
		/*espacio entre secciones*/

	

        .bloque-final {
           background: url('./../img/back.webp') center center/cover no-repeat fixed;
        }

        /* Overlay suave estilo Habitat */
        .over {
           background: rgba(255, 255, 255, 0.9),);
        }

        .overlay {
           padding: 0;
        }

        .bloque-final {
           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: #F1B634;
           text-align: start !important;
        }

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

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

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

        a {
           color: #2a7a6b;
        }

        h3 {
           text-align: center;
           margin-bottom: 30px;
           color: #00000;
           font-weight: 600;

        }

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

        }

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

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

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

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

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

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

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

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

        .logo {
           font-weight: bold;
        }

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

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

        .menu.scrolled {
           background-color: rgba(240, 30, 32, 0.789);
           /* cambia el color aquí */
           box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        }


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

        /* Línea de tiempo */
        .timeline {
           border-left: 4px solid #2a7a6b;
           padding-left: 25px;
           margin-left: 20px;
        }

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

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

        /* Testimonios */
        .testimonial-card {
           background: white;
           border-left: 6px solid #2a7a6b;
           border-radius: 8px;
           padding: 20px;
        }

        /* FAQs */
        .accordion-button {
           background: #2a7a6b;
           color: white;
        }

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

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

        /* Botones */
        .btn-primary {
           background-color: #2a7a6b !important;
           border-color: #2a7a6b !important;
        }

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

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

        .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 #2a7a6b94;
           color: #fff;
           text-decoration: none;
           font-weight: 600;
           background: #2a7a6b;
           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;
        }

        /* Fondo con imagen */
        .cifras-section {
           background-image: linear-gradient(rgba(240,30,32,1), rgba(165,0,3,0.9));
           mix-blend-mode: multiply;
           color: #333;
		   height:450px;
        }


        /* Cada cuadro de cifra */
        .cifra-box {
           /* gris del wireframe */
           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 {
           /* gris del wireframe */
           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: #2a7a6b;
        }

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

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

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

        .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;
        }

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

        .img-banner {
           width: 100%;
           object-position: center;
        }
		.cifra-box-movil {
           display: none;
        }

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

        .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: #F5b531;
        }

        .tag {
           font-size: 0.75rem;
           font-weight: 600;
           margin-right: 2rem;
           background: #f4b400;
           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: #00947F;
        }

        .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 {
           background-color: #ffffff;

        }

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

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

        .backinno {
           background-color: #f01e20;
        }

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

        .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;
        }

        .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');
        }

        .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)
        }

        .card-menu {
           align-items: flex-start;
           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;
           align-items: center;
        }

        .card-menu:hover {
           background: #00947F;
        }

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

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

        .card-menu a {
           color: #f01e20 !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: #00947F;
           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;
        }

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

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

        .imagen-circular-container {
           /* Define un tamaño fijo para el contenedor del círculo */
           width: 130px;
           height: 130px;
           /* Hace el contenedor un círculo */
           border-radius: 50%;
           /* Oculta las partes de la imagen que se salen del círculo */
           overflow: hidden;
           /* Centra el contenedor en la página */
           margin: 20px auto;
           padding: 0px;
        }



/* Formulario dentro del hero */
.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;
}

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

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

@media (max-width: 768px) {

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

  .hero-form h2 {
    font-size: 24px;
  }
  .hero_nn {
 border-bottom: solid 3px #fff;
  }

  .cifras-section {

border-top: solid 3px #fff;

  }
}














/* LINEA AMARILLA */

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

/* Sección imágenes */

.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;
}

/* imágenes */

.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;
}

/* cuando aparece */

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


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


/* Mini Cards  -- MiniC */

/* SECCIÓN */

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

/* ENCABEZADO */

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

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

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

/* CONTENEDOR */

.contenedorMiniC{
    max-width:1200px;
    margin:auto;
    padding:60px 20px;

    display:grid;
    grid-template-columns: repeat(4,1fr);
    gap:25px;

    color:white; /* TODO el texto dentro será blanco */
}

/* TARJETAS */

.cardMiniC{
    background:#f01e20;
    padding:30px;
    border-radius:15px;
    position:relative;

    box-shadow:0 8px 20px rgba(0,0,0,0.1);
}

/* ICONO */

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

/* TITULO */

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

/* TEXTO */

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

/* BOTON */

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

/* ANIMACIÓN SOLO PRIMER BLOQUE */

.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);
}

/* RESPONSIVE */

@media(max-width:900px){
.contenedorMiniC{
    grid-template-columns: repeat(2,1fr);
}
}

@media(max-width:500px){
.contenedorMiniC{
  grid-template-columns: 1fr;
}
}






/* SECCIÓN CON IMAGEN FULLSCREEN */

.formularioInfo{
width:100%;
min-height:100vh;

 
background-image:url('./../img/back.webp'); /* coloca aquí tu imagen */
background-size:cover;
background-position:center;
background-repeat:no-repeat;

display:flex;
align-items:center;
justify-content:center;

padding:60px 20px;
margin-bottom: 20px;
}

/* CONTENEDOR ROJO */

.contenedorInfo{
background:#f01e20;
max-width:900px;
width:100%;

padding:50px;

border-radius:25px;

color:white;
}

.formulario{
	/*background: white;*/
	
}

/* TITULO */

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

/* TEXTO INTRO */

.intro{
/*margin-bottom:35px;*/
line-height:1.6;
opacity:0.95;
}

/* ITEMS */

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

/* CHECK */

.check{
min-width:60px;
height:60px;

background:white;
color:#d32f2f;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

font-size:28px;
font-weight:bold;
}

/* TEXTO */

.texto{
line-height:1.6;
}

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

.texto li{
margin:5px 0;
}

/* LINEA DIVISORA */

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

/* RESPONSIVE */

@media(max-width:768px){

.contenedorInfo{
padding:35px;
}



.container iframe{
	
	height:auto;
}

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

.contenedorInfo h2{
font-size:28px;

}

}



/* ===============================
 LAYOUT HERO + SLIDER + FORM
=============================== */

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

/* IZQUIERDA 2/3 */
.hero-slider-col {
  width: 75%;
  display: flex;
  flex-direction: column;
}

/* HERO */
.hero_nn {
  width: 100%;
  height: 93vh;
  background: url('../img/Portada_nn.png') center/cover no-repeat;
}

/* SLIDER */
.cifras-section {
  flex: 1;
  background: linear-gradient(180deg, #f01e20, #a50003);
  padding: 20px;
}

/* DERECHA 1/3 */
.form-col {
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CAJA FORM */
.form-box {
  background: #f01e20;
  color: white;
  width: 90%;
  max-width: 360px;
  padding: 30px;
  border-radius: 20px;
}

/* FORM COMPACTO (SIN SCROLL) */
.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: #fbc02d;
  font-weight: bold;
  cursor: pointer;
  display: block;
  width: 100%;
}

/* ===============================
 MOBILE
=============================== */
@media (max-width: 768px) {

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

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

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

  .hero_nn {
    height: 21vh;
  }

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








        /* CSS para la imagen dentro del contenedor */
        .imagen-circular-container img {
           /* Asegura que la imagen ocupe el 100% del ancho del contenedor */
           width: 100%;
           height: 100%;
           /* Esto es CRUCIAL: Mantiene la relación de aspecto y cubre el área. 
               Funciona como un zoom y centra la "cara" de la imagen */
           object-fit: cover;

           /* Si la parte que quieres centrar no es el centro natural de la imagen, 
               puedes ajustarlo así (ej: 50% centro, 20% más arriba) */
           /* object-position: 50% 20%; */
        }

        /* Puedes añadir un sombreado para darle más profundidad */

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

        /* styles.css */

        .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;
           /* Alinea el texto a la izquierda */
        }

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

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

        .highlight {
           color: #FFC107;
           /* Amarillo destacando "Línea 1" */
        }

        .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;
        }

        /*MENÚ*/

        .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, 30, 32, 0.12) 0%,
                 rgba(240, 30, 32, 0.10) 30%,
                 rgba(240, 30, 32, 0.07) 55%,
                 rgba(240, 30, 32, 0.04) 75%,
                 rgba(240, 30, 32, 0.02) 90%,
                 rgba(240, 30, 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;
        }

        /* Aumentamos el tamaño del logo */
        .logo img {
           height: 100px;
           z-index: 1;
           position: absolute;
           top: 5%;
           right: 2%;
        }

        /* MENÚ HAMBURGUESA EN MÓVIL */
        .menu-toggle {
           display: none;
           /* Oculto en pantallas grandes */
           flex-direction: column;
           cursor: pointer;
        }

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

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

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

        /* Configuración de la grilla */
        .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);
        }

        /* Botón de Instagram */
        .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;
           /* Espacio entre logo y texto */
        }

        .instagram-button:hover {
           transform: scale(1.05);
        }
		
		/* RESPONSIVO: fdo rojo */
        @media (max-width: 768px) {
		
		.cifras-section {
           		   height:600px;
        }
		
		
		
		}
		

        /* RESPONSIVO: Ajusta columnas y títulos para pantallas pequeñas */
        @media (max-width: 768px) {
           .img-hero-banner {
              display: none;
           }

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

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

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

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

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

           .ig-grid-container {
              grid-template-columns: repeat(2, 1fr);
              /* 2 columnas en móviles */
           }

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

        /* RESPONSIVE - MENÚ HAMBURGUESA */
        @media (max-width: 768px) {
         .columnas {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    margin: auto;
}
.tarjeta{
   margin: 1rem;
}
           .hero-buttons {
              position: absolute;
              bottom: 20px;
              bottom: 40px;
              z-index: 10;
              display: flex;
              gap: 15px;
           }

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

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

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

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

           .menu {
              position: fixed;
              /* ¡CAMBIAR a fixed para que se quede arriba al hacer scroll! */
              top: 0;
              width: 100%;
              display: flex;
              justify-content: space-between;
              align-items: center;
              background: rgba(0, 0, 0, 0.9);
              /* Más oscuro para mejor contraste */
              padding: 5px 20px;
              border-bottom: solid 1px;
              z-index: 1000;
              /* ¡MUY ALTO! Para sobreponerse a todo */
              text-transform: uppercase;
           }

           .menu ul {
              margin-top: 20px;
              display: none;
              /* Ocultamos el menú */
              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;
              /* Mostramos el ícono */
           }

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

           .menu ul li a {
              font-size: 1rem;
           }
        }
		
		
/*  Estilos n2104  */




/* ===== MODULO DESTACADO ===== */
.features{
    margin-top:-40px;
    position:relative;
    z-index:2;

}

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

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

.feature{
    padding:45px;
    color:#fff;
	height: 150px;
}



.featureC1 {background:#f7b22f;}
.featureC2 {background:#d62a34;}
.featureC3 {background:#9e1926;}

/* INTRO */
.intro{
    text-align:center;
}

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

.evento{
    background:#fff;
    border:1px solid #ccc;
    padding:28px 24px 32px;
    text-align:center;
    min-height:330px;
    display:grid;
    grid-template-rows: 76px 36px 76px 34px 1fr;
    align-items:start;
}

.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:32px;
}

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

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


/* VIDEOS gilla x2 */
.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;
}


/* BOTÓN */
.btn{
    display:inline-block;
    background:#d62a34;
    color:#fff;
    padding:12px 25px;
    text-decoration:none;
    margin-top:15px;
    transition:.3s;
}
.btn:hover{
    background:#9e1926;
	color: #fff;
    transform:translateY(-2px);
}


/* SECCIONES */
/*section{padding:50px 0;}*/

/* ===== PROGRAMAS ===== */

.section-programas{
    background:#fff;
	padding:50px 0;
}

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

/* TARJETA */
.program-card{
    position:relative;
    background:#fff;
    padding:50px 20px 30px;
    border:1px solid #ccc;
    text-align:center;
    transition:.3s;
}

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

/* ICONO FLOTANTE */
.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;
}

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

/* TEXTO */
.program-card h3{
    margin-top:20px;
    margin-bottom:10px;
}

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

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

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

.txt_top1 {	margin-top: 1em;}
.txt_top {	margin-top: 3em;}
.txt_centro {text-align: center;}
.txt_bajo {margin-bottom:3em;}


.casa1 {background: #f7b22f;}
.casa2 {background: #d62a34;}
.casa3 {background: #9e1926;}

.txt_c1 {color: #f7b22f;}
.txt_c2 {color: #d62a34;}
.txt_c3 {color: #9e1926;}


.borde_c1 { border-left:4px solid #f7b22f;}
.borde_c2 {border-left:4px solid #d62a34;}
.borde_c3 {border-left:4px solid #9e1926;}

.floating-announcement {
  position: fixed;
  right: 0;
  top: 50% !important;
  transform: translateY(-50%) !important;
  bottom: auto !important;
  width: 285px !important;
  background-color: #ffffff;
  border-left: 5px solid #d62a34;
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.15);
  padding: 16px;
  z-index: 9999;
text-align: center;
  
}

.floating-announcement .tag {
	
 display: block;
  width: fit-content;
  margin: 0 auto 8px auto;
  font-size: 26px;
  font-weight: bold;
  color: #fff;
  background-color: #d62a34;
  padding: 4px 10px;

}

.floating-announcement h3 {
  font-size: 20px;
  margin: 8px 0;
  color: #333333;
}

.floating-announcement .date {
  font-size: 27px;
  color: #f7b22f;
  margin-bottom: 12px;
}

.floating-announcement .cta-button {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background-color: #0056a3;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  
}


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

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

.heroTR img {
  height: auto;
}

/* Imagen para móvil */
@media (max-width: 768px) {
  .heroTR {
    min-height: 0;
  }
}



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

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


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

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


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



/* RESPONSIVE */
@media(min-width:768px){

 .floating-announcement {
    
  top: auto;
    bottom: 20px ;
    transform: none;
    width: 220px;

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


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

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

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

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

/* Ajustes responsive finales: eventos y aviso flotante */
.evento > h3:first-child,
.evento > h3:nth-of-type(2) {
    overflow-wrap: anywhere;
}

@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(29px, 2.5vw, 38px);
        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: 28px;
        min-height: 88px;
    }

    .evento > h3:nth-of-type(2) {
        font-size: 28px;
        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: 24px 18px 28px;
    }

    .evento > h3:first-child,
    .evento > h3:nth-of-type(2) {
        min-height: 0;
        font-size: clamp(24px, 7vw, 31px);
        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;
    }
}

@media (min-width: 1024px) {
    .floating-announcement {
        top: 50% !important;
        right: 0;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        width: 285px !important;
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .floating-announcement {
        width: 235px !important;
        padding: 14px;
        border-left-width: 4px;
    }

    .floating-announcement .tag {
        font-size: 18px;
        line-height: 1.05;
        text-align: center;
    }

    .floating-announcement h3 {
        font-size: 18px;
    }

    .floating-announcement .date {
        font-size: 20px;
    }

    .floating-announcement .btn {
        padding: 10px 16px;
        font-size: 15px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .floating-announcement {
        top: auto !important;
        right: 16px;
        bottom: 16px !important;
        transform: none !important;
        width: 240px !important;
        padding: 14px;
    }

    .floating-announcement .tag {
        font-size: 20px;
    }

    .floating-announcement .date {
        font-size: 22px;
    }
}

@media (max-width: 767.98px) {
    .floating-announcement {
        left: 0;
        right: 0;
        top: auto !important;
        bottom: 0 !important;
        transform: none !important;
        width: 100% !important;
        padding: 10px 12px;
        border-left: 0;
        border-top: 5px solid #d62a34;
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 12px;
        align-items: center;
        text-align: left;
    }

    .floating-announcement .tag,
    .floating-announcement h3,
    .floating-announcement .date,
    .floating-announcement p {
        margin: 0;
    }

    .floating-announcement .tag {
        width: fit-content;
        font-size: 16px;
        padding: 3px 8px;
    }

    .floating-announcement h3 {
        font-size: 18px;
    }

    .floating-announcement .date {
        font-size: 18px;
    }

    .floating-announcement > p:not(.tag):not(.date) {
        font-size: 15px;
    }

    .floating-announcement .btn {
        grid-column: 2;
        grid-row: 1 / span 4;
        margin: 0;
        padding: 10px 14px;
        white-space: nowrap;
    }
}

/* Pulido visual general */
.features {
    margin-top: clamp(-34px, -3vw, -18px);
}

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

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

.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(247, 178, 47, .45);
    outline-offset: 4px;
}

.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);
}

.evento {
    background: rgba(255, 255, 255, 0.96);
}

.evento:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.10);
}

.floating-announcement {
    border-radius: 10px 0 0 10px;
    box-shadow: -8px 14px 36px rgba(0, 0, 0, 0.18);
}

.floating-announcement .tag {
    border-radius: 4px;
}

.floating-announcement .btn {
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(214, 42, 52, 0.24);
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 104px;
    }

    .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;
    }

    .section-programas {
        padding-top: 32px;
    }

    .evento {
        border-radius: 7px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    }

    .floating-announcement {
        width: calc(100% - 24px) !important;
        left: 12px;
        right: 12px;
        bottom: 10px !important;
        border: 1px solid rgba(214, 42, 52, .25);
        border-top: 5px solid #d62a34;
        border-radius: 10px;
        padding: 10px 12px;
        grid-template-columns: minmax(0, 1fr) auto;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    }

    .floating-announcement .tag {
        font-size: 14px;
        line-height: 1;
        margin-bottom: 4px;
    }

    .floating-announcement h3 {
        font-size: 17px;
        line-height: 1.05;
    }

    .floating-announcement .date {
        font-size: 16px;
        line-height: 1.15;
    }

    .floating-announcement > p:not(.tag):not(.date) {
        font-size: 14px;
        line-height: 1.1;
    }

    .floating-announcement .btn {
        align-self: center;
        padding: 11px 13px;
        font-size: 14px;
        border-radius: 7px;
    }
}

.info-strip {
    width: 100%;
    padding: 36px 20px 12px;
    background: transparent;
}

.info-strip-inner {
    max-width: 1080px;
    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(214, 42, 52, 0.22);
    border-left: 7px solid #d62a34;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
}

.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: #d62a34;
    border: 2px solid #d62a34;
    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(214, 42, 52, 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: #9e1926;
    border-color: #9e1926;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(158, 25, 38, 0.24);
}

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

.intro {
    max-width: 900px;
    padding-top: 30px;
}

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

.program-card,
.evento {
    border-color: rgba(0, 0, 0, 0.08);
}

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

.btn,
.info-strip-btn,
.floating-announcement .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%;
    }
}

/* Ajuste final de layout: callout alineado y aviso menos intrusivo */
.info-strip {
    padding-left: 0;
    padding-right: 0;
}

.info-strip-inner {
    width: min(100% - 32px, 1320px);
    max-width: 1320px;
}

@media (min-width: 1024px) {
    .floating-announcement {
        top: auto !important;
        right: 24px !important;
        bottom: 24px !important;
        transform: none !important;
        width: 260px !important;
        border-radius: 10px;
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .floating-announcement {
        width: 230px !important;
        right: 18px !important;
        bottom: 18px !important;
    }
}

@media (min-width: 1400px) {
    .floating-announcement {
        width: 270px !important;
    }
}

/* Alineación del callout con los tres bloques superiores */
.info-strip {
    padding-top: 28px;
}

.info-strip-inner {
    width: min(100% - 24px, 1200px);
    max-width: 1200px;
}

@media (min-width: 1200px) {
    .info-strip-inner {
        width: 1140px;
    }
}

@media (min-width: 1400px) {
    .info-strip-inner {
        width: 1320px;
        max-width: 1320px;
    }
}

/* Aviso fijo estilo sticky card: visible sin bloquear lectura */
@media (min-width: 1024px) {
    body {
        padding-bottom: 96px;
    }

    .floating-announcement {
        left: 50% !important;
        right: auto !important;
        bottom: 18px !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        width: min(100% - 48px, 720px) !important;
        padding: 12px 14px;
        display: grid;
        grid-template-columns: auto 1fr auto auto;
        gap: 14px;
        align-items: center;
        border-left: 0;
        border-top: 5px solid #d62a34;
        border-radius: 10px;
        text-align: left;
    }

    .floating-announcement .tag,
    .floating-announcement h3,
    .floating-announcement .date,
    .floating-announcement p {
        margin: 0;
    }

    .floating-announcement .tag {
        font-size: 17px;
        line-height: 1;
        padding: 8px 10px;
        text-align: center;
    }

    .floating-announcement h3 {
        font-size: 18px;
        line-height: 1.1;
    }

    .floating-announcement .date {
        font-size: 18px;
        line-height: 1.1;
        white-space: nowrap;
    }

    .floating-announcement > p:not(.tag):not(.date) {
        font-size: 15px;
        white-space: nowrap;
    }

    .floating-announcement .btn {
        margin: 0;
        padding: 10px 16px;
        white-space: nowrap;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .floating-announcement {
        width: min(100% - 40px, 640px) !important;
        grid-template-columns: 1fr auto;
    }

    .floating-announcement .tag,
    .floating-announcement h3,
    .floating-announcement .date,
    .floating-announcement > p:not(.tag):not(.date) {
        grid-column: 1;
    }

    .floating-announcement .btn {
        grid-column: 2;
        grid-row: 1 / span 4;
        align-self: center;
    }
}

/* Variante final: tarjeta fija en esquina para escritorio */
@media (min-width: 1024px) {
    body {
        padding-bottom: 0;
    }

    .floating-announcement {
        left: auto !important;
        right: 18px !important;
        bottom: 18px !important;
        top: auto !important;
        transform: none !important;
        width: 292px !important;
        padding: 0;
        display: block;
        overflow: visible;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(214, 42, 52, 0.18);
        border-left: 6px solid #d62a34;
        border-top: 0;
        border-radius: 12px;
        text-align: center;
        box-shadow: -12px 18px 44px rgba(0, 0, 0, 0.18);
        animation: announcementIn .28s ease-out;
    }

    .floating-announcement .tag {
        display: block;
        width: auto;
        margin: 14px 14px 10px;
        padding: 10px 12px;
        border-radius: 7px;
        font-size: 19px;
        line-height: 1.08;
    }

    .floating-announcement h3 {
        margin: 0 18px 8px;
        font-size: 21px;
        line-height: 1.12;
        color: #2b2b2b;
    }

    .floating-announcement .date {
        margin: 0 18px 10px;
        font-size: 23px;
        line-height: 1.1;
        white-space: normal;
    }

    .floating-announcement > p:not(.tag):not(.date) {
        margin: 0 18px 16px;
        font-size: 17px;
        white-space: normal;
    }

    .floating-announcement .btn {
        display: inline-flex;
        margin: 0 18px 18px;
        padding: 11px 22px;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        white-space: nowrap;
        position: relative;
        z-index: 2;
    }
}

@media (min-width: 1024px) and (max-width: 1299px) {
    .floating-announcement {
        width: 260px !important;
        right: 14px !important;
        bottom: 14px !important;
    }

    .floating-announcement .tag {
        font-size: 17px;
    }

    .floating-announcement h3 {
        font-size: 19px;
    }

    .floating-announcement .date {
        font-size: 20px;
    }
}

@keyframes announcementIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sideTabPulse {
    0%, 100% {
        box-shadow: 0 14px 30px rgba(214, 42, 52, 0.28);
    }
    50% {
        box-shadow: 0 14px 34px rgba(214, 42, 52, 0.46);
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-announcement {
        animation: none;
    }
}

/* Controles del aviso y modal móvil */
.announcement-close {
    position: absolute;
    top: 50%;
    left: -18px;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    border: 0;
    background: #d62a34;
    color: #ffffff;
    border-radius: 50%;
    padding: 0;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(214, 42, 52, 0.28);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close span {
    display: none;
}

.announcement-close b {
    display: inline-block;
    transform: none;
    font-size: 26px;
    line-height: 1;
}

.announcement-close:hover,
.announcement-close:focus {
    background: #9e1926;
    color: #ffffff;
    transform: translateY(-50%) scale(1.06);
}

.floating-announcement {
    transition: transform .34s cubic-bezier(.2, .8, .2, 1), opacity .2s ease, box-shadow .2s ease;
}

.floating-announcement.is-minimized {
    transform: translateX(calc(100% + 18px)) !important;
}

.floating-announcement.is-minimized .announcement-close {
    pointer-events: auto;
    left: -116px;
    width: 116px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px 0 0 999px;
    background: #d62a34;
    animation: sideTabPulse 2.8s ease-in-out infinite;
}

.floating-announcement.is-minimized .announcement-close span {
    display: inline-block;
    transform: none;
    font-size: 12px;
    font-weight: 800;
}

.floating-announcement.is-minimized .announcement-close b {
    transform: none;
    font-size: 20px;
}

@media (min-width: 1024px) {
    .floating-announcement {
        padding-top: 28px;
        animation: announcementIn .28s ease-out;
    }
}

@media (max-width: 767.98px) {
    body.modal-open {
        overflow: hidden;
    }

    body {
        padding-bottom: 118px;
    }

    .floating-announcement {
        width: calc(100% - 24px) !important;
        left: 17px;
        right: 12px;
        bottom: 12px !important;
        padding: 14px 16px 15px 25px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 22px;
        align-items: center;
        border: 1px solid rgba(214, 42, 52, 0.16);
        border-left: 5px solid #d62a34;
        border-radius: 12px;
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
        transition: transform .34s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
        will-change: transform;
    }

    .announcement-close {
        position: absolute;
        top: 50%;
        left: -18px;
        right: auto;
        width: 36px;
        height: 36px;
        padding: 0;
        transform: translateY(-50%);
        background: #d62a34;
        color: #ffffff;
        border-radius: 50%;
        box-shadow: 0 10px 22px rgba(214, 42, 52, 0.30);
        writing-mode: horizontal-tb;
        transition: transform .42s cubic-bezier(.22, 1, .36, 1), background .2s ease, box-shadow .2s ease;
    }

    .announcement-close span {
        display: none;
    }

    .announcement-close b {
        font-size: 24px;
        transform: none;
    }

    .floating-announcement .tag {
        display: none;
    }

    .floating-announcement h3 {
        grid-column: 1;
        font-size: 16px;
        line-height: 1.05;
        margin: 0;
        text-align: left;
    }

    .floating-announcement .date {
        grid-column: 1;
        font-size: 14px;
        line-height: 1;
        margin: 3px 0 0;
        color: #f7b22f;
    }

    .floating-announcement > p:not(.tag):not(.date) {
        grid-column: 1;
        font-size: 12px;
        line-height: 1;
        margin: 3px 0 0;
    }

    .floating-announcement .btn {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
        margin: 0;
        padding: 12px 15px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 8px;
    }

    .floating-announcement.is-minimized {
        width: auto !important;
        left: auto;
        right: 14px;
        bottom: 14px !important;
        padding: 0;
        display: block;
        border: 0;
        background: transparent;
        box-shadow: none;
        transform: translateX(calc(100% + 12px)) !important;
        opacity: 1;
    }

    .floating-announcement.is-minimized .tag,
    .floating-announcement.is-minimized h3,
    .floating-announcement.is-minimized .date,
    .floating-announcement.is-minimized p,
    .floating-announcement.is-minimized .btn {
        display: none;
    }

    .floating-announcement.is-minimized .announcement-close {
        position: absolute;
        left: -104px;
        top: 50%;
        width: 104px;
        height: 38px;
        transform: translateY(-50%);
        padding: 0;
        border-radius: 999px 0 0 999px;
        background: #d62a34;
        color: #ffffff;
        box-shadow: 0 14px 30px rgba(214, 42, 52, 0.36);
        animation: sideTabPulse 2.8s ease-in-out infinite;
        transition: transform .42s cubic-bezier(.22, 1, .36, 1), background .2s ease, box-shadow .2s ease;
    }

    .floating-announcement.is-minimized .announcement-close span {
        display: inline-block;
        font-size: 12px;
        transform: none;
    }

    .floating-announcement.is-minimized .announcement-close b {
        font-size: 18px;
    }
}

.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 #d62a34;
    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: #d62a34;
    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;
    }
}

/* Tarjetas de fechas limpias y separadas */
.evento {
    position: relative;
    overflow: visible;
    border: 1px solid rgba(28, 28, 28, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(24, 31, 39, 0.07);
    transition: transform .2s ease, box-shadow .2s ease;
}

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

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

.evento:nth-child(1)::before,
.evento:nth-child(4)::before,
.evento:nth-child(8)::before {
    background: #f7b22f;
}

.evento:nth-child(7)::before {
    background: #9e1926;
}

@media (max-width: 767.98px) {
    .evento {
        border: 1px solid rgba(28, 28, 28, 0.10);
        border-radius: 8px;
        box-shadow: 0 8px 18px rgba(24, 31, 39, 0.06);
        padding: 26px 18px 28px;
    }

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

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

/* Alineacion de tarjetas de programas */
.program-grid-bottom {
    align-items: stretch;
}

.program-card {
    display: grid;
    grid-template-rows: 3.1em 4.2em 92px 185px auto;
    height: 100%;
}

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

.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 (max-width: 767.98px) {
    .program-card {
        display: flex;
        flex-direction: column;
    }

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

    .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: #d62a34;
        border: 2px solid #ffffff;
        color: #ffffff;
        box-shadow: 0 8px 18px rgba(214, 42, 52, 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: #9e1926;
        color: #ffffff;
        transform: scale(1.04);
        box-shadow: 0 10px 22px rgba(158, 25, 38, 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;
    }
}
