:root{
  --bs-font-sans-serif: 'Inter', system-ui, sans-serif;

  /* Ajustá estos 2 colores a tu identidad */
  --topbar-bg: #ffffff;
  /*--topbar-bg: #F8F7F5;*/
  --topbar-text: #1f2933;

  --nav-bg: #ffffff;
  --nav-border: rgba(0,0,0,.08);

  --accent: #ff9800; /* naranja */
  --mega-bg: #ffffff;
  --mega-soft: #f7f7f7;
}

body{ font-family: var(--bs-font-sans-serif); }

/* ===== TOPBAR (cuadro verde) ===== */

/* Estado normal */
.site-header {
  position: relative;
  z-index: 1030;
}

.site-header .topbar{
  background: var(--topbar-bg);
  color: var(--topbar-text);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.topbar-title{
  font-size: 1.35rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.topbar-link{
  color: var(--topbar-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  opacity: .9;
}
.topbar-link:hover{ opacity: 1; text-decoration: underline; }

/* ===== NAVBAR (cuadro rojo) ===== */

/* NAVBAR normal */
.main-nav {
  position: relative;
  background: #fff;
  /*background: #F8F7F5;*/
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: box-shadow .2s ease, top .2s ease;
}

/* Separación perceptual entre ítems */
.main-nav .navbar-nav .nav-link{
  padding: .9rem 1.05rem;  /* más aire horizontal */
  font-weight: 500;
  color: #2b2b2b;
}
.main-nav .navbar-nav .nav-link:hover{
  color: #000;
}

/* Cuando scrollea: ocultar topbar */
body.is-scrolled .topbar {
  display: none; /* OCULTA TOPBAR */
}

body.is-scrolled .main-nav {
  position: fixed;        /* FIJA NAVBAR */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

/* Evita salto del contenido al fijar navbar */
body.is-scrolled {
  padding-top: 74px; /* ajustá según altura real del navbar */
}


/* ===== MEGA MENU ===== */
.mega-menu {
  width: 100vw;                /* ancho total */
  left: 0 !important;
  right: 0 !important;
  margin-top: 0 !important;    /* SIN espacio */
  padding: 0;
  border: 0;
  background: transparent;
}

.navbar .dropdown-menu {
  transform: none !important;
}


/* Contenedor visual */
.mega-wrap {
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  border-radius: 0 0 16px 16px;
  padding: 1.5rem ;
}

/* Ajuste interno */
.mega-wrap > .row,
.mega-wrap .container-xl {
  margin-top: 0;
}

/* columna */
.mega-col {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1rem;
  border: 1px solid rgba(0,0,0,.05);
}

/* título con ícono */
.mega-title{
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: #1f2933;
}

.mega-ico{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,152,0,.14);
  color: var(--accent);
  flex: 0 0 auto;
}

/* ítems: ICONO + wrap */
.mega-item{
  display: block;
  padding: .5rem .6rem;
  border-radius: 10px;
  color: #2b2b2b;
  text-decoration: none;

  /* IMPORTANTÍSIMO: permite que textos largos no solapen */
  white-space: normal;
  line-height: 1.25;
  word-break: break-word;
}
.mega-item i{
  color: var(--accent);
  margin-right: .35rem;
}
.mega-item:hover{
  background: var(--mega-soft);
}

/* Mejor lectura en mobile */
@media (max-width: 991.98px){
  .mega-wrap{ border-radius: 12px; }
  .main-nav .navbar-nav .nav-link{ padding: .75rem .5rem; }
}


/* 
  Esto hace que: Desktop → mega menú abre al pasar el mouse - Mobile → sigue siendo por click (Bootstrap) 
  - hover solo desktop
  - No lo vamos activar porque se sube por encima del navbar
/*
/*
.navbar-nav .dropdown:hover > .dropdown-menu {
  display: block;
}

@media (max-width: 991.98px) {
  .navbar-nav .dropdown:hover > .dropdown-menu {
    display: none; 
  }
}
*/

/*--------------------------------------------------------------------------------------------------- */

/* Estilos para la Sección de Título (Banner) */
#page-header {
	/* Fondo con Degradado Semitransparente sobre Imagen */
    background: linear-gradient(
        /* Degradado de naranja a naranja más oscuro con 90% de opacidad */
        rgba(255, 152, 0, 0.9), /* Color de inicio (Naranja más claro) */
        rgba(245, 124, 0, 0.9)  /* Color de fin (Naranja más oscuro) */
    ),
    /* URL de tu imagen de fondo para el banner */
    url('../../assets/img/bread-bg.jpg') center/cover no-repeat;

    /* Altura mínima requerida (15% del alto del viewport) */
    min-height: 15vh;
    
    /* Asegura que el texto y el contenido estén por encima */
    position: relative;
    z-index: 1; 
}

/* Estilos para el Título H1 */
#page-header h2 {
    /* Aplicar un color más sutil para el texto, o usar 'text-white' de Bootstrap */
    /* text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Opcional: Sombra para destacar más */
    color: #FFFFFF; /* Aseguramos que el color sea blanco */
    font-size: 25px;
}

/* Estilos para los Enlaces del Breadcrumb */
#page-header .breadcrumb-item a {
    /* El color ya lo maneja text-white-50 de Bootstrap, pero aseguramos la decoración */
    text-decoration: none; 
}

#page-header .breadcrumb-item a:hover {
    color: #FFFFFF !important; /* Resalta el enlace al pasar el mouse */
}

/*--------------------------------------------------------------------------------------------------- */


/* =========================
   HERO SLIDER (Swiper)
   ========================= */

.home-hero {
  width: 100%;
}

.heroSwiper {
  width: 100%;
  height: clamp(420px, 62vh, 680px);
}

.hero-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay profesional (lectura + estética limpia) */
.hero-overlay {
  border-top: 5px solid #FF7600;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.10) 100%);
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.10) 65%, rgba(0,0,0,.10) 100%);
}

/* Contenido alineado a la izquierda */
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-left {
  max-width: 680px;
  padding: 2.5rem 0;
}

.hero-kicker {
  display: inline-block;
  font-weight: 600;
  letter-spacing: .3px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  padding: .45rem .8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-title {
  color: #fff;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 1rem 0;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
}

.hero-text {
  color: rgba(255,255,255,.92);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  margin: 0 0 1.6rem 0;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Botones */
.hero-actions .btn {
  padding: .8rem 1.25rem;
}

/* Flechas: discretas y pro */
.hero-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.22);
}
.hero-nav::after {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

/* Paginación */
.hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  opacity: .55;
}
.hero-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

/* Mobile: asegura buena lectura */
@media (max-width: 575.98px) {
  .hero-left { padding: 2rem 0; }
  .hero-actions .btn { width: 100%; }
}

.home-hero {
  border-top: 1px solid rgba(0,0,0,.06);
}


/*--------------------------------------------------------------------------------------------------- */
/*--------------------------------------------------------------------------------------------------- */
/*--------------------------------------------------------------------------------------------------- */

/* Cards tipo blog */
.card-industrial {
  background: #fdfaf7;
  /*border-radius: 28px;*/
  border: none;
}

.card-industrial .meta span {
  background: #fff1e0;
  color: #ff9800;
  padding: .35rem .8rem;
  /*border-radius: 999px;*/
  font-size: .8rem;
  margin-right: .4rem;
}

.read-more {
  font-weight: 600;
  text-decoration: none;
  color: #333;
}

/* Feature icons */
.feature-box {
  background: #fff;
  padding: 2rem;
  border-radius: 24px;
  border-radius: 12px;
}

.feature-box i {
  font-size: 2rem;
  color: #ff9800;
}

.card-body i {
  color: #ff9800 !important;
}


