/* ====== HEADER GENERAL ====== */
.main-header {
  background-color: #2d303c;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== LOGO ====== */
.logo-img {
  height: 55px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.06);
  opacity: 0.9;
}

/* ====== MENÚ DESKTOP ====== */
.nav-menu ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu ul li {
  position: relative;
}

.nav-menu ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  position: relative;
  padding: 6px 0;
}

.nav-menu ul li a:hover {
  color: #2596be;
}

.nav-menu ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: #2596be;
  transition: width 0.3s ease;
}

.nav-menu ul li a:hover::after {
  width: 100%;
}

/* ====== BOTÓN HAMBURGUESA ====== */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  transition: transform 0.3s ease;
}

/* Animación hamburguesa → X */
.menu-btn.open svg path:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
  transform-origin: 5px 6px;
}
.menu-btn.open svg path:nth-child(2) {
  opacity: 0;
}
.menu-btn.open svg path:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
  transform-origin: 5px 18px;
}

/* ====== MENÚ MÓVIL ====== */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #2d303c;
    text-align: center;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu.show {
    max-height: 320px;
    opacity: 1;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 18px;
    padding: 20px 0;
  }

  .nav-menu ul li a {
    font-size: 17px;
    display: block;
    padding: 10px 0;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .nav-menu ul li a:hover {
    transform: scale(1.05);
    color: #2596be;
  }
}

/* ====== HEADER TRANSPARENTE AL SCROLLEAR ====== */
.scrolled .main-header {
  background-color: #1f212b;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

/* ====== ANIMACIÓN DE ENTRADA DEL MENÚ ====== */
.nav-menu.show ul li {
  animation: fadeInDown 0.35s ease forwards;
}
@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==========================
   ESTILOS GENERALES
========================== */
body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 600;
  color: #2d303c;
}

a {
  color: #2596be;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #1e7aa3;
}

/* ==========================
   BANNER / CARRUSEL
========================== */
.banner_main {
  position: relative;
  overflow: hidden;
}

.banner_main .carousel-item img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(70%);
  transition: transform 8s ease-in-out;
}

/* Caption centrado en desktop */
.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 0 16px;
  z-index: 4;
}

.carousel-caption h1 {
  font-size: 2.8rem;
  line-height: 1.3;
  font-weight: 700;
  color: #fff; /* Blanco para contraste */
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.6); /* sombra más fuerte para visibilidad */
}

.carousel-caption h1 span {
  color: #2596be; /* Azul elegante del estilo Balai */
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}
.banner_main .carousel-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45); /* oscurece un poco la imagen */
  z-index: 1;
}

.carousel-caption {
  position: absolute;
  z-index: 2; /* sobre el overlay */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  max-width: 700px;
}

.carousel-caption p {
  margin: 18px 0 22px;
  font-size: 1.05rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}

/* Botón (estilo base) */
.carousel-caption a {
  display: inline-block;
  background-color: #2596be;
  color: #fff;
  padding: 12px 30px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,150,190,0.25);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  -webkit-tap-highlight-color: transparent; /* mejora en móviles */
}
.carousel-caption a:hover,
.carousel-caption a:focus {
  background-color: #1e7aa3;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(37,150,190,0.30);
}

/* ---------- Ajustes para móvil (mejor diseño y accesibilidad táctil) ---------- */
@media (max-width: 768px) {

  /* reducir altura del fondo para que caption no quede muy arriba/recortado */
  .banner_main .carousel-item img {
    height: 55vh;
    object-position: center top;
  }

  /* situar la caption un poco más abajo y dar padding */
  .carousel-caption {
    top: auto;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px); /* deja 20px de margen lateral */
    max-width: 680px;
    padding: 14px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.35)); /* ayuda legibilidad */
    border-radius: 12px;
  }

  .carousel-caption h1 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .carousel-caption p {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  /* BOTÓN: bloque, grande y fácil de tocar */
  .carousel-caption a {
    display: block;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 999px; /* pill */
    box-shadow: 0 8px 20px rgba(37,150,190,0.25);
  }

  /* aumentar área táctil en móviles */
  .carousel-caption a:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(37,150,190,0.20);
  }
}

/* Pantallas muy pequeñas (pequeños ajustes) */
@media (max-width: 480px) {
  .banner_main .carousel-item img {
    height: 50vh;
  }
  .carousel-caption {
    bottom: 6%;
    padding: 12px 14px;
  }
  .carousel-caption h1 {
    font-size: 1.25rem;
  }
  .carousel-caption p {
    font-size: 0.88rem;
  }
  .carousel-caption a {
    font-size: 0.95rem;
    padding: 10px 14px;
  }
}


/* ==========================
   SECCIÓN ABOUT
========================== */
.about {
  padding: 80px 0;
  background-color: #fff;
}

.about .titlepage h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.about p {
  color: #555;
  margin-top: 15px;
  line-height: 1.8;
}

.about .read_more {
  display: inline-block;
  margin-top: 20px;
  color: #2596be;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.about .read_more:hover {
  border-bottom: 2px solid #2596be;
  transform: translateY(-2px);
}

.about_img img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ==========================
   SECCIÓN MOBILE
========================== */
.mobile {
  background-color: #f7f8fa;
  padding: 80px 0;
}

.mobile_img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.mobile .titlepage h2 {
  color: #2d303c;
  font-size: 2rem;
}

.mobile p {
  font-size: 1.1rem;
  margin-top: 15px;
}

.mobile .read_more {
  margin-top: 20px;
  display: inline-block;
  border: 1px solid #2d303c;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  color: #2d303c;
  transition: all 0.3s ease;
}
.mobile .read_more:hover {
  background-color: #2d303c;
  color: #fff;
}

/* ==========================
   CLIENTES / TESTIMONIOS
========================== */
.clients {
   background: #f8fafc;
}

.section-title {
   font-size: 32px;
   font-weight: bold;
   color: #2b3643;
   position: relative;
}

.client-card {
   background: #ffffff;
   padding: 25px;
   border-radius: 12px;
   box-shadow: 0 3px 15px rgba(0,0,0,0.1);
   transition: all .3s ease;
   min-height: 330px;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
}

.client-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.client-img {
   width: 90px;
   height: 90px;
   border-radius: 50%;
   object-fit: cover;
   border: 3px solid #00b3e6;
   margin-top: 10px;
}

.client-name {
   margin: 8px 0 2px;
   font-size: 19px;
   font-weight: bold;
   color: #333;
}

.clients p {
   font-size: 16px;
   line-height: 1.7;
   color: #444;
}

/* ==========================
   SERVICIOS
========================== */
.services {
  padding: 80px 0;
  background: #fff;
}

.services .titlepage p {
  color: #555;
}

.service-box {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-box img {
  width: 100%;
  border-radius: 12px;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.service-box h3 {
  margin-bottom: 10px;
  color: #2d303c;
}

.service-box p {
  color: #555;
}

/* ==========================
   TARIFAS
========================== */
.tarifas {
  padding: 80px 0;
  background: #f9f9f9;
}

.tarifas .card {
  border-radius: 16px;
  transition: all 0.3s ease;
  background: #fff;
}

.tarifas .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tarifas h3 {
  color: #2d303c;
  font-weight: 600;
}

.tarifas svg {
  transition: transform 0.3s ease;
}
.tarifas .card:hover svg {
  transform: scale(1.1);
}

/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 992px) {
  .carousel-caption h1 {
    font-size: 2rem;
  }

  .about, .mobile, .clients, .services, .tarifas {
    padding: 60px 20px;
  }

  .service-box img {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 1.8rem;
  }
  .carousel-caption p {
    font-size: 1rem;
  }

  .clients_box {
    font-size: 0.95rem;
  }

  .service-box {
    margin-bottom: 20px;
  }
}

@media (max-width: 576px) {
  .carousel-caption {
    max-width: 90%;
  }
  .carousel-caption h1 {
    font-size: 1.6rem;
  }
  .carousel-caption a {
    font-size: 0.9rem;
  }
}
/* ====== FOOTER GENERAL ====== */
.footer {
  background-color: #2d303c;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding-top: 50px;
}

.footer-top {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
  margin-bottom: 30px;
}

.footer-section h3 {
  color: #2596be;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-section p {
  color: #ccc;
  font-size: 15px;
  margin-bottom: 15px;
}

/* ====== FORMULARIO ====== */
.footer-form {
  display: flex;
  gap: 10px;
}

.footer-form input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 5px;
  border: none;
  outline: none;
  font-size: 15px;
}

.footer-form button {
  background-color: #2596be;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.footer-form button:hover {
  background-color: #1e7aa1;
}

/* ====== ENLACES ====== */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #2596be;
}

/* ====== CONTACTO ====== */
.contact-info li {
  color: #ccc;
  margin-bottom: 8px;
}

.contact-info i {
  color: #2596be;
  margin-right: 8px;
}

/* ====== COPYRIGHT ====== */
.footer-bottom {
  background-color: #252830;
  padding: 15px 0;
}

.footer-bottom p {
  margin: 0;
  color: #aaa;
  font-size: 14px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .footer-form {
    flex-direction: column;
  }

  .footer-form button {
    width: 100%;
  }

  .footer-section {
    text-align: center;
  }
}

/* ======= SERVICIOS ======= */
.services-section {
  background-color: #f9f9f9;
  padding: 80px 0;
  font-family: 'Poppins', sans-serif;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #2d303c;
  margin-bottom: 15px;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 17px;
  line-height: 1.6;
}

/* ======= TARJETAS ======= */
.service-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(37, 150, 190, 0.2);
}

/* ======= ICONO ======= */
.service-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .icon svg {
  width: 40px;
  height: 40px;
}

/* ======= IMAGEN ======= */
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

/* ======= TITULOS ======= */
.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #2d303c;
  margin-bottom: 10px;
}

/* ======= TEXTO ======= */
.service-card p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .service-card {
    margin-bottom: 25px;
  }

  .section-header h2 {
    font-size: 26px;
  }
}
/* ====== SECCIÓN NOSOTROS ====== */
.about-section {
  padding: 80px 0;
  background: #f9f9fb;
}

.about-text {
  color: #333;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 700;
  color: #2d303c;
  margin-bottom: 20px;
  position: relative;
}

.about-text h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #2596be;
  margin-top: 8px;
  border-radius: 3px;
}

.about-text .subtitle {
  color: #2596be;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 18px;
}

.about-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #555;
}

.about-text .btn-learn-more {
  display: inline-block;
  background-color: #2596be;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about-text .btn-learn-more:hover {
  background-color: #1b789a;
  transform: translateY(-2px);
}

/* ====== IMAGEN CON EFECTO ====== */
.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.6s ease;
  border-radius: 12px;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-image .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(37,150,190,0.25) 0%, rgba(45,48,60,0.6) 100%);
  border-radius: 12px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .about-section {
    padding: 50px 20px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .about-text .subtitle {
    font-size: 16px;
  }

  .about-text p {
    font-size: 15px;
  }

  .about-text {
    text-align: center;
  }

  .about-text .btn-learn-more {
    margin-top: 15px;
  }

  .about-image {
    margin-bottom: 30px;
  }
}
/* ====== CONTACTO ====== */
.contact-section {
  background-color: #f9f9fb;
  padding: 80px 20px;
}

.contact-header h2 {
  font-size: 36px;
  color: #2d303c;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
}

.contact-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #2596be;
  margin: 12px auto 0 auto;
  border-radius: 3px;
}

.contact-header p {
  color: #555;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* ====== FORMULARIO ====== */
.contact-form {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  padding: 40px;
  transition: transform 0.3s ease;
}

.contact-form:hover {
  transform: translateY(-3px);
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 15px;
  transition: all 0.3s ease;
  color: #333;
  background-color: #fafafa;
}

.form-control:focus {
  border-color: #2596be;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.15);
}

/* ====== BOTÓN ====== */
.btn-send {
  background-color: #2596be;
  color: #fff;
  border: none;
  padding: 12px 35px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-send:hover {
  background-color: #1e7ea0;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 150, 190, 0.4);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .contact-header h2 {
    font-size: 28px;
  }

  .contact-header p {
    font-size: 15px;
  }

  .contact-form {
    padding: 25px 20px;
  }

  .btn-send {
    width: 100%;
    font-size: 15px;
  }
}
/* Fondo del loader centrado */
.loader_bg {
  position: fixed;
  z-index: 999999;
  background: #ffffff; /* fondo blanco para contraste con el GIF */
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen del loader */
.loader img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  animation: spin 2s linear infinite;
}

/* Animación opcional del GIF (rotación suave) */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Evita el scroll mientras el loader está activo */
body.menu-open,
body.loading {
  overflow: hidden;
}
