:root {
	--body-font-family: 'Roboto';
	
  /* Colores principales */
  --primary: #7EBC42;
  --primary-dark: #6AA73A;
  --accent-dark: #003876;
  --accent-light: #3B4B7A;

  /* Texto y fondo */
  --text: #0F172A;
  --muted: #475569;
  --bg: #F5F7FB;
  --bg-soft: #FFFFFF;

  /* Glass y sombras */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-blur: 12px;
  --glass-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);

  /* Extras */
  --radius: 16px;
  --shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
  --menu-height: 100px;

  --header-height-normal: 146px;
  --banner-height: 50px;
  --breadcrumb-height: 45px;
  
	--sfm-azul: #002e6d;

	/* ===== Ajustes según altura del footer ===== */
	--footer-height: 80px;
	
	--wx-widget-bubble-right: 20px;	
	--wx-widget-bubble-bottom: 10px;
	
	--max-width: 1325px;
}
  
@media (max-width: 900px) {
	:root {	
		--menu-height: 60px;
		--footer-height: 0px;
	}
}  

.app-header {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	height: var(--menu-height);
	width: 100%;
	max-width: var(--max-width);
	
	z-index: 1000;
		
	background: var(--sfm-azul);
	padding: 0.6rem 1.5rem 0.6rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
}

.app-main {
	margin-top: calc(var(--menu-height) + 10px);
	margin-bottom: calc(var(--footer-height) + 10px);
	flex: 1;
	position: relative;
	z-index: 1;
//	padding: 2rem;
}

.container-general {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}


.header-top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	width: 100%;
	height: 100%;
}

.header-left { 
	display: flex;
	align-items: center;
	height: 100%;
	overflow: hidden;
}

.brand { 
    height: 80px;
    width: auto;
    display: flex;
    overflow: hidden;
    align-items: center;	
}

.brand img {
    display: block;
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

.header-menu {
	display: flex;
	justify-content: center;
}

.header-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.8rem;
}

.header-breadcrumbs {
    position: absolute;
    display: flex;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
}


.app-header nav ul.mod-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.8rem, 1.5vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-header nav ul.mod-menu>li>a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.85rem, 1vw, 1rem);
  transition: color 0.2s ease;
}

.app-header nav ul.mod-menu>li>a:hover {
  color: #7EBC42;
}


/* El contenedor central apila menú y breadcrumb */
.header-menu-container {
	display: flex;
    flex-direction: column;
    justify-content: space-between; /* Empuja el menú arriba y breadcrumb abajo */
    align-items: center; /* Centrado horizontal */
    padding: 5px 0 0 0; /* Un pequeño respiro superior */
}

/* Reducimos un poco el tamaño del menú para que quepa el breadcrumb */
.app-header nav ul.mod-menu > li > a {
    font-size: 1.2rem;
    padding: 5px 10px;
}

/* Boton de menu */

.icon-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.icon-btn .bar {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animación al abrir */
#menuBtn[aria-expanded="true"] .icon-btn .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menuBtn[aria-expanded="true"] .icon-btn .bar:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

#menuBtn[aria-expanded="true"] .icon-btn .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}



#menuBtn {
  order: 3;
  appearance: none;
  border: none;
  background: transparent;
  color: #003876;
  border-radius: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}

#menuBtn:hover {
  background: transparent;
  transform: none;
}



/* ===== BOTÓN VOLVER ARRIBA ===== */
#btnVolverArriba {
  position: fixed;
  bottom: calc(1.5rem + var(--footer-height, 70px));
  /* 🔹 se adapta a la altura del footer */
  right: 1.5rem;
  z-index: 900;
  /* 🔹 menor que el header y modales, pero suficiente */
  background: #003876;
  /* Azul corporativo */
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* 🔹 Hover */
#btnVolverArriba:hover {
  background: #7ebc42;
  /* Verde corporativo */
  color: #1d2c5b;
  transform: scale(1.1);
}

/* 🔹 Visible cuando el usuario hace scroll */
#btnVolverArriba.visible {
  opacity: 1;
  pointer-events: auto;
}



/* Selector de idioma */

.mod-languages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
}

.mod-languages ul.mod-languages__list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mod-languages ul.mod-languages__list li {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 !important;
  padding: 0 !important;
}

.mod-languages ul.mod-languages__list a {
  color: #fff !important;
  text-decoration: none;
  padding: 2px 6px;
  transition: color 0.25s ease;
  letter-spacing: 0.3px;
  font-weight: 600;
  padding: 0 2px !important;
  display: inline-block;
}

.mod-languages ul.mod-languages__list a:hover {
  color: #62A60E !important;
}

.mod-languages ul.mod-languages__list li:not(:last-child)::after {
  content: "|";
  color: rgb(255, 255, 255);
  margin: 0 4px 0 4px 0px;
  font-weight: 400;
  pointer-events: none;
}

.mod-languages ul li.lang-active {
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  position: relative;
}

.mod-languages ul li.lang-active a {
  font-weight: 700 !important;
  position: relative;
  z-index: 1;
}

.mod-languages ul li.lang-active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #62A60E;
  border-radius: 1px;
  transform: none;
  top: auto;
}


/* Breadcrumb */

.header-breadcrumbs .breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.header-breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

/* Separador visual entre items del breadcrumb */
.header-breadcrumbs .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--primary);
    padding-right: 8px;
}



/* Menu */

.drawer {
	position: fixed;
	top: calc(var(--menu-height) + 10px);
	/* altura del header */
	left: 50%;
	transform: translateX(-50%) translateY(-20px);
	width: 100%;
	max-width: 1180px;

	/* 🔹 Altura automática solo según contenido */
	height: auto;
	max-height: 80vh;
	/* límite visual, con scroll si excede */
	overflow-y: auto;
	overflow-x: hidden;

	background: rgba(29, 44, 91, 0.5);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: 16px;
	/* padding: 2rem 2.5rem; */
	margin: 0 auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.35s ease, opacity 0.3s ease;
	z-index: 1000;
}

.drawer.is-open {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
	pointer-events: auto;
}

/* === Menú principal en grid === */
.drawer nav ul.mod-menu {
	display: grid !important;
	grid-template-columns: 0.7fr 0.7fr repeat(7, 1fr);
	gap: 1.5rem 2rem;
	padding: 1rem 2rem;
	align-items: start;
}

.drawer nav ul.mod-menu>li>a {
	font-size: 1.05rem;
	font-weight: 700;
	text-align: center;
	color: #fff;
	margin-bottom: 0.6rem;
	padding: 0.6rem 0.8rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	transition: background 0.25s ease, color 0.25s ease;
	display: block;
}

.drawer nav ul.mod-menu>li>a:hover {
	background: rgba(126, 188, 66, 0.25);
	color: var(--primary);
}

/* === Submenús === */
.drawer nav ul.mod-menu ul {
list-style: none;
padding-left: 0;
margin: 0;
}

.drawer nav ul.mod-menu li ul li a {
display: block;
color: rgba(255, 255, 255, 0.9);
font-size: 0.95rem;
padding: 0.25rem 0;
transition: color 0.25s ease;
}

.drawer nav ul.mod-menu li ul li a:hover {
color: #7ebc42;
}

.drawer::-webkit-scrollbar {
width: 8px;
}

.drawer::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.25);
border-radius: 6px;
}



.drawer nav ul.mod-menu {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  grid-template-rows: auto auto;
  grid-template-areas:
    "horarios tarifas guia atencion"
    "comunicacion proyectos perfil sobre" !important;
  justify-items: stretch;
  align-items: start;
  margin: 0 auto !important;
  box-sizing: border-box;
  max-width: none !important;
  padding: 1.5rem 2rem !important;
  gap: 0.8rem !important;
}

/* === BLOQUES === */
.drawer nav ul.mod-menu>li.nav-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: rgba(29, 44, 91, 0.95);
  border-radius: 10px;
  padding: 1rem 1.2rem !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  min-height: 140px !important;
  align-self: stretch;
  border: 1px solid rgba(126, 188, 66, 0.3);
}

/* Hover */
.drawer nav ul.mod-menu>li.nav-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* === SEPARADORES === */
.drawer nav ul.mod-menu>li>.mod-menu__separator.separator {
  background: rgba(255, 255, 255, 0.12) !important;
  border-radius: 6px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem !important;
  color: #fff !important;
  margin-bottom: 0.5rem !important;
  display: block;
}

/* === SUBMENÚS === */
.drawer nav ul.mod-menu>li>ul.mod-menu__sub {
  display: flex;
  flex-direction: column;
  gap: 0.2rem !important;
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer nav ul.mod-menu>li>ul.mod-menu__sub a {
  color: #fff !important;
  font-size: 0.8rem !important;
  font-weight: 500;
  text-decoration: none;
  padding: 0.2rem 0.3rem 0.2rem 0.5rem !important;
  transition: all 0.2s ease;
  border-radius: 3px;
  line-height: 1.3;
}

.drawer nav ul.mod-menu>li>ul.mod-menu__sub a:hover {
  color: #7EBC42 !important;
  background: rgba(126, 188, 66, 0.08) !important;
  transform: translateX(1px);
}


/* === ÁREAS (versión español) === */
html[lang="es-es"] .drawer nav ul.mod-menu>li.item-192 {
  grid-area: horarios;
}

/* Horarios */
html[lang="es-es"] .drawer nav ul.mod-menu>li.item-188 {
  grid-area: tarifas;
}

/* Tarifas */
html[lang="es-es"] .drawer nav ul.mod-menu>li.item-196 {
  grid-area: guia;
}

/* Guía del Usuario */
html[lang="es-es"] .drawer nav ul.mod-menu>li.item-199 {
  grid-area: atencion;
}

/* Atención al usuario */
html[lang="es-es"] .drawer nav ul.mod-menu>li.item-205 {
  grid-area: comunicacion;
}

/* Comunicación */
html[lang="es-es"] .drawer nav ul.mod-menu>li.item-209 {
  grid-area: proyectos;
}

/* Proyectos */
html[lang="es-es"] .drawer nav ul.mod-menu>li.item-212 {
  grid-area: perfil;
}

/* Contratación */
html[lang="es-es"] .drawer nav ul.mod-menu>li.item-215 {
  grid-area: sobre;
}


/* === OCULTAR INICIO === */
.drawer nav ul.mod-menu>li.item-190 {
	display: none !important;
	visibility: hidden !important;
}

.drawer nav ul.mod-menu>li.item-102 {
	display: none !important;
	visibility: hidden !important;
}

.drawer nav ul.mod-menu>li.item-101 {
	display: none !important;
	visibility: hidden !important;
}


/* Menu lateral oculto en desktop */

.lang-drawer {
  display: none;
}




.titulo-seccion {
	background: var(--sfm-azul);
  color: #ffffff;
  border: 2px solid #1d2c5b;
  border-radius: 12px 12px 0 0;
  /* Solo redondeo arriba */
  border-bottom: none;
  /* Sin borde inferior para integrarse */
  padding: 1.2rem 1.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: left;
  display: flex;
  justify-content: left;
  /* align-items: center; */
  
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  
  width: 100%;
	max-width: var(--max-width);
  box-sizing: border-box;
  box-shadow: 0 4px 10px rgba(29, 44, 91, 0.63);
}


// Chat de IA
	
.wx-widget-bubble.wx-elements--right {
	right: var(--wx-widget-bubble-right) !important;
	bottom: var(--wx-widget-bubble-bottom) !important;
}


.estacion-item {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.estacion-item:hover {
  border-color: #1d2c5b;
  box-shadow: 0 2px 8px rgba(29, 44, 91, 0.1);
}

.mapa-preview {
  width: 100%;
  height: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  margin-bottom: 1rem;
  opacity: 0;
  visibility: hidden;
  position: relative;
  background: #f8f9fa;
}

.mapa-preview.active {
  height: 380px;   /* altura fija para Leaflet */
  opacity: 1;
  visibility: visible;
}



.map-container {
  position: relative;
  width: 100%;
  height: 450px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

#map {
  width: 100%;
  height: 100%;
}

.map-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 15px;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Estilos específicos para Leaflet (OpenStreetMap) */
.leaflet-container {
  background: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
  margin: 12px 15px;
  font-size: 14px;
  line-height: 1.4;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #666;
  padding: 6px 8px 0 0;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #333;
}



.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}






@media (max-width: 1024px) {
	.app-header {
		width: 100%;
		padding: 0.5rem 0.5rem 0.5rem;
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}
	
	.header-top {
		grid-template-columns: 1fr auto 0.8fr;
	}
}

@media (max-width: 900px) {
	.app-header {
		width: 100%;
		padding: 0.5rem 0.5rem 0.5rem;
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
	}
	
	.header-top {
		grid-template-columns: 1fr 1fr;
	}
	
	.app-main {
		margin-top: calc(var(--menu-height) + 10px);
		margin-bottom: calc(var(--footer-height) + 10px);
		padding: 0;
	}
	
	
	.container-general {
		padding: 0;
	}
	
	.mb-3 {
		width: 100%;
	}
	
	
	.app-header .header-menu {
		display: none !important;
	}
	
	.app-header .header-actions .buscador {
		display: none !important;
	}
	
	.app-header .header-actions .lang-slot {
		display: none !important;
	}


	.brand img {
		height: auto;
		max-width: 100%;
	}
	
	
	
	
	.drawer {
		position: fixed;
		width: 100%;
		z-index: 200;
	}


  .drawer nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
	
	
  .drawer nav ul.mod-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
    padding: 0 !important;
    margin: 0 !important;

    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
    grid-template-rows: auto !important;
  }

  .drawer nav ul.mod-menu>li.nav-item {
    width: 100% !important;
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    grid-column: auto !important;
    grid-row: auto !important;
    grid-area: auto !important;
  }



  /* === SEPARADORES COMO ELEMENTOS APILADOS === */
  .drawer nav ul.mod-menu>li>.mod-menu__separator {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 30, 70, 0.9) !important;
    border: 1px solid rgba(126, 188, 66, 0.3) !important;
    border-radius: 10px !important;
    color: #fff !important;
    padding: 1rem 1.2rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 0 !important;
    width: 100% !important;
    text-decoration: none !important;
  }

  .drawer nav ul.mod-menu>li>.mod-menu__separator:hover {
    background: rgba(18, 30, 70, 0.95) !important;
    transform: translateY(-2px);
    border-color: rgba(126, 188, 66, 0.5) !important;
  }

  /* Flechas desplegables */
  .drawer nav ul.mod-menu>li>.mod-menu__separator::after {
    content: "⌄";
    font-size: 1rem;
    opacity: 0.8;
    transition: transform 0.25s ease;
    margin-left: 0.5rem;
  }

  .drawer nav ul.mod-menu li.open>.mod-menu__separator::after {
    transform: rotate(180deg);
  }

  /* === SUBMENÚS APILADOS === */
  .drawer nav ul.mod-menu>li>ul.mod-menu__sub {
    display: none !important;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0.5rem 0 0.5rem 0.8rem !important;
    padding: 0 !important;
    list-style: none;
    border-left: 2px solid rgba(126, 188, 66, 0.3);
    padding-left: 0.8rem !important;
  }

  .drawer nav ul.mod-menu li.open>ul.mod-menu__sub {
    display: flex !important;
  }

  .drawer nav ul.mod-menu>li>ul.mod-menu__sub a {
    display: block;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
  }

  .drawer nav ul.mod-menu>li>ul.mod-menu__sub a:hover {
    color: #7EBC42 !important;
    background: rgba(126, 188, 66, 0.1);
    transform: translateX(5px);
  }

  /* === Scroll personalizado === */
  .drawer {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(126, 188, 66, 0.6) rgba(255, 255, 255, 0.08);
  }

  .drawer::-webkit-scrollbar {
    width: 6px;
  }

  .drawer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
  }

  .drawer::-webkit-scrollbar-thumb {
    background: rgba(126, 188, 66, 0.6);
    border-radius: 3px;
  }

  .drawer::-webkit-scrollbar-thumb:hover {
    background: rgba(126, 188, 66, 0.8);
  }

	
	
	
  /* Muestra idioma dentro del menú */
  .lang-drawer {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }
  
	.wx-widget-bubble.wx-elements--right {
		right: 15px !important;
		bottom: 20px;
	} 
	
  .map-container {
    height: 350px;
  }

  .map-overlay {
    bottom: 10px;
    left: 10px;
    padding: 8px 12px;
    font-size: 14px;
  }
}



/* --- Carrusel de imágenes (ppt-carrusel) --- */
.ppt-carrusel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 1rem;
  overflow: hidden;
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); */
}

.ppt-wrapper {
  width: 100%;
  max-width: 800px;
  position: relative;
}

.ppt-wrapper img {
  display: none;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: opacity 0.5s ease, transform 0.3s ease;
}

.ppt-wrapper img.active {
  display: block;
  opacity: 1;
  transform: scale(1.02);
}

/* --- Botones de navegación --- */
.ppt-prev,
.ppt-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent-dark);
  color: white;
  border: none;
  font-size: 1.8rem;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ppt-prev:hover,
.ppt-next:hover {
  background: #7ebc42;
  transform: translateY(-50%) scale(1.05);
}

.ppt-prev {
  left: 10px;
}

.ppt-next {
  right: 10px;
}

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

  .ppt-prev,
  .ppt-next {
    font-size: 1.4rem;
    padding: 0.3rem 0.8rem;
  }
}



/* === CONTENEDOR DE LA GALERÍA === */
.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  justify-items: center;
  border-radius: 16px;
}

/* === TARJETAS DE IMAGEN === */
.galeria-fotos img {
  width: 100%;
  max-width: 220px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;

  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: zoom-in;
}

/* Hover suave */
.galeria-fotos img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .galeria-fotos img {
    height: 120px;
    max-width: 100%;
  }
}


#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  transition: transform .3s;
}

#lightbox img:hover {
  transform: scale(1.02);
}
#lightbox-overlay div {
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  transition: transform .2s;
}

#lightbox-overlay div:hover {
  transform: scale(1.15);
}

.video-lightbox-inner {
	padding-top: 150px !important;
}

.red-social {
	color: black !important;
}


/* Videos via verde */

.btn-preview-video {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: block;
}

.video-thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-preview-video:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-icon {
    color: white;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding-left: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-preview-video:hover .play-icon {
    transform: scale(1.1);
    background: var(--sfm-azul);
}


/* 1. Forzar una altura fija estricta en el área del carrusel */
.jtcs_item_wrapper,
.jtcs_item_wrapper .owl-stage-outer,
.jtcs_item_wrapper .owl-item,
.jtcs_item_wrapper .slide,
.jtcs_item_wrapper .jt-inner {
    height: 395px !important;
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 2. Corregir el contenedor de la imagen eliminando márgenes inline */
.jtcs_item_wrapper .jt-imagecover {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
}

/* 3. Ajustar la imagen para que cubra todo el alto sin deformarse */
.jtcs_item_wrapper .jtcs-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Recorte inteligente */
    object-position: center !important; /* Centra el reloj de los horarios */
    display: block !important;
}

/* 4. Fijar la barra gris con el título exactamente abajo del todo */
.jtcs_item_wrapper .jt-inner h5 {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 15px 20px !important;
    box-sizing: border-box !important;
    z-index: 999 !important; /* Se superpone sobre la imagen */
    background-color: rgba(56, 56, 56, 0.85) !important; /* Gris oscuro SFM */
}

/* 5. Estilo del texto del título */
.jtcs_item_wrapper .jt-title {
    color: #ffffff !important;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.15rem !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    display: block !important;
    white-space: normal !important;
}

/* Ocultar elementos sobrantes */
.jtcs_item_wrapper .hover-icons {
    display: none !important;
}

