/* =========================
   BASE
   ========================= */
body {
  background-color: #f5f5f5;
  color: #4e4e4e;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #1e1e1e;
}

a {
  color: #1e1e1e;
  transition: all 0.3s ease-in-out;
}
a:hover {
  color: #0078ff;
  text-decoration: none;
}

.color-a {
  color: #0078ff;
}
.color-d {
  color: #f5f5f5;
}

/* =========================
   NAVBAR
   ========================= */
.navbar-b {
  transition: all 0.5s ease-in-out;
  background-color: transparent;
  padding-top: 1.563rem;
  padding-bottom: 1.563rem;
}
.navbar-b.navbar-reduce {
  background-color: #fff;
  padding-top: 15px;
  padding-bottom: 15px;
  box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.06);
}

/* Marca de la navbar */
.navbar-b .navbar-brand {
  font-size: 1.6rem;
  font-weight: 600;
  transition: color 0.3s ease;
}
.navbar-b.navbar-trans .navbar-brand {
  color: #fff; /* Blanco en navbar transparente */
}
.navbar-b.navbar-reduce .navbar-brand {
  color: #0078ff; /* Azul en navbar reducida */
}

/* Enlaces de la navbar */
.navbar-b .nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
  padding-bottom: 4px; /* espacio para la línea */
}
.navbar-b.navbar-trans .nav-link {
  color: #fff;
}
.navbar-b.navbar-reduce .nav-link {
  color: #0078ff;
}

/* Línea inferior animada */
.navbar-b .nav-link::before {
  content: "";
  position: absolute;
  left: 1; /* empieza en la primera letra */
  bottom: 0; /* más cerca del texto */
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.navbar-b .nav-link:hover::before,
.navbar-b .nav-link.active::before {
  width: 70%; /* recorre todo el texto 100% */
}

/* Botón hamburguesa */
.navbar-toggler span {
  display: block;
  background-color: #fff;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  transition: transform 0.35s ease-in-out;
}
.navbar-b.navbar-reduce .navbar-toggler span {
  background-color: #1b1b1b;
}

/* =========================
   INTRO
   ========================= */
.intro {
  background-image: url("../img/news-medita.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  position: relative;
  color: #fff;
}
.intro .overlay-itro {
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  opacity: 0.9;
}
.intro .intro-content {
  text-align: center;
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}
.intro .intro-title {
  font-weight: 600;
  font-size: 3rem;
}
.intro .intro-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
}
.intro .text-slider-items {
  display: none;
}

/* =========================
   SERVICIOS
   ========================= */
.services {
  min-height: 94vh;
  padding: 4rem 0;
  background-color: #f5f5f5;
}

/* =========================
   NOVEDADES
   ========================= */
.news {
  background-image: url("../img/intro-medita.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 94vh;
  position: relative;
  color: #fff;
  min-height: 90vh;
  padding: 4rem 0;
  justify-items: center;
}

.news h3 {
  color: #ffffff;
}

.news-text {
  background-color: transparent;
  color: #f5f5f5;
  border-radius: 8px;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  box-shadow: 2px 3px 5px rgba(255, 255, 255, 0.1);
  font-size: 22px;
  padding: 15px;
  margin-bottom: 40px !important;
}

/* =========================
   CONTACTO
   ========================= */
.contact {
  min-height: 94vh;
  padding: 4rem 0;
  background-color: #4e4e4e;
}
.contact h3 {
  color: #ffffff;
}

/* =========================
   BOTONES
   ========================= */
.btn-primary {
  background-color: #0078ff;
  border-color: #0078ff;
}
.btn-primary:hover {
  background-color: #0062d3;
  border-color: #0062d3;
}

/* =========================
   BACK TO TOP
   ========================= */
.back-to-top {
  position: fixed;
  display: none;
  background: #0078ff;
  color: #fff;
  width: 44px;
  height: 44px;
  text-align: center;
  border-radius: 50%;
  right: 15px;
  bottom: 15px;
  z-index: 11;
  transition: background 0.5s;
}
.back-to-top i {
  line-height: 44px;
  font-size: 20px;
}
.back-to-top:hover {
  color: #ff0000;
}

/* =========================
   PRELOADER
   ========================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 9999;
}
#preloader::before {
  content: "";
  position: absolute;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #f2f2f2;
  border-top: 6px solid #0078ff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* =========================
   MEDIA QUERIES
   ========================= */
@media (min-width: 768px) {
  .intro .intro-title {
    font-size: 4.5rem;
  }
  .intro .intro-subtitle {
    font-size: 2.5rem;
  }
}
@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
  }
}
