:root {
  --nav-text-dark: #171717;
  --negro-primario: #000000;
  --rojo-primario: #ee303d;
  --amarillo-primario: #f49819;
}

/*********************************************** Botones *********************************************/
#btn-botones {
  background: var(--negro-primario);
  border-color: var(--negro-primario);
  font-weight: 600;
  padding: .65rem 1.1rem;
  border-radius: .75rem;
  font-size: 16px;
  color: white;
}

#btn-botones:hover {
  background: var(--rojo-primario);
  border-color: var(--rojo-primario);
  color: white;
}

#btn-botones-outline {
  background: #fff;
  color: var(--negro-primario);
  border: 2px solid color-mix(in srgb, var(--negro-primario) 70%, #fff 30%);
  font-weight: 600;
  border-radius: .75rem;
  padding: .65rem 1.1rem;
}

#btn-botones-outline:hover {
  background: color-mix(in srgb, var(--negro-primario) 8%, #fff 92%);
  border-color: var(--negro-primario);
}

/*** General Span *****/
.text-uppercase {
  color: var(--nav-text-dark);
}

b {
  font-weight: 500 !important;
  color: rgb(255, 255, 255);
}

@media (max-width: 575.98px) {
  .home-intro p {
    text-align: left;
  }

  .sec-distribuidor p {
    text-align: left;
  }

  .sec-proyectos p {
    text-align: left;
  }
}

@media (min-width: 992px) {
  .title-wrap {
    margin-top: 60px;
  }
}

/********************************************* NAVBAR *********************************************/

.navbar {
  transition:
    background-color .28s cubic-bezier(.2, 0, 0, 1),
    box-shadow .28s cubic-bezier(.2, 0, 0, 1),
    color .2s linear;
  will-change: background-color, box-shadow, color;
}

/* Color Navbar Superior*/
.navbar.navbar-transparent {
  background: transparent;
}

/* Color Navbar Scroll*/
.navbar.navbar-scrolled {
  background: #000000;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}


.navbar .nav-link {
  color: #fff !important;
}

/* ---------- Botón Contáctenos ---------- */
.btn.btn-contactame {
  font-weight: 600;
  border-radius: 999px;
  padding: .55rem 1rem;
  margin-left: 20px;
  border: 2px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .06s ease;
}

.navbar.navbar-transparent .btn-contactame {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .08);
}

.navbar.navbar-transparent .btn-contactame:hover {
  transform: translateY(-1px);
  box-shadow: 0 .6rem 1.25rem rgba(0, 0, 0, .12);
}

.navbar.navbar-scrolled .btn-contactame {
  background: var(--amarillo-primario);
  color: #ffffff;
  border-color: rgba(255, 255, 255, .15);
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .10);
}

.navbar.navbar-scrolled .btn-contactame:hover {
  background: white;
  color: black;
}

/* Abrir el dropdown al activar hover*/
.navbar .dropdown-menu {
  display: block;
  /* dejamos que .show controle visibilidad */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  border: 0;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}

.navbar .dropdown.show>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}

@media (hover: none),
(pointer: coarse) {
  .navbar .dropdown-menu {
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
  }
}

/************************** Desktop: Logo *********/
@media (min-width: 992px) {

  .navbar {
    overflow: visible;
  }

  .navbar .navbar-brand {
    position: relative;
    display: inline-block;
    height: 35px;
    line-height: 35px;
    overflow: visible;
    z-index: 2;
  }

  .navbar .navbar-brand .logo-desktop {
    height: 130px;
    display: block;
    position: absolute;
    top: -27px;
    left: 0;
    /* <- faltaba valor */
    transform: translateY(14px);
    pointer-events: auto;
    /* <- permitir clics al <a> */
  }

  /* Por si el estado scrolled cambia sombras/colores, dejamos visible el overflow */
  .navbar.navbar-scrolled {
    overflow: visible;
  }
}


/********** Subrayar menú (rojo intenso) *************/

/* Base: los elementos que tendrán subrayado */
.navbar-custom .nav-link:not(.dropdown-toggle),
.navbar-custom .dropdown-item {
  position: relative;
  overflow: hidden;
  color: var(--negro-primario, #111);
  transition: color .25s ease;
}

/* Línea animada */
.navbar-custom .nav-link:not(.dropdown-toggle)::before,
.navbar-custom .dropdown-item::before {
  content: "";
  position: absolute;
  left: 10%;
  bottom: 0.3rem;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--negro-primario) 0%, var(--rojo-primario) 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease, background .3s ease;
  border-radius: 2px;
}

/* Hover/focus: animación de entrada + cambio de color del texto */
.navbar-custom .nav-link:not(.dropdown-toggle):hover,
.navbar-custom .dropdown-item:hover {
  color: #292929;
}

.navbar-custom .nav-link:not(.dropdown-toggle):hover::before,
.navbar-custom .nav-link:not(.dropdown-toggle):focus::before,
.navbar-custom .dropdown-item:hover::before,
.navbar-custom .dropdown-item:focus::before {
  transform: scaleX(1);
}

/* Activo (página actual) */
.navbar-custom .nav-link.active:not(.dropdown-toggle)::before,
.navbar-custom .dropdown-item.active::before,
.navbar-custom .nav-link[aria-current="page"]:not(.dropdown-toggle)::before {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--negro-primario) 0%, var(--rojo-primario) 100%);
}

/* No subrayar el botón de contacto */
.navbar-custom .btn-contactame.nav-link::before,
.navbar-custom .btn-contactame::before {
  content: none !important;
}

/* Dropdown sin interferencias visuales */
.navbar-custom .dropdown-menu {
  --bs-dropdown-link-active-bg: transparent;
  --bs-dropdown-link-active-color: #292929;
}

/* Modo de reducción de movimiento */
@media (prefers-reduced-motion: reduce) {

  .navbar-custom .nav-link:not(.dropdown-toggle)::before,
  .navbar-custom .dropdown-item::before {
    transition: none;
  }
}

/* ===== Mobile ===== */
@media (max-width: 991.98px) {

  .navbar-custom .nav-link:not(.dropdown-toggle)::before {
    left: .75rem;
    width: calc(100% - 1.5rem);
    height: 1px;
    bottom: .2rem;
    background: var(--rojo-primario);
    transform-origin: left;
  }

  .navbar-custom .dropdown-menu .dropdown-item {
    display: inline-block;
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .navbar-custom .dropdown-menu .dropdown-item::before {
    left: 0.1em;
    width: calc(100% - 0.2em);
    height: 1px;
    bottom: .14rem;
    background: var(--rojo-primario);
    transform-origin: left;
  }

  .navbar-custom .dropdown-toggle.is-active-parent {
    box-shadow: inset 0 -1px 0 0 var(--rojo-primario);
  }
}

/******************************** Slider ****************************************/
.hero-carousel {
  position: relative;
  margin-top: 0;
  height: 100svh;
  min-height: 100vh;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}

@supports (height: 100dvh) {
  .hero-carousel {
    height: 100dvh;
  }
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.hero-carousel .carousel-indicators {
  display: none !important;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: clamp(4rem, 7vw, 7rem);
  opacity: .35;
  transition: opacity .2s ease;
  pointer-events: auto;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  opacity: .75;
}

/* Difuminado lateral */
.hero-carousel .carousel-control-prev {
  background: linear-gradient(to right, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0));
}

.hero-carousel .carousel-control-next {
  background: linear-gradient(to left, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0));
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .14), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {

  .hero-carousel .carousel,
  .hero-carousel .carousel-item {
    transition: none !important;
  }
}

@media (max-width: 991px) {
  .btn.btn-contactame {
    margin-top: 10px;
    margin-left: 0;
  }
}

/**************Contenido Slider**************/
.hero-carousel .carousel-item {
  position: relative;
}

/* Capa de texto a la izquierda (desktop/tablet por defecto) */
.hero-carousel .banner-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

/* Contenido del caption */
.hero-carousel .banner-caption-inner {
  pointer-events: auto;
  max-width: 800px;
  margin-left: clamp(2rem, 8vw, 8rem);
  padding: 1rem 1.25rem;
  color: #000000ff;
  backdrop-filter: saturate(110%);
}

.hero-carousel .banner-caption-inner h2 {
  font-size: clamp(1.8rem, 3.2vw, 4.6rem);
  font-weight: 800;
}

.hero-carousel .banner-caption-inner p {
  font-size: 20px;
}

@media (min-width: 1300px) {
  .hero-carousel .titulos-banner {
    margin-left: 35px;
    margin-bottom: 50px;
  }

  .hero-carousel .contenedor-lista {
    margin-left: 50px;
    font-size: 18px;
  }
}

/* Mobile: texto arriba-izquierda, no centrado */
@media (max-width: 700px) {
  .hero-carousel .banner-caption {
    align-items: flex-start;
    /* arriba */
    justify-content: flex-start;
    /* izquierda */
    padding-top: 1rem;
  }

  .hero-carousel .banner-caption-inner {
    margin-top: 4rem;
    text-align: left;
    /* ya no centrado */
  }

  .hero-carousel .titulos-banner {
    margin-left: 0;
    margin-bottom: .75rem;
  }

  .hero-carousel .contenedor-lista {
    margin-left: 0;
    font-size: 16px;
  }
}

/***************** Titulos h1 *****************/
.titilos-h1 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

.titilos-h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  height: 4px;
  border-radius: 3px;
  background-color: var(--amarillo-primario);
  transform: scaleX(1);
  transform-origin: left;
}

/********************************************* Secciones Home *********************************************/

.hero-nachi-intro .list-unstyled i {
  color: var(--amarillo-primario);
  margin-bottom: 8px;
}

.hero-nachi-intro .titulo-home-h1 {
  font-weight: 400;
  font-size: 2.5rem;
}

.hero-nachi-intro .hero-nachi-horizontal__gallery {
  display: flex;
  gap: 8px;
  height: 600px;
  transition: all 0.5s ease;
}

.hero-nachi-intro .img-panel {
  flex: 1;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  /* Transición hover suave */
  position: relative;
}

.hero-nachi-intro .img-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-nachi-intro .hero-nachi-horizontal__gallery:hover .img-panel {
  flex: 0.75;
  filter: brightness(0.8);
}

.hero-nachi-intro .hero-nachi-horizontal__gallery .img-panel:hover {
  flex: 3;
  /* Ajuste de expansión al hover */
  filter: brightness(1);
  z-index: 2;
}

.hero-nachi-intro .hero-nachi-horizontal__gallery .img-panel:hover img {
  transform: scale(1.05);
}

.hero-nachi-intro .img-panel-left {
  border-radius: 80px 0 0 80px;
}

.hero-nachi-intro .img-panel-center {
  border-radius: 20px;
}

.hero-nachi-intro .img-panel-right {
  border-radius: 0 80px 80px 0;
}

/* Sombras suaves al hover */
.hero-nachi-intro .img-panel:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .hero-nachi-intro .hero-nachi-horizontal__gallery {
    gap: 3px;
    height: 300px;
  }
}


/********************************************* Productos *********************************************/

/* ===== SECCIÓN PRODUCTOS MEJORADA ===== */
.section-diagonal {
  --diag-top: 5%;
  --diag-bot: 95%;
  position: relative;
  background: url("/imagenes/background-nachi-hidraulica.webp") top/cover no-repeat;
  /* 👈 tu imagen de fondo */
  color: #fff;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 180px;
  transform: translateZ(0);
  clip-path: polygon(0 var(--diag-top), 100% 0, 100% 100%, 0% var(--diag-bot));
}

.sec-productos-home .container {
  position: relative;
  z-index: 1;
}

.sec-productos-home .titulo-seccion {
  font-size: 34px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.sec-productos-home .subtitulo-seccion {
  max-width: 68ch;
  opacity: .9;
  margin: 0 auto;
}

/* ==== TARJETAS ==== */
.prod-card {
  overflow: visible !important;
}

.prod-media {
  position: relative;
  margin-top: -50px;
  z-index: 3;
}

.prod-card {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  text-decoration: none;
  color: #fff;
  padding: 1.2rem 1rem 1rem 1rem;
  min-height: 300px;
  transition: transform 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.prod-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
}

/* Elimina sombras/bordes en imágenes transparentes */
.prod-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  display: block;
  margin: 0 auto 1rem auto;
}

/* Contenido textual */
.prod-copy h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.prod-copy p {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.4;
}

.btn-vermas {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #ffffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.prod-card:hover .btn-vermas {
  color: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  
  .section-diagonal {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (max-width: 575.98px) {
  .section-diagonal {
    --diag-top: 3%;
    --diag-bot: 97%;
  }
  .sec-productos-home h3{
      text-align: center;
  }

  .prod-card img {
    height: 130px;
  }
}

/********************************************* Distribuidores *********************************************/

.sec-distribuidor {
  margin-top: 55px;
  margin-bottom: 100px;
}

.sec-distribuidor h2 {
  color: var(--nav-text-dark);
  font-weight: 700;
  line-height: 1.1;
}

.sec-distribuidor p {
  color: var(--nav-text-dark);
}

/* Logos */
.dist-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .5rem 0;
  min-height: 64px;
}

.logo-cesehsa {
  height: clamp(70px, 9vw, 94px);
  /* tamaño fluido */
  width: auto;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
  filter: none;
}

/* Responsive */
@media (max-width: 991.98px) {
  .dist-logos {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .dist-card {
    border-radius: .9rem;
    padding: 1.1rem;
  }
}

/********************************************* Soluciones Video *********************************************/

.sec-proyectos {
  position: relative;
  height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}

@supports (height: 100dvh) {
  .sec-proyectos {
    height: 100dvh;
  }
}

.proy-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.02);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.proy-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgba(234, 234, 234, 0.5), rgba(31, 31, 31, 0.5));
  pointer-events: none;
}

.proy-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  align-content: center;
  max-width: 820px;
  padding-block: clamp(2rem, 6vw, 4rem);
}

.sec-proyectos .kicker {
  letter-spacing: .12em;
  font-size: .8rem;
  color: #e9f6fc;
}

.sec-proyectos .titulo {
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(1.8rem, 1.1rem + 3.2vw, 3rem);
  margin: .35rem 0 .5rem;
}

.sec-proyectos .subtitulo {
  max-width: 60ch;
  font-size: clamp(1rem, .9rem + .4vw, 1.125rem);
  opacity: .96;
  margin-bottom: 1.25rem;
}

.sec-proyectos .acciones {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
}

@media (max-width: 575.98px) {
  .proy-content {
    max-width: 92%;
  }
}

/************************************************** PRODUCTOS *************************************************/

/************************* Productos Inicio *********************************/

.sec-productos {
  position: relative;
  padding-block: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
  background: url("/imagenes/background-nachi-hidraulica.webp") center/cover no-repeat;
  --diag-bots: 93%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 var(--diag-bots));
  transform: translateZ(0);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .09);
}

.sec-productos .contenedor-productos {
  margin-top: 20px;
  margin-bottom: 30px;
}

.sec-productos b {
  font-weight: 600;
}

.sec-productos li {
  margin-bottom: 10px;
}

.sec-productos .title-chip {
  color: white;
  font-weight: 800;
  letter-spacing: .02em;
  font-size: 32px;
}

.sec-productos p,
.sec-productos h2,
.sec-productos h4,
.sec-productos li {
  color: white;
}

.sec-productos .prod-hero img {
  display: block;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  user-select: none;
}

@media (max-width: 575.98px) {
  .sec-productos .title-wrap::before {
    inset: 0 auto 0 calc(-50vw + 50%);
  }

  .sec-productos .contenedor-productos {
    margin-top: 65px;
  }

  .sec-productos p {
    text-align: left;
  }

  .sec-productos .prod-hero {
    transform: none;
  }

  .sec-productos .prod-hero img {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .sec-productos {
    --diag-bot: 97%;
  }
}


/********************************** Series Productos *******************************/
.sec-series {
  margin-bottom: 3rem;
}

.sec-series .card .stretched-link {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.sec-series .card h3 {
  font-size: 1.15rem;
  padding: 5px;
}

.sec-series .card {
  overflow: visible;
  border: 1px solid var(--amarillo-primario);
  transition: transform 0.4s ease;
}

.sec-series .card:hover {
  transform: translateY(-10px);
}

.sec-series .card>img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -45%);
  width: clamp(190px, 45%, 210px);
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
}

.sec-series .card-body {
  padding-left: 15px;
  padding-right: 15px;
}

.sec-series .descripcion-series p {
  font-size: 14px !important;
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

.sec-series .titulos-des-series{
  color: rgb(77, 77, 77);
  font-weight: 700;
}

#btn-botones-catalogo {
  margin-top: 12px;
  margin-bottom: 0;
  text-align: end;
  border: none;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .sec-series .card {
    padding-top: 3.5rem;
  }

  .sec-series .card>img {
    transform: translate(-50%, -36%);
    width: clamp(120px, 48%, 200px);
  }
}

@media (max-width: 575.98px) {
  .sec-series .card {
    padding-top: 3.25rem;
  }

  .sec-series .card-body {
    padding-left: 10px;
    padding-right: 10px;
  }

  .sec-series .card>img {
    transform: translate(-50%, -34%);
    width: clamp(110px, 52%, 190px);
  }

  .sec-series .descripcion-series p {
    font-size: 12px !important;
  }

  #btn-botones-catalogo {
    font-size: 14px;
  }
}

/*********************************** BANNER SERIES HOVER *********************************************/

.sec-series .card {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.sec-series .bg-gris {
  background-color: #f9f9f9;
}

.sec-series .card:hover,
.sec-series .card:focus-within {
  z-index: 2;
}

.card-hover-banner {
  display: none;
}

#banner-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999999;
}

.floating-banner h4 {
  color: white;
  font-size: 19px;
}

.floating-banner .contenido-series-info p {
  font-size: 14px;
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.floating-banner .contenido-series-info span {
  color: white;
}

.floating-banner .contenido-series-info a {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.floating-banner .contenido-series-info a:hover {
  color: var(--rojo-primario);
}

.floating-banner {
  position: fixed;
  width: 320px;
  max-width: min(80vw, 320px);
  padding: 1rem;
  background: rgb(0, 0, 0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  border-radius: .5rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: auto;
}

.floating-banner.show {
  opacity: 1;
  transform: translateY(0);
}

/* Flechita */
.floating-banner::after {
  content: "";
  position: absolute;
  top: 16px;
  border: 8px solid transparent;
}

.floating-banner.right::after {
  left: -16px;
  border-right-color: rgb(94, 94, 94);
}

.floating-banner.left::after {
  right: -16px;
  border-left-color: #d2d2d2ff;
}

@media (prefers-reduced-motion: reduce) {
  .floating-banner {
    transition: none;
  }
}

@media (max-width: 576px) {
  .floating-banner {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, 0) !important;
    width: calc(100vw - 2rem);
    max-width: 100%;
  }

  .floating-banner::after {
    display: none;
  }
}

/******************************* Catalogos Descargar *******************************/
.sec-catalogos .imagen-catalogos-series img {
  max-height: 580px;
  margin: 0 auto;
  -webkit-user-drag: none;
}

.section-diagonal-catalogos {
  --diag-top: 5%;
  --diag-bot: 95%;
  position: relative;
  background: url("/imagenes/background-nachi-hidraulica.webp") top/cover no-repeat;
  color: #fff;
  overflow: hidden;
  padding-top: 25px;
  padding-bottom: 25px;
  transform: translateZ(0);
  clip-path: polygon(0 var(--diag-top), 100% 0, 100% 100%, 0% var(--diag-bot));
}

@media (max-width: 991.98px) {
  .section-diagonal-catalogos {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .sec-catalogos p {
    text-align: left;
  }

  .sec-catalogos .imagen-catalogos-series img {
    max-height: 300px;
  }
}

@media (max-width: 575.98px) {
  .section-diagonal-catalogos {
    --diag-top: 3%;
    --diag-bot: 97%;
  }
}

/********************************** Seccion Aplicaciones ************************************/

.sec-tecnologia-aplicaciones {
  margin-top: 6rem !important;
}

.sec-tecnologia-aplicaciones h2,
.sec-tecnologia-aplicaciones h3 {
  color: #111;
  letter-spacing: -0.5px;
}

.sec-tecnologia-aplicaciones span {
  color: var(--amarillo-primario);
}

.sec-tecnologia-aplicaciones p {
  color: #444;
  line-height: 1.6;
}

.sec-tecnologia-aplicaciones .aplicaciones-wrapper {
  background: #fff;
  border-top: 4px solid var(--amarillo-primario);
}

.sec-tecnologia-aplicaciones .card-aplicacion {
  transition: all 0.3s ease;
  border-radius: 1rem;
}

.sec-tecnologia-aplicaciones .card-aplicacion:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
}

/* Responsivo */
@media (max-width: 992px) {
  .sec-tecnologia-aplicaciones .aplicaciones-wrapper {
    padding: 2rem;
  }
}

/******************************* Caracteristicas Unidades Hidraulicas *******************************/
.sec-caracteristicas ul {
  list-style: none;
  padding-left: 0;
}

.sec-caracteristicas li {
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.sec-caracteristicas .imagenes-circuitos {
  border-radius: 30px;
}

@media (max-width: 768px) {
  .sec-caracteristicas .title-wrap {
    margin-bottom: 2rem;
  }
}

/******************************** Tabla Caracteristicas ***************************/

.sec-tabla {
  background: rgba(251, 251, 251, 1);
}

.sec-tabla th {
  background-color: var(--bs-light);
  font-size: 0.9rem;
  white-space: nowrap;
}

.sec-tabla td {
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {

  .sec-tabla th,
  .sec-tabla td {
    font-size: 0.85rem;
  }
}

/********************************* Galeria de Imagenes ******************************/
.sec-galeria .galeria-img {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2);
}

.sec-galeria .galeria-img:hover {
  transform: scale(1.05);
}

.sec-galeria #modalImagen .modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sec-galeria #imagenAmpliada {
  max-height: 85vh;
  transition: transform 0.3s ease-in-out;
}

/********************************* Pagina de Contacto *******************************/

/* --- CONTACTO --- */
.sec-contacto {
  position: relative;
  padding: 5rem 0;
  background: #fafafa;
}

.sec-contacto .contacto-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2rem;
}

/* --- FORMULARIO --- */
.sec-contacto .contacto-form {
  flex: 1 1 420px;
  background: #fff;
  border-radius: 1rem;
  border-left: 6px solid var(--rojo-primario);
  padding: 2.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.sec-contacto .contacto-form h2 {
  font-weight: 700;
  margin-bottom: .5rem;
  color: var(--negro-primario);
}

.sec-contacto .contacto-form p {
  color: #666;
  margin-bottom: 1.8rem;
  font-size: .95rem;
}

.sec-contacto input,
.sec-contacto textarea {
  border: 1px solid #ccc;
  border-radius: .6rem;
  width: 100%;
  padding: .75rem 1rem;
  font-size: .95rem;
  transition: border-color .2s;
}

.sec-contacto input:focus,
.sec-contacto textarea:focus {
  border-color: var(--rojo-primario);
  outline: none;
}

.sec-contacto textarea {
  min-height: 140px;
  resize: vertical;
}

.sec-contacto .enviar {
  background: linear-gradient(90deg, var(--rojo-primario) 0%, #3b0000 100%);
  color: #fff;
  border: none;
  max-width: 50%;
  font-weight: 600;
  padding: .9rem 1.6rem;
  border-radius: .6rem;
  transition: opacity .2s ease;
}

.sec-contacto .enviar:hover {
  color: white;
  opacity: 0.9;
}

/* --- IMAGEN LATERAL --- */
.sec-contacto .contacto-images {
  flex: 1 1 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sec-contacto .contacto-images .img-box {
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.sec-contacto .contacto-images img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}


/* --- REDES SOCIALES (versión fondo blanco) --- */
.sec-social {
  padding: 4rem 0;
}

.sec-social h3 {
  font-weight: 700;
  color: var(--negro-primario);
  margin-bottom: 0.6rem;
}

.sec-social p {
  color: #666;
  margin-bottom: 2rem;
  font-size: .95rem;
}

/* Contenedor en cuadrícula */
.sec-social .social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

/* Tarjeta */
.sec-social .social-box {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 0.9rem;
  padding: 1.1rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: #222;
  transition: all 0.25s ease;
}

.sec-social .social-box:hover {
  border-color: #b30000;
  box-shadow: 0 6px 14px rgba(179, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Ícono */
.sec-social .social-box i {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #b30000 0%, #7a0000 100%);
  color: #fff;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.sec-social .social-box:hover i {
  transform: scale(1.1);
}

/* Texto */
.sec-social .social-box span {
  font-weight: 600;
  font-size: 1rem;
}

.sec-social .social-box small {
  display: block;
  font-size: 0.85rem;
  color: #777;
}

.sec-whatsapp .sec-kicker {
  color: #ffffffff;
}

.sec-whatsapp img {
  max-height: 440px;
}

.sec-whatsapp #btn-botones-outline {
  background-color: #25D366;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.sec-whatsapp #btn-botones-outline:hover {
  background-color: #1ebe5b;
  color: #fff;
}

/* Responsive */
@media (max-width: 575.98px) {
  .sec-social {
    padding: 3rem 0;
  }

  .sec-social .social-box {
    padding: 1rem;
  }

  .sec-social .social-box i {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
  .sec-contacto .contacto-wrapper {
    flex-direction: column;
  }
}

/******************************* Pagina Catalogos Generales *******************************/

/* ---- Sección de Catálogos ---- */
.pag-catalogos .cat-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.pag-catalogos .cat-card {
  position: relative;
  border: 1px solid #ddd;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.4rem 0.9rem rgba(0, 0, 0, 0.2);
  transition: transform .5s ease, box-shadow .5s ease, border-color .5s ease;
  padding: .6rem;
  /* espacio interno para que la imagen no toque el borde */
}

.pag-catalogos .cat-card:hover {
  transform: translateY(-5px);
}

/* Línea roja inferior */
.pag-catalogos .cat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: .30rem;
  background-color: var(--negro-primario);
  /* rojo oscuro */
}

.pag-catalogos .cat-cover {
  aspect-ratio: 3/4;
  margin: 0;
  border-radius: .7rem;
  overflow: hidden;
  background: #f7f7f7;
}

.pag-catalogos .cat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pag-catalogos .cat-meta {
  padding: 1rem 0.8rem 0.5rem;
}

.pag-catalogos .cat-meta h3 {
  font-weight: 600;
  font-size: 1.13rem;
  text-align: center;
}

/* ---- Título de sección ---- */
.pag-catalogos h2 {
  color: #ca2a35ff;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.pag-catalogos p.text-muted {
  color: #777 !important;
}

/******************************** SECCION DE PREGUNTAS FRECUENTES ***********************************/

.faq-accordion .accordion-item {
    background: #ffffff;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 18px 20px;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: #ffffff;
    color: #0d6efd;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
}

.faq-accordion .accordion-body {
    padding: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    border-top: 1px solid #eee;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--amarillo-primario); /* r0ojo corporativo */
}


/*********************************************** Animaciones *******************************************/
/* Base: todo parte oculto */
.reveal {
  opacity: 0;
  will-change: opacity, transform;
  /* personalizable por elemento */
  --dur: 3.5s;
  --delay: 350ms;
  --easing: cubic-bezier(.2, .6, 0, 1);
  transition:
    opacity var(--dur) var(--easing) var(--delay),
    transform var(--dur) var(--easing) var(--delay);
}

/* Variantes de origen */
.from-up {
  transform: translateY(24px);
}

.from-down {
  transform: translateY(-24px);
}

.from-left {
  transform: translateX(-28px);
}

.from-right {
  transform: translateX(28px);
}

.scale-in {
  transform: scale(.92);
}

/* Estado visible */
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.is-visible {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/********************************************************** Blog (Home) **************************************************/

.sec-blog-nachi .subtitulo-seccion {
  max-width: 65ch;
  opacity: 0.85;
}

/* Cards */
.sec-blog-nachi .blog-card {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
  transition: all 0.5s ease;
  overflow: hidden;
}

.sec-blog-nachi .blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Imagen superior */
.sec-blog-nachi .blog-thumb img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

/* Contenido */
.sec-blog-nachi .blog-content {
  padding: 1.4rem;
}

.sec-blog-nachi .blog-content .categoria {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #004a93;
  font-weight: 600;
  margin-bottom: .5rem;
}

.sec-blog-nachi .blog-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--negro-primario);
  margin-bottom: .5rem;
}

.sec-blog-nachi .blog-content p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.sec-blog-nachi .blog-content .leer-mas {
  font-size: 0.9rem;
  font-weight: 600;
  color: #004a93;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sec-blog-nachi .blog-content .leer-mas:hover {
  color: #002e61;
}

/* Responsive */
@media (max-width: 991.98px) {
  .sec-blog-nachi .blog-thumb img {
    height: 200px;
  }

  .sec-blog-nachi .blog-content h3 {
    font-size: 1.05rem;
  }
}

/**************************************************** BLOG (PAGINAS) **********************************************/
.sec-blog-detalle .text-rojo {
  color: var(--rojo-primario);
}

.sec-blog-detalle .link-sidebar {
  color: #222;
  transition: color 0.2s ease;
}

.sec-blog-detalle .link-sidebar:hover {
  color: var(--rojo-primario);
}

.sec-blog-detalle .bg-negro {
  background-color: var(--negro-primario);
}

.sec-blog-detalle p {
  line-height: 1.75;
  color: #333;
}

.sec-blog-detalle h3 {
  color: var(--negro-primario);
}

.sec-blog-detalle ul li {
  margin-bottom: 0.4rem;
}

.sec-blog-detalle .sidebar .card {
  border-radius: 0.75rem;
}

.sec-blog-detalle .sidebar .card-body {
  font-size: 0.95rem;
}

.sec-blog-detalle .recent-post img {
  object-fit: cover;
}

/********************************************************* FOOTER ***************************************************/
.footer {
  background: var(--negro-primario);
  color: white;
  border-top: 1px solid rgba(0, 0, 0, .05);
  font-size: 0.975rem;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.02);
}

.footer .text-white {
  color: white !important;
}

.footer h5 {
  color: var(--rojo-primario);
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}

.footer .linea-footer {
  width: 48px;
  height: 1px;
  border-radius: 2px;
  background: var(--amarillo-primario);
  margin: .25rem 0 1rem 0;
}

.footer ul {
  margin: 0;
  padding: 0;
}

.footer ul li {
  margin: .25rem 0;
}

.footer a {
  color: white !important;
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease, text-decoration-color .18s ease;
}

.footer a:hover,
.footer a:focus {
  color: var(--rojo-primario) !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.footer p {
  margin-bottom: .5rem;
}

.footer p i {
  color: white;
  margin-right: .45rem;
}

.footer .social-icons {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
}

.footer .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid var(--amarillo-primario);
  color: var(--amarillo-primario);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .08s ease;
}

.footer .social-icons i {
  margin-right: 0 !important;
  line-height: 1;
  font-size: 1rem;
  vertical-align: middle;
}

.footer .social-icons a:hover {
  background: var(--amarillo-primario);
  color: white !important;
}


.footer .linea-larga-footer {
  height: 1px;
  background: linear-gradient(to right,
      rgba(238, 48, 61, 0.06) 0%,
      rgba(238, 48, 61, .12) 35%,
      rgba(238, 48, 61, .06) 100%);
}


.footer .footer-bottom {
  background: #1b1b1b;
  color: white;
  border-top: 1px solid rgba(0, 0, 0, .06);
  font-size: .9rem;
}

.footer .footer-bottom .parr-derechos {
  opacity: .82;
  margin-top: .25rem;
}

.footer a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--rojo-primario) 45%, transparent);
  outline-offset: 2px;
  border-radius: 6px;
}

@media (max-width: 767.98px) {

  .footer li,
  p,
  h5 {
    text-align: center;
  }

  .footer .linea-footer {
    margin: 0 auto;
    margin-bottom: 20px;
  }

  .footer .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .footer h5 {
    margin-top: .75rem;
  }

  .footer .social-icons a {
    margin-top: 100px;
    margin: 0 auto
  }

  .logo-footer {
    text-align: center;
    padding-left: 40px;
  }

}

@media print {
  .footer {
    background: #fff !important;
    color: #000 !important;
  }

  .footer .footer-bottom {
    background: #fff !important;
  }
}

/*Ajuste personalizado para pantallas de 1200 a 1399 pixeles */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .container-xl {
        max-width: 1320px; /* ajusta según lo que necesites */
    }
}