/* ===== CONTENEDOR PRINCIPAL SUCURSALES ===== */
.has-background-custom-blue-sucursales {
  position: relative;
  height: 800px;
  background-color: var(--tramaco-blue-dark);
  /* azul de fondo */
  border-radius: 0px;
  overflow: hidden;
}

/* ===== CONTENEDOR PRINCIPAL COBERTURAS ===== */
.has-background-custom-blue-coberturas {

  background-color: #ffffff;
  /* azul de fondo */
  border-radius: 0px;
  overflow: hidden;
}


/* ===== MAPA ===== */
#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== BLOQUE IZQUIERDO FLOTANTE ===== */
.bloque-izquierdo {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 35%;
  height: calc(100% - 2rem);
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 10;
  overflow: hidden;
}

/* ===== FICHA SUCURSAL ===== */
.ficha-sucursal {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 35%;
  height: calc(100% - 2rem);
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 20;
  overflow: hidden;
  display: none;
}


.titulo {
  font-size: 1.2rem;
  font-weight: normal;
  font-family: "NexaRegular", sans-serif;
  align-self: anchor-center;
  margin-bottom: 1rem;
  padding-left: 80px;
  padding-right: 80px;
  text-align: center;
  color: var(--tramaco-blue-dark);
}


.titulo-sucursal {
  flex: 1;
  display: flex;
  flex-direction: column; /* fuerza que el texto baje si es largo */
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal; /* permite salto de línea */
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.3;
}

/* Texto del nombre */
.titulo-sucursal .NOMBRE_SUCURSAL {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  max-width: 90%;
  word-break: break-word;
}




/* ===== FILTROS ===== */
#filtros .field {
  margin-bottom: 1rem;
}

#buscador,
#provincia,
#ciudad,
#buscador_cobertura {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.input::placeholder {
  color: #666666 !important;
  opacity: 1;
}

/* ===== LISTVIEW ===== */
#listview {
  flex: 1;
  overflow-y: auto;
  margin-top: 1rem;
  padding-right: 8px;
}

#listview .list-item-sucursales {
  width: 100%;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background 0.2s ease;
}

#listview .list-item-sucursales:hover {
  background-color: #f0f0f0;
}

/* ============== MODAL ======== */

.boton-cerrar-modal {
  color: var(--tramaco-blue-dark);

}


.rotulo_modal {
  color: var(--tramaco-blue-dark);
  font-weight: bold;
  font-size: 1rem;
}


.NOMBRE_SUCURSAL {
  color: var(--tramaco-blue-dark);
  font-weight: bold;
  font-size: 1rem;
  font-family: 'NexaBlack', sans-serif;
}

.DIRECCION {
  color: var(--tramaco-blue-dark);
  font-size: 0.8rem;
  font-family: 'NexaBook', sans-serif;
}

.TELEFONO {
  color: var(--tramaco-blue-dark);
  font-size: 0.8rem;
}

.CORREO {
  color: var(--tramaco-blue-dark);
  font-size: 0.8rem;
}


.HORARIOS {
  color: var(--tramaco-blue-dark);
  font-size: 0.8rem;
}

.SABADOS {
  color: var(--tramaco-blue-dark);
  font-size: 0.8rem;
}

.mapa {
  height: auto;
  width: -webkit-fill-available;
}

#contenedor-coberturas {

  height: 560px;
  border: solid 1px var(--tramaco-blue-dark);
  border-radius: 12px;
  background-color: white;
  padding: 5px;
}

#contenedor-coberturas table {
  border-collapse: separate;
  /* importante */
  border-spacing: 8px 0;
  /* 8px horizontal, 0 vertical */
}

#contenedor-coberturas table th {
  font-family: "NexaBold", sans-serif;
  text-align: center;
  vertical-align: middle;
  /* Centrado vertical */
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
  width: auto;
  /*padding: 0px;*/
  padding-top: 12px;
  xmargin-bottom: 30px;
  font-size: 0.9rem;
}

#contenedor-coberturas table td {
  text-align: center;
  vertical-align: middle;
  padding: 5px;
  font-size: 0.8rem;
  font-family: "NexaBook", sans-serif;
}

#contenedor-coberturas .button.is-link {
  border-radius: 0 30px 30px 0;
}

.tabla-coberturas {
  table-layout: fixed;
  /* Anchos fijos */
  width: 100%;
  background-color: white;
  border: none !important;
  border-collapse: collapse;
  /* asegura que no se duplique borde */
}

.tabla-coberturas th {
  position: sticky;
  /* fija el encabezado */
  top: 0;
  /* pegado arriba */
  background-color: #1a50d4;
  /* color de fondo fijo */
  color: #fff;
  /* texto blanco */
  font-weight: bold;
  text-align: center;
  padding: 8px;
  border: none !important;
  z-index: 2;
  /* por encima del tbody */
  height: 35px;
}

.xtabla-coberturas tr:nth-child(odd) td {
  background-color: #f2f2f2;
  /* gris claro */
}

/* Filas pares */
.xtabla-coberturas tr:nth-child(even) td {
  background-color: #ffffff;
  /* blanco */
}


.table.is-hoverable tbody tr:hover {
  background-color: #eaeaea !important;
}


.tabla-coberturas td {
  overflow: hidden;
  /* Oculta texto largo */
  xtext-overflow: ellipsis;
  xwhite-space: nowrap;
  border: none !important;
  color: var(--tramaco-blue-dark);
  padding: 6px 8px;
  font-size: 14px;

}


.map-div {
  width: 571px;
  height: 640px;
  xbackground: white;
  margin: 0;
  padding-top: 10px;
  position: relative;
  align-content: center;
  justify-self: anchor-center;

}

.xcol-6 {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 50%;
}

/* Provincias por defecto */
svg a path {
  fill: #2A52F3;
  /* color base */
  stroke: var(--tramaco-white);
  /* borde */
  stroke-width: 0.5px;
  cursor: pointer;
  transition: fill 0.3s;
}

/* Provincias al pasar el mouse */
svg a:hover path {
  fill: #000981;
  /* color hover */
}

/* Texto de provincias */
.provincia-label {
  font-family: "NexaBook", sans-serif;
  font-size: 12px;
  font-weight: lighter;
  text-anchor: middle;
  alignment-baseline: middle;
  pointer-events: none;
  fill: var(--tramaco-white);
}


svg a:hover .provincia-label {
	fill: white;
}

.mapa-galapagos-contenedor {
	position: absolute;
	top: 430px;
	left: 320px;
	text-align: center;
	cursor: pointer;
}



.map-galapagos {
	border: solid 1px var(--tramaco-blue-dark);
	padding: 20px;
	border-radius: 10px;
}

.titulo-galapagos {
	font-family: "NexaBook", sans-serif;
	font-size: 12px;
	color: var(--tramaco-blue-dark);
	margin-bottom: 6px;
}

.provincia-galapagos {
	font-family: "NexaBook", sans-serif;
	font-size: 12px;
	font-weight: lighter;
	text-anchor: middle;
	alignment-baseline: middle;
	pointer-events: none;
	fill: var(--tramaco-blue-dark);
	transform: translateY(-80px); /* 👈 mueve el texto hacia arriba */
}

svg a:hover .provincia-galapagos {
	fill: blue;
}


.camiones-footer {
	border-radius: 0 0 100px 100px;
}

.hero-sectioncontap {
	position: relative;
	width: 100%;
	height: 500px;
	background-image: url(../images/puntosdeatencion/fondo-puntoatencion.png);
	background-size: contain;
	background-repeat: no-repeat;
	display: flex;
	justify-content: center;
	align-items: center;
	box-sizing: border-box;
	aspect-ratio: 16 / 9;
	background-position: center center;
	padding: 0px;
	border-radius: 0px;
}

.hero-fullscreen {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: contain;
  /*height: 100vh;*/
  /*padding: 0 0 0 100px;*/
}

.borde-mapa-tramaco {
  border: solid 1px #B2B2B2;
  border-radius: 12px;
  padding: 8px;

}

.buscar-puntodeatencion {

  font-family: 'NexaBold';
  color: #b2b2b2 !important;
  font-size: 18px;
}


/* ===== MÓVIL ===== */
@media (max-width: 1023px) {
  .bloque-izquierdo {
    position: relative !important;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
    top: 0rem;
    left: 0rem;
  }

  #map {
    display: none;
    /* ocultar mapa en móviles */
  }

  .map-div {
    width: auto;
    height: auto;

  }

  .mapa {
    height: auto;
    width: 400px;
  }
}


.info-panel {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 280px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  padding: 15px;
  z-index: 9999;
  display: none; /* Oculto por defecto */
  font-family: 'Arial', sans-serif;
  font-size: 14px;
}
.info-panel h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: bold;
}
.info-panel p {
  margin: 4px 0;
  line-height: 1.4;
}
.info-panel button {
  margin-top: 10px;
  width: 100%;
}

@media (max-width: 768px) {
  .hero-fullscreen {
    height: 490px !important;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }


  .hero-sectioncsp {
    position: static;
    width: 100%;
    background: no-repeat;
    background-image: url(../images/puntosdeatencion/bg_tramaco_puntoatencion_movil.png);
    background-position: center;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    border-radius: 10px;
  }

  #listview {
    flex: 1;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 8px;
    max-height: 390px;
  }

  #contenedor-coberturas table th {

    font-size: 0.6rem !important;
  }

	.mapa-galapagos-contenedor {
		position: absolute;
		top: 260px;
		left: 230px;
		text-align: center;
		cursor: pointer;
	}

	.map-galapagos {
		border: solid 1px var(--tramaco-blue-dark);
		padding: 3px;
		border-radius: 10px;
	}

	.provincia-galapagos {
		font-family: "NexaBook", sans-serif;
		font-size: 12px;
		font-weight: lighter;
		text-anchor: middle;
		alignment-baseline: middle;
		pointer-events: none;
		fill: var(--tramaco-blue-dark);
		transform: translateY(-70px); /* 👈 mueve el texto hacia arriba */
	}
	.titulo-galapagos {
	  font-family: "NexaBook", sans-serif;
	  font-size: 12px;
	  color: var(--tramaco-blue-dark);
	  margin-bottom: 6px;
	}

  .ficha-sucursal {
    position: fixed !important;
    width: 100%;
    height: auto;
    margin: 0;
    top: 100px;
    border-radius: 0;
  }

   
  
}