@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.adev-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.adev-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.adev-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.adev-slide.active {
  opacity: 1;
  z-index: 2;
}

.adev-slide-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.adev-slide-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 20px;
  height: 100%;
  padding-left: 80px;
  padding-right: 80px;
  line-height: 1;
}

.adev-slider-prev,
.adev-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.adev-slider-prev {
  left: 20px;
}

.adev-slider-next {
  right: 20px;
}

/* Estilos básicos para el menú móvil */
.adev-mobile-menu-container {
  position: relative;
  text-align: right;
  text-align: right;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.adev-mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 24px;
  display: none;
}

.adev-mobile-menu {
  background: #fff;
  color: #000;
  list-style: none;
  margin: 0;
  padding: 0;
}

.adev-mobile-menu li a {
  color: #000;
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.adev-mobile-menu li a:hover,
.adev-mobile-menu li.current-menu-item > a {
  background-color: #f9b000;
}

/* Responsive - Mostrar solo en móviles */
@media (max-width: 1024px) {
  .adev-mobile-menu-toggle {
    display: block;
  }

  .adev-mobile-menu {
    display: none;
    position: absolute;
    width: 300px;
    right: 0;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
    color: #000;
    padding: 0;
    position: absolute;
    top: 82px;
    overflow: hidden;
    z-index: 9999999;
    left: 0;
    left: auto;
  }

  .adev-mobile-menu ul {
    list-style: none;
    padding-left: 0;
  }

  .adev-mobile-menu.active {
    display: block;
  }
}

button.adev-mobile-menu-toggle svg {
  width: 40px;
  height: 40px;
  fill: white;
}

button.adev-mobile-menu-toggle {
  background: #f9b002;
  padding: 5px;
  display: flex;
  border-radius: 2px;
}

button.adev-mobile-menu-toggle:hover {
  background: #f9b002;
}

button.adev-mobile-menu-toggle:focus svg,
button.adev-mobile-menu-toggle:hover svg {
  fill: black;
}

@media (max-width: 767px) {
  .adev-slider .adev-slide-content {
    font-size: var(--text-size-mobile, 24px) !important;
  }
}

/* Estilos específicos para el slider de imágenes */
.adev-slide-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.adev-slide-bg {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Dots navigation - si decides implementarla más tarde */
.adev-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 3;
  gap: 8px;
}

.adev-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.adev-slider-dot.active {
  background-color: #fff;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .adev-slider {
    height: 300px;
  }
}
.adev-blog-carousel {
  position: relative;
  overflow: hidden;
  max-width: 100%;
}

.adev-carousel-wrapper {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Ocultar scrollbar en Firefox */
  -ms-overflow-style: none; /* Ocultar scrollbar en IE y Edge */
}

.adev-carousel-wrapper::-webkit-scrollbar {
  display: none;
}

.adev-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.3s ease-in-out;
  width: 100%;
}

.adev-carousel-item {
  flex: 0 0 33.3333%;
  box-sizing: border-box;
  padding-right: 20px;
}

span.adev-carousel-category a {
  color: #98a2ad;
  font-size: 12px;
  font-weight: bold;
}

span.adev-carousel-date {
  color: #98a2ad;
  font-size: 12px;
}

.adev-carousel-metadata {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adev-carousel-item {
  font-family: 'Mulish', sans-serif;
  transition: all 0.3s ease-in-out;
}

h3.adev-carousel-title a {
  font-weight: bold;
  font-size: 0.9em;
  color: #073262;
}

p.adev-carousel-excerpt {
  font-size: 0.9em;
  color: #073262;
}

@media (max-width: 1024px) {
  .adev-carousel-item {
    flex: 0 0 50%;
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .adev-carousel-item {
    flex: 0 0 100%;
    padding-right: 0;
  }
}

.adev-carousel-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.adev-carousel-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 0px 6px rgba(0, 0, 0, 0.1);
}

.adev-carousel-title {
  font-size: 18px;
  margin: 10px 0;
}

.adev-carousel-prev,
.adev-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  display: none; /* Ocultos inicialmente */
}

.adev-carousel-prev {
  left: 10px;
}

.adev-carousel-next {
  right: 10px;
}

.adev-carousel-prev:hover,
.adev-carousel-next:hover {
  background: rgba(148, 159, 170, 0.8);
}

.adev-carousel-prev::after,
.adev-carousel-next::after {
  font-family: 'swiper-icons';
  font-size: 12px;
}

.adev-carousel-prev::after {
  content: 'prev';
}

.adev-carousel-next::after {
  content: 'next';
}

.adev-carousel-prev.visible,
.adev-carousel-next.visible {
  display: block;
}

.adev-carousel-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 5px;
  transition: transform 0.3s ease-in-out;
}

.adev-carousel-item:hover {
  transform: translateY(-5px);
}

.adev-carousel-item:hover:before {
  content: '';
  height: 5px;
  background: #073262;
  width: calc(100% - 20px);
  position: absolute;
  bottom: 0;
}

/* Noticias */
/* Estilos para el widget de blog con filtros */
.adev-blog-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  font-family: 'Mulish', sans-serif;
}

.adev-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.adev-post-item {
  background: #fff;
  border-radius: 0px;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.adev-post-item:hover {
  transform: translateY(-5px);
  border-bottom: 5px solid #073262;
}

.adev-post-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 5px 0;
}

.adev-post-item h3 a {
  color: #073262;
  text-decoration: none;
}

.adev-post-thumbnail {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.adev-post-content {
  padding: 15px;
}

.adev-post-category {
  color: #98a2ad;
  font-size: 12px;
  font-weight: bold;
}

span.adev-post-date {
  color: #98a2ad;
  font-size: 12px;
}

.adev-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.adev-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.adev-filter-container {
  background: #fff;
  padding: 20px;
  border-radius: 25px;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
}

.adev-filter-group {
  margin-bottom: 15px;
}

.adev-filter-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #073262;
}

.adev-filter-group input,
.adev-filter-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.adev-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Estilos para los botones de mes */
.adev-tag-cloud button.adev-tag {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  margin: 2px;
  font-size: 12px;
  border-radius: 3px;
  color: #c7ced2;
}

.adev-tag-cloud button.adev-tag:hover {
  background-color: #e0e0e0;
}

.adev-tag-cloud button.adev-tag.adev-tag-active {
  background-color: #073262;
  color: #fff;
}

/* Asegurar que los botones no hereden estilos no deseados */
.adev-tag-cloud button {
  font-family: inherit;
  line-height: inherit;
}

.adev-tag {
  display: inline-block;
  padding: 5px 10px;
  background: transparent;
  color: #c7ced2;
  text-decoration: none;
  font-size: 14px;
}

.adev-tag:hover {
  background: #e0e0e0;
}

.adev-tag-active {
  background: #0073aa;
  color: #fff;
}

.adev-filter-button,
.adev-reset-button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.adev-filter-button {
  background: #0073aa;
  color: #fff;
}

button.adev-filter-button {
  border-color: #0c3262;
  color: #0c3262;
  padding: 5px 10px;
}

button.adev-filter-button:hover,
button.adev-filter-button:focus,
button.adev-filter-button:active {
  background-color: #0c3262;
  color: white;
  padding: 5px 10px;
}

.adev-reset-button {
  background: #f0f0f0;
  color: #333;
  margin-left: 10px;
}

.adev-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.adev-pagination-links {
  justify-content: flex-end !important;
}

.adev-pagination-bullet-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
}

.adev-facebook-embed,
.adev-instagram-embed {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .adev-blog-container {
    grid-template-columns: 1fr;
  }

  .adev-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Estilos para el widget de enlaces */
/* Estilos generales */
.adev-links-wrapper {
  width: 100%;
  font-family: 'Mulish', sans-serif;
  box-sizing: border-box;
}

.adev-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.adev-title {
  margin-bottom: 0px;
  font-weight: 700;
  text-align: left;
  color: #073262;
  font-size: 1.2em;
}

/* Diseño de columnas */
.adev-columns-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.adev-icon-column {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
}

.adev-links-content {
  flex: 0 0 calc(66.666% - 10px);
  max-width: calc(66.666% - 10px);
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.adev-links-columns {
  display: flex;
  width: 100%;
  gap: 20px;
}

.adev-links-column {
  flex: 1;
}

/* Contenedor de icono */
.adev-icon-container {
  position: relative;
  height: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adev-icon-container-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.adev-icon-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.adev-icon-wrapper i,
.adev-icon-wrapper svg {
  font-size: 60px;
  color: #fff;
  fill: white;
  width: 60px;
  height: 60px;
}

/* Lista de enlaces */
.adev-links-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.adev-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 7px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.adev-link-text {
  font-weight: 500;
  color: #495057;
}

.adev-link-item .fa {
  width: 20px;
  height: 20px;
  background: #ababab;
  border-radius: 50%;
  color: white;
  display: inline-flex;
  margin-left: 5px;
  align-items: center;
  justify-content: center;
  font-size: 0.7em;
  line-height: 1em;
  padding: 0px;
}

.adev-view-file {
  font-size: 0.9em;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  background: #ebebf2;
  color: #4958aa;
  padding: 5px 7px;
  border-radius: 15px;
}

.adev-view-file:hover {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

/* Paginación */

/* Paginación */
.adev-pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.adev-pagination-numbers {
  display: flex;
  gap: 10px;
}

.adev-page-number {
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  background-color: #e9ecef;
  color: #495057;
  transition: all 0.3s ease;
}

.adev-page-number.active {
  background-color: #0073aa;
  color: #fff;
}

.adev-pagination-bullets {
  display: flex;
  gap: 8px;
}

.adev-pagination-bullet {
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.adev-pagination-number {
  color: #4958aa;
}
.adev-pagination-bullet-container {
  color: #4958aa;
}
.adev-pagination-bullet.active {
  opacity: 1;
  transform: scale(1.2);
  background-color: #4958aa;
}

.adev-pagination-bullet {
  background-color: #ccc;
  width: 17px;
  height: 10px;
  border-radius: 27%;
}


/* Responsive */
@media (max-width: 767px) {
  .adev-icon-column,
  .adev-links-columns {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .adev-links-columns {
    flex-direction: column;
  }

  .adev-icon-container {
    min-height: 200px;
    margin-bottom: 20px;
  }
}

/* estilos para adev-soil-cards */
.soil-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 0;
}

.soil-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.soil-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
}

.soil-card-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center center;
}

.soil-card-image:hover .soil-card-image-overlay {
  opacity: 1;
}
.soil-card-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.soil-card-icon {
  width: 35px;
  height: 35px;
  color: white;
  border-radius: 50%;
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  padding: 5px;
}

.soil-card-icon svg {
  width: 80%;
  height: auto;
  fill: currentColor;
}

.soil-card-title {
  font-weight: bold;
  font-size: 1rem;
  color: #333;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100% - 200px);
}

.adev-steps-widget {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex-wrap: nowrap;
  gap: 0px;
}

.adev-step-item {
  position: relative;
  flex: 1;
  padding: 25px;
  color: white;
  border-radius: 0px;
  position: relative;
  transition: background-color 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.adev-step-item .icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.adev-step-item .icon svg {
  width: 30px;
  fill: currentColor;
}

.adev-step-item .number {
  font-size: 48px;
  font-weight: 900;
  margin-top: 10px;
  width: 100%;
  text-align: right;
}
.adev-step-item .text {
  padding-left: 10px;
}

.adev-step-item .text p {
  line-height: 1.3em;
}

.step-arrow {
  position: absolute;
  right: -30px;
  top: 0;
  bottom: 0;
  margin: auto;
  box-shadow: inset 12px -1px 10px -10px rgba(238, 236, 236, 0.99);
  -webkit-box-shadow: inset 12px -1px 10px -10px rgba(238, 236, 236, 0.99);
  -moz-box-shadow: inset 12px -1px 10px -10px rgba(238, 236, 236, 0.99);
}

.step-arrow svg {
  width: 30px;
}

.adev-step-item:last-child .step-arrow {
  right: -20px;
  width: 20px;
}

/* Image Gallery with thumbs */
.adev-image-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.adev-gallery-thumbs {
  width: 100%;
  height: auto;
  margin: 0;
}

.adev-gallery-thumbs .swiper-slide {
  cursor: pointer;
  position: relative;
  padding-top: 130px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.adev-gallery-thumbs .swiper-slide:hover {
  opacity: 0.8;
}

.adev-gallery-thumbs .swiper-slide-thumb-active {
  opacity: 1;
}

.adev-gallery-thumbs .swiper-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.adev-gallery-thumbs .swiper-slide-thumb-active::after {
  opacity: 1;
}

.adev-gallery-thumbs .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta la imagen manteniendo relación de aspecto */
  object-position: center; /* Centra la imagen */
}

.adev-gallery-main {
  width: 100%;
  height: auto;
  margin: 0;
  position: relative;
  box-shadow: 0px 0px 5px #ccc;
  border-radius: 20px;
  padding: 20px !important;
}

/* Para el carrusel principal (opcional) */
.adev-gallery-main .swiper-slide {
  position: relative;
  padding-top: 56.25%; /* Aspect ratio 16:9 */
}

.adev-gallery-main .swiper-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.adev-gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px;
  background-color: white;
  color: #313131;
  text-align: center;
  font-size: 14px;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  background-color: rgb(148 159 170) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 50px !important;
  height: 50px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: white !important;
  font-size: 16px !important;
}

/* Estilos para la navegación de miniaturas */
.adev-gallery-thumbs {
  position: relative;
}

.adev-thumbs-navigation {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  padding: 5px;
}

.adev-thumbs-button-next,
.adev-thumbs-button-prev {
  pointer-events: all;
  width: 30px;
  height: 30px;
  background-color: rgb(148 159 170) !important;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  width: 50px !important;
  height: 50px !important;
}

.adev-thumbs-button-next:hover,
.adev-thumbs-button-prev:hover {
  background-color: rgba(148, 159, 170, 0.8);
}

.adev-thumbs-button-next::after,
.adev-thumbs-button-prev::after {
  font-family: 'swiper-icons';
  font-size: 12px;
}

.adev-thumbs-button-next::after {
  content: 'next';
}

.adev-thumbs-button-prev::after {
  content: 'prev';
}
ul#menu-main {
  display: flex;
  flex-direction: row;
}

.adev-hover-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: all 0.3s ease;
}

.adev-hover-card-bg-normal,
.adev-hover-card-bg-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease;
}

.adev-hover-card-bg-hover {
  opacity: 0;
}

.adev-hover-card-normal-overlay,
.adev-hover-card-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

.adev-hover-card-hover-overlay {
  opacity: 0;
}

.adev-hover-card-normal-content,
.adev-hover-card-hover-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.adev-hover-card-hover-content {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.adev-hover-card:hover .adev-hover-card-bg-normal {
  opacity: 0;
}

.adev-hover-card:hover .adev-hover-card-bg-hover {
  opacity: 1;
}

.adev-hover-card:hover .adev-hover-card-normal-content {
  opacity: 0;
}

.adev-hover-card:hover .adev-hover-card-hover-content {
  opacity: 1;
}
/* Ajustes para dispositivos móviles */

.megasorb-card {
  position: relative;
  padding: 10px;
  width: 165px;
  height: 165px;
  transition: all 0.3s ease;
}
.megasorb-card .numero {
  font-size: 24px;
  font-weight: bold;
}
.megasorb-card .icono {
  margin-bottom: 10px;
}

.megasorb-card .icono svg {
  fill: currentColor;
}

.megasorb-card .header-cuna {
  display: flex;
  justify-content: space-between;
}

.megasorb-card .numero {
  font-weight: 900 !important;
  border-bottom: 5px solid currentColor;
  font-family: 'Montserrat', sans-serif;
  height: 40px;
}

.megasorb-card .titulo {
  margin: 0;
  font-size: 20px;
}
.megasorb-card .descripcion {
  line-height: 1;
  padding: 0;
  margin: 0;
  font-size: 0.7em;
}

/* Flecha tipo cuna (triángulo) */
.megasorb-card::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 1;
}

.cuna-bottom-left::after {
  bottom: -20px;
  left: 10px;
  border-width: 20px 20px 0 20px;
  border-top-color: inherit;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.cuna-bottom-right::after {
  bottom: -20px;
  right: 10px;
  border-width: 20px 20px 0 20px;
  border-top-color: inherit;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.cuna-top-left::after {
  top: -21px;
  left: 10px;
  border-width: 0 20px 20px 20px;
  border-bottom-color: inherit;
  border-right-color: transparent;
  border-left-color: transparent;
  border-top-color: transparent;
}

.cuna-top-right::after {
  top: -20px;
  right: 10px;
  border-width: 0 20px 20px 20px;
  border-bottom-color: inherit;
  border-right-color: transparent;
  border-left-color: transparent;
  border-top-color: transparent;
}

.cuna-left-top::after {
  left: -21px;
  top: 10px;
  border-width: 20px 20px 20px 0;
  border-right-color: inherit;
  border-left-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.cuna-left-bottom::after {
  left: -21px;
  bottom: 10px;
  border-width: 20px 20px 20px 0;
  border-right-color: inherit;
  border-left-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.cuna-right-top::after {
  right: -20px;
  top: 10px;
  border-width: 20px 0 20px 20px;
  border-left-color: inherit;
  border-right-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.cuna-right-bottom::after {
  right: -20px;
  bottom: 10px;
  border-width: 20px 0 20px 20px;
  border-left-color: inherit;
  border-right-color: transparent;
  border-top-color: transparent;
  border-bottom-color: transparent;
}
.adev-floating-wrapper {
  position: relative;
  overflow: hidden;
  background-position: center;
  width: 100%;
  min-height: 500px; /* Valor por defecto */
}

.adev-floating-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1; /* Para que quede detrás de las tarjetas */
  animation: float-bg 5s ease-in-out infinite alternate;
}

.adev-floating-card {
  position: absolute;
  overflow: hidden;
  padding: 10px;
  transition: transform 0.3s ease;
  background-size: cover;
  background-position: center;
  background-blend-mode: soft-light;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

.adev-floating-card img {
  width: 80%;
  height: auto;
  display: block;
  border-radius: inherit;
}

@keyframes float-bg {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-40px);
  }
}

/* Cortina */
/* ===== Curtain hover para .service-btn ===== */
.service-btn{
  position: relative;
  overflow: hidden;
  isolation: isolate;            /* evita mezclas raras con z-index */
  transition: color .2s ease;
}

/* Capa cortina */
.service-btn::after{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent, #0ea5e9); /* se setea por JS */
  transform: translateY(100%);        /* sale desde abajo (cortina) */
  transition: transform .45s ease;
  z-index: 0;
  pointer-events: none;                /* no bloquea clics al botón */
}

/* Mover contenido por encima de la cortina */
.service-btn > *{
  position: relative;
  z-index: 1;
}

/* Activación en hover y focus-within (accesible con teclado) */
@media (hover:hover) and (pointer:fine){
  .service-btn:hover::after{ transform: translateY(0); }
}
.service-btn:focus-within::after{ transform: translateY(0); }

/* Cambiar color de textos/links/botones cuando la cortina está activa */
@media (hover:hover) and (pointer:fine){
  .service-btn:hover,
  .service-btn:hover .elementor-heading-title{
    color: var(--on-accent, #fff) !important;
    border-color: var(--on-accent, #fff) !important; /* por si hay botones outline */
  }
  .service-btn:hover .elementor-widget-button .elementor-button{
		background: var(--on-accent, #0ea5e9) !important; 
  }
	
	.service-btn:hover .elementor-widget-button .elementor-button .elementor-button-text,
	.service-btn:hover a{
		color: var(--accent, #0ea5e9) !important;
	}
	
}
/*
.service-btn:focus-within,
.service-btn:focus-within .elementor-heading-title,
.service-btn:focus-within .elementor-widget-button .elementor-button{
  color: var(--on-accent, #fff) !important;
  border-color: var(--on-accent, #fff) !important;
}

 .service-btn:focus-within a
.service-btn:focus-within .elementor-widget-button .elementor-button,
{
	background: var(--accent, #0ea5e9); 
}*/

/* (Opcional) Invertir logos/íconos para que se vean sobre el color */
/* Caso general: accent NO es blanco → invertir a blanco */
.service-btn:not(.accent-is-white):hover .elementor-widget-image img,
.service-btn:not(.accent-is-white):focus-within .elementor-widget-image img{
  filter: brightness(0) invert(1);
}

/* Caso especial: accent ES blanco → tinte azul (o el que indiques) */
.service-btn.accent-is-white .elementor-widget-image{ position: relative; }
.service-btn.accent-is-white .elementor-widget-image::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;                /* sobre la imagen, debajo del resto de contenido */
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;

  /* Color del tinte (hereda o usa el default) */
  background-color: var(--white-tint, #334d8d);

  /* Recoloreamos usando la imagen como máscara */
  -webkit-mask-image: var(--img-url);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: var(--img-url);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
	width: 45px;
}

/* Mostrar el tinte en hover/focus y ocultar la imagen original */
.service-btn.accent-is-white:hover .elementor-widget-image::after,
.service-btn.accent-is-white:focus-within .elementor-widget-image::after{
  opacity: 1;
}
.service-btn.accent-is-white:hover .elementor-widget-image img,
.service-btn.accent-is-white:focus-within .elementor-widget-image img{
  opacity: 0;
}


/* VARIANTE: cortina de izquierda a derecha */
.service-btn::after{ transform: translateX(-100%); }
.service-btn:hover::after{ transform: translateX(0); }

.service-btn {
    overflow: hidden !important;
}



/* efecto sobre noticias */

/* Ajusta estos valores si quieres otra velocidad/intensidad */
.adev-carousel-item, .adev-post-item{
  --adev-zoom-scale: 1.08;           /* cuánto se acerca */
  --adev-zoom-duration: 6s;          /* duración del zoom */
  --adev-overlay-opacity: 0.38;      /* opacidad de la capa oscura */
  --adev-overlay-duration: 400ms;    /* fade del overlay */
}

.adev-carousel-image, .adev-post-thumbnail{
  position: relative;
  overflow: hidden;                  /* recorta el zoom */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Capa con la imagen para poder hacer transform (zoom) */
.adev-carousel-image::before, .adev-post-thumbnail::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--adev-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform var(--adev-zoom-duration) cubic-bezier(.2,.6,0,1);
  will-change: transform;
  display: block;
}

/* Overlay oscuro transparente */
.adev-carousel-image::after, .adev-post-thumbnail::after{
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity var(--adev-overlay-duration) ease;
  pointer-events: none;
}

/* Hover (y accesible con focus dentro) */
.adev-carousel-item:hover .adev-carousel-image::before,
.adev-carousel-item:focus-within .adev-carousel-image::before,
.adev-post-item:hover .adev-post-thumbnail::before,
.adev-post-item:focus-within .adev-post-thumbnail::before{
  transform: scale(var(--adev-zoom-scale));
}

.adev-carousel-item:hover .adev-carousel-image::after,
.adev-carousel-item:focus-within .adev-carousel-image::after,
.adev-post-item:hover .adev-post-thumbnail::after,
.adev-post-item:focus-within .adev-post-thumbnail::after{
  opacity: var(--adev-overlay-opacity);
}


/* Normaliza el <select> (Safari, iOS, etc.) */
#form-field-servicio,
.elementor-form .elementor-field-type-select select {
  -webkit-appearance: none !important;
          appearance: none !important;
  background: none !important;
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid rgba(255,255,255,.6) !important; /* ajusta color */
  border-radius: 0 !important;
  padding: 8px 28px 8px 0 !important; /* deja espacio para el chevron */
  line-height: 1.4 !important;
  color: #fff; /* ajusta según tu tema */
  box-shadow: none !important;
  height: auto !important;
  margin-top:5px;	
}

/* Chevron “ligero” en todos los navegadores (opcional) */
#form-field-servicio {
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'>\
<path d='M1 1l6 6 6-6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round'/>\
</svg>");
  background-repeat: no-repeat;
  background-position: right .25rem center;
  background-size: 12px 8px;
}

/* Quita la flecha de IE/Edge Legacy (por si acaso) */
#form-field-servicio::-ms-expand { display: none; }

/* Enfocado (estilo tipo Chrome) */
#form-field-servicio:focus {
  outline: none !important;
  border-bottom-color: #fff !important; /* o tu color de acento */
}


h3.elementor-image-box-title:before {
    background-color: #718fdf;
    content: '';
    width: 100px;
    position: absolute;
    height: 4px;
    bottom: -15px;
    border-radius: 25px;
    left: 0;
    right: 0;
    margin: auto;
}

h3.elementor-image-box-title {
    position: relative;
}

/* iOS: evita zoom al abrir teclado si usas tamaño pequeño */
@supports (-webkit-touch-callout: none) {
  #form-field-servicio { font-size: 16px; }
}


/* Respeta usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  .adev-carousel-image::before,
  .adev-carousel-image::after{
    transition: none;
  }
}



@media (max-width: 768px) {
  .adev-thumbs-button-next,
  .adev-thumbs-button-prev {
    width: 25px;
    height: 25px;
    font-size: 10px;
  }

  .adev-gallery-main .swiper-slide img {
    max-height: 600px;
  }

  .adev-steps-widget {
    grid-template-columns: repeat(3, 1fr);
  }

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

  ul#menu-main {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .adev-gallery-main .swiper-slide img {
    max-height: 300px;
  }

  .adev-steps-widget {
    grid-template-columns: repeat(1, 1fr);
  }
  .soil-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 370px) {
  .megasorb-card,
  .arrow-card-img img {
    width: 140px !important;
    height: 140px !important;
  }
}
