

:root{
  --andamios-negro: #17181c;
  --andamios-negro-2: #1f2126;
  --andamios-naranja: #ff7a00;
  --andamios-naranja-oscuro: #bd4707;
  --andamios-gris: #6c757d;
  --andamios-borde: #2b2d33;
  --andamios-metal: linear-gradient(135deg, #9a9da3 0%, #eef0f2 20%, #6b6e73 45%, #f4f5f6 65%, #7a7d82 85%, #cfd1d4 100%);
}

/* ---------- HERO / BREADCRUMB ---------- */
.andamios-hero .breadcrumbs-custom{
  position: relative;
}
.andamios-hero .breadcrumbs-custom-title{
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}
.andamios-hero .breadcrumbs-custom-title::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 70px; height: 4px;
  background: linear-gradient(to right, var(--andamios-naranja-oscuro), var(--andamios-naranja));
  border-radius: 2px;
}
.andamios-breadcrumb-path li a{
  color: #dcdcdc;
  transition: color .2s ease;
}
.andamios-breadcrumb-path li a:hover{
  color: var(--andamios-naranja);
}
.andamios-breadcrumb-path li.active{
  color: var(--andamios-naranja);
  font-weight: 600;
}

/* ---------- SIDEBAR ---------- */
.andamios-sidebar-block{
  background: var(--andamios-negro-2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.andamios-sidebar-title{
  background: linear-gradient(135deg, var(--andamios-naranja-oscuro), var(--andamios-naranja));
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: 15px;
  padding: 14px 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.andamios-sidebar-title::before{
  content: "";
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  opacity: .85;
}
.andamios-sidebar-title.andamios-sidebar-title-back::before{
  display: none;
}
.andamios-sidebar-back{
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  font-size: 11px;
  transition: background .2s ease, transform .2s ease;
}
.andamios-sidebar-back:hover{
  background: rgba(255,255,255,.4);
  transform: translateX(-3px);
  color: #fff;
}
.andamios-cat-list{
  list-style: none;
  margin: 0;
  padding: 10px;
}
.andamios-cat-list li{
  margin-bottom: 4px;
}
.andamios-cat-list li a{
  display: flex;
  align-items: center;
  padding: 9px 10px 9px 14px;
  border-radius: 6px;
  color: #cfcfcf;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.1px;
  border-left: 3px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  word-break: break-word;
}
.andamios-cat-list li a:hover{
  background: rgba(255,122,0,.08);
  color: #fff;
  border-left-color: var(--andamios-naranja);
}
.andamios-cat-list li a.active{
  background: rgba(255,122,0,.14);
  color: #fff;
  border-left-color: var(--andamios-naranja);
  font-weight: 700;
}

/* ---------- TARJETAS DE PRODUCTO / SUBCATEGORÍA ----------
   Marco metalizado de 6px, esquinas redondeadas, fondo negro,
   linea separadora entre la foto y el nombre. */
.andamios-card{
  position: relative;
  overflow: hidden;
  height: 100%;
  border-radius: 14px;
  padding: 6px;
  background: var(--andamios-metal);
  transition: transform .25s ease, box-shadow .25s ease;
}
.andamios-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0,0,0,.35);
}
.andamios-card-media{
  position: relative;
  overflow: hidden;
  aspect-ratio: 3.3 / 4;
  background: var(--andamios-negro);
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}
.andamios-card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.andamios-card:hover .andamios-card-media img{
  transform: scale(1.08);
}
.andamios-card-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity .3s ease;
}
.andamios-card:hover .andamios-card-media::after{
  opacity: 1;
}
.andamios-card-badge{
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--andamios-naranja-oscuro), var(--andamios-naranja));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 5px 10px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(189,71,7,.35);
}
.andamios-card-body{
  background: #101114;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
  border-top: 3px solid #9a9da3;
  padding: 16px 18px 18px;
  text-align: center;
}
.andamios-card-title{
  font-size: 16px;
  font-weight: 700;
  color: #f5f5f5;
  margin: 0 0 6px;
  transition: color .2s ease;
}
.andamios-card:hover .andamios-card-title{
  color: var(--andamios-naranja);
}
.andamios-card-title a{
  color: inherit;
}
.andamios-card-spec{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #cfcfcf;
  background: rgba(255,255,255,.08);
  padding: 4px 12px;
  border-radius: 20px;
}

/* ---------- TARJETAS DE PROYECTOS ---------- */
.andamios-project-card{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
  transition: box-shadow .25s ease, transform .25s ease;
}
.andamios-project-card:hover{
  box-shadow: 0 18px 34px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.andamios-project-media{
  position: relative;
  overflow: hidden;
}
.andamios-project-media img{
  object-fit: cover;
  height: 100%;
  min-height: 320px;
}
.andamios-project-media .carousel-control-prev,
.andamios-project-media .carousel-control-next{
  width: 8%;
  opacity: 0;
  transition: opacity .25s ease;
}
.andamios-project-media:hover .carousel-control-prev,
.andamios-project-media:hover .carousel-control-next{
  opacity: 1;
}
.andamios-project-media .carousel-control-prev-icon,
.andamios-project-media .carousel-control-next-icon{
  background-color: rgba(23,24,28,.55);
  border-radius: 50%;
  padding: 18px;
  background-size: 45%;
}
.andamios-project-body{
  padding: 34px 38px;
}
.andamios-project-title{
  font-size: 22px;
  font-weight: 800;
  color: #1c1c1c;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 12px;
}
.andamios-project-title::after{
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: linear-gradient(to right, var(--andamios-naranja-oscuro), var(--andamios-naranja));
  border-radius: 2px;
}
.andamios-project-title a{
  color: inherit;
  transition: color .2s ease;
}
.andamios-project-title a:hover{
  color: var(--andamios-naranja-oscuro);
}
.andamios-project-text{
  color: #5a5a5a;
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.andamios-project-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 12px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* ---------- PAGINACIÓN ---------- */
.andamios-pagination .page-link{
  border-radius: 50%;
  margin: 0 3px;
  border: none;
  color: #444;
  font-weight: 600;
}
.andamios-pagination .page-item.active .page-link{
  background: linear-gradient(135deg, var(--andamios-naranja-oscuro), var(--andamios-naranja));
  color: #fff;
}

/* ---------- SECCIÓN PROYECTOS: fondo con patrón sutil ---------- */
.andamios-projects-section{
  position: relative;
  background-color: #fafafa;
  background-image:
    linear-gradient(135deg, rgba(255,122,0,.035) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255,122,0,.035) 25%, transparent 25%);
  background-position: 0 0, 20px 20px;
  background-size: 40px 40px;
}

/* Número de proyecto */
.andamios-project-number{
  position: absolute;
  top: 18px; left: 18px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23,24,28,.75);
  backdrop-filter: blur(2px);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border-radius: 50%;
  border: 2px solid var(--andamios-naranja);
  z-index: 3;
}

/* Tinte naranja al hover sobre la imagen */
.andamios-project-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(189,71,7,.28), rgba(255,122,0,.12));
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 2;
}
.andamios-project-media:hover::after{
  opacity: 1;
}
.andamios-project-media img{
  transition: transform .5s ease;
}
.andamios-project-media:hover img{
  transform: scale(1.06);
}

/* Ícono junto al título */
.andamios-project-title .bi{
  color: var(--andamios-naranja);
  font-size: 18px;
  margin-right: 8px;
}

/* ---------- GRID DE CLIENTES / LOGOS ---------- */
.andamios-client-card{
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 26px 20px 20px;
  height: 100%;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.andamios-client-card:hover{
  box-shadow: 0 14px 26px rgba(0,0,0,.09);
  transform: translateY(-4px);
  border-color: transparent;
}
.andamios-client-logo{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  margin-bottom: 14px;
}
.andamios-client-logo img{
  max-height: 90px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .75;
  transition: filter .3s ease, opacity .3s ease, transform .3s ease;
}
.andamios-client-card:hover .andamios-client-logo img{
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
.andamios-client-name{
  font-size: 13px;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin: 0;
}

/* ---------- DETALLE DE PRODUCTO: marco de fotos ---------- */
.andamios-product-media-frame{
  background: #f3f3f3;
  border-radius: 16px;
  padding: 10px;
}
.andamios-product-media-frame .carousel{
  border-radius: 10px;
  overflow: hidden;
}
.andamios-product-media-frame img{
  border-radius: 10px;
}

/* Botón "Atrás" - v2: badge circular con icono + texto, sobre fondo oscuro */
.andamios-back-btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--andamios-negro);
  color: #fff;
  padding: 10px 20px 10px 10px;
  border-radius: 40px;
  margin-bottom: 22px;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .4px;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.andamios-back-btn .andamios-back-icon{
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--andamios-naranja-oscuro), var(--andamios-naranja));
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 12px;
  transition: transform .25s ease;
}
.andamios-back-btn:hover{
  background: #000;
  color: #fff;
  transform: translateX(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.24);
}
.andamios-back-btn:hover .andamios-back-icon{
  transform: translateX(-3px);
}

/* Sidebar de productos relacionados (misma subcategoría) */
.andamios-related-list{
  list-style: none;
  margin: 0;
  padding: 10px;
}
.andamios-related-list li{
  margin-bottom: 4px;
}
.andamios-related-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  border-left: 3px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  color: #cfcfcf;
}
.andamios-related-item:hover{
  background: rgba(255,122,0,.08);
  color: #fff;
  border-left-color: var(--andamios-naranja);
}
.andamios-related-item.active{
  background: rgba(255,122,0,.14);
  color: #fff;
  border-left-color: var(--andamios-naranja);
  font-weight: 700;
}
.andamios-related-item img{
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #111;
}
.andamios-related-item span{
  font-size: 12.5px;
  line-height: 1.3;
}

/* Título del producto: eyebrow + tipografía grande */
.andamios-detail-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--andamios-naranja-oscuro), var(--andamios-naranja));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(189,71,7,.25);
}
.andamios-detail-title{
  font-size: 32px !important;
  font-weight: 800 !important;
  color: #141414 !important;
  line-height: 1.18 !important;
  letter-spacing: -.5px;
}

/* ---------- FICHA TÉCNICA DIGITAL (iframe embebido) ---------- */
.andamios-ficha-wrap{
  margin-top: 8px;
}
.andamios-ficha-header{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.andamios-ficha-header i{
  color: var(--andamios-naranja);
  font-size: 18px;
}
.andamios-ficha-header h5{
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #1c1c1c;
  margin: 0;
}
.andamios-ficha-frame{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ececec;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  background: #f7f7f7;
}
.andamios-ficha-frame iframe{
  width: 100%;
  height: 520px;
  border: 0;
  display: block;
}
.andamios-ficha-open{
  display: inline-flex;
  align-items: center;
  
}

/* ---------- MENÚ HORIZONTAL / DROPDOWN (Productos > categorías > subcategorías) ---------- */
.rd-navbar-corporate.rd-navbar-static .rd-nav-link{
  transition: background-color .2s ease, color .2s ease;
}
.rd-navbar-corporate.rd-navbar-static .rd-nav-item:hover .rd-nav-link,
.rd-navbar-corporate.rd-navbar-static .rd-nav-item.focus .rd-nav-link,
.rd-navbar-corporate.rd-navbar-static .rd-nav-item.opened .rd-nav-link,
.rd-navbar-corporate.rd-navbar-static .rd-nav-item.active .rd-nav-link{
  background: rgba(255,122,0,.16) !important;
}
.rd-navbar-corporate.rd-navbar-static .rd-nav-link::before{
  border-top-color: var(--andamios-naranja) !important;
}

/* Panel del dropdown (categorías) */
.rd-navbar-corporate.rd-navbar-static .rd-navbar-dropdown{
  background: var(--andamios-negro-2);
  border-radius: 10px;
  padding: 18px 16px 18px 30px;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
  border: 1px solid var(--andamios-borde);
}
/* Submenú anidado (subcategorías, flyout hacia la derecha) */
.rd-navbar-corporate.rd-navbar-static .rd-navbar-dropdown .rd-navbar-dropdown{
  background: var(--andamios-negro);
  border-radius: 10px;
  padding: 18px 20px;
  border: 1px solid var(--andamios-borde);
}

/* Links dentro del dropdown */
.rd-navbar-corporate.rd-navbar-static .rd-navbar-dropdown li > a{
  color: #cfcfcf !important;
  font-size: 13.5px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.rd-navbar-corporate.rd-navbar-static .rd-navbar-dropdown li > a::before{
  background: var(--andamios-naranja) !important;
}
.rd-navbar-corporate.rd-navbar-static .rd-navbar-dropdown li.focus > a,
.rd-navbar-corporate.rd-navbar-static .rd-navbar-dropdown li.opened > a,
.rd-navbar-corporate.rd-navbar-static .rd-navbar-dropdown li > a:hover{
  color: #fff !important;
}

/* Categorías (nivel 1) un poco más grandes / bold que subcategorías */
.rd-navbar-corporate.rd-navbar-static .rd-navbar-dropdown > li > a{
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff !important;
}
.rd-navbar-corporate.rd-navbar-static .rd-navbar-dropdown > li > a:hover{
  color: var(--andamios-naranja) !important;
}

/* ---------- ACORDEÓN DEL SIDEBAR EN MÓVIL ---------- */
@media (max-width: 991.98px){
  .andamios-sidebar-title{
    cursor: pointer;
    position: relative;
    padding-right: 44px;
    user-select: none;
  }
  .andamios-sidebar-title::after{
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-65%) rotate(45deg);
    transition: transform .25s ease;
  }
  .andamios-sidebar-block.is-open .andamios-sidebar-title::after{
    transform: translateY(-35%) rotate(-135deg);
  }
  .andamios-sidebar-body{
    display: none;
  }
  .andamios-sidebar-block.is-open .andamios-sidebar-body{
    display: block;
  }
}

/* ---------- BOTONES DE ACCIÓN UNIFICADOS: placa metálica azul ---------- */
.andamios-project-btn,
.andamios-ficha-open,
.andamios-cta-btn{
	 display: inline-flex;
	align-items: center;
	width: 100%;
	box-sizing: border-box;
	justify-content: center;
	text-align: center;
	margin: 0;
	padding: 14px 22px;
	color: #fff !important;
	text-decoration: none;
	border: none !important;
	border-radius: 8px;
	cursor: pointer;
	background-color: #163a63;
	background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.035) 0px,
      rgba(255,255,255,.035) 2px,
      rgba(0,0,0,.10) 2px,
      rgba(0,0,0,.10) 4px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.025) 0px,
      rgba(255,255,255,.025) 2px,
      rgba(0,0,0,.12) 2px,
      rgba(0,0,0,.12) 4px
    ),
    linear-gradient(to bottom, #244f7d 0%, #163a63 48%, #0e2a4a 100%);
  border-top: 1px solid #31577f;
  border-bottom: 1px solid #0a213a;
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.18),
    inset 0 -1px 1px rgba(0,0,0,.45),
    0 8px 18px rgba(10,33,58,.35);
  transition: transform .2s ease, box-shadow .2s ease, background-image .3s ease;
}
.andamios-project-btn:hover,
.andamios-ficha-open:hover,
.andamios-cta-btn:hover{
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.22),
    inset 0 -1px 1px rgba(0,0,0,.5),
    0 12px 26px rgba(10,33,58,.45);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.05) 0px,
      rgba(255,255,255,.05) 2px,
      rgba(0,0,0,.08) 2px,
      rgba(0,0,0,.08) 4px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(255,255,255,.04) 0px,
      rgba(255,255,255,.04) 2px,
      rgba(0,0,0,.10) 2px,
      rgba(0,0,0,.10) 4px
    ),
    linear-gradient(to bottom, #2c5c8f 0%, #1c4270 48%, #123252 100%);
}
.andamios-project-btn:active,
.andamios-ficha-open:active,
.andamios-cta-btn:active{
  transform: translateY(0);
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.5),
    0 4px 10px rgba(10,33,58,.3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767px){
  .andamios-hero .breadcrumbs-custom-title{
    font-size: 26px;
  }
  .andamios-card-body{
    padding: 12px 14px 14px;
  }
}
