/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

:root {
  --primary-red: #D31018;
  --primary-red-hover: #b00c13;
  --dark-blue: #07192C;
  --navy-blue: #002247;
  --card-blue: #03356b;
  --text-dark: #1E252D;
  --text-muted: #3c3c3d;
  --bg-light: #F4F6F9;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
}

body {
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.5;
  font-size: 14px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 25px 0;
}

.bg-gray {
  background-color: var(--bg-light);
}

.text-center {
  text-align: center;
}

.text-white {
  color: var(--white);
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--navy-blue);
}

.logo a {
  display: inline-block;
}

.logo-img {
  max-height: 55px;
  /* Ajusta esta altura según el tamaño de tu barra de navegación */
  width: auto;
  /* Mantiene la proporción original de la imagen sin estirarla */
  display: block;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-red {
  background-color: var(--primary-red);
  color: var(--white);
}

.btn-red:hover {
  background-color: var(--primary-red-hover);
}

.btn-red-filled {
  background-color: var(--primary-red);
  color: var(--white);
  border: 1px solid var(--primary-red);
}

.btn-red-filled:hover {
  background-color: var(--primary-red-hover);
}

.btn-outline-white {
  border: 1px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   HEADER / NAVBAR (Corrección de visibilidad)
   ========================================================================== */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 20px;
  font-weight: 900;
  color: var(--navy-blue);
  letter-spacing: 1px;
}

.logo-icon {
  color: var(--primary-red);
  margin-right: 4px;
}

.logo-sub {
  font-size: 9px;
  font-weight: 700;
  color: var(--primary-red);
  letter-spacing: 2px;
  margin-top: -3px;
}

/* Menú normal de Escritorio */
.nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
}

.nav a.active,
.nav a:hover {
  color: var(--primary-red);
}

/* Ocultar botón hamburguesa por defecto en pantallas grandes */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--navy-blue);
  cursor: pointer;
  padding: 5px;
}

/* --- TABLETAS Y MÓVILES (Pantallas menores o iguales a 992px) --- */
@media (max-width: 992px) {

  /* Mostrar botón hamburguesa */
  .hamburger-btn {
    display: block;
  }

  .header-container {
    position: relative;
  }

  /* Ocultar el menú horizontal de escritorio y prepararlo como absoluto */
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 2px solid var(--primary-red);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
  }

  /* Cuando se activa con JavaScript */
  .nav.nav-active {
    max-height: 350px;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
  }

  .nav li {
    width: 100%;
  }

  .nav a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
  }

  .header-cotizar {
    margin-left: auto;
    margin-right: 15px;
  }
}

@media (max-width: 600px) {
  .header-cotizar {
    display: none;
    /* Oculta el botón 'Cotizar' del header en celulares pequeños */
  }
}

/* ==========================================================================
   ESTILOS PARA SUBMENÚ DESPLEGABLE (DROPDOWN)
   ========================================================================== */

/* Posicionamiento del ítem padre */
.nav ul li.dropdown {
  position: relative;
}

/* Flechita al lado de Soluciones */
.nav-arrow {
  font-size: 10px;
  margin-left: 4px;
  transition: transform 0.3s ease;
}

/* Contenedor del submenú flotante en escritorio */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background-color: var(--navy-blue, #07192C);
  border-top: 3px solid var(--primary-red, #D31018);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-radius: 0 0 6px 6px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* Estilo de las opciones dentro del submenú */
.dropdown-menu li {
  margin: 0 !important;
  width: 100%;
}

.dropdown-menu li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 20px !important;
  color: #CBD5E0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

.dropdown-menu li a i {
  color: var(--primary-red, #D31018);
  font-size: 13px;
  width: 16px;
  text-align: center;
}

/* Efecto Hover sobre las opciones del submenú */
.dropdown-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
}

/* Mostrar submenú al pasar el cursor (Desktop) */
@media (min-width: 993px) {
  .nav ul li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav ul li.dropdown:hover .nav-arrow {
    transform: rotate(180deg);
  }
}

/* Adaptación para Pantallas Móviles */
@media (max-width: 992px) {
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background-color: rgba(0, 0, 0, 0.2);
    width: 100%;
    padding: 5px 0 5px 15px;
    margin-top: 5px;
  }

  .dropdown-menu li a {
    font-size: 12px !important;
    padding: 8px 15px !important;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  background: linear-gradient(rgba(7, 25, 44, 0.85), rgba(7, 25, 44, 0.85)),
    url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=1200') center/cover no-repeat;
  color: var(--white);
  padding: 60px 0 80px 0;
}

.breadcrumb {
  font-size: 12px;
  color: #A0AEC0;
  margin-bottom: 20px;
}

.breadcrumb span {
  color: var(--white);
  font-weight: 600;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 15px;
}

.hero-desc {
  max-width: 550px;
  font-size: 15px;
  font-weight: 600;
  color: #fcfdff;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* ==========================================================================
   CATEGORIES BAR
   ========================================================================== */
.sub-categories {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  text-align: center;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.cat-item i {
  font-size: 40px;
  color: var(--navy-blue);
}

/* ==========================================================================
   WARNING & IMPACT SECTION
   ========================================================================== */
.warning-box {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
}

.warning-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.warning-icon {
  font-size: 60px;
  color: var(--primary-red);
}

.warning-title h3 {
  font-size: 18px;
  color: var(--navy-blue);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 15px;
  text-align: center;
}

.impact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.impact-item i {
  font-size: 40px;
  color: var(--primary-red);
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA LA PÁGINA PRINCIPAL (HOME)
   ========================================================================== */

.hero-home {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/portada.png') center/cover no-repeat !important;
  padding: 80px 0;
}

.hero-desc-center {
  max-width: 750px;
  margin: 0 auto 30px auto;
  font-size: 14px;
  color: #CBD5E0;
  line-height: 1.5;
}

.center-buttons {
  justify-content: center;
}

.clients-strip {
  background-color: var(--bg-light);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 20px;
}

.client-link {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* opacity: 0.8; */
}

.client-link:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.client-logo {
  max-width: 120px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%);
  /* Opcional: vuelve los logos monocromáticos para mantener estética uniforme */
  transition: filter 0.3s ease;
}

.client-link:hover .client-logo {
  filter: grayscale(0%);
  /* Restaura el color original del logo al pasar el cursor */
}

.clients-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.clients-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.client-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  opacity: 0.8;
}

.box-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
}

.box-card h3 {
  font-size: 16px;
  color: var(--navy-blue);
  margin-bottom: 15px;
}

.box-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 15px;
}

.certs-logos {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-weight: 800;
  font-size: 13px;
  color: var(--navy-blue);
  align-items: center;
}

.tech-logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.tech-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.grid-8-industries {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.link-red {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-red:hover {
  text-decoration: underline;
}

.link-white {
  color: #63B3ED;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.grid-2-uneven {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: 30px;
}

.box-solutions,
.box-sustainable-dark {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
}

.box-sustainable-dark {
  background-color: var(--dark-blue);
  border: none;
}

.solutions-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.solutions-mini-grid .sol-item {
  font-size: 40px;
  font-weight: 400;
  color: var(--navy-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.compliance-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
  text-align: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.badge-tag {
  background-color: #EDF2F7;
  color: var(--navy-blue);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
}

.project-list-mini {
  list-style: none;
  margin-top: 10px;
}

.project-list-mini li {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.project-list-mini li i {
  color: #38A169;
  margin-right: 4px;
}

.accordion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.cta-banner-full {
  position: relative;
  background: linear-gradient(rgba(7, 25, 44, 0.9), rgba(7, 25, 44, 0.9)),
    url('../img/portada.png') center/cover;
  padding: 60px 0;
  color: var(--white);
}

.cta-content-full h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.cta-content-full p {
  font-size: 13px;
  color: #CBD5E0;
  margin-bottom: 25px;
}

.mt-20 {
  margin-top: 20px;
}

/* ==========================================================================
   CORRECCIÓN PARA PROYECTOS DESTACADOS (3 EN UN RENGLÓN)
   ========================================================================== */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
  align-items: stretch;
  /* Hace que todas las tarjetas tengan la misma altura */
}

/* Aseguramos que la imagen dentro de la tarjeta se vea proporcionada */
.grid-3 .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.grid-3 .card-img {
  height: 140px;
  /* Ajusta la altura de la imagen para que luzca idéntica a la maqueta */
  background-size: cover;
  background-position: center;
}

.grid-3 .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Alinea los textos a la izquierda como en la imagen */
  text-align: left;
  padding: 15px;
}

/* --- RESPONSIVO PARA PROYECTOS --- */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    /* En tabletas pasan a 2 columnas */
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr !important;
    /* En celulares pasan a 1 sola columna */
  }
}

/* --- RESPONSIVO PARA HOME --- */
@media (max-width: 992px) {

  .grid-8-industries,
  .tech-logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2-uneven,
  .accordion-grid {
    grid-template-columns: 1fr;
  }

  .compliance-icons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .tech-logos-grid,
  .grid-8-industries {
    grid-template-columns: 1fr;
  }

  .hero-home h1 {
    font-size: 24px;
  }

  .center-buttons {
    flex-direction: column;
  }

  .center-buttons .btn {
    width: 100%;
  }
}

/* ==========================================================================
   METRICS / PROPOSITION
   ========================================================================== */
.flex-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.metrics-left {
  flex: 1;
}

.metrics-left h2 {
  font-size: 24px;
  color: var(--navy-blue);
  line-height: 1.3;
  margin-bottom: 15px;
}

.metrics-left p {
  color: var(--text-muted);
}

.metrics-right {
  flex: 2;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.metric-card {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px 15px;
  text-align: center;
  background: var(--white);
}

.metric-card i {
  font-size: 40px;
  color: var(--navy-blue);
  margin-bottom: 10px;
}

.metric-card .number {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-blue);
}

.metric-card .title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 5px;
  color: var(--navy-blue);
}

.metric-card .label {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   CARDS GRID (RIESGOS CLAVE)
   ========================================================================== */
.grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.card-img {
  height: 110px;
  background-size: cover;
  background-position: center;
}

.card-body {
  padding: 15px;
  text-align: center;
}

.card-icon {
  font-size: 40px;
  color: var(--navy-blue);
  margin-bottom: 8px;
}

.card-body h4 {
  font-size: 12px;
  color: var(--navy-blue);
  margin-bottom: 8px;
}

.card-body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   SOLUTIONS GRID
   ========================================================================== */
.solutions-grid .sol-item {
  text-align: center;
  padding: 10px;
}

.sol-icon {
  font-size: 40px;
  color: var(--navy-blue);
  margin-bottom: 12px;
}

.sol-item h4 {
  font-size: 13px;
  color: var(--navy-blue);
  margin-bottom: 8px;
}

.sol-item p {
  font-size: 11px;
  color: var(--text-muted);
}

/* ==========================================================================
   SUSTAINABLE & INSURANCE SECTION
   ========================================================================== */
.dark-blue-section {
  background-color: var(--dark-blue);
}


.dark-blue-sectionb {
  background-color: var(--white);
}



.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.sustainable-info h3,
.insurance-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.sub-lead {
  font-weight: 600;
  color: #CBD5E0;
  margin-bottom: 15px;
}

.sub-leadb {
  font-weight: 600;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.small-desc {
  font-size: 12px;
  margin-bottom: 15px;
  color: #A0AEC0;
}


.small-descb {
  font-size: 12px;
  margin-bottom: 15px;
  color: var(--dark-blue);
}


.compliance-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  text-align: center;
}

.comp-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.comp-icon i {
  font-size: 40px;
  color: #63B3ED;
}

.comp-iconb i {
  font-size: 40px;
  color: var(--dark-blue);
}

.comp-icon2 i {
  font-size: 40px;
  color: #07192c;
}

.comp-icon2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.insurance-info p {
  font-size: 12px;
  color: #CBD5E0;
  margin-bottom: 25px;
}

.insurance-infob p {
  font-size: 12px;
  color: var(--dark-blue);
  margin-bottom: 25px;
}

.logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  align-items: center;
  text-align: center;
}

.brand-text {
  font-size: 14px;
  color: #A0AEC0;
}

.brand-text.bold {
  font-weight: 800;
  color: var(--white);
}

/* ==========================================================================
   PROJECT EXAMPLE
   ========================================================================== */
.project-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
}

.project-img {
  width: 30%;
  background-size: cover;
  background-position: center;
}

.project-details {
  width: 70%;
  padding: 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-column h4 {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-column p {
  font-size: 12px;
  margin-bottom: 15px;
}

.project-column ul {
  list-style: none;
}

.project-column li {
  font-size: 11px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.project-column li i {
  color: #38A169;
  margin-right: 5px;
}

/* ==========================================================================
   FAQ & CTA BANNER
   ========================================================================== */
.faq-section h3 {
  font-size: 18px;
  color: var(--navy-blue);
  margin-bottom: 20px;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}

.accordion-item i {
  color: var(--text-muted);
}

.cta-banner {
  background: linear-gradient(rgba(7, 25, 44, 0.9), rgba(7, 25, 44, 0.9)),
    url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?w=600') center/cover;
  border-radius: 8px;
  padding: 30px;
  color: var(--white);
  display: flex;
  align-items: center;
}

.cta-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 12px;
  color: #CBD5E0;
  margin-bottom: 20px;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   FOOTER STRIP
   ========================================================================== */
.footer-strip {
  background-color: var(--dark-blue);
  color: #A0AEC0;
  padding: 15px 0;
  font-size: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.footer-grid i {
  color: var(--primary-red);
  margin-right: 5px;
}

/* ==========================================================================
   DISEÑO RESPONSIVO COMPLETO (Tabletas y Celulares)
   ========================================================================== */

/* --- TABLETAS (Pantallas hasta 992px) --- */
@media (max-width: 992px) {
  .header-container {
    padding: 0 10px;
  }

  .hero h1 {
    font-size: 28px;
  }

  /* Grillas principales a 3 y 4 columnas */
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .impact-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }

  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .flex-container {
    flex-direction: column;
    gap: 25px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .compliance-icons,
  .logos-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Ajustes a la tarjeta de proyecto */
  .project-card {
    flex-direction: column;
  }

  .project-img {
    width: 100%;
    height: 200px;
  }

  .project-details {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* --- CELULARES / MÓVILES (Pantallas hasta 600px) --- */
@media (max-width: 600px) {
  .section {
    padding: 35px 0;
  }

  /* Adaptación de Encabezado */
  .header-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav {
    width: 100%;
    order: 3;
    overflow-x: auto;
    padding-top: 10px;
  }

  .nav ul {
    gap: 15px;
    white-space: nowrap;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 13px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  /* Ajuste de categorías e impactos a 2 columnas */
  .cat-grid,
  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Ajuste de riesgos y soluciones a 1 o 2 columnas */
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .compliance-icons,
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Tarjeta de proyecto a 1 sola columna vertical */
  .project-details {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }

  /* Banner de llamado a la acción */
  .cta-banner {
    padding: 20px;
  }

  .cta-content h3 {
    font-size: 16px;
  }

  .cta-buttons .btn {
    width: 100%;
    font-size: 12px;
  }

  /* Footer simplificado en móvil */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: left;
  }
}

/* ==========================================================================
   COMPONENTES ESPECÍFICOS PARA AUTOMOTRIZ
   ========================================================================== */

/* Fondo del Hero para Automotriz */
.hero-auto {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/automotriz.png') center/cover no-repeat !important;
}

/* Categorías superiores en 4 columnas */
.cat-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.warning-subtext {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 5px;
}

/* Tarjetas de impacto de la sección de aviso */
.impact-cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.impact-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
}

.impact-card i {
  font-size: 24px;
  color: var(--primary-red);
  margin-bottom: 10px;
}

.impact-card h4 {
  font-size: 14px;
  color: var(--navy-blue);
  margin-bottom: 6px;
}

.impact-card p {
  font-size: 11px;
  color: var(--text-muted);
}

.footer-grid-4 {
  display: flex;
  justify-content: space-around;
  text-align: center;
}

.footer-grid-4 i {
  color: var(--primary-red);
  margin-right: 5px;
  font-size: 30px;
}

/* Ajustes responsivos para los nuevos bloques */
@media (max-width: 992px) {

  .cat-grid-4,
  .impact-cards-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .cat-grid-4,
  .impact-cards-3,
  .footer-grid-4 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* ==========================================================================
   CORRECCIÓN DEL ACORDEÓN (DESPLIEGUE HACIA ABAJO)
   ========================================================================== */

.accordion-item {
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
  display: block;
  /* Cambiamos a block para que el contenido fluya verticalmente hacia abajo */
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Encabezado de la pregunta y el icono + */
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  gap: 15px;
}

.accordion-header i {
  color: var(--primary-red);
  font-size: 14px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  /* Evita que el icono + se aplaste */
}

/* Respuesta desplegable hacia abajo */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1), padding 0.35s ease;
  padding: 0;
  width: 100%;
  /* Asegura que tome todo el ancho disponible */
}

.accordion-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
  padding-right: 10px;
}

/* Estado activo cuando se da clic */
.accordion-item.active .accordion-header {
  color: var(--primary-red);
}

.accordion-item.active .accordion-content {
  max-height: 300px;
  /* Permite espacio suficiente para textos largos */
  padding-top: 4px;
}

/* Imagen de fondo específica para la sección Hero de Data Centers */
.hero-datacenter {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/DataCenter.png') center/cover no-repeat !important;
}

/* Imagen de fondo específica para la sección Hero de Baterías y BESS */
.hero-bess {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/bess.png') center/cover no-repeat !important;
}

/* Imagen de fondo específica para la sección Hero de Manufactura */
.hero-manufactura {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/manufactura.png') center/cover no-repeat !important;
}

/* Imagen de fondo específica para la sección Hero de Hoteles y Hospitales */
.hero-hoteles {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/restaurantes.png') center/cover no-repeat !important;
}

/* Imagen de fondo específica para la sección Hero de Alimentos y Bebidas */
.hero-alimentos {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/alimentaria.png') center/cover no-repeat !important;
}

/* Imagen de fondo específica para la sección Hero de Logística y Transporte */
.hero-logistica {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/logistica.png') center/cover no-repeat !important;
}

/* Imagen de fondo específica para la sección Hero de Centros Comerciales */
.hero-centros-comerciales {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/comercial.png') center/cover no-repeat !important;
}

/* ==========================================================================
   ESTILOS ADICIONALES PARA EL CATÁLOGO CONSOLIDADO DE BOMBEROS
   ========================================================================== */
.hero-bomberos {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('https://images.unsplash.com/photo-1578328819058-b69f3a3b0f6b?w=1200') center/cover no-repeat !important;
  padding: 80px 0;
}

.catalog-grid .product-box {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-grid .product-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Imagen de fondo específica para la sección Hero de sistemas de detección */
.hero-detection {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1200') center/cover no-repeat !important;
  padding: 80px 0;
}

/* Imagen de fondo específica para la sección Hero de Extintores */
.hero-extintores {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('https://images.unsplash.com/photo-1583863788434-e58a36330cf0?w=1200') center/cover no-repeat !important;
  padding: 80px 0;
}

.cat-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Adaptación responsive para pantallas más pequeñas */
@media (max-width: 992px) {
  .cat-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* ==========================================================================
   CORRECCIÓN PARA EL CONTENEDOR DE CERTIFICACIONES (.certs-logos)
   ========================================================================== */
.certs-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.certs-logos .cert-link {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.certs-logos .cert-link:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.certs-logos .cert-logo {
  max-width: 90px;
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.certs-logos .cert-link:hover .cert-logo {
  filter: grayscale(0%);
}

/* ==========================================================================
   ESTILOS PARA TECNOLOGÍAS Y FABRICANTES LÍDERES (.tech-logos-grid)
   ========================================================================== */
.tech-logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 30px 0 20px 0;
}

.tech-link {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.tech-link:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.tech-logo {
  max-width: 110px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
}

.tech-link:hover .tech-logo {
  filter: grayscale(0%);
}

img {
  border-radius: 8px;
  /* Cambia el valor según qué tan redondeadas las quieras */
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS: PÁGINA MODELO JUNGHANNS
   ========================================================================== */

.hero-modelo {
  background: url('../img/modelo/header.png') center/cover no-repeat !important;
  padding: 80px 0;
  color: #fff;
}

.hero-modelo-footer {
  background: linear-gradient(to bottom, rgba(7, 25, 44, 0.0) 0%, rgba(7, 25, 44, 1) 70%),
    url('../img/modelo/footer.png') center/cover no-repeat !important;
  padding: 80px 0;
  color: #fff;
  position: relative;
  /* Opcional, por si necesitas posicionar elementos hijos */
}

.badge-tag-modelo {
  background-color: var(--primary-red, #D31018);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 15px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 15px;
}

.pillar-box-modelo i {
  font-size: 44px;
  color: var(--dark-blue);
  margin-bottom: 15px;
}


.section-title-modelo {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

/* Grid de los 5 pasos del modelo */
.model-steps-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.model-step-card {
  background: #F7FAFC;
  border-radius: 8px;
  padding: 20px 15px;
  width: 200px;
  text-align: center;
  transition: transform 0.3s ease;
}

.model-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.step-icon-circle {
  width: 100px;
  height: 100px;
  background-color: var(--navy-blue, #07192C);
  color: var(--white, #ffffff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  font-size: 50px;
}

.model-step-card h3 {
  font-size: 16px;
  color: var(--navy-blue);
  margin-bottom: 8px;
}

.model-step-card p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.model-arrow {
  color: var(--primary-red);
  font-size: 18px;
}

/* Pilares de Más allá del mantenimiento */
.pillars-grid-5 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.pillar-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
}

.pillar-box i {
  font-size: 44px;
  color: var(--primary-red);
  margin-bottom: 15px;
}

.pillar-box h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: #fff;
}

.pillar-box p {
  font-size: 12px;
  color: #CBD5E0;
  line-height: 1.4;
}

/* Split Grid para Plataforma e Industrias */
.grid-2-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.platform-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.platform-list li {
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-list li i {
  color: #38A169;
}

.industries-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.ind-mini-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.ind-mini-card img {
  width: 100%;
  height: 60px;
  object-fit: cover;
}

.ind-mini-card span {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy-blue);
  padding: 8px 4px;
}

/* Comparativa */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.5fr;
  gap: 20px;
  align-items: center;
}

.comp-box {
  background: #F7FAFC;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
}

.comp-box.dispersed {
  border-left: 4px solid #E53E3E;
}

.comp-box.junghanns-model {
  border-left: 4px solid #38A169;
  background: #F0FFF4;
}

.comp-box h4 {
  font-size: 18px;
  color: var(--navy-blue);
  margin-bottom: 15px;
}

.comp-benefits-list {
  list-style: none;
  padding: 0;
}

.comp-benefits-list li {
  font-size: 13px;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comp-benefits-list li i {
  color: #38A169;
}

.comp-arrow-center {
  font-size: 24px;
  color: var(--primary-red);
  text-align: center;
}

/* Footer row logos */
.footer-strip-full {
  background-color: var(--navy-blue);
  padding: 30px 0;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.85;
}

.footer-logos-row .logo-item small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #A0AEC0;
}

/* Responsivo para móviles */
@media (max-width: 992px) {

  .grid-2-split,
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .comp-arrow-center {
    transform: rotate(90deg);
  }
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS: PÁGINA TECNOLOGÍAS PARA INFRAESTRUCTURA CRÍTICA
   ========================================================================== */

.hero-tecnologias {
  background: linear-gradient(to bottom, rgba(7, 25, 44, 0.0) 0%, rgba(7, 25, 44, 1) 70%),
    url('../img/tecnologias/tecnologias.png') center/cover no-repeat !important;
  padding: 80px 0;
  color: #fff;
}

.hero-tecnologiasb {
  background: linear-gradient(to left, rgba(7, 25, 44, 0.5) 10%, rgba(7, 25, 44, 0.97) 60%),
    url('../img/tecnologias/sistema-seguridad.png') center/cover no-repeat !important;
  padding: 80px 0;
  color: #fff;
}

.dark-blue-section img {
  display: block;
  margin: 0 auto;
  max-width: 70%;
  height: auto;
  border-radius: 10px;
}

.search-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 11px;
  transition: background 0.2s;
}

.search-tag:hover {
  background: var(--primary-red);
}

/* Grid de Tarjetas de Industrias */
.industries-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.ind-card-link {
  text-decoration: none;
}

.ind-card {
  height: 220px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.ind-card:hover {
  transform: translateY(-5px);
}

.ind-card h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #fff;
}

.ind-card p {
  font-size: 12px;
  color: #E2E8F0;
  margin-bottom: 15px;
}

.ind-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  font-size: 10px;
  color: #CBD5E0;
}

.ind-card-footer i {
  color: var(--primary-red);
  font-size: 14px;
}

/* Diagrama de Arquitectura */
.architecture-diagram-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.arch-node {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.arch-node i {
  color: var(--primary-red);
  font-size: 16px;
}

.arch-center-hub {
  background: var(--navy-blue);
  border: 2px solid var(--primary-red);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 20px rgba(211, 16, 24, 0.3);
}

.arch-center-hub strong {
  display: block;
  font-size: 12px;
  margin-top: 8px;
  color: #fff;
}

/* Grid Carrusel de Tecnologías */
.tech-carousel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.tech-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.tech-card-img {
  height: 150px;
  background-size: cover;
  background-position: bottom;
}

.tech-card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tech-card-body h4 {
  font-size: 16px;
  color: var(--navy-blue);
  margin-bottom: 5px;
}

.tech-card-body p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-grow: 1;
}

.tech-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.tech-tags span {
  background: #EDF2F7;
  color: var(--navy-blue);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.tech-link-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Biblioteca Técnica Grid */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.lib-card {
  background: #F7FAFC;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.lib-badge {
  background: #E2E8F0;
  color: var(--navy-blue);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 10px;
  width: fit-content;
}

.lib-card h4 {
  font-size: 15px;
  color: var(--navy-blue);
  margin-bottom: 8px;
}

.lib-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.4;
}

.lib-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #718096;
  border-top: 1px solid var(--border-color);
  padding-top: 10px;
}

@media (max-width: 992px) {
  .architecture-diagram-box {
    grid-template-columns: 1fr;
  }

  .dark-blue-section img {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    height: auto;
    border-radius: 10px;
  }


}

/* ==========================================================================
   ESTILOS ESPECÍFICOS: PÁGINA PROYECTOS PARA INFRAESTRUCTURA CRÍTICA
   ========================================================================== */

.hero-proyectos {
  background: linear-gradient(rgba(7, 25, 44, 0.6), rgba(7, 25, 44, 0.6)),
    url('../img/proyectos/proyectos.png') center/cover no-repeat !important;
  padding: 80px 0;
  color: #fff;
}

.hero-metrics-row {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #CBD5E0;
  padding-top: 20px;
  margin-top: 20px;
}

.hero-metrics-row div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-metrics-row i {
  color: var(--white);
  font-size: 35px;
}

.section-title-proyecto {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--dark-blue);
}

.pillar-box-proyecto {
  background: #F7FAFC;
  border: 1px solid rgba(255, 255, 255, 0.815);
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
}

.pillar-box-proyecto i {
  font-size: 44px;
  color: var(--dark-blue);
  margin-bottom: 15px;
}

.pillar-box-proyecto h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--dark-blue);
}

.pillar-box-proyecto p {
  font-size: 14px !important;
  font-weight: 500;
  color: var(--dark-blue);
  line-height: 1.4;
}

/* Grid de los 5 pasos del modelo */
.model-steps-grid-proyectos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
}


.model-step-card-proyecto {
  border-radius: 8px;
  padding: 20px 15px;
  width: 200px;
  text-align: center;
  transition: transform 0.3s ease;
}

.model-step-card-proyecto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.step-icon-circle-proyecto {
  width: 100px;
  height: 100px;
  background-color: var(--white, #fdfeff);
  color: var(--dark-blue, #ffffff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  font-size: 50px;
}

.model-step-card-proyecto h3 {
  font-size: 16px;
  color: var(--white);
  margin-bottom: 8px;
}

.model-step-card-proyecto p {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
}

.model-arrow {
  color: var(--white);
  font-size: 18px;
}

.banner-card-proyecto {
  position: relative;
  flex: 1;
  min-width: 300px;
  height: 100%;
  overflow: hidden;

  /* Degradado encima + Imagen de fondo debajo */
  background: linear-gradient(to bottom, rgba(2, 23, 48, 0.95), rgba(1, 22, 58, 0.9), rgba(2, 8, 24, 0.95)),
    url('../img/portada.png');

  /* Es recomendable añadir estas propiedades para que la imagen ajuste bien */
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
}

@media (max-width: 600px) {


  .model-steps-grid-proyectos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
  }

}


/* ==========================================================================
   Banners
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Contenedor principal */
.banners-container {
  width: 100vw;
  height: 400px;
  display: flex;
  flex-wrap: wrap;
}

/* Tarjeta individual de cada banner con el degradado solicitado */
.banner-card {
  position: relative;
  flex: 1;
  min-width: 300px;
  height: 100%;
  overflow: hidden;
  /* Degradado aplicado de fondo con tus 3 tonos */
  background: linear-gradient(to top, #093d77, #01163a, #020818);
}

/* Imagen en HTML con object-fit */
.banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Muestra la imagen 100% completa sin recortes */
  display: block;
}


/* Estilos de texto y botones */
.banner-content {
  color: #ffffff;
  font-family: Arial, sans-serif;
  padding: 20px;
}

.banner-content h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.banner-content p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.banner-btn {
  display: inline-block;
  padding: 8px 20px;
  background-color: #007bff;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.banner-btn:hover {
  background-color: #0056b3;
}



/* Vista móvil (por defecto): 1 columna */
.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
}

.grid-item {
  background-color: #f3f4f6;
  padding: 16px;
  border-radius: 8px;
}

/* Vista escritorio (768px o más): 4 columnas */
@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ==========================================================================
   Comparativa
   ========================================================================== */



.model-step-comparativa {
  background: #FFFFFF;
  border-radius: 8px;
  padding: 20px 15px;
  width: 300px;
  text-align: left;
  transition: transform 0.3s ease;
}

.model-comparativa-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
}

.title-modelo-rojo {
  color: var(--primary-red);
}

@media (max-width: 600px) {
  .margen-superior {
    margin-top: 5px;
  }

  .model-comparativa-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 40px;
  }

}


/* ==========================================================================
   TARJETAS DE INDUSTRIAS CON IMAGEN SUPERIOR
   ========================================================================== */
.industries-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.ind-card-link {
  text-decoration: none;
  display: flex;
}

.ind-card-top {
  background: #ffffff;
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-shadow: 0 4px 12px rgba(7, 25, 44, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ind-card-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(7, 25, 44, 0.12);
}

/* Contenedor de la imagen superior */
.ind-card-img-wrapper {
  width: 100%;
  height: 160px;
  /* Altura uniforme para todas las fotos */
  overflow: hidden;
  background-color: #EDF2F7;
}

.ind-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Recorta a escala sin deformar la foto */
  display: block;
  transition: transform 0.4s ease;
}

.ind-card-top:hover .ind-card-img-wrapper img {
  transform: scale(1.05);
  /* Ligero zoom al pasar el cursor */
}

/* Cuerpo de texto inferior */
.ind-card-body {
  background-color: var(--dark-blue);
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ind-card-body h4 {
  font-size: 17px;
  color: var(--navy-blue, #07192C);
  margin: 0 0 8px 0;
  font-weight: 700;
  color: var(--white);
}

.ind-card-body p {
  font-size: 13px;
  color: var(--white, #4A5568);
  margin: 0 0 16px 0;
  line-height: 1.5;
  flex-grow: 1;
  /* Empuja el footer siempre hacia abajo para alinear todas las cards */
}

/* Pie de tarjeta con normativas */
.ind-card-top .ind-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color, #E2E8F0);
  padding-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #718096;
  gap: 10px;
}

.ind-card-top .ind-card-footer i {
  color: var(--primary-red, #D31018);
  font-size: 14px;
  transition: transform 0.2s ease;
}

.ind-card-top:hover .ind-card-footer i {
  transform: translateX(4px);
}

/* ==========================================================================
   SECCIÓN CONFIABILIDAD OPERATIVA (4 COLUMNAS)
   ========================================================================== */
.confiabilidad-section {
  padding: 60px 0;
}

.confiabilidad-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.15fr;
  gap: 24px;
  align-items: center;
}

.confiabilidad-grid>* {
  min-width: 0;
  /* Evita desbordamientos en grids y móviles */
}

/* Columna 1: Texto principal */
.confiabilidad-mensaje h3 {
  font-size: 20px;
  line-height: 1.35;
  color: var(--navy-blue, #07192C);
  font-weight: 700;
  margin: 0 0 14px 0;
}

.confiabilidad-mensaje .texto-rojo {
  color: var(--primary-red, #D31018);
  display: inline;
}

.confiabilidad-mensaje p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted, #4A5568);
  margin: 0;
}

/* Columnas 2 y 3: Tarjetas con encabezado azul y foto */
.confiabilidad-media-card {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--navy-blue, #07192C);
  box-shadow: 0 8px 20px rgba(7, 25, 44, 0.12);
  display: flex;
  flex-direction: column;
}

.media-banner-top {
  background-color: var(--navy-blue, #07192C);
  color: #ffffff;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.media-banner-top i {
  font-size: 14px;
  color: #ffffff;
}

.media-img-box {
  position: relative;
  width: 100%;
  height: 165px;
  overflow: hidden;
  background-color: #1A202C;
}

.media-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Paloma verde sobre la tarjeta del Modelo Junghanns */
.check-flotante {
  position: absolute;
  top: 6px;
  right: 10px;
  color: #2E8540;
  font-size: 28px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}

/* Columna 4: Lista de beneficios */
.confiabilidad-beneficios h4 {
  font-size: 15px;
  line-height: 1.3;
  color: var(--navy-blue, #07192C);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 14px 0;
}

.confiabilidad-beneficios h4 sup {
  font-size: 9px;
  vertical-align: super;
}

.lista-beneficios {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lista-beneficios li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #2D3748;
}

.lista-beneficios li i {
  color: #2E8540;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Responsividad en tablet y móvil */
@media (max-width: 992px) {
  .confiabilidad-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
  }

  .media-img-box {
    height: 200px;
  }
}


/* ==========================================================================
   SECCIÓN CUMPLIMIENTO E INFRAESTRUCTURA CRÍTICA (SPLIT + GRID 4x2)
   ========================================================================== */
.cumplimiento-sectores-split {
  width: 100%;
  background-color: var(--navy-blue, #07192C);
  color: #ffffff;
  overflow: hidden;
}

.split-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  width: 100%;
}

.split-row>* {
  min-width: 0;
}

/* Panel izquierdo */
.panel-cumplimiento {
  background: linear-gradient(135deg, #07192C 0%, #0B2545 65%, #07192C 100%);
  padding: 36px 28px;
  display: flex;
  align-items: center;
}

.panel-cumplimiento-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 18px;
  align-items: center;
  width: 100%;
}

.panel-cumplimiento-inner>* {
  min-width: 0;
}

.cumplimiento-texto h2 {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.texto-acento-azul {
  color: #38BDF8;
}

.cumplimiento-sub {
  font-size: 12px;
  color: #CBD5E0;
  margin: 0 0 14px 0;
}

.lista-cumplimiento {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lista-cumplimiento li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: #E2E8F0;
}

.lista-cumplimiento li i {
  color: var(--primary-red, #D31018);
  font-size: 11px;
  flex-shrink: 0;
}

.btn-conocer-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 6px;
}

.cumplimiento-mockup img {
  width: 70%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.45));
}

/* Panel derecho: 8 tarjetas en 4 columnas x 2 filas */
.panel-sectores {
  background: linear-gradient(180deg, #061526 0%, #0A223D 100%);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.sectores-titulo {
  text-align: center;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 22px 0;
  letter-spacing: 0.4px;
}

.sectores-grid-8 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
}

.sector-tile {
  position: relative;
  display: block;
  height: 155px;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  background-color: #0F2942;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.sector-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

/* Degradado inferior para que el nombre del sector siempre sea legible */
.sector-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 25, 44, 0.92) 8%, rgba(7, 25, 44, 0.15) 65%);
  pointer-events: none;
}

.sector-tile:hover img {
  transform: scale(1.06);
}

.sector-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

/* Tablet y móvil */
@media (max-width: 1100px) {
  .split-row {
    grid-template-columns: 1fr;
  }

  .panel-sectores {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 768px) {
  .panel-cumplimiento-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sectores-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-tile {
    height: 130px;
  }
}

@media (max-width: 420px) {
  .sectores-grid-8 {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   PÁGINA MI CUENTA / LOGIN
   ========================================================================== */
.login-hero {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/micuenta/banner-micuenta.png') center/cover no-repeat !important;
  padding: 80px 0;
}




.login-hero h1 {
  color: #ffffff;
  font-size: 34px;
  margin: 10px 0;
}

.login-section {
  padding: 55px 0;
}

.login-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 32px;
  align-items: stretch;
}

.login-grid>* {
  min-width: 0;
}

/* Tarjeta visual izquierda */
.login-visual-card {
  background-color: var(--navy-blue, #07192C);
  color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(7, 25, 44, 0.14);
}

.login-visual-img {
  width: 100%;
  height: 240px;
  overflow: hidden;
  background-color: #0F2942;
}

.login-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-visual-caption {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  justify-content: center;
}

.login-visual-caption h3 {
  color: #ffffff;
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
}

.login-visual-caption p {
  color: #CBD5E0;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* Tarjeta de formulario derecha */
.login-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color, #E2E8F0);
  border-top: 4px solid var(--primary-red, #D31018);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 10px 25px rgba(7, 25, 44, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-kicker {
  color: var(--primary-red, #D31018);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}

.login-card-header h2 {
  color: var(--navy-blue, #07192C);
  font-size: 22px;
  margin: 0 0 6px 0;
}

.login-card-header p {
  color: var(--text-muted, #4A5568);
  font-size: 13px;
  margin: 0 0 22px 0;
}

.login-form .form-group {
  margin-bottom: 16px;
}

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-blue, #07192C);
  margin-bottom: 6px;
}

.input-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrapper i {
  position: absolute;
  left: 14px;
  color: #718096;
  font-size: 14px;
  pointer-events: none;
}

.input-icon-wrapper input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid #CBD5E0;
  border-radius: 6px;
  font-size: 14px;
  color: var(--navy-blue, #07192C);
  background-color: #F8FAFC;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input-icon-wrapper input:focus {
  border-color: var(--navy-blue, #07192C);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(7, 25, 44, 0.1);
}

.login-form-actions-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.btn-toggle-pass {
  background: none;
  border: none;
  color: var(--navy-blue, #07192C);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.btn-toggle-pass:hover {
  color: var(--primary-red, #D31018);
  text-decoration: underline;
}

.login-submit-btn {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.login-msgbox {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  background-color: #FFF5F5;
  color: var(--primary-red, #D31018);
  border: 1px solid #FEB2B2;
}

/* Responsive */
@media (max-width: 900px) {
  .login-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   PORTAL INTERNO DE CLIENTES (inicio.php / tutorial.php)
   ========================================================================== */
.nav a.nav-disabled {
  color: #94A3B8 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.portal-hero {
  background: linear-gradient(rgba(7, 25, 44, 0.88), rgba(7, 25, 44, 0.88)),
    url('../img/micuenta/portal.png') center/cover no-repeat !important;
  padding: 80px 0;
}

.portal-hero h1 {
  color: #ffffff;
  font-size: 38px;
  margin: 12px 0 16px 0;
}

.portal-hero .hero-desc-center {
  color: #E2E8F0;
  font-size: 15px;
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 24px auto;
}

.portal-quote {
  display: inline-block;
  margin: 0 auto;
  padding: 12px 24px;
  border-left: 4px solid var(--primary-red, #D31018);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.portal-modules-section {
  padding: 55px 0;
}

.portal-section-header {
  margin-bottom: 28px;
}

.portal-section-header h2 {
  color: var(--navy-blue, #07192C);
  font-size: 24px;
  margin: 4px 0 0 0;
}

.portal-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portal-cards-grid > * {
  min-width: 0;
}

.portal-module-card {
  background: #ffffff;
  border: 1px solid var(--border-color, #E2E8F0);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(7, 25, 44, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portal-module-card.active-module:hover {
  transform: translateY(-4px);
  border-color: var(--navy-blue, #07192C);
  box-shadow: 0 12px 26px rgba(7, 25, 44, 0.14);
}

.portal-module-card.disabled-module {
  background: #F8FAFC;
  opacity: 0.78;
  cursor: default;
}

.module-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: rgba(7, 25, 44, 0.07);
  color: var(--navy-blue, #07192C);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.active-module .module-icon-box {
  background: var(--navy-blue, #07192C);
  color: #ffffff;
}

.module-body {
  flex-grow: 1;
}

.module-status {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.status-live {
  background: #DEF7EC;
  color: #03543F;
}

.status-soon {
  background: #E2E8F0;
  color: #475569;
}

.module-body h3 {
  font-size: 18px;
  color: var(--navy-blue, #07192C);
  margin: 0 0 8px 0;
}

.module-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted, #4A5568);
  margin: 0 0 18px 0;
}

.module-footer {
  border-top: 1px solid var(--border-color, #E2E8F0);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-red, #D31018);
}

.disabled-module .module-footer {
  color: #64748B;
}

@media (max-width: 900px) {
  .portal-cards-grid {
    grid-template-columns: 1fr;
  }
}