/*
Theme Name: Hidrobus
Author: Hidrobus
Version: 1.0
*/
body {
  font-family: 'Poppins', sans-serif;
}

.hero {
  margin-top: 80px;
  overflow: hidden;
  background: transparent;
}

header {
  margin-top: 80px;
  /* ajusta si tu navbar es más alto o más bajo */
}

.btn-naranja {
  background-color: #ff6600;
  color: #fff;
  border: none;
  transition: 0.3s ease;
}

.btn-naranja:hover {
  background-color: #e65c00;
  color: #fff;
}

section {
  scroll-margin-top: 100px;
  /* por si navegas con anclas */
}


/* ===== HERO SERVICIOS ===== */
.hero-servicios {
  position: relative;
  height: 70vh;
  min-height: 400px;
  background: url('img/portada1.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

/* Capa oscura encima de la imagen */
.hero-servicios::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Texto sobre la capa */
.hero-servicios .container {
  position: relative;
  z-index: 2;
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-servicios {
    height: 50vh;
    background-attachment: scroll;
  }

  .hero-servicios h1 {
    font-size: 1.8rem;
  }

  .hero-servicios p {
    font-size: 1rem;
  }
}

/* ===== EFECTOS DE APARICIÓN ===== */
.animar {
  opacity: 0;
  transform: translateY(50px);
  /* aparece desde abajo */
  transition: all 0.8s ease-out;
}

.animar.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= BOTÓN FLOTANTE WHATSAPP ================= */

.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp img {
  width: 34px;
  height: 34px;
  display: block;
}

/* ===== AZUL CORPORATIVO HIDROBUS (DEGRADADO INTENSO) ===== */

/* Fondo degradado principal */
.bg-azul {
  background: linear-gradient(135deg, #002E73 0%, #004AAD 40%, #007BFF 100%) !important;
  color: #fff !important;
}

/* Texto azul (para títulos, links o íconos) */
.text-azul {
  color: #004AAD !important;
}

/* Botón azul estilo corporativo con degradado */
.btn-azul {
  background: linear-gradient(135deg, #002E73 0%, #004AAD 40%, #007BFF 100%);
  color: #fff;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 74, 173, 0.3);
}

.btn-azul:hover {
  background: linear-gradient(135deg, #001f4d 0%, #003a8c 50%, #0066ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 74, 173, 0.5);
  color: #fff;
}

/* Borde azul sólido (sin degradado) */
.border-azul {
  border: 2px solid #004AAD !important;
}

/* Card con fondo azul degradado */
.card-azul {
  background: linear-gradient(160deg, #003580 0%, #005FCC 50%, #0090FF 100%);
  color: #fff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.card-azul:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Opcional: para textos dentro de secciones azules */
.text-blanco {
  color: #ffffff !important;
}

/* ===== ESTILO LIMPIO PARA CARDS ===== */
.card {
  border: none !important;
  /* sin borde */
  border-radius: 12px;
  /* bordes suaves */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  /* sombra ligera */
  transition: all 0.3s ease;
  background-color: #fff;
  /* mismo color que el fondo */
}

.card:hover {
  transform: translateY(-6px);
  /* pequeño efecto de elevación */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Imagen con padding suave */
.card img {
  border-radius: 10px;
  object-fit: contain;
}

/* Texto dentro de las cards */
.card-title {
  font-size: 1.2rem;
}

.card-text {
  color: #555;
}

/* Alinear bien el botón con espacio arriba */
.card-footer {
  padding-top: 0;
  padding-bottom: 1rem;
}

.logo-hidrobus {
  filter: drop-shadow(0 3px 5px rgba(255, 255, 255, 0.6));
}
/* Fondo azul Hidrobus */
.nav-hidrobus {
  background: linear-gradient(270deg,
    #003580,
    #004AAD,
    #005FCC,
    #1A75FF,
    #4D94FF
  );
  transition: all 0.3s ease-in-out;
}

/* Logo y texto de marca */
.nav-hidrobus .titulo-hidrobus {
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 1px;
}

/* Links principales */
.nav-hidrobus .nav-link {
  color: #E0E0E0 !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  position: relative;
  transition: color 0.3s ease-in-out;
}

/* Efecto hover */
.nav-hidrobus .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background-color: #ff6600;
  transition: width 0.3s;
}

.nav-hidrobus .nav-link:hover::after {
  width: 60%;
}

.nav-hidrobus .nav-link:hover {
  color: #fff !important;
}

/* Botón de cotización */
.btn-hidrobus {
  background-color: #ff6600;
  color: #ffffff;
  border: none;
  transition: all 0.3s;
}
.btn-hidrobus:hover {
  background-color: #ff6600;
  color: #fff;
}

/* En pantallas pequeñas */
.nav-hidrobus .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}
.nav-hidrobus .navbar-toggler-icon {
  filter: invert(1);
}

/* Efecto de cambio al hacer scroll */
.nav-hidrobus.scrolled {
  background: rgba(255, 255, 255, 0.95) !important; /* sustituye el degradado */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background 0.4s ease;
}
.nav-hidrobus.scrolled .nav-link {
  color: #004AAD !important;
}
.nav-hidrobus.scrolled .titulo-hidrobus {
  color: #004AAD;
}
.nav-hidrobus.scrolled .btn-hidrobus {
  background-color: #004AAD;
  color: #fff;
}

/* 🔹 Estilo institucional Hidrobus */
#servicios {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

/* Título principal */
.titulo-seccion {
  color: #004AAD;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}
.titulo-seccion::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 10px auto 0;
  background-color: #00C896;
  border-radius: 4px;
}

/* Tarjetas */
.card-hidrobus {
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hidrobus:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 74, 173, 0.2);
}

/* Iconos redondos */
.icono-circulo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #004AAD, #00C896);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 10px rgba(0, 74, 173, 0.3);
}

/* Fondo suave institucional */
.bg-light-unidades {
  background: #f5f7fa;
}

/* Tarjeta elegante estilo index */
.unidad-card {
  background: #ffffff;
  border-radius: 20px;
}

/* Imagen */
.unidades-img {
  width: 100%;
  max-width: 1400px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Color institucional del texto */
.text-hidrobus {
  color: #004AAD; /* azul Hidrobus */
}

/* Lista elegante */
.lista-unidades li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.lista-unidades .icono {
  color: #004AAD;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2rem;
}

.nav-hidrobus .dropdown-menu {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 0;
}

.nav-hidrobus .dropdown-item {
  color: #004AAD;
  font-weight: 500;
  transition: 0.2s ease;
}

.nav-hidrobus .dropdown-item:hover {
  background-color: #f0f4ff;
  color: #002e73;
}

.nav-hidrobus .dropdown-toggle {
  padding: 10px 22px !important;
  font-weight: 600;
  letter-spacing: .5px;
}

/* Ajuste visual del texto + flecha */
.flecha-nav {
  font-size: 0.7rem;
  margin-top: -3px;
  color: inherit;
}

/* Mantener color institucional */
.nav-hidrobus .flecha-nav {
  color: #E0E0E0;
}

.nav-hidrobus.scrolled .flecha-nav {
  color: #004AAD;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}