.flexy-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 20px;
}

.flexy-page-title {
    font-family: "DM Sans", sans-serif;
    font-size: 32px;
    margin-top: 10px;
    padding-left: 15px;
    color: #333;
}

.service-post {
    font-family: "DM Sans", sans-serif;
    max-width: 1280px;
    min-height: fit-content;
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

.service-post h2 {
    font-size: 24px;
    color: #000;
}

.service-post h4 {
    font-size: 18px;
    color: #000;
}

.service-post p {
    font-size: 18px;
}

/* Glass effect */
.glass-box {
    background: rgba(251, 251, 251, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #F5F5F5;
    border-radius: 56px;
    padding: 30px;
}

/* Imagen */
.service-image {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-hp {
    height: 58px;
}

.logo-hp {
    margin: 0;
    height: 58px;
}

.section-services {
    height: 160px;
    user-select: none;
}

/* Media query para pantallas más pequeñas */
@media screen and (max-width: 768px) {
    .service-items {
        padding: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .section-services {
        padding: 8px 16px !important;
    }
    .logo-hp {
        height: 38px;
    }
}

.hd-mv-btn-hp {
    height: 38px;
}


/* FORMULARIO TRABAJA CON NOSOTROS */
/* Estilo general del formulario */
/* Columna izquierda (Regístrate + Campos básicos) */
.left-column {
    flex: 1;
    min-width: 45%; /* Para que ocupe el 45% del espacio */
    padding: 15px;
}

.left-column h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Columna derecha (Archivos, encuesta, política, captcha, botón) */
.right-column {
    flex: 1;
    min-width: 45%; /* Para que ocupe el 45% del espacio */
    padding: 15px;
}

/* Estilo para el botón de envío */
form.wpcf7-form input[type="submit"] {
    width: 100%;
    background-color: #24527E;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
	font-weight: 700;
}

/* Ajustes para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    form.wpcf7-form {
        flex-direction: column; /* Los campos se apilan en una sola columna */
    }

    .left-column, .right-column {
        min-width: 100%; /* Las columnas ocupan el 100% del espacio en móvil */
    }

    .left-column {
        margin-bottom: 20px; /* Espacio adicional entre las secciones */
    }
}

/* ************* */
/* Estilos del carrusel */
/* ************* */

.carousel-wrapper {
  position: relative;
  width: 100%;
  height: 398px; /* Desktop */
  max-height: 398px;
  overflow: hidden;
  font-family: 'DM Sans', 'Lucida Sans', sans-serif;
}

/* Tablet */
@media (max-width: 1024px) {
  .carousel-wrapper {
    height: 260px;
    max-height: 260px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .carousel-wrapper {
    height: 120px;
    max-height: 120px;
  }
  .carousel-overlay h4 {
    margin-top: 0;
  }
}

/* Track */
.carousel-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.9s ease-in-out;
}

/* Imágenes */
.carousel-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover; /* Recorte limpio */
  object-position: center; /* Centrado vertical/horizontal */
  flex-shrink: 0;
}

/* Overlay fijo */
.carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
  padding: 0 1rem;
}

.carousel-overlay h2 {
  color: #fff;
  font-size: clamp(16px, 3vw, 48px);
  margin: 0;
  font-weight: 700;
}

.carousel-overlay h4 {
  color: #eaeaea;
  font-size: clamp(10px, 3vw, 32px);
  margin-top: 0.6rem;
  font-weight: 700;
}


/* ************* */
/* Estilos del home scroll content*/
/* ************* */

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 50%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  cursor: grab;
  font-family: 'Lucida Sans', Geneva, Verdana, sans-serif;
}

.horizontal-scroll:active {
  cursor: grabbing;
}

/* Item */
.scroll-item {
  position: relative;
  width: 95%;
  height: 312px;
  scroll-snap-align: start;
  border-radius: 24px;
  overflow: hidden;
  border: 3px solid #cacaca80;
  text-decoration: none;
  transform-origin: top left; /* CLAVE */
  transition: transform 0.35s ease;
}

/* Hover: crece solo a la derecha y abajo */
.scroll-item:hover {
  transform: scale(1.04);
}

/* Imagen */
.scroll-item img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Overlay */
.scroll-item .scroll-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: flex-end;
  padding: 2rem 4rem;
}

/* Texto */
.scroll-item h4 {
  color: #fff;
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

/* Scrollbar oculto */
.horizontal-scroll::-webkit-scrollbar {
  display: none;
}
.horizontal-scroll {
  scrollbar-width: none;
}

/* Responsive */
@media (max-width: 768px) {
  .horizontal-scroll {
    grid-auto-columns: 80%;
  }

  .scroll-item {
    height: 200px;
  }
}

