/********** HOME CORE CSS **********/
/* =========================================
   COLOR PRIMARIO ENERAHOME
========================================= */

:root {
    --enerahome-primary: #618ec9;
}

/* Texto */
.text-primary {
    color: #618ec9 !important;
}

/* Botones */
.btn-primary {
    background-color: #618ec9;
    border-color: #618ec9;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #4f79ad;
    border-color: #4f79ad;
}

/* Links hover del menú */
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: #618ec9;
}

/* Iconos */
.fa,
.fas,
.fab {
    color: inherit;
}

.text-primary .fa,
.text-primary .fas,
.text-primary .fab {
    color: #618ec9;
}

/* Carousel indicators (si los usas) */
.carousel-indicators .active {
    background: #618ec9;
}

/* =========================================
   NAVBAR VERTICAL (SERVICIOS)
========================================= */

/* Botón principal */
.bg-secondary {
    background-color: #f2f1f8 !important;
    transition: background-color 0.25s ease;
}

/* Hover del botón */
.bg-secondary:hover {
    background-color: #d2cfe7 !important;
}

/* Texto dentro del botón */
.bg-secondary h5 {
    color: #44425A;
}

/* Iconos dentro del botón */
.bg-secondary i {
    color: #618ec9;
}

/* Tipografías de peso usadas en home */
h1,
h2,
.font-weight-bold {
  font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
  font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
  font-weight: 500 !important;
}

/* Botones cuadrados usados en footer / back-to-top */
.btn-square {
  width: 36px;
  height: 36px;
}

.btn-sm-square {
  width: 28px;
  height: 28px;
}

.btn-lg-square {
  width: 46px;
  height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

/* Back to top */
.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  z-index: 11;
}

/* Navbar principal */
.navbar-light .navbar-nav .nav-link {
  padding: 20px 15px;
  color: #44425A;
  font-size: 18px;
  font-weight: 500;
  outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: #FF6600;
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    padding: 5px 0;
  }
}

/* Menú vertical de servicios */
.navbar-vertical.navbar-light .navbar-nav .nav-link {
  padding: 8px 30px;
  border-bottom: 1px solid #F2F1F8;
}

/* Botón mostrar teléfono */
.show-phone {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #fff;
  background-color: #FF6600;
  border: 1px solid #FF6600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.show-phone:hover,
.show-phone:focus {
  background-color: #d95700;
  border-color: #d95700;
  outline: none;
}

/* =========================
   SWIPER HOME SLIDER
========================= */
.enerahome-swiper {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.enerahome-swiper .swiper-wrapper {
  display: flex;
  height: 100%;
}

.enerahome-swiper .swiper-slide {
  position: relative;
  width: 100% !important;
  height: 100%;
  flex: 0 0 100% !important;
  transition: opacity 0.8s ease-in-out;
}

.enerahome-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enerahome-swiper .carousel-caption {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.enerahome-swiper .carousel-caption .p-5 {
  width: 100%;
  max-width: 900px;
}

.enerahome-swiper .swiper-pagination {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  gap: 12px;

  z-index: 3;
}

.enerahome-swiper .swiper-pagination-bullet {
  width: 14px;
  height: 14px;
  background: transparent;
  border: 2px solid #fff;
  opacity: 1;
  border-radius: 50%;
}

.enerahome-swiper .swiper-pagination-bullet-active {
  background: #fff;
}

.enerahome-swiper .swiper-button-next,
.enerahome-swiper .swiper-button-prev {
  color: #fff;
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.enerahome-swiper .swiper-button-prev {
  left: 20px;
}

.enerahome-swiper .swiper-button-next {
  right: 20px;
}

.enerahome-swiper .swiper-button-next::after,
.enerahome-swiper .swiper-button-prev::after {
  font-size: 20px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .enerahome-swiper {
    height: 400px;
  }

  .enerahome-swiper .carousel-caption h1 {
    font-size: 28px;
  }

  .enerahome-swiper .carousel-caption h5 {
    font-size: 14px;
  }

  .enerahome-swiper .swiper-pagination {
    left: 15px;
  }
}

/* =========================
   BLOQUE SERVICIOS HOME
========================= */
.cat-item img {
  transition: 0.5s;
}

.cat-item:hover img {
  transform: scale(1.3);
}

.cat-overlay {
  position: absolute;
  top: 0;
  left: 0;

  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* =========================
   BLOQUE BLOG HOME
========================= */
.blog-item img {
  transition: 0.5s;
}

.blog-item:hover img {
  transform: scale(1.2);
}

.blog-overlay {
  position: absolute;
  top: 0;
  left: 0;

  display: flex;
  width: 100%;
  height: 100%;
  padding: 30px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;

  background: linear-gradient(rgba(68, 66, 90, 0), #44425a);
  z-index: 1;
}

/* =========================
   FOOTER
========================= */
.enera-zonas-scroll {
  max-height: calc(9 * 1.6em);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: none;
}

.enera-zonas-scroll:hover {
  scrollbar-width: thin;
}

.enera-zonas-scroll::-webkit-scrollbar {
  width: 6px;
}

.enera-zonas-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
}

.enera-zonas-scroll::-webkit-scrollbar-track {
  background: transparent;
}
