/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 70px;
  z-index: 50;
  background: rgba(0, 0, 0, 0.65); /* 🔹 Oscuro transparente */
  padding: 1rem 3rem; /* 🔹 Más densidad */
  transition: background 0.3s ease;
}
.navbar-toggler-icon {
  filter: invert(1);
}

.navbar-brand {
  font-weight: bold;
  color: #fff !important;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  letter-spacing: 5px;
}

.navbar-brand img {
  height: 38px;
  margin-right: 10px;
}

.navbar-nav {
  margin-left: auto; /* 🔹 Mueve el menú a la derecha */
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-nav .nav-link {
  color: #000 !important;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 8px 12px;
}

.navbar-nav .nav-link:hover {
  color: #e53248 !important;
}

.social-icons a {
  color: #fff;
  margin-left: 12px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #c12c40;
}

/* --- SLIDER AREA --- */
.slider-area {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-area .carousel-item img {
  height: 100vh;
  object-fit: cover;
  filter: brightness(70%);
}

.slider-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  color: #fff;
  z-index: 10;
  padding-left: 8%;
  max-width: 600px;
}

.slider-caption h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.slider-caption p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.slider-caption .btn {
  margin-top: 15px;
  margin-right: 10px;
  padding: 6px 18px;
  border-radius: 25px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-slider-primary {
  background: #c12c40;
  color: #fff;
  border: 2px solid #c12c40;
}

.btn-slider-primary:hover {
  background: #b5b5b5;
  color: #fff;
  border: 2px solid #fff;
}

.btn-slider-outline {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.btn-slider-outline:hover {
  background: #e53248;
  border-color: #e53248;
  color: #fff;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.6;
}

.carousel-indicators .active {
  background-color: #c12c40;
  opacity: 1;
}

/* --- SECCIÓN DE ESTADÍSTICAS CON FONDO DE IMAGEN --- */
.stats-section {
  position: relative;
  background: url("../../img/franja.png") no-repeat center center;
  background-size: cover;
  overflow: hidden;
  color: #fff;
}

.stats-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.stats-section .container {
  position: relative;
  z-index: 2;
}

.stat-item {
  color: #fff;
  font-weight: 600;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  opacity: 0.9;
}

.stat-item h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.stat-item p {
  font-size: 1.1rem;
  margin: 0;
}

.stat-item i {
  color: #fff;
}

/* --- SECCIÓN ¿QUÉ TE OFRECEMOS? --- */
.features-section {
  background-color: #f8f9fa;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #000; /* mismo tono rojo */
  margin: 10px auto 0;
  border-radius: 2px;
}

.feature-item {
  padding: 20px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-item i {
  color: #c12c40;
}

.feature-item h5 {
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-item p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === SECCIÓN DE NOTICIAS === */
.news-section {
  background-color: #f9f9f9;
  position: relative;
}

.section-title {
  font-weight: 700;
  font-size: 2rem;
  position: relative;
  display: inline-block;
  letter-spacing: 1px;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #000;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* --- Tarjetas --- */
.news-card {
  border: none;
  border-radius: 15px;
  background-color: #fff;
  transition: all 0.4s ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* --- Imagen --- */
.news-image {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.news-image img {
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

/* --- Contenido --- */
.news-content {
  text-align: left;
}

.news-title {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #212529;
  transition: color 0.3s ease;
}

.news-card:hover .news-title {
  color: #c12c40;
}

.news-text {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

/* --- Fecha en la parte inferior derecha --- */
.news-footer {
  margin-top: 10px;
}

.news-date {
  color: #c12c40;
  font-weight: 600;
  font-size: 0.9rem;
}

.news-date i {
  color: #c12c40;
  font-size: 0.9rem;
}

/* === FOOTER ENOVUS PLATEADO === */
.footer-light {
  background-color: #e6e6e6; /* Fondo plomo */
  color: #222; /* Texto oscuro */
  font-size: 0.95rem;
  border-top: 1px solid #ccc;
}

.footer-light .footer-title {
  font-weight: 700;
  color: #000;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

.footer-light .footer-desc {
  color: #333;
  line-height: 1.5;
  font-size: 0.9rem;
}

/* --- Enlaces --- */
.footer-light .footer-links a {
  color: #333;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.footer-light .footer-links a:hover {
  color: #c12c40; /* Rojo corporativo */
}

/* --- Redes sociales en círculos --- */
.footer-light .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border-radius: 50%;
  background-color: #dadada;
  color: #333;
  border: 1px solid #999;
  transition: all 0.3s ease;
}

.footer-light .footer-social a:hover {
  background-color: #c12c40;
  color: #fff;
  transform: translateY(-3px);
}

/* --- Contacto --- */
.footer-light .footer-contact li {
  margin-bottom: 8px;
  color: #333;
}

/* --- Línea divisoria superior --- */
.footer-line {
  border: 1px solid #999;
  opacity: 0.8;
}

/* --- Enlaces legales --- */
.footer-light .footer-legal {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-light .footer-legal:hover {
  color: #c12c40;
}

.valores-section {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.valores-bg {
  position: absolute;
  inset: 0;
  background: url("img/background/slider1.jpg") center no-repeat fixed;
  filter: brightness(0.45);
  z-index: 1;
}

.valores-content {
  position: relative;
  z-index: 2;
}

.titulo-valores {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
}

#valoresCarousel h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* Indicadores */
#valoresCarousel .carousel-indicators {
  position: relative;
  margin-top: 15px;
}

#valoresCarousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.6;
  margin: 3px;
  transition: all 0.3s ease;
}

#valoresCarousel .carousel-indicators .active {
  opacity: 1;
  background-color: #00bfff;
  transform: scale(1.2);
}

.erp-section {
  width: 100%;
  overflow: hidden;
  background-color: #f8f9fa;
}

/* BLOQUE IZQUIERDO CON IMAGEN DE FONDO */
.left-panel {
  position: relative;
  color: #fff;
  background-image: url("./img/about/6.1.jpg"); /* <-- Aquí colocas tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  min-width: 450px;
}
.left-panel .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 20, 20, 0.7); /* oscurece la imagen */
  z-index: 1;
}
.left-panel .content {
  position: relative;
  z-index: 2;
}
.left-panel h2 {
  font-size: 1.9rem;
  line-height: 1.3;
}
.left-panel p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* BLOQUE CENTRAL */
.middle-panel img {
  object-fit: cover;
  height: 100%;
}

/* BLOQUE DERECHO */
.right-panel .info-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 50%;
  border-left: 1px solid #ddd;
}
.bg-lightgray {
  background-color: #9d9d9c;
}
.right-panel h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.right-panel p {
  font-size: 0.95rem;
  color: #fff;
}

.planes-section {
  background-color: #fff; /* Fondo plomo general */
}

.planes-section h2 {
  color: #333;
  font-size: 2rem;
}

/* BOTONES DE PLANES */
.plan-btn {
  background-color: #d6d6d6; /* plomo claro */
  border: none;
  color: #333;
  font-weight: 600;
  padding: 8px 20px; /* más delgado */
  margin: 0 10px;
  border-radius: 25px;
  transition: all 0.3s ease;
}
.plan-btn:hover {
  background-color: #b5161b; /* rojo al hover */
  color: #fff;
}
.plan-btn.active {
  background-color: #b5161b; /* botón activo */
  color: #fff;
}

/* CONTENEDOR DE PLAN */
.plan-container {
  background-color: #f1f1f1; /* Fondo plomo para el contenido */
  box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden; /* evita que la imagen sobresalga */
}

.plan-info {
  flex: 1 1 55%;
  background-color: #f1f1f1; /* plomo suave */
  border-radius: 15px;
  padding: 10px;
  margin-right: 15px;
}

.plan-image {
  flex: 1 1 40%;
  text-align: center;
  overflow: hidden;
}
.plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* hace que encaje perfecto en el marco */
}

.plan-title {
  font-weight: 700;
  color: #333;
}
.plan-desc {
  color: #555;
  font-size: 0.95rem;
}
.plan-features {
  list-style: none;
  padding-left: 0;
}
.plan-features li {
  padding: 1px 0;
  font-size: 0.95rem;
  color: #444;
}
.plan-price {
  font-size: 1.8rem;
  font-weight: bold;
  color: #b5161b;
}
.btn-cta {
  background-color: #b5161b;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-cta:hover {
  background-color: #8f1216;
}

.planes-detallados {
  background-color: #fff;
}

.plan-card {
  border-left: 5px solid #b5161b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.plan-infor {
  flex: 1 1 55%;
}

.plan-carousel {
  flex: 1 1 40%;
  max-width: 250px;
}

.plan-carousel img {
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 10px;
}

/* Responsivo */
@media (max-width: 768px) {
  .plan-card {
    flex-direction: column;
    text-align: center;
  }
  .plan-carousel {
    margin-top: 15px;
    max-width: 100%;
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .plan-container {
    flex-direction: column;
    text-align: center;
  }
  .plan-info {
    margin-right: 0;
    margin-bottom: 20px;
  }
}

/* RESPONSIVO */
@media (max-width: 991px) {
  .left-panel,
  .middle-panel,
  .right-panel {
    flex: 1 0 100%;
  }
  .middle-panel img {
    height: 300px;
  }
  .right-panel .info-box {
    height: auto;
    border-left: none;
    border-top: 1px solid #ddd;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .valores-section {
    height: 220px;
  }
  .titulo-valores {
    font-size: 1.6rem;
  }
  #valoresCarousel h3 {
    font-size: 1.3rem;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .quienes-somos {
    text-align: center;
  }
  .quienes-somos img {
    margin-bottom: 15px;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .footer-light {
    text-align: center;
  }
  .footer-light .footer-social {
    justify-content: center;
  }
  .footer-light .footer-legal {
    display: inline-block;
    margin-bottom: 5px;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .news-title {
    font-size: 1.1rem;
  }
  .news-text {
    font-size: 0.95rem;
  }
  .news-date {
    font-size: 0.85rem;
  }
}

/* ===============================
   🔧 FIX DEFINITIVO PARA NAVBAR 
   =============================== */

/* 1) Restaurar comportamiento original en móviles */
@media (max-width: 991px) {

  /* Permitir que el menú pueda colapsar */
  .navbar-collapse {
    display: block !important;
    height: 0;
    overflow: hidden;
    transition: height .3s ease;
  }

  .navbar-collapse.show {
    height: auto !important;
    overflow: visible !important;
  }

  /* UL debe comportarse en bloques (NO flex) */
  .navbar-nav {
    display: block !important;
    padding: 10px 0;
  }

  .navbar-nav .nav-item {
    margin-bottom: 5px;
  }

  /* Evitar interferencias con el toggler */
  .navbar {
    padding: 0.5rem 1rem !important;
  }

  .navbar-toggler {
    z-index: 2000;
    border: none;
  }
}

/* 2) Evitar que flex rompa el colapso en pantallas grandes */
@media (min-width: 992px) {
  .navbar-nav {
    display: flex !important;
    align-items: center;
    gap: 15px;
  }
}

/* 3) Asegurar que el ícono del menú sea visible */
.navbar-toggler-icon {
  filter: invert(0.5);
}
