:root {
  --nav-text-dark: #0a224a;
  --azul-primario: #059bce;
}

/*********************************************** Botones *********************************************/
#btn-botones {
  background: var(--azul-primario);
  border-color: var(--azul-primario);
  font-weight: 700;
  padding: .65rem 1.1rem;
  border-radius: .75rem;
  color: white;
}

#btn-botones:hover {
  background: #077ea7;
  border-color: #077ea7;
  color: white;
}

#btn-botones-outline {
  background: #fff;
  color: var(--azul-primario);
  border: 2px solid color-mix(in srgb, var(--azul-primario) 70%, #fff 30%);
  font-weight: 700;
  border-radius: .75rem;
  padding: .65rem 1.1rem;
}

#btn-botones-outline:hover {
  background: color-mix(in srgb, var(--azul-primario) 8%, #fff 92%);
  border-color: var(--azul-primario);
}

b {
  font-weight: 500 !important;
  color: rgb(70, 70, 70);
}

@media (max-width: 575.98px) {
  .home-intro p {
    text-align: left;
  }

  .sec-distribuidor p {
    text-align: left;
  }

  .sec-proyectos p {
    text-align: left;
  }

  .sec-blog 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: #fff;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}


/* ---------- Botón Contáctenos ---------- */
.btn.btn-contactame {
  font-weight: 600;
  border-radius: 999px;
  padding: .55rem 1rem;
  margin-left: 50px;
  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(--azul-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: #0c2a5a;
}

/* 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 con Gripper *********/
@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 menu*************/

/* Los elementos que tendrán subrayado */
.navbar-custom .nav-link:not(.dropdown-toggle),
.navbar-custom .dropdown-item {
  position: relative;
  overflow: hidden;
}

/* Usamos ::before (no ::after) para no interferir con el caret */
.navbar-custom .nav-link:not(.dropdown-toggle)::before,
.navbar-custom .dropdown-item::before {
  content: "";
  position: absolute;
  left: 3%;
  bottom: 0.28rem;
  width: 40%;
  height: 2px;
  background: var(--azul-primario, #059BCE);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
  border-radius: 2px;
}

/* Hover/focus: animación de entrada */
.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);
}

/* No subrayar el botón de contacto */
.navbar-custom .btn-contactame.nav-link::before,
.navbar-custom .btn-contactame::before {
  content: none !important;
}

/* Dentro de tu barra personalizada */
.navbar-custom .dropdown-menu {
  --bs-dropdown-link-active-bg: transparent;
  --bs-dropdown-link-active-color: inherit;
}

/* Respeto a reduce motion */
@media (prefers-reduced-motion: reduce) {

  .navbar-custom .nav-link:not(.dropdown-toggle)::before,
  .navbar-custom .dropdown-item::before {
    transition: none;
  }
}

.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);
}

.navbar-custom .dropdown-toggle.is-active-parent {
  box-shadow: none;
}

/* ===== Mobile (navbar colapsado) ===== */
@media (max-width: 991.98px) {

  .navbar-custom .nav-link:not(.dropdown-toggle)::before {
    left: .75rem;
    width: calc(100% - 1.5rem);
    height: 1px;
    bottom: .2rem;
    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;
    transform-origin: left;
  }

  .navbar-custom .dropdown-toggle.is-active-parent {
    box-shadow: inset 0 -1px 0 0 var(--azul-primario, #059BCE);
  }
}


/******************************** 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: none;
}

.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;
  }
}


/********************************************* Secciones Home *********************************************/

/* ===== Home Intro (3 imágenes izquierda + texto derecha) ===== */
.home-intro {
  background: #fff;
}

/* Kicker (pequeña etiqueta sobre el título) */
.home-intro .kicker {
  color: var(--azul-primario);
  letter-spacing: .08em;
  font-size: .8rem;
}

/* Título */
.home-intro h2 {
  color: var(--nav-text-dark);
  line-height: 1.1;
}

.home-intro .intro-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  /* columna grande + columna chica */
  grid-template-rows: 1fr 1fr;
  /* dos filas */
  gap: 1rem;
}

/* Tile base */
.home-intro .intro-grid .tile {
  position: relative;
  display: block;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f2f5f8;
  isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-intro .intro-grid .tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .12);
}

/* Imágenes dentro del tile */
.home-intro .intro-grid .tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  transition: transform .45s ease;
}

.home-intro .intro-grid .tile:hover .imagen-escala {
  transform: scale(1.26);
}

.home-intro .intro-grid .tile .imagen-escala-izq {
  transform-origin: top left;
}

.home-intro .intro-grid .tile:hover .imagen-escala-izq {
  transform: scale(1.26);
}

.home-intro .tile-lg {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  aspect-ratio: 3/4;
}

.home-intro .tile-sm {
  grid-column: 2 / 3;
  aspect-ratio: 3/3;
}

.home-intro .tile-lg {
  border-top-left-radius: 2rem;
  border-bottom-left-radius: 2rem;
}

.home-intro .tile-top {
  border-top-right-radius: 2rem;
}

.home-intro .tile-bottom {
  border-bottom-right-radius: 2rem;
}

.home-intro .shadow-sm {
  box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08);
}

/* ===== Mantener layout de desktop en móviles ===== */
@media (max-width: 575.98px) {

  .home-intro .intro-grid {
    grid-template-columns: 1.15fr .85fr;
    grid-template-rows: 1fr 1fr;
    gap: .5rem;
    max-width: 520px;
    margin-inline: auto;
  }

  /* Tile grande ocupa las dos filas en la columna izquierda */
  .home-intro .intro-grid .tile-lg {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    aspect-ratio: 3 / 4;
    /* menos alto que 4/5 para no “largarse” */
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
  }

  /* Tiles derechos: uno arriba y uno abajo */
  .home-intro .intro-grid .tile-sm {
    grid-column: 2 / 3;
    aspect-ratio: 1 / 1;
    /* cuadrados funcionan mejor en móvil */
  }

  .home-intro .intro-grid .tile-top {
    grid-row: 1 / 2;
    border-top-right-radius: 1rem;
  }

  .home-intro .intro-grid .tile-bottom {
    grid-row: 2 / 3;
    border-bottom-right-radius: 1rem;
  }

  /* Sombras y hover más sutiles en móvil */
  .home-intro .intro-grid .tile {
    border-radius: 1rem;
  }

  .home-intro .shadow-sm {
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .08);
  }

  .home-intro .intro-grid .tile:hover {
    transform: none;
    box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .10);
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .home-intro .intro-grid {
    grid-template-columns: 1.2fr .9fr;
    gap: .75rem;
  }

  .home-intro .intro-grid .tile-lg {
    aspect-ratio: 4 / 5;
  }

  .home-intro .intro-grid .tile-sm {
    aspect-ratio: 4 / 3;
  }
}

/********************************************* Productos *********************************************/

.section-diagonal {
  --diag-top: 5%;
  --diag-bot: 95%;
  position: relative;
  background: var(--azul-primario);
  color: #fff;
  overflow: hidden;
  min-height: 560px;
  padding-top: 150px;
  padding-bottom: 150px;
  transform: translateZ(0);
  contain: paint;
  clip-path: polygon(0 var(--diag-top), 100% 0, 100% 100%, 0% var(--diag-bot));
}

/* Títulos */
.productos-rh .titulo-seccion {
  font-size: 32px;
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}

.productos-rh .subtitulo-seccion {
  max-width: 68ch;
  opacity: .9;
}

/* ===== Tarjetas de producto ===== */

/* Carta más opaca (frosted ligero) */
.prod-card {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.244);
  /* + opacidad */
  backdrop-filter: saturate(120%) blur(2px);
  text-decoration: none;
  color: var(--nav-text-dark);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .12);
  padding: .9rem .9rem 0 .9rem;
  margin-bottom: 20px;
  min-height: 280px;
  isolation: isolate;
  transition: transform .18s ease, box-shadow .18s ease;
}

.prod-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .85rem 2rem rgba(0, 0, 0, .18);
}


/* Imagen: recorte desde ARRIBA y un poco agrandada por defecto */
.prod-media {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  /* zona visible inicial */
  overflow: hidden;
  pointer-events: none;
}

.prod-media img {
  width: 140%;
  height: 220%;
  object-fit: cover;
  object-position: left top;
  transform-origin: left top;
  transform: translate(0, 0) scale(1);
  transition: transform .45s cubic-bezier(.2, .6, 0, 1);
  -webkit-user-drag: none;
}

/* Texto: SIN fondo/gradiente, solo tipografía */
.prod-copy {
  position: relative;
  z-index: 1;
  padding: .9rem;
  margin-bottom: .5rem;
  background: transparent;
  /* <— quitado el overlay azul */
  color: var(--nav-text-dark);
}

.prod-copy h3 {
  color: white;
  margin: 0 0 .25rem 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.prod-copy p {
  color: white;
  margin: 0;
  font-size: .95rem;
  opacity: .9;
}

.btn-vermas {
  position: absolute;
  left: 0px;
  bottom: 2rem;
  z-index: 1.6rem;
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--nav-text-dark);
  border: 2px solid #fff;
  border-radius: 0px 20px 20px 0px;
  padding: .4rem .75rem;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .12);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}

.btn-vermas::after {
  content: "→";
  font-weight: 800;
}

/* Hover: encoge y desplaza la imagen para mostrar MÁS del gripper */
.prod-card:hover .prod-media img {
  /* se ve más área del producto (revela abajo y a la derecha) */
  transform: translate(92px, -12px) scale(.52);
}

.prod-card:hover .btn-vermas {
  opacity: 1;
  transform: translateX(0);
}

/* Foco accesible */
.prod-card:focus-visible {
  outline: 3px solid color-mix(in srgb, #fff 35%, var(--azul-primario) 65%);
  outline-offset: 3px;
  border-radius: 1rem;
}

.btn-vermas:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--azul-primario) 60%, #fff 40%);
  outline-offset: 2px;
}

/* Responsivo fino */
@media (max-width: 991.98px) {
  .prod-card {
    min-height: 220px;
  }

  .prod-media {
    height: 60%;
  }
}

@media (max-width: 575.98px) {
    
}

@media (max-width: 575.98px) {
  .section-diagonal {
    --diag-top: 3%;
    --diag-bot: 97%;
  }
  
  .prod-card:hover .prod-media img {
    transform: translate(50px, -12px) scale(.80);
  }

  .prod-card {
    min-height: 210px;
    border-radius: .9rem;
  }

  .prod-copy {
    padding: .75rem;
  }

  .btn-vermas {
    padding: .35rem .7rem;
    font-size: .875rem;
  }

  .prod-copy p {
    display: none;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

  .prod-card,
  .prod-media img,
  .btn-vermas {
    transition: none !important;
  }
}


/********************************************* Distribuidores *********************************************/

.sec-distribuidor {
  margin-top: 55px;
  margin-bottom: 100px;
}

.dist-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--azul-primario), color-mix(in srgb, var(--azul-primario) 60%, #fff 40%));
}

/* Textos */
.kicker {
  color: var(--azul-primario);
  letter-spacing: .08em;
  font-size: .8rem;
}

.sec-distribuidor h2 {
  color: var(--nav-text-dark);
  font-weight: 700;
  line-height: 1.1;
}

.sec-distribuidor p {
  color: var(--nav-text-dark);
}

/* Logos */
/* ===== Logos (solo CESEHSA) ===== */
.dist-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  /* céntralo al tener un único logo */
  padding: .5rem 0;
  min-height: 64px;
  /* evita “saltos” mientras carga */
}

.logo-cesehsa {
  height: clamp(70px, 9vw, 94px);
  /* tamaño fluido */
  width: auto;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
  filter: none;
}

.sec-distribuidor .nota {
  font-size: .9rem;
  opacity: .85;
  text-align: center;
}

/* Responsive */
@media (max-width: 991.98px) {
  .dist-logos {
    justify-content: center;
  }

  .sec-distribuidor .nota {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .dist-card {
    border-radius: .9rem;
    padding: 1.1rem;
  }
}

/********************************************* Proyectos 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 bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, .35) 28%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, .35)),
    color-mix(in srgb, var(--azul-primario) 20%, transparent);
  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 *********************************/

.productos-grippers {
  position: relative;
  padding-block: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
  background: url("/imagenes/fondo-productos-cesehsa.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);
}

.productos-grippers .contenedor-productos {
  margin-top: 25px;
}

.productos-grippers b {
  font-weight: 600;
}

.productos-grippers li {
  margin-bottom: 10px;
}

.productos-grippers .title-wrap {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.productos-grippers .title-wrap::before {
  content: "";
  position: absolute;
  inset: 0 auto 8px calc(-80vw);
  width: 100vw;
  background: var(--azul-primario);
  border-radius: 0 999px 999px 0;
  z-index: 1;
}

.productos-grippers .title-chip {
  position: relative;
  z-index: 2;
  display: inline-block;
  background: var(--azul-primario);
  color: #fff;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 15px 45px 15px 15px;
  border-radius: 999px;
  font-size: 25px;
}

.productos-grippers .prod-hero {
  position: relative;
  overflow: visible;
  transform: translateX(6vw);
}

.productos-grippers .prod-hero img {
  display: block;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 575.98px) {
  .productos-grippers .title-wrap::before {
    inset: 0 auto 0 calc(-50vw + 50%);
  }

  .productos-grippers .contenedor-productos {
    margin-top: 65px;
  }

  .productos-grippers p {
    text-align: left;
  }

  .productos-grippers .prod-hero {
    transform: none;
  }

  .productos-grippers .prod-hero img {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .productos-grippers {
    --diag-bot: 97%;
  }
}

/********************************** Primera seccion ************************************/

.info-productos1 {
  padding-block: clamp(2.25rem, 6vw, 4.5rem);
}

.info-productos1 .sti-kicker {
  color: var(--azul-primario);
  letter-spacing: .08em;
  font-size: .8rem;
}

.info-productos1 .sti-title {
  font-weight: 700;
  line-height: 1.1;
  margin: .35rem 0 1rem;
  position: relative;
}

.info-productos1 .sti-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin-top: .5rem;
  border-radius: 2px;
  background: var(--azul-primario);
}

.info-productos1 p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: .9rem;
  max-width: 62ch;
}

.info-productos1 .sti-media img {
  width: 80%;
  height: auto;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform .35s ease;
}

/* Responsive */
@media (max-width: 991.98px) {
  .info-productos1 p {
    font-size: 1rem;
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .info-productos1 .sti-media {
    border-radius: .9rem;
  }

  .info-productos1 .sti-title::after {
    width: 48px;
  }
}

/****************************** Seccion Obtener Cads 3D *************************************/

.sec-cads {
  position: relative;
  /* Fallback si no carga la imagen */
  background-color: #f9f9f9;

  /* Imagen de fondo */
  background-image: url("/imagenes/fondo-grippers-3D.webp");
  background-position: center;
  background-size: cover;
  /* que cubra toda la sección */
  background-repeat: no-repeat;
  color: #000;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}


.sec-cads .band-media-wrap img {
  width: clamp(250px, 36vw, 520px);
  height: auto;
  justify-content: center;
  margin-left: clamp(50px, 1.5vw, 24px);
  -webkit-user-drag: none;
}


/******************************** 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(--azul-primario);
}

/************************* Sección Catálogo Inicio Productos *********************************/
.sec-catalogo {
  position: relative;
  background: var(--azul-primario);
  color: #fff;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  overflow: hidden;
}

.sec-catalogo .sec-catalogo__title {
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.sec-catalogo .band-media-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(260px, 38vw, 520px);
  max-width: 100%;
  isolation: isolate;
  z-index: 1;
}

.sec-catalogo .band-media-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: calc(-50vw + 50%);
  background: rgba(255, 255, 255, 0.176);
  border-radius: 999px 0 0 999px;
  z-index: 0;
}

.sec-catalogo .band-media-wrap img {
  position: relative;
  z-index: 1;
  display: block;
  width: clamp(250px, 36vw, 520px);
  height: auto;
  justify-content: center;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  padding: 30px 10px 30px 10px;
  margin-left: clamp(70px, 1.5vw, 24px);
}

.sec-catalogo .col-lg-6:first-child {
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .sec-catalogo .band-media-wrap {
    transform: translateX(3vw);
  }
}

@media (max-width: 575.98px) {
  .sec-catalogo .band-media-wrap {
    min-height: 260px;
    transform: none;
  }

  .sec-catalogo .band-media-wrap::before {
    right: 0;
    border-radius: 1rem;
  }

  .sec-catalogo .band-media-wrap img {
    width: 100%;
    margin-left: 8px;
  }

  .seccion-catalogos-back {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }
}

@media (max-width: 575.98px) {
  .sec-catalogo .cat-frame {
    border-radius: 1rem;
  }

  .sec-catalogo p {
    text-align: left;
  }

  .sec-catalogo .cat-frame--band::before {
    left: -45%;
    width: 95%;
  }

  .sec-catalogo .cat-media {
    transform: none;
  }
}

/* ===== Aplicaciones & Mercados ===== */
.sec-aplicaciones {
  padding-top: 5rem;
  padding-bottom: 5rem;
  color: var(--nav-text-dark);
}

.sec-aplicaciones .apli-kicker {
  color: var(--azul-primario);
  letter-spacing: .08em;
  font-size: .8rem;
}

.sec-aplicaciones .apli-features li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin: .4rem 0;
  line-height: 1.5;
}

.sec-aplicaciones .apli-features i {
  color: var(--azul-primario);
  margin-top: .2rem;
}

.sec-aplicaciones .apli-callout {
  background: #f2f6f9;
  border: 1px solid rgba(0, 0, 0, .06);
}

.sec-aplicaciones .apli-callout .apli-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  color: var(--azul-primario);
  font-size: 1.1rem;
}

.sec-aplicaciones .apli-markets .market-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .6rem;
  border-radius: .6rem;
  background: #f7fafc;
  border: 1px solid rgba(0, 0, 0, .05);
}

.sec-aplicaciones .apli-markets .market-item i {
  color: var(--azul-primario);
  width: 1.25rem;
  text-align: center;
}

.sec-aplicaciones .video-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08);
  overflow: hidden;
}

.sec-aplicaciones .video-card .ratio {
  border-radius: 1rem;
}

.sec-aplicaciones .yt-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
}

.sec-aplicaciones .video-card:hover {
  box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .12);
}

.sec-aplicaciones .video-card:focus-within {
  outline: 3px solid color-mix(in srgb, var(--azul-primario) 50%, #fff 50%);
  outline-offset: 2px;
  border-radius: 1rem;
}

@media (max-width: 991.98px) {
  .sec-aplicaciones .video-card {
    margin-top: 1rem;
  }

  .sec-aplicaciones p {
    text-align: left;
  }

  .sec-aplicaciones .apli-callout {
    margin-top: .5rem;
  }
}

/******************************* Catalogo Series *******************************/

.sec-series {
  margin-bottom: 3rem;
}

.sec-series .card {
  overflow: visible;
  padding-top: 3.75rem;
}

.sec-series .card>img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -38%);
  width: clamp(130px, 45%, 210px);
  height: auto;
  object-fit: contain;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.sec-series .card-body {
  padding-left: 2px;
  padding-right: 2px;
}

.sec-series .descripcion-series p {
  font-size: 14px !important;
  margin: 0;
  line-height: 1.5;
}

@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>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;
  }
}

#btn-botones-catalogo {
  background: white;
  border: none;
  box-shadow:
    0 1px 1px rgba(5, 155, 206, .04),
    0 6px 14px rgba(5, 155, 206, .10);
  font-weight: 600;
  padding: .65rem 1.1rem;
  border-radius: .75rem;
  margin-top: 5px;
  color: rgb(63, 63, 63);
  transition: background 0.3s, color 0.3s;
}

#btn-botones-catalogo:hover {
  background: var(--azul-primario);
  color: white;
}

/********************************* Contacto *******************************/
.sec-contacto input {
  border: 1px solid #595959ff;
}

.sec-contacto textarea {
  border: 1px solid #595959ff;
}

.sec-contacto .sti-media img {
  margin: 0 auto;
  display: block;
  width: 95%;
  height: auto;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/****** Redes Sociales *********/
.sec-social .social-kicker {
  color: var(--azul-primario);
  letter-spacing: .08em;
  font-size: .8rem;
}

/* Card */
.sec-social .social-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .9rem;
  padding: .9rem;
  text-decoration: none;
  color: var(--nav-text-dark);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}

.sec-social .social-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .7rem 1.6rem rgba(0, 0, 0, .07);
  border-color: rgba(0, 0, 0, .12);
}

.sec-social .social-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #f6f9fc;
  color: #111;
  flex: 0 0 44px;
}

.sec-social .social-icon i {
  font-size: 1.1rem;
}

/* Colores oficiales */
.sec-social .social-icon.linkedin {
  background: #0A66C2;
  color: #fff;
}

.sec-social .social-icon.facebook {
  background: #1877F2;
  color: #fff;
}

.sec-social .social-icon.instagram {
  background: radial-gradient(35% 45% at 30% 30%, #FFD776 0 60%, transparent 61%), linear-gradient(135deg, #F56040, #833AB4);
  color: #fff;
}

.sec-social .social-icon.youtube {
  background: #FF0000;
  color: #fff;
}

/* Accesibilidad: foco visible */
.sec-social .social-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--azul-primario) 45%, transparent);
  outline-offset: 2px;
}

/* Compacto en móviles */
@media (max-width:575.98px) {

  .seccion-contacto-whatsapp {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
  }

  .sec-social .social-card {
    padding: .8rem;
  }

  .sec-social .social-icon {
    width: 40px;
    height: 40px;
  }
}

/******************************* Catalogos Generales *******************************/
.sec-catalogos .cat-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.sec-catalogos .cat-card {
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
  background: #fff;
}

.sec-catalogos .cat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .06);
}

.sec-catalogos .cat-cover {
  position: relative;
  aspect-ratio: 3/4;
  margin: 0;
  overflow: hidden;
  background: #f2f5f8;
}

.sec-catalogos .cat-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sec-catalogos .cat-meta {
  padding: .9rem .9rem 1rem;
}

.sec-catalogos .cat-meta h3 {
  margin: 0 0 .15rem 0;
}

/*********************************************** 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;
  }
}

/*********************************** BANNER SERIES HOVER *********************************************/
/* --- Cards (puedes mantener tus estilos actuales) --- */
.sec-series .card {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.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 {
  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 a {
  color: black;
  text-decoration: none;
}

.floating-banner .contenido-series-info a:hover {
  color: var(--azul-primario);
}

.floating-banner {
  position: fixed;
  width: 320px;
  max-width: min(80vw, 320px);
  padding: 1rem;
  background: #ffffffff;
  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: #d2d2d2ff;
}

.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;
  }
}


/********************************************** SERVICIOS***********************************************************/

.sec-servicios-robohand {
  padding: 64px 0 72px;
  color: #111;
}

.sec-servicios-robohand .srv-title {
  font-weight: 700;
  color: #111;
}

.sec-servicios-robohand {
  --srv-primary: var(--azul-primario, #059bce);
}

.sec-servicios-robohand .btn-srv-primary {
  background: var(--srv-primary);
  color: #fff;
  border: 2px solid var(--srv-primary);
  border-radius: .75rem;
}

.sec-servicios-robohand .btn-srv-primary:hover {
  background: #077ea7;
  border-color: #077ea7;
  color: #fff;
}

/* Cards */
.sec-servicios-robohand .srv-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
  color: #111;
}

.sec-servicios-robohand .srv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .10);
  border-color: rgba(0, 0, 0, .12);
}

.sec-servicios-robohand .srv-imagen {
  width: auto;
  height: 150px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.sec-servicios-robohand .srv-imagen img {
  width: auto;
  height: 139px;
  object-fit: contain;
  -webkit-user-drag: none;
}


.sec-servicios-robohand .srv-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0
}

.sec-servicios-robohand .srv-bullets li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: #111
}

.sec-servicios-robohand .srv-bullets li::before {
  content: "•";
  color: var(--srv-primary);
  font-weight: 700
}

/* Flujo */
.sec-servicios-robohand .srv-flow .srv-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1px dashed rgba(0, 0, 0, .18);
  border-radius: 12px;
  padding: 10px 12px;
  color: #111;
}

.sec-servicios-robohand .srv-flow .srv-step__num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--srv-primary);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  line-height: 1;
}

.sec-servicios-robohand .srv-flow .srv-step__text {
  font-weight: 600
}

/* Beneficios */
.sec-servicios-robohand .srv-benefit {
  display: flex;
  gap: .75rem;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  color: #111;
}

.sec-servicios-robohand.srv-benefit i {
  color: var(--srv-primary);
  font-size: 1.25rem;
  margin-top: .25rem
}

/* CTA */
.sec-servicios-robohand.srv-cta {
  border-top: 1px solid rgba(0, 0, 0, .08);
  padding-top: 28px;
  color: #111
}

/* Responsive */
@media (max-width: 575.98px) {
  .sec-servicios-robohand {
    padding: 48px 0 56px
  }

  .sec-servicios-robohand .srv-title {
    font-size: 1.6rem
  }
}

/********************************************************* FOOTER ***************************************************/
.footer {
  background: #ffffff;
  color: var(--nav-text-dark);
  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: var(--nav-text-dark) !important;
}

.footer h5 {
  color: var(--nav-text-dark);
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: .5rem;
}

.footer .linea-footer {
  width: 48px;
  height: 1px;
  border-radius: 2px;
  background: var(--azul-primario);
  margin: .25rem 0 1rem 0;
}

.footer ul {
  margin: 0;
  padding: 0;
}

.footer ul li {
  margin: .25rem 0;
}

.footer a {
  color: var(--nav-text-dark);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease, text-decoration-color .18s ease;
}

.footer a:hover,
.footer a:focus {
  color: var(--azul-primario) !important;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.footer p {
  margin-bottom: .5rem;
}

.footer p i {
  color: var(--azul-primario);
  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(--azul-primario);
  color: var(--azul-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(--azul-primario);
  color: white !important;
}


.footer .linea-larga-footer {
  height: 1px;
  background: linear-gradient(to right,
      rgba(0, 0, 0, .06) 0%,
      rgba(0, 0, 0, .12) 35%,
      rgba(0, 0, 0, .06) 100%);
}

.footer .footer-bottom {
  background: #f9fbfd;
  color: var(--nav-text-dark);
  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(--azul-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;
  }
}

/* ===================================================              ============================================================== */
/* ===================================================   BLOG POST  =========================================================== */
/* ===================================================              ============================================================== */

/* ----- Hero / encabezado ----- */
.post-hero {
  padding: 1.25rem 0 0;
}

.post-hero .post-header .lead {
  color: #475467;
}

.post-hero .post-header .post-meta .chip {
  display: inline-block;
  padding: .25rem .55rem;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
  border-radius: 999px;
  font-weight: 600;
  color: var(--nav-text-dark);
}

.post-hero .post-header .post-meta time {
  color: #667085;
}

.post-hero .post-header .post-meta .dot {
  color: #98A2B3;
}

.post-hero .hero-media img {
  width: 100%;
  height: clamp(220px, 40vw, 550px);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 .6rem 1.4rem rgba(0, 0, 0, .9);
}

/* ----- Layout (TOC + contenido + sidebar) ----- */
.post-layout {
  padding: 2rem 0 2.5rem;
}

.post-layout .post-content {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--nav-text-dark);
}

.post-layout .post-content h2 {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 1.75rem 0 .75rem;
  position: relative;
}

.post-layout .post-content h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: .45rem;
  border-radius: 2px;
  background: var(--azul-primario);
}

/* ----- TOC sticky ----- */
.post-layout .toc {
  position: sticky;
  top: 100px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .9rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .04);
}

.post-layout .toc .toc__title {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #667085;
  font-weight: 600;
  margin-bottom: .35rem;
}

.post-layout .toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-layout .toc a {
  display: block;
  padding: .35rem 0;
  color: #667085;
  text-decoration: none;
}

.post-layout .toc a:hover {
  color: var(--azul-primario);
}

.post-layout .toc a.active {
  color: var(--azul-primario);
  font-weight: 600;
}

/* ----- Componentes de contenido ----- */
.post-layout .post-content .pull {
  position: relative;
  padding: 1rem 1.1rem;
  margin: 1.15rem 0;
  background: #f6fbfe;
  border: 1px solid rgba(5, 155, 206, .18);
  border-radius: .9rem;
}

.post-layout .post-content .pull .pull__accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--azul-primario);
  border-radius: .9rem 0 0 .9rem;
}

.post-layout .post-content .callout {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .9rem;
  padding: 1rem 1.1rem;
  background: #fff;
  box-shadow: 0 .25rem .8rem rgba(0, 0, 0, .04);
}

.post-layout .post-content .callout .callout__kicker {
  font-size: .8rem;
  color: #667085;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.post-layout .post-content .code-inline {

  padding: .45rem .65rem;
  border-radius: .5rem;
  background: var(--azul-primario);
  color: #ffffff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .95rem;
}

.post-layout .post-content .table-wrap {
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .9rem;
}

.post-layout .post-content .table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.post-layout .post-content .table-wrap th,
.post-layout .post-content .table-wrap td {
  padding: .6rem .75rem;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.post-layout .post-content .table-wrap thead th {
  background: #f8fafc;
  font-weight: 600;
}

.post-layout .post-content .table-wrap .tr-strong td {
  background: rgba(5, 155, 206, .06);
  font-weight: 600;
}

.post-layout .post-content .grid-2 {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width:768px) {
  .post-layout .post-content .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.post-layout .post-content .card-mini {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .9rem;
  padding: 1rem;
  background: #fff;
  background-image: linear-gradient(180deg, rgba(5, 155, 206, .06), transparent 60%);
}

.post-layout .post-content .card-mini h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: .25rem 0 .5rem;
}

.post-layout .post-content .checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}



.post-layout .post-content .cta {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, .06);
}

/* ----- Sidebar ----- */
.post-layout .sidebar .card-soft {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .9rem;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, .05);
}

.post-layout .sidebar .card-soft__title {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #667085;
  font-weight: 700;
  margin-bottom: .4rem;
}

.post-layout .sidebar .card-soft a {
  color: black;
  text-decoration: none;
}

.post-layout .sidebar .card-soft a:hover {
  color: var(--azul-primario);
}

/* ----- Autor / compartir ----- */
.post-meta .author {
  margin: 1.6rem 0 2.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.post-meta .author .author__left {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.post-meta .author .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

/* ----- FAQ ----- */
.post-faq {
  padding: .5rem 0 2rem;
}

.post-faq .accordion-button:focus {
  box-shadow: none;
}

/* ----- Accesibilidad / estados ----- */
.post-layout .toc a:focus-visible,
.post-layout .post-content a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--azul-primario) 50%, #fff 50%);
  outline-offset: 2px;
  border-radius: 6px;
}

/* limitar el hover a esta página */
.post-hero a:hover,
.post-layout a:hover,
.post-meta a:hover,
.post-faq a:hover {
  color: var(--azul-primario);
}

/* ----- Responsivo fino ----- */
@media (max-width:991.98px) {
  .post-layout .toc {
    display: none;
  }

  .post-layout .post-content {
    font-size: 1rem;
  }

  .post-layout .post-content .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}