/* Estilos para el Paragraph Bloque Destacado */
.highlighted {
  border-left: 4px solid #004083;
	background: rgba(160, 207, 255, 0.20);
  padding: 1.3rem;
}

.highlighted p {  
  color: #1D1D1B;
  font-size: 1rem;  
  margin-bottom: 0; /* Para evitar espacio extra al final */
}

/* =========================================
   Paragraph: Imagen con Pie (bloque_foto_pie)
   ========================================= */

.bloque-foto-pie {
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .bloque-foto-pie {
    width: var(--bloque-foto-pie-ancho, 100%);
    max-width: 100%;
  }
}

/* Aseguramos que la imagen ocupe el ancho total y sea responsive */
.bloque-foto-pie__imagen img {
  width: 100%;
  height: auto;
  display: block;
}

/* Estilos para el texto y la línea verde inferior */
.bloque-foto-pie__epigrafe {
  color: #2C5F4E; /* Tu color verde corporativo (ajústalo si es necesario) */
  font-size: 0.9rem; /* Un tamaño sutil para el epígrafe */
  padding-bottom: 0.5rem; /* Espaciado entre el texto y la línea */
  border-bottom: 1px solid #2C5F4E; /* La línea debajo del texto */
}

/* Si el editor mete un <p> sin querer dentro del campo de texto, le quitamos el margen inferior para que no rompa la caja */
.bloque-foto-pie__epigrafe p {
  margin-bottom: 0;
}

/* =========================================
   Paragraph: Bloque alert verde
   ========================================= */
.bloque-alert-verde{
  border-radius: 8px;
  padding:32px;
  display: block;
  background-color: #afd8c5;
}

.bloque-alert-verde a,
.bloque-alert-verde a:hover,
.bloque-alert-verde a:focus,
.bloque-alert-verde a:active {
	color: var(--green_01);
	text-decoration: underline;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
	transition: all 0.2s ease-in-out;
}

.event-sidebar-content .bloque-alert-verde {
	background-color: #D1E7DD;
}

.event-sidebar-content .bloque-alert-verde > div {
	color: #1D1D1B;
}

.event-sidebar-content .bloque-alert-verde strong {
	font-size: 1.5rem;
	font-weight: 600;
	font-family: 'Hermann';
}

/* =========================================
   Paragraph: Bloque info util (para pagina de eventos)
   ========================================= */
.info-util-wrapper {
  background-color: #f4f4f4;
  padding: 2rem;
  font-family: sans-serif;
}
.info-util-main-title {
  color: #1a5632; /* Verde oscuro del diseño */
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.item-info-util {
  margin-bottom: 2rem;
}
.item-info-title {
  color: #1a5632;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.item-info-text {
  color: #333;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.item-info-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.item-info-row {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-bottom: 1px solid #eaeaea;
}
.item-info-row:last-child {
  border-bottom: none;
}
.item-info-row svg {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  color: #333;
  flex-shrink: 0;
  margin-top: 2px;
}
.item-info-value {
  color: #444;
  font-size: 1rem;
}




/* =========================================
   ASIDE CTAs (Contenedor y Botones)
   ========================================= */

.cta-aside-btn {
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: normal; /* Permite que el texto baje a dos líneas si la pantalla es muy angosta */
}

/* ESTILO BOTÓN 1 (Principal - Verde Oscuro) */
.cta-btn-wrapper:first-child .cta-aside-btn {
  background-color: #205C40;
  color: #ffffff;
  border: 1px solid #205C40;
}
.cta-btn-wrapper:first-child .cta-aside-btn:hover {
  background-color: #15402c;
  border-color: #15402c;
  color: #ffffff;
}

/* ESTILO BOTÓN 2 (Secundario - Claro con borde verde) */
.cta-btn-wrapper:nth-child(2) .cta-aside-btn {
  background-color: transparent;
  color: #205C40;
  border: 1px solid #205C40;
}
.cta-btn-wrapper:nth-child(2) .cta-aside-btn:hover {
  background-color: #e9ecef;
  color: #205C40;
}

.hover-text-success {
  transition: color 0.2s ease;
}
.hover-text-success:hover {
  color: #205C40 !important; /* Tu verde institucional */
}

/* =========================================
   LISTA DE NORMATIVAS
   ========================================= */

.normativa-link {
  color: #205C40;
  text-decoration: underline;
  text-decoration-color: #205C40;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: all 0.2s ease-in-out;
  line-height: 1.4;
  word-break: break-word; /* Previene que textos largos rompan la tarjeta en mobile */
}

.normativa-link:hover {
  color: #15402c;
  text-decoration-color: #15402c;
  /* text-decoration-thickness: 2px; */
}


/* =========================================
   ACORDEÓN PERSONALIZADO (SAN ISIDRO)
   ========================================= */

/* Bordes del acordeón */
.accordion-san-isidro .accordion-item {
  border: 1px solid #dee2e6;
}

/* Estado Normal (Cerrado) */
.accordion-san-isidro .accordion-button {
  color: #333333;
  background-color: #ffffff;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: none !important; /* Quitamos la sombra fea por defecto */
}

/* Hover sutil cuando está cerrado */
.accordion-san-isidro .accordion-button.collapsed:hover {
  background-color: #f8f9fa;
}

/* ESTADO ACTIVO (ABIERTO) - Fondo verde y texto blanco */
.accordion-san-isidro .accordion-button:not(.collapsed) {
  background-color: #205C40;
  color: #ffffff;
}

/* Magia CSS: Cambiar el color de la flecha a blanco cuando está abierto.
  Como Bootstrap usa un SVG codificado (negro por defecto), 
  usamos filtros CSS para invertirlo a blanco puro sin tener que codificar otro SVG. 
*/
.accordion-san-isidro .accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

/* Accesibilidad WCAG (Foco de teclado) */
.accordion-san-isidro .accordion-button:focus {
  border-color: #205C40;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(32, 92, 64, 0.25) !important;
}

/* Asegurar que los links dentro del body del acordeón sigan tu diseño verde */
.accordion-san-isidro .accordion-body a {
  color: #205C40;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.accordion-san-isidro .accordion-body a:hover {
  color: #15402c;
  text-decoration-thickness: 2px;
}

/* =========================================
   BLOQUE DE INSCRIPCIÓN A CAPACITACIONES
   ========================================= */

/* Eliminamos la línea divisoria del último elemento de la lista para que quede limpio */
.tramite-inscripcion-item:last-child {
  margin-bottom: 2rem;
}

/* Botón "Inscribite": fondo gris claro con borde y texto verde institucional.
   Sobrescribimos las variables de Bootstrap (btn-secondary / btn-success) y
   además forzamos con !important para ganarle al orden de carga de Bootstrap. */
.cta-inscripcion-btn {
  --bs-btn-bg: #ECECEC;
  --bs-btn-border-color: #205C40;
  --bs-btn-color: #205C40;
  --bs-btn-hover-bg: #205C40;
  --bs-btn-hover-border-color: #205C40;
  --bs-btn-hover-color: #ffffff;
  --bs-btn-active-bg: #205C40;
  --bs-btn-active-border-color: #205C40;
  --bs-btn-active-color: #ffffff;

  background-color: #ECECEC !important;
  border-color: #205C40 !important;
  color: #205C40 !important;
}

.cta-inscripcion-btn:hover,
.cta-inscripcion-btn:focus,
.cta-inscripcion-btn:active {
  background-color: #205C40 !important;
  border-color: #205C40 !important;
  color: #ffffff !important;
}

.cta-inscripcion-btn-filled {
	background-color: var(--green_01) !important;
  border-color: var(--green_01) !important;
	color: #fff !important;
}

.cta-inscripcion-btn-filled:hover,
.cta-inscripcion-btn-filled:focus,
.cta-inscripcion-btn-filled:active {
  background-color: var(--green_02) !important;
  border-color: var(--green_02) !important;
}

/* =========================================
   BOTÓN CON FLECHA (SEGUIMIENTO)
   ========================================= */

.btn-seguimiento {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem; /* Separación entre el texto y la flecha */
  color: #333333;
  background-color: transparent;
  border: 1px solid #333333;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-seguimiento:hover {
  background-color: #f8f9fa; /* Fondo gris súper claro al pasar el mouse */
  color: #000000;
}

/* Magia: Inyectamos la flecha de Material Symbols automáticamente */
.btn-seguimiento::after {
  content: "arrow_forward"; /* Ligadura oficial de Google para la flecha a la derecha */
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 1.25rem; /* Un pelín más grande que el texto para que destaque */
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}


/* =========================================
   STEPPER
   ========================================= */

/* La línea vertical que conecta los pasos */
/* ELIMINAR el border del OL (ya no lo necesitamos) */
.tramite-stepper-wrapper ol {
  border-left: none;
}

/* 1. La línea vertical ahora vive en cada paso (LI) */
.stepper-item {
  border-left: 2px solid #1a5632;
  padding-left: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

/* 2. Ocultamos la línea en el último paso. 
   Usamos 'transparent' en vez de '0' para que el ancho no cambie 
   y el círculo verde no se desplace de su eje. */
.stepper-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

/* 3. Ajuste fino del círculo (centrado exactamente sobre el borde del LI) */
.stepper-circle {
  width: 24px; 
  height: 24px; 
  border: 2px solid #1a5632 !important; 
  left: -13px; 
}



/* =========================================
   style: CHECKLIST
   ========================================= */

ul.checklist li {
    line-height: 1.8em;
}

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

ul.checklist>li {
  position: relative;
  padding-left: 2.6em;
}

ul.checklist>li::before {
  content: 'check';
  font-family: 'Material Symbols Outlined';
  position: absolute;
  left: 0;
  top: 0;
  color: #205C40;
  font-size: 1.7em;
}

/* =========================================
   style:  MARKLIST
   ========================================= */

ul.marklist li {
    line-height: 1.8em;
}

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

ul.marklist>li {
  position: relative;
  padding-left: 2.6em;
}

ul.marklist>li::before {
  content: 'close';
  font-family: 'Material Symbols Outlined';
  position: absolute;
  left: 0;
  top: 0;
  color: #C95100;
  font-size: 1.7em;
}


/* =========================================
   style:  transport list
   ========================================= */

ul.transporte li {
    line-height: 1.8em;
}

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

ul.transporte>li {
  position: relative;
  padding-left: 2.6em;
}

ul.transporte>li::before {
  content: 'directions_bus';
  font-family: 'Material Symbols Outlined';
  position: absolute;
  left: 0;
  top: 0;
  color: #205C40;
  font-size: 1.7em;
}

/* =========================================
  HR line
   ========================================= */

hr{
    margin: 3rem 0 !important;
}


/* =========================================
  ALERT ROJO
========================================= */

.alert-rojo{
  background-color: #ffc7c74d;
  border: 1px solid #CE3836;
}
.alert-rojo hr{
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  color: #A10F0D;
}

/* =========================================
  Warning NARANJA
========================================= */

.warning-naranja{
  background-color: #ffc7c74d;
  border: 1px solid #8E3A01;
  color: #8E3A01;
}
.warning-naranja hr{
  margin-top: 0 !important;
  margin-bottom: 1rem !important;
  color: #8E3A01;
}

/* =========================================
   Paragraph: Bloque Cards
   ========================================= */

.bloque-cards .card-text {
	color: #1D1D1B;
}

.bloque-cards .card-hover-fx {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.bloque-cards .card-hover-fx:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.bloque-cards .card-img-top {
  object-fit: cover;
}

/* =========================================
   Evento: edición destacada + relacionadas
   ========================================= */

.evento-destacado {
  padding-bottom: 2rem;
  border-bottom: 1px solid #D9D9D6;
}

.evento-destacado-item {
	display: flex;
	flex-direction: column;
	row-gap: 32px;
}

.evento-item-card {
	border: 1px solid #D9D9D6;
}

.evento-item-card__img {
  height: 270px;
}

/* =========================================
   Evento: listado de locales
   ========================================= */

.evento-local-card {
  border: 1px solid #D9D9D6;
  background: #fff;
	box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
}

.evento-local-card h4 {
  font-family: 'Open Sans', sans-serif;	
}

/* =========================================
   Paragraph: Cortes por obra
   ========================================= */

.corte-obra-card {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08);
  padding: 1rem;
}

.corte-obra-card .title {
	font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1D1D1B;    
  padding-bottom: 1rem;
  border-bottom: 1px solid #ECECEC;
	margin: 0;
}

.corte-obra-card .fecha {
  display: flex;  
  gap: 0.5rem;
  color: #495057;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
	margin: 0;
	border-bottom: 1px solid #ECECEC;
}

.corte-obra-card .fecha .material-symbols-outlined {
  font-size: 1rem;  
}

.corte-obra-card .description {
  color: rgba(33, 37, 41, 0.75);
  font-size: 1rem;
  padding: 0.5rem 1rem;
	border-bottom: 1px solid #ECECEC;
	margin: 0;
}

.corte-obra-card .description .field,
.corte-obra-card .description .field__item {
  display: contents;
}

.corte-obra-card .description p {
  margin-bottom: 0.75rem;
}

.corte-obra-card .description p:last-child {
  margin-bottom: 0;
}

.corte-obra-card .description strong {
  color: rgba(33, 37, 41, 0.75);
	font-weight: 700;
}

.info-comunicacion-aside .card {  
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;  
  padding: 1rem;
}

.info-comunicacion-aside .description {
  color: #65736B;
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.info-comunicacion-aside .phone {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.info-comunicacion-aside .detail {
  color: #65736B;
  font-size: 0.875rem;
  margin: 0;
}
