/* === FUENTE NAUMAN NEUE (incluir arriba de todo tu CSS) === */
@font-face {
  font-family: "Nauman Neue";
  src: url("../fonts/NaumanNeue/NaumanNeueTrial-Regular-BF63bf800e2f0fa.otf")
    format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Nauman Neue";
  src: url("../fonts/NaumanNeue/NaumanNeueTrial-Regular-BF63bf800e2f0fa.otf")
    format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* Paleta de grises + color institucional REBSA */
:root {
  --gris-1: #f5f5f5;
  --gris-2: #e0e0e0;
  --gris-3: #bdbdbd;
  --gris-4: #9e9e9e;
  --gris-5: #757575;
  --gris-6: #616161;
  --gris-7: #424242;
  --gris-8: #212121;
  --gris-9: #EDE9E4;
  --blanco: #ffffff;
  --negro: #000000;
  --lila-rebsa: #8499ce;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nauman Neue", "Nauman Neue Trial", "Segoe UI", Tahoma, Geneva,
    Verdana, sans-serif;
}

body {
  background-color: var(--gris-1);
  color: var(--lila-rebsa);
  line-height: 1.6;
  overflow-x: hidden;
}

/* CONTENEDOR GENERAL */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER === */
header {
  padding: 15px 0;
  position: sticky;
  width: 100vw;
  top: 0;
  left: 0;
  z-index: 1000;
  background: var(--gris-9);  /* AQUI LO CAMBIAS */
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-text h1{
  display: flex;
  flex-direction: column;  /* GRUPO arriba, DIQUE abajo */
  gap: 2px;
  line-height: 1.05;
  margin: 0;
  font-size: 0;            /* anulamos el 2.5rem anterior */
}

/* 3) Tamaños por línea */
.logo-text .grupo{
  font-size: 0.95rem;      /* pequeño */
  font-weight: 700;
  color: var(--lila-rebsa);
  letter-spacing: 1px;
}
.logo-text .dique{
  font-size: 1.6rem;       /* más grande */
  font-weight: 700;
  color: var(--gris-5);
  letter-spacing: 1px;
}

/* === SECCIONES === */
.section {
  padding: 20px 0;
  background-color: var(--blanco);
}

.section-dark {
  background-color: var(--gris-1);
}

.section-title {
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--lila-rebsa); /* Cambiado de negro a lila */
  margin-bottom: 15px;
  position: relative;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.section-title h2::after {
  content: "";
  display: block;
  height: 0.25rem; /* grosor relativo */
  width: 30rem;     /* ancho relativo al tamaño raíz */
  background-color: var(--lila-rebsa); /* Lila institucional */
  margin: 10px auto 0;
}

.section-title2 h2:after {
  content: "";
  display: block;
  height: 0.25rem; /* grosor relativo */
  width: 10rem;     /* ancho relativo al tamaño raíz */
  background-color: var(--lila-rebsa); /* Lila institucional */
  margin: 10px auto 0;
}

.section-title p {
  color: var(--gris-5);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* === HISTORIA === */
.historia-content {
  width: 1200px;
  display: flex;
  justify-content: space-between;
  gap: 100px;
}

.historia-text h3 {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: var(--lila-rebsa);
  font-weight: 600;
}

.historia-text p {
  width: 650px;
  margin-bottom: 20px;
  color: var(--gris-7);
  line-height: 1.8;
}


.historia-image {
  width: 100%;
  max-width: 850px;
  height: 400px;
  margin: auto;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.historia-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.historia-image:hover img {
  transform: scale(1.03);
}
.historia-image:hover img {
  transform: scale(1.03);
}

/* === MEJORAS SECCIÓN EMPRESAS === */
.empresas-container {
  position: relative;
}

.empresas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  z-index: -1;
  border-radius: 20px;
}

.empresas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0px;
}

.empresa-card {
  background: var(--blanco);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 1;
}

.empresa-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.empresa-header {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.empresa-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.empresa-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.empresa-card:hover .empresa-img {
  transform: scale(1.05);
}

.empresa-title {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--lila-rebsa);
  font-size: 1.6rem;
  font-weight: 700;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.empresa-status {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--lila-rebsa);
  color: var(--blanco);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.empresa-status.disabled {
  background: #5b8ac8;
  color: var(--blanco);
}

.empresa-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.empresa-desc {
  color: var(--gris-6);
  font-size: 1rem;
  font-family: "Raleway", sans-serif;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.empresa-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.feature-tag {
  background: rgba(132, 153, 205, 0.12); /* lila institucional opaco */
  color: var(--lila-rebsa);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.empresa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lila-rebsa);
  color: var(--blanco);
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  gap: 8px;
}

.empresa-btn:hover {
  background: var(--gris-7);
  color: var(--blanco);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(132, 153, 205, 0.23);
}

.empresa-btn.disabled {
  background: var(--gris-4);
  cursor: not-allowed;
  pointer-events: none;
}

.empresa-btn i {
  font-size: 0.9rem;
}

/* === FOOTER === */
footer {
  background: var(--gris-5);
  color: var(--blanco);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blanco);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--blanco);
  text-decoration: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  padding: 8px;
  color: var(--lila-rebsa);
  background: var(--blanco);
  transform: translateX(5px);
  border-radius: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(132, 153, 205, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanco);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--blanco);
  color: var(--lila-rebsa);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  color: var(--blanco);
  padding-top: 50px;
  border-top: 1px solid var(--blanco);
  margin-top: 50px;
}

.leyenda {
  display: inline-block;
  color: #015285;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 4px 14px;
  border-radius: 12px;
}

/* --- HEADER / NAV --- */

/* El logo no debe ocupar el 100% del ancho */
.header-container .logo-container{
  width:auto;                 /* sobreescribe tu width:100% */
  justify-content:flex-start; /* en lugar de center */
}

/* Menú alineado a la derecha y en una fila */
.main-nav{
  margin-left:auto; /* empuja el nav a la derecha */
}
.main-nav ul{
  list-style:none;
  display:flex;
  align-items:center;
  gap:32px;         /* espacio entre items */
  margin:0;
  padding:0;
}
.main-nav a{
  text-decoration:none;
  font-weight:600;
  letter-spacing:.5px;
  color: var(--lila-rebsa);
  padding-bottom:6px; /* para el subrayado activo */
}
.main-nav a.active{
  border-bottom:3px solid var(--lila-rebsa); /* subrayado del activo */
}
/* .empresas-section{
  background-color: var(--gris-9);  AQUI PON EL COLOR DE FONDO QUE QUIERAS 
  
} */
:root { --header-h: 2rem; } /* ajusta al alto real de tu header */
section { scroll-margin-top: calc(var(--header-h) + 0px); }



@media (max-width:768px){
  .header-container{ flex-direction:column; gap:12px; }
  .main-nav{ margin-left:0; }
  .main-nav ul{ gap:20px; }
}



/* === RESPONSIVE === */
@media (max-width: 992px) {
  .historia-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .historia-image {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px;
  }
  .hero h2 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .section {
    padding: 80px 0;
  }
  nav ul {
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 2rem;
  }
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  .section-title h2 {
    font-size: 2rem;
  }
}

.negrita{
  font-weight: bold !important;
}