h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: #252525;
 }

.title {
  width: 100%;
  color: #252525;
  font-weight: 400;
  text-transform: none;
  margin: 20px 0 30px 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}
.title h1 span {
  font-size: 40px;
  font-weight: 400;
}
.title.title-sarrera h1 span {
  font-size: 75px;
}
.title-sarrera {
  flex-direction: column;
  align-items: center;
}
.title.title-sarrera span.title-nagusia {
  font-size: 100px;
}
.btn {
  font-size: 18px;
}
.btn-primary {
  border-radius: 0;
  border: 0;
  color: #0b5fb4;
  background-color: transparent;
  box-shadow: 0 2px 6px 0 rgba(199, 232, 225, .8);
	border: 2px solid #0b5fb4;
}
.btn-primary:hover {
  color: #fff;
  background-color: #0b5fb4;
  border-color: #0b5fb4;
}
.btn-secondary {
  border-radius: 0;
  border: 0;
  color: #fff;
  background-color: #252525;
  box-shadow: 0 2px 6px 0 rgba(125, 119, 104, .2);
}
.btn-secondary:hover {
  background-color: #000;
}
a {
  text-decoration: none;
  cursor: pointer;
	color: #000;
}
/***
# Accessibility
--------------------------------------------------------------*/

/* Text meant only for screen readers. */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
  /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: #21759b;
  display: block;
  font-size: 14px;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
  /* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
  outline: 0;
}

.ezkutatu{
	position: absolute !important;
clip: rect(1px 1px 1px 1px);
clip: rect(1px, 1px, 1px, 1px);
overflow: hidden;
height: 1px;
width: 1px;
}
/***breadcrumb***/
.breadcrumb {
  margin-top: 20px;
}
/****top header***/
.top-header {
  background-color: #555;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hizkuntzak {
  margin: 0 20px;
  color: #fff;
}
.hizkuntzak a {
  color: #fff;
}
.hizkuntzak a:hover, .hizkuntzak a.active {
  color: #fff;
	text-decoration: underline;
}
.contacto-item{
	margin-left: 10px;
}
.contacto-item a{
	color:#fff;
	 margin-right: 10px
	
}
.contacto-item a:hover{
	text-decoration: underline;
	
}
a.contacto {
  background-color: #fff;
  padding: 10px 15px;
  color: #555;
}
a.contacto:hover {
  background-color: #000;
  color: #fff;
}
.sareak {
  margin: 0 35px;
}
.sareak a {
  margin: 0 10px;
  color: #fff;
}
.sareak a:hover {
  margin: 0 10px;
  color: #ddd;
}
.sareak i {
  font-size: 25px;
}
header.sticky-top{
	 top:-50px;
}
/***nav***/
.navbar-light .navbar-toggler {
  border: 0;
}
nav.menu-nagusia.navbar {
  background-color: #fff;
  padding: 0;
  height: 74px;
  border-bottom: 1px solid #000;
}
nav.menu-nagusia.navbar .menu-nav, nav.menu-nagusia .navbar-collapse {
  height: 100%;
  align-items: stretch !important;
  justify-content: space-between;
}
nav.menu-nagusia.navbar .menu-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.menu-nagusia .navbar-brand {
  padding: 0;
  align-self: center;
	 margin-left: 20px;
}
.menu-nagusia .nav-item {
  display: flex;
  align-items: center;
}
.menu-nagusia.navbar-light .navbar-nav .nav-link {
  color: #000;
  padding: 0 30px;
  font-size: 18px;
	text-transform: uppercase;
}
.menu-nagusia.navbar-light .navbar-nav .nav-link:hover {
  color: #fff;
	background-color: #000;
}
.dropdown-toggle::after {
  margin-left: 10px;
}
.menu-nagusia .nav-item .dropdown-menu {
  top: 71px;
  border-radius: 0;
  background-color: #fff;
  color: #000;
  border: 1px solid#000;
}
.menu-nagusia .nav-item .dropdown-menu .dropdown-item {
  border-bottom: 1px solid #fff;
  color: #000;
}
.menu-nagusia .nav-item .dropdown-menu .dropdown-item:hover {
  color: #555;
  background-color: #fff;
  border-bottom: 1px solid #000;
}
.navbar-expand-xl .navbar-nav.menu-aukerak {
  margin:0 auto;
}
/***carrusel**/
.sec-carousel .carousel-caption h2 {
  color: #fff;
  font-weight: 600;
  font-size: 40px;
	background-color:rgba(0,0,0,0.75);
	padding: 10px;
}
.sec-carousel .carousel.slide, .sec-carousel .carousel-item-next, .sec-carousel .carousel-item-prev, .sec-carousel .carousel-item.active {
  height: 500px;
}
.sec-carousel .carousel-item img, .sec-carousel .carousel-item video, .sec-carousel .carousel-item iframe, .sec-carousel .carousel-item.active img, .sec-carousel .carousel-item.active video, .sec-carousel .carousel-item.active iframe {
  max-height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: #000;
	padding: 25px;
}


/****sarrera***/
section.sarrera {
  background-color: #ebeaea;
  padding: 3.5rem 0;
}
section.sarrera .sarrera-azalpena{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
align-items: center;
}
section.sarrera h2 {
  font-size: calc(0.7rem + 2vw);
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: 100%;
}
section.sarrera .lead {
  width: 60%;
	font-size: 22px;
}
section.sarrera .tx-right {
  width: 38%;
}
section.sarrera ul {
  margin-top: 0.5rem;
  padding-left: 0;
	list-style: none;
}
section.sarrera ul li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
	font-size: 22px;
}
section.sarrera ul li::before {
  font-family: "Ionicons";
  display: inline-block;
  content: "\f3d6";
  list-style: none;
  margin-right: 10px;
}
/***sarrera2***/
section.sarrera2 {
  background-color: #ebeaea;
  padding: 3.5rem 0;
}
section.sarrera2 {
  background-color: #ebeaea;
  padding: 3.5rem 0;
	text-align: center
}
section.sarrera2 h2 {
  font-size: calc(0.7rem + 2vw);
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: 100%;
	
}
section.sarrera2 .lead {
	font-size: 22px;
	margin-bottom: 2rem;
}

/***servicios**/
section.servicios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #0b5fb4;
}
section.servicios .sec-img {
  width: 50%;
  display: flex;
}
section.servicios .sec-img img {
  max-width: 100%;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  align-self: stretch;
}
section.servicios .sec-txt {
  width: 50%;
  display: flex;
  padding: calc(0.7rem + 2vw);
  flex-direction: column;
  color: #fff;
  height: 100%;
}
section.servicios .sec-txt h3 {
  color: #fff;
	font-size: calc(0.7rem + 2vw);
text-transform: uppercase;
}
section.servicios .carousel-caption h2 {
  color: #0b5fb4;
  font-weight: 600;
  font-size: 40px;
	background-color:rgba(255,255,255,0.75);
	padding: 10px;
}
section.servicios .carousel{
  color: #0b5fb4;
  font-weight: 600;
  font-size: 40px;
	background-color:rgba(255,255,255,0.75);
}

/****mapa google ****/
.container-map {
	height: 0;
	overflow: hidden;
	padding-bottom: 45%;
	position: relative;
	 margin-top: 3rem;
}

.googlemap {
	border: 0;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

/****laguntzaileak***/

section.laguntzaileak{
	 background-color: #fff;;
	text-align: center;
	padding: 3.5rem 0;
}
section.laguntzaileak h2 {
  font-size: calc(0.7rem + 2vw);
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: 100%;
}
section.laguntzaileak .logoak{
	display: flex;
	flex-wrap: wrap;
	justify-content:center;
	margin: 3rem 0;
	
	
}
section.laguntzaileak .logoak img{
	max-width: 150px;
	height: auto;
	margin:20px;
	
}
section.laguntzaileak .logoak img:hover{
	opacity: 0.85;
	
}
/****footer***/
footer {
  position: relative;
  padding-top: 5rem;
  background-size: cover !important;
  background-position: center top;
  margin: 0px;
  background-repeat: no-repeat;
}
footer .container {
  background-color: transparent;
}
.f-logo img {
  max-width: 250px;
  margin-bottom: 20px;
  margin-top: -32px;
}
.f-contacto {
  margin: 2rem 0;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.f-contacto p {
  margin-bottom: 10px;
}
.f-helbidea {
  display: flex;
  flex-direction: column;
  margin-left: 5px;
}
.f-helbidea a {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
	text-decoration: underline;
}
.f-helbidea i {
  margin-right: 10px;
  font-size: 16px;
}
.f-helbidea a:hover {
  color: #FFF;
}
.f-sareak {
  display: flex;
  margin-top: 20px;
}
.f-sareak i {
  font-size: 28px;
  color: #fff;
  margin: 0 10px;
}
.f-menu {
  margin-top: 6rem;
}
.f-menu ul {
  list-style: none;
  padding-left: 0;
}
.f-menu ul li {
  margin-bottom: 5px;
}
.f-menu a {
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-menu a i {
  font-size: 20px
}
.f-menu a:hover {
  text-decoration: underline;
}
.footer-bottom {
  background-color: rgba(0, 0, 0, .85);
  padding: 0.5rem;
  color: #fff;
  position: relative;
  display: flex;
  font-size: 16px;
}
.footer-bottom ul {
  list-style: none;
  display: flex;
  padding: 0;
  margin-left: 30px;
	flex-wrap: wrap;
}
.footer-bottom ul li {
  margin-right: 10px;
}
.footer-bottom li a {
  margin-left: 2rem;
  text-decoration: underline;
	color:#fff;
}
.footer-bottom li a:hover {
  color: #fff;
}
.arrow-top {
  margin-right: 20px;
	display: flex;
	 flex-direction:column;
}
.arrow-top i {
  font-size: 45px;
}

/***INNOBASO***/

.login-page{
  background: url('../img/natura_berdea.png') center center / cover no-repeat fixed;
  position: relative;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}
.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
  z-index: 0;
}

.logo-box {
  border-bottom: 1px solid #ccc;
  margin-bottom: 3vh;
}

body {
  font-family: Manrope, "Noto Sans", sans-serif;
  background-color: #f9fbf9;
  overflow-x: hidden;
}

.text-forest {
  color: #121810;
}

.text-muted-forest {
  color: #668a5c;
}

.bg-forest {
  background-color: #f9fbf9;
}

.bg-muted-forest {
  background-color: #ebf1ea;
}

.shadow-soft {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


/* Ensure map legends and selectors are visible above map layers and modal overlays */
.map-legend,
.global-map-legend {
  /* must not be static for z-index to work */
  position: absolute !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 2000 !important;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #668a5c;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 8px;
  max-width: 200px;
  font-family: Manrope, "Noto Sans", sans-serif;
  font-size: 13px;
}

.map-legend-title,
.legend-title {
  font-weight: bold;
  color: #121810;
  margin-bottom: 6px;
  text-align: center;
  border-bottom: 1px solid #ebf1ea;
  padding-bottom: 2px;
  font-size: 13px;
}

.map-legend-item,
.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.map-legend-item:hover,
.legend-item:hover {
  background-color: #ebf1ea;
}

.map-legend-item input[type="checkbox"],
.legend-item input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #668a5c;
}

.map-legend-color,
.legend-color-box {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  margin-right: 6px;
  border: 1px solid #ccc;
}

.map-legend-label,
.legend-item span {
  color: #121810;
  font-weight: 500;
  font-size: 12px;
}
.rounded-xl {
  border-radius: 1rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

input::placeholder {
  color: #668a5c !important;
}

.btn-modern {
  border-radius: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease-in-out;
}
.btn-modern-sm {
  border-radius: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s ease-in-out;
}
.btn-modern-outline {
  background-color: transparent;
  border: 1px solid #668a5c;
  color: #668a5c;
}
.btn-modern-outline:hover {
  background-color: #ebf1ea;
  color: #121810;
}
.btn-modern-info {
  background-color: #e2efe8;
  border: 1px solid #1f6f4a;
  color: #1f6f4a;
}
.btn-modern-info:hover {
  background-color: #cfe4d8;
  color: #18583a;
}
.btn-modern-warn {
  background-color: #f5ead9;
  border: 1px solid #b06b00;
  color: #8f5600;
}
.btn-modern-warn:hover {
  background-color: #efd9b8;
  color: #724500;
}
.btn-modern-danger {
  background-color: #f1e4de;
  border: 1px solid #7a3e2f;
  color: #7a3e2f;
}
.btn-modern-danger:hover {
  background-color: #e5d0c6;
  color: #5e2f23;
}
.btn-modern-neutral {
  background-color: #eef1ec;
  border: 1px solid #5b6b55;
  color: #5b6b55;
}
.btn-modern-neutral:hover {
  background-color: #e2e7e0;
  color: #465044;
}
.btn-modern-filled {
  background-color: #668a5c;
  color: #fff;
  border: none;
}
.btn-modern-filled:hover {
  background-color: #557a4c;
}

/* Planes editor button palette (forest/trees) */
.planes-editor .btn-primary,
.planes-editor .btn-success,
.planes-editor .btn-info,
.planes-editor .btn-warning,
.planes-editor .btn-danger,
.planes-editor .btn-secondary {
  border-radius: 0.5rem;
}

.planes-editor .btn-primary {
  background-color: #2e6b4f;
  border-color: #2e6b4f;
  color: #fff;
}
.planes-editor .btn-primary:hover {
  background-color: #24563f;
  border-color: #24563f;
}

.planes-editor .btn-success {
  background-color: #4f7d3a;
  border-color: #4f7d3a;
  color: #fff;
}
.planes-editor .btn-success:hover {
  background-color: #3f642f;
  border-color: #3f642f;
}

.planes-editor .btn-info {
  background-color: #2f6f5b;
  border-color: #2f6f5b;
  color: #fff;
}
.planes-editor .btn-info:hover {
  background-color: #245746;
  border-color: #245746;
}

.planes-editor .btn-warning {
  background-color: #8a6a2f;
  border-color: #8a6a2f;
  color: #fff;
}
.planes-editor .btn-warning:hover {
  background-color: #6b5225;
  border-color: #6b5225;
}

.planes-editor .btn-danger {
  background-color: #6b3b2a;
  border-color: #6b3b2a;
  color: #fff;
}
.planes-editor .btn-danger:hover {
  background-color: #553024;
  border-color: #553024;
}

.planes-editor .btn-secondary {
  background-color: #5f6b5b;
  border-color: #5f6b5b;
  color: #fff;
}
.planes-editor .btn-secondary:hover {
  background-color: #4b5447;
  border-color: #4b5447;
}

.planes-editor .btn-outline-primary {
  border-color: #2e6b4f;
  color: #2e6b4f;
}
.planes-editor .btn-outline-primary:hover {
  background-color: #e8f1eb;
  color: #24563f;
  border-color: #24563f;
}

.planes-editor .btn-outline-success {
  border-color: #4f7d3a;
  color: #4f7d3a;
}
.planes-editor .btn-outline-success:hover {
  background-color: #edf4ea;
  color: #3f642f;
  border-color: #3f642f;
}

.planes-editor .btn-outline-info {
  border-color: #2f6f5b;
  color: #2f6f5b;
}
.planes-editor .btn-outline-info:hover {
  background-color: #e8f2ef;
  color: #245746;
  border-color: #245746;
}

.planes-editor .btn-outline-warning {
  border-color: #8a6a2f;
  color: #8a6a2f;
}
.planes-editor .btn-outline-warning:hover {
  background-color: #f3efe5;
  color: #6b5225;
  border-color: #6b5225;
}

.planes-editor .btn-outline-danger {
  border-color: #6b3b2a;
  color: #6b3b2a;
}
.planes-editor .btn-outline-danger:hover {
  background-color: #f1e8e3;
  color: #553024;
  border-color: #553024;
}

.planes-editor .btn-outline-secondary {
  border-color: #5f6b5b;
  color: #5f6b5b;
}
.planes-editor .btn-outline-secondary:hover {
  background-color: #edf1ec;
  color: #4b5447;
  border-color: #4b5447;
}

#forest-map {
  height: 80vh; /* o una altura fija como 500px */
  width: 100%;
}

#resultadoApi{
  font-family: monospace;
  font-size: 0.875rem;
  white-space: pre-wrap;
  max-height: 60vh;
  overflow-y: auto;
}

.json-key {
  color: #0d6efd;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.json-toggle {
  margin-left: 1rem;
  border-left: 1px dashed #ccc;
  padding-left: 1rem;
}

.json-icon {
  font-size: 0.8rem;
}

.nabegazioa > div:hover{
  background-color: #d5facd;
  color: #121810;
  border-radius: 1rem;
  cursor: pointer;
}

:root {
    --sidebar-width: 285px;
    --sidebar-width-collapsed: 80px;
}

body {
    overflow-x: hidden;
}

.logo-container {
  position: relative;
  width: var(--sidebar-width) - 20px;   /* ajusta según tus logos */
  height: 80px;
  margin: 4px 16px;
}

.logo-nav-grande{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-image: url('../img/innobaso_logo_transparente.svg');
  background-size: contain;
  background-repeat: no-repeat;  
  transition: opacity 0.1s ease-in-out;
  transition-delay: 0.2s;
}
.logo-nav-pequeño{
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/innobaso_logo_icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  transition: opacity 0.3s ease-in-out;
}

.sidebar.collapsed .logo-nav-grande {
  opacity: 0;
}

.sidebar.collapsed .logo-nav-pequeño {
  opacity: 1;
}

.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(135deg, #77a06b 0%, #3e5539 100%);
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar .nav{
  overflow: hidden;
}

.sidebar-link.sidebar-link-accordion:not(.collapsed){
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.accordion-sublist{
  margin-left: 1rem;
}

.accordion-sublist li {
  margin: 0.5rem 0;
}

.sidebar-link {
  color: #222222;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 4px 16px;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.sidebar-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}
.sidebar-sublink {
    color: #222222;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 4px 16px;
    white-space: nowrap;
    overflow: hidden;
    padding: 0.2rem 1rem;
}

.sidebar-sublink:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar-sublink.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.profile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-info {
    transition: opacity 0.2s ease;
}

.profile-link {
    text-decoration: none;
}

.profile-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

.profile-logout {
    transition: opacity 0.2s ease;
}

.portada {
    margin-left: var(--sidebar-width);
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
    transition: all 0.3s ease;
}

.collapsed~.portada {
    margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
    position: absolute;
    right: 0;
    top: 65px;
    background: #dddddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 50% 0 0 50%;
    z-index: 10;
}

.sidebar.collapsed .toggle-btn {
    transition: transform 0.3s ease;
    transform: rotate(180deg);    
    border-radius: 0 50% 50% 0;
}

.sidebar.collapsed .hide-on-collapse {
    opacity: 0;
    visibility: hidden;
}

.sidebar.collapsed .sidebar-link {
    text-align: left;
    padding: 1rem !important;
    margin: 4px 8px;
}

.sidebar.collapsed .sidebar-link i {
    margin: 0 !important;
}

.sidebar.collapsed .profile-info {
    opacity: 0;
}

.sidebar.collapsed .profile-logout {
    opacity: 0;
}

.page-link {
  color: #557a4c;
  text-decoration: none;
}

.page-link:hover {
  color: #557a4c;
  text-decoration: none;
}

.page-item.active .page-link {
  background-color: #557a4c;
  color: #fff;
  border-color: #557a4c;
}

/* Oculta el buscador por defecto de DataTables */
.dt-search {
  display: none !important;
}

/* Oculta la flecha cuando la columna NO está ordenada */
table.dataTable thead th.dt-orderable-asc:after,
table.dataTable thead th.dt-orderable-desc:after {
  content: "";
  display: none;
}
/* Fuerza a mostrar las flechas de ordenación de DataTables */
table.dataTable thead .dt-ordering-asc:after,
table.dataTable thead .dt-ordering-desc:after {
  content: "▼" !important;
  display: inline-block !important;
  margin-left: 8px;
  vertical-align: middle;
  opacity: 0.7;
  transition: transform 0.2s ease;
  transform: rotate(0deg);
}
table.dataTable thead .dt-ordering-asc:after {
  transform: rotate(180deg);
}

.personas-filtro-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  background-color: transparent;
  border: 1px solid #668a5c;
  color: #668a5c;
  border-radius: 0.75rem; /* btn-modern */
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.personas-filtro-btn:hover {
  background-color: #557a4c;
  color: #fff;
}
.personas-filtro-btn.active {
  background-color: #557a4c;
  color: #fff;
  border: none;
}

/* Custom Select Moderno */
.form-select-modern {
  display: block;
  width: 100%;
  padding: 0.5rem 2.25rem 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #121810; /* text-forest */
  background-color: #ebf1ea; /* bg-muted-forest */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23668a5c' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 16px 12px;
  border: 1px solid #ebf1ea;
  border-radius: 0.75rem; /* btn-modern */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form-select-modern:hover {
  border-color: #668a5c;
}

.form-select-modern:focus {
  border-color: #557a4c;
  outline: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 0 0 0.2rem rgba(85, 122, 76, 0.25);
}

.form-select-modern:disabled {
  color: #6c757d;
  background-color: #e9ecef;
  opacity: 1;
}

#tablaLoaderOverlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(128, 128, 128, 0.3);
  z-index: 10;
  justify-content: center;
  align-items: center;
}

#tablaLoaderOverlay .fa-spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Opcional: para que no tape otros elementos */
  z-index: 9999;
}

/* Nav-tabs horizontales estilo moderno similar a nav-pills verticales */
.nav-tabs {
  border-bottom: none;
  gap: 0.5rem;
}

.nav-tabs .nav-link {
  color: #668a5c;
  background: #ebf1ea;
  border-radius: 0.75rem 0.75rem 0 0;
  margin-bottom: 0;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #ebf1ea;
  border-bottom: 2px solid transparent;
  text-align: left;
  min-width: 120px;
  padding: 0.5rem 1.5rem;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover {
  color: #fff;
  background: #668a5c;
  border-color: #668a5c #668a5c #fff #668a5c;
  border-bottom: 2px solid #fff;
  z-index: 2;
}

.nav-tabs .nav-link:not(.active):hover {
  background: #d5facd;
  color: #121810;
  border-color: #d5facd #d5facd #ebf1ea #d5facd;
}

.nav-tabs .nav-item {
  margin-bottom: 0;
}

/* Estilo personalizado para nav-pills verticales */
.nav-pills .nav-link {
  color: #668a5c;
  background: #ebf1ea;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  border: 1px solid #ebf1ea;
  text-align: left;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:focus,
.nav-pills .nav-link:hover {
  color: #fff;
  background: #668a5c;
  border-color: #668a5c;
}

.nav-pills .nav-link:not(.active):hover {
  background: #d5facd;
  color: #121810;
}

.nav-pills {
  min-width: 160px;
}

.modal-xl{
  max-width: 70%;
}

.modal-title{
  font-size: 1.5rem;
  font-weight: 600;
  color: #668a5c;
}

#tablaActuaciones{
  font-size: small;
}
.btn-editar-actuacion{
  font-size: small;
}
.btn-eliminar-actuacion{
  font-size: small;
}


@media (max-width: 1500px) {
  .menu-nagusia.navbar-light .navbar-nav .nav-link {
    padding: 0 20px;
  }
 
}
@media (max-width: 1200px) {
  
  .menu-nagusia.navbar-light .navbar-toggler {
    position: absolute;
    right: 12px;
    top: 10px;
	padding: 15px 25px;
	background-color: #0b5fb4;
color: #fff;
border: none;
font-weight: 600;
  }
  nav.menu-nagusia.navbar .menu-nav {
    display: block;
    width: 100%;
  }
  nav.menu-nagusia .navbar-collapse {
    padding-top: 15px;
    border-top: 1px solid #fff;
    margin-top: 15px;
  }
  nav.menu-nagusia.navbar {
    height: auto;
    padding: 5px;
  }
  .menu-nagusia .nav-item {
    display: block;
    margin-bottom: 10px;
  }
  .menu-nagusia .nav-item .dropdown-menu {
    top: 71px;
    border-radius: 0;
    background-color: #fff;
    color: #000;
    border: 0;
    margin-left: 30PX;
  }
  .footer-bottom li a {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  
	.contacto-item{
		 display: none;
	}
  .f-logo img {
    max-width: 150px;
  }
  .f-menu {
    margin-top: 0;
    border-top: 1px solid #fff;
    padding: 20px 0;
  }
	section.sarrera .lead, section.sarrera .tx-right {
  width: 100%;
}
	section.servicios .sec-img, section.servicios .sec-txt{
		 width: 100%;
	}
	section.servicios .sec-img{
		 order:-1;
	}
}
@media (max-width: 500px) {
  
  .top-header {
    justify-content: space-between;
  }
  .top-header a.contacto {
    padding: 10px 5px;
    font-size: 14PX;
    font-size: 14PX;
  }
  .top-header .sareak {
    margin: 0 10px;
  }
  .top-header .sareak i {
    font-size: 20px;
  }
  .top-header .hizkuntzak {
    margin: 0 10px;
  }
}

/* Editor Tables Styles */
.actions-table-container {
  overflow-x: auto;
}
table.actions-table {
  background-color: #f9fbf9;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  overflow: hidden;
  width: 100%;
  min-width: 800px;
}
table.actions-table thead th {
  background-color: #557a4c;
  color: #fff;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
table.actions-table tbody td {
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  vertical-align: middle;
}
table.actions-table tbody tr:nth-child(even) {
  background-color: #ebf1ea;
}
table.actions-table tbody tr:hover {
  background-color: #d4edda;
  transition: background-color 0.2s ease;
}
table.actions-table td input.form-control-sm {
  border: none;
  background: transparent;
  padding: 0.25rem;
  font-size: 0.875rem;
}
table.actions-table td input.form-control-sm:focus {
  background: #fff;
  border: 1px solid #557a4c;
  box-shadow: 0 0 0 0.2rem rgba(85, 122, 76, 0.25);
}
table.actions-table td textarea.form-control-sm {
  border: none;
  background: transparent;
  padding: 0.25rem;
  font-size: 0.875rem;
  resize: none;
  min-height: auto;
  overflow: visible;
}
table.actions-table td textarea.form-control-sm:focus {
  background: #fff;
  border: 1px solid #557a4c;
  box-shadow: 0 0 0 0.2rem rgba(85, 122, 76, 0.25);
}
/* Estilos específicos para la columna Actuación */
table.actions-table thead th:nth-child(2),
table.actions-table tbody td:nth-child(2) {
  min-width: 300px;
  max-width: 400px;
}
.actions-controls {
  margin-top: 1rem;
  text-align: center;
}

table.table-activity {
  background-color: #f9fbf9;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  overflow: hidden;
}
table.table-activity thead th {
  background-color: #557a4c;
  color: #fff;
  border: 1px solid #dee2e6;
  padding: 0.75rem;
  font-weight: 600;
  text-align: center;
}
table.table-activity tbody td {
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  vertical-align: middle;
}
table.table-activity tbody tr:nth-child(even) {
  background-color: #ebf1ea;
}
table.table-activity tbody tr:hover {
  background-color: #d4edda;
  transition: background-color 0.2s ease;
}
table.table-activity td, table.table-activity th {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
table.table-activity td pre {
  white-space: pre-wrap;
  max-width: 800px;
  overflow: auto;
}
table.table-activity td input.form-control {
  box-sizing: border-box;
  border: none;
  background: transparent;
  padding: 0.25rem;
}
table.table-activity td input.form-control:focus {
  background: #fff;
  border: 1px solid #557a4c;
  box-shadow: 0 0 0 0.2rem rgba(85, 122, 76, 0.25);
}

.inactive-groups-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}
.inactive-group-btn-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  background-color: #e9ecef;
  border: 1px solid #adb5bd;
  color: #6c757d;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.inactive-group-btn-compact:hover {
  background-color: #557a4c;
  border-color: #557a4c;
  color: #fff;
}
.inactive-group-btn-compact .inactive-icon {
  font-size: 0.875rem;
  color: #6c757d;
}
.inactive-group-btn-compact:hover .inactive-icon {
  color: #fff;
}

/* Form Styles - Compact and Beautiful */
.field-group {
  margin-bottom: 0.5rem !important;
  border: 1px solid #e3e6ea;
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  background-color: #fefefe;
}

.field-group:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.field-group:focus-within {
  border-color: #557a4c;
  box-shadow: 0 0 0 0.2rem rgba(85, 122, 76, 0.25);
}

.field-group .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e3e6ea;
  padding: 0.375rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #495057;
  border-radius: 0.375rem 0.375rem 0 0 !important;
}

.field-group .card-body {
  padding: 0.5rem;
  flex: 0 0 auto;
}

.field-group-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem;
}

.field-group-content-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field {
  margin-bottom: 0.375rem !important;
}

.form-field:last-child {
  margin-bottom: 0 !important;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.25rem;
  display: block;
}

.form-control, .form-select {
  font-size: 0.875rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
  border-color: #557a4c;
  box-shadow: 0 0 0 0.2rem rgba(85, 122, 76, 0.25);
}

.form-check {
  margin-bottom: 0.25rem;
}

.form-check-input {
  margin-right: 0.5rem;
}

.form-check-label {
  font-size: 0.875rem;
  color: #495057;
}

.inactive-group-btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  color: #6c757d;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.inactive-group-btn:hover {
  background-color: #557a4c;
  border-color: #557a4c;
  color: #fff;
}

.inactive-group-btn .inactive-icon {
  font-size: 1rem;
  margin-right: 0.5rem;
}

.field-subsection {
  border: 1px solid #e9ecef;
  border-radius: 0.25rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.field-subsection-title {
  background-color: #f8f9fa;
  padding: 0.25rem 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  border-bottom: 1px solid #e9ecef;
}

.field-subsection-content {
  padding: 0.375rem;
}

.array-editor {
  margin-top: 0.5rem;
}

.array-item {
  border: 1px solid #e9ecef;
  border-radius: 0.25rem;
  padding: 0.375rem;
  margin-bottom: 0.375rem;
  background-color: #f8f9fa;
  transition: background-color 0.2s ease;
}

.array-item:hover {
  background-color: #f0f0f0;
  margin-bottom: 0.25rem;
}

.array-item-controls {
  margin-top: 0.25rem;
}

/* Compact grid layout for better space usage */
.row.g-2 .field-group {
  margin-bottom: 0.5rem;
}

.row.g-2 .field-group .card-body {
  padding: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .field-group {
    margin-bottom: 0.375rem !important;
  }

  .field-group .card-body {
    padding: 0.375rem;
  }

  .form-label {
    font-size: 0.7rem;
  }

  .form-control, .form-select {
    font-size: 0.8rem;
    padding: 0.25rem 0.375rem;
  }

  .inactive-groups-grid {
    padding: 0.375rem;
    gap: 0.125rem;
  }

  .inactive-group-btn-compact {
    padding: 0.2rem 0.375rem;
    font-size: 0.7rem;
  }
}

/* Estilos para inputs editables en la tabla del calendario */
.editable-input,
.editable-textarea {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.editable-input:focus,
.editable-textarea:focus {
  border: 1px solid #0b5fb4;
  background: white;
  box-shadow: 0 0 0 2px rgba(11, 95, 180, 0.1);
  border-radius: 3px;
}

/* Estilos para el modal del calendario */
#calendarioUAModal .modal-dialog {
  max-width: 90vw;
  max-height: 90vh;
  margin: 5vh auto;
}

#calendarioUAModal .modal-content {
  max-height: 90vh;
  overflow: hidden;
}

#calendarioUAModal .modal-body {
  max-height: calc(90vh - 120px); /* Restar espacio para header y footer */
  overflow-y: auto;
}

/* Estilos para la tabla del calendario */
#calendarioTable {
  font-size: 0.85rem;
}

#calendarioTable th,
#calendarioTable td {
  font-size: 0.85rem;
  padding: 0.15rem 0.3rem;
}

#calendarioTable .editable-input,
#calendarioTable .editable-textarea {
  font-size: 0.85rem;
}

/* Anchos específicos de columnas para la tabla del calendario de actuaciones*/
#calendarioTable th:nth-child(1), #calendarioTable td:nth-child(1) { width: 70px; min-width: 70px; } /* Año */
#calendarioTable th:nth-child(2), #calendarioTable td:nth-child(2) { width: 300px; min-width: 300px; } /* Actuación */
#calendarioTable th:nth-child(3), #calendarioTable td:nth-child(3) { width: 60px; min-width: 60px; } /* Tipo Unidad */
#calendarioTable th:nth-child(4), #calendarioTable td:nth-child(4) { width: 70px; min-width: 70px; } /* Unidad Cálculo */
#calendarioTable th:nth-child(5), #calendarioTable td:nth-child(5) { width: 70px; min-width: 70px; } /* Pies Inicial */
#calendarioTable th:nth-child(6), #calendarioTable td:nth-child(6) { width: 70px; min-width: 70px; } /* Pies Final */
#calendarioTable th:nth-child(7), #calendarioTable td:nth-child(7) { width: 50px; min-width: 50px; } /* Gasto? */
#calendarioTable th:nth-child(8), #calendarioTable td:nth-child(8) { width: 60px; min-width: 60px; } /* Coste/Ingresos ud. */
#calendarioTable th:nth-child(9), #calendarioTable td:nth-child(9) { width: 75px; min-width: 75px; } /* Volumen (m³/ha) */
#calendarioTable th:nth-child(10), #calendarioTable td:nth-child(10) { width: 80px; min-width: 80px; } /* Vol. Árbol (m³) */
#calendarioTable th:nth-child(11), #calendarioTable td:nth-child(11) { width: 100px; min-width: 100px; } /* Diámetro med. (cm) */
#calendarioTable th:nth-child(12), #calendarioTable td:nth-child(12) { width: 90px; min-width: 90px; } /* Gastos Unitarios (€/ha) */
#calendarioTable th:nth-child(13), #calendarioTable td:nth-child(13) { width: 90px; min-width: 90px; } /* Ingresos Unitarios (€/m³) */
#calendarioTable th:nth-child(14), #calendarioTable td:nth-child(14) { width: 100px; min-width: 100px; } /* Superficie Afectada (ha) */
#calendarioTable th:nth-child(15), #calendarioTable td:nth-child(15) { width: 80px; min-width: 80px; } /* % Superficie */
#calendarioTable th:nth-child(16), #calendarioTable td:nth-child(16) { width: 300px; min-width: 300px; } /* Norma Selvícola */
#calendarioTable th:nth-child(17), #calendarioTable td:nth-child(17) { width: 70px; min-width: 70px; } /* Acciones */