/* ==========================================================================
   BS COMUNICACIONES — Ajustes de marca sobre Bootstrap 5 estándar
   Bootstrap aporta el grid, los componentes y la tipografía base;
   este archivo aporta color de marca, profundidad (sombras/hover) y
   los detalles que Bootstrap no cubre de fábrica.
   ========================================================================== */

:root {
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-link-color: #2563eb;
  --bs-link-hover-color: #1d4ed8;
  --bs-body-font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  --brand-gradient: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  --brand-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #0891b2 100%);
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 700;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

/* ---- Enlaces: quitar el azul-subrayado por defecto de Bootstrap ---- */
a {
  text-decoration: none;
}

/* ---- Títulos de sección con acento de marca ---- */
section h2.fw-bold,
h2.fw-bold {
  position: relative;
  padding-bottom: 0.9rem;
}

section h2.fw-bold::after,
h2.fw-bold::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand-gradient);
}

h2.fw-bold.text-start::after {
  left: 0;
  transform: none;
}

/* ---- Etiqueta pequeña sobre un título de sección ---- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--bs-primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

/* ---- Sección Quiénes somos ---- */
.about-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-checklist li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  color: #334155;
  font-weight: 500;
}

.about-checklist li i {
  color: var(--bs-primary);
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-left: 4px solid var(--bs-primary);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-item:hover {
  transform: translateX(6px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.about-item .icon-circle {
  margin: 0;
}

.about-item:hover .icon-circle {
  background: var(--brand-gradient);
  color: #fff;
}

@media (max-width: 991.98px) {
  .about-item:hover {
    transform: translateY(-4px);
  }
}

/* ---- Navbar ---- */
.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  position: relative;
  margin: 0 0.15rem;
  padding: 0.5rem 0.9rem !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75) !important;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #fff !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-nav .nav-link.dropdown-toggle::after {
  left: 0.9rem;
  right: 1.6rem;
}

/* ---- Dropdown "Servicios" ---- */
.navbar .dropdown-menu {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.18);
  padding: 0.6rem;
  margin-top: 0.6rem !important;
  min-width: 260px;
}

.navbar .dropdown-item {
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  color: #1e293b;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--bs-primary);
}

.navbar .dropdown-item.active {
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--bs-primary);
}

.navbar .dropdown-divider {
  margin: 0.4rem 0.4rem;
}

@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    margin-top: 0.25rem !important;
  }

  .navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
  }

  .navbar .dropdown-item:hover,
  .navbar .dropdown-item:focus,
  .navbar .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
  }
}

/* ---- Botón WhatsApp del menú ---- */
.navbar-nav .btn-primary {
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* ---- Hero ---- */
.hero-section {
  background: var(--brand-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section .btn-light {
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.hero-section .btn-light:hover {
  background-color: #e2e8f0;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.3);
}

.hero-section .btn-outline-light:hover {
  transform: translateY(-2px);
}

/* ---- Badge del hero ---- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0.45rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-badge i {
  color: #fde68a;
}

/* ---- Indicadores del hero ---- */
.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.hero-stat i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
}

/* ---- Panel de servicios en el hero ---- */
.hero-services-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-service-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a !important;
  border-radius: 16px;
  padding: 1.5rem 0.8rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.hero-service-pill i {
  font-size: 1.7rem;
  color: var(--bs-primary);
  transition: transform 0.25s ease;
}

.hero-service-pill:hover {
  transform: translateY(-6px);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.25);
  background-color: #fff;
}

.hero-service-pill:hover i {
  transform: scale(1.15);
}

@media (max-width: 991.98px) {
  .hero-services-panel {
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---- Botones ---- */
.btn {
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--brand-gradient);
  border: none;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
}

/* ---- Tarjetas: profundidad y hover en toda la web ---- */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card.shadow-sm:hover {
  transform: translateY(-6px);
  box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, 0.1) !important;
}

/* ---- Íconos circulares de marca ---- */
.icon-circle {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--bs-primary);
  font-size: 1.6rem;
  margin: 0 auto 1rem;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.card:hover .icon-circle {
  background: var(--brand-gradient);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

.icon-circle-lg {
  width: 78px;
  height: 78px;
  font-size: 2rem;
}

.icon-circle-sm {
  width: 52px;
  height: 52px;
  font-size: 1.3rem;
  margin: 0;
}

/* ---- Servicios principales (destacados) ---- */
.service-card-featured {
  position: relative;
  overflow: visible;
}

.service-card-badge {
  position: absolute;
  top: -0.6rem;
  right: 1.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

/* ---- Servicios secundarios (fila "También ofrecemos") ---- */
.service-secondary {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 1.25rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-secondary:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.75rem 1.75rem rgba(15, 23, 42, 0.07);
}

/* ---- Tarjetas de precio ---- */
.pricing-card {
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card.featured {
  border: 2px solid var(--bs-primary) !important;
  box-shadow: 0 1rem 2.5rem rgba(37, 99, 235, 0.2) !important;
}

.pricing-card .price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bs-primary);
}

.pricing-card .price small {
  font-size: 1rem;
  font-weight: 400;
  color: #6c757d;
}

/* ---- Sección con fondo suave para alternar filas ---- */
.bg-soft {
  background-color: #f8fafc;
}

/* ---- Ocultar la burbuja nativa de Chatwoot: usamos #chat-btn como único disparador ---- */
#cw-bubble-holder,
.woot--bubble-holder,
.woot-widget-bubble {
  display: none !important;
}

/* ---- Botón flotante de chat ---- */
#chat-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

#chat-btn:hover {
  transform: scale(1.08);
}

/* ---- Botón volver arriba ---- */
#btn-top {
  position: fixed;
  right: 1.5rem;
  bottom: 6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #0f172a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.3);
  z-index: 1049;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#btn-top.show {
  display: flex;
}

#btn-top:hover {
  transform: translateY(-3px);
}

/* ---- Galería tecnológica ---- */
.gallery-tile {
  position: relative;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.gallery-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.2rem 0.8rem;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 55%);
}

.gallery-tile-overlay i {
  font-size: 1.4rem;
}

.gallery-tile:hover .gallery-tile-img {
  transform: scale(1.08);
}

@media (max-width: 767.98px) {
  .gallery-tile {
    height: 180px;
  }
}

/* ---- Enlace "Ver planes" dentro de tarjetas de servicio ---- */
.service-card-link {
  font-weight: 600;
  text-decoration: none;
}

.service-card-link i {
  transition: transform 0.2s ease;
}

.service-card-link:hover i {
  transform: translateX(4px);
}

/* ---- Breadcrumb simple en páginas de servicio ---- */
.back-link {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.back-link:hover {
  transform: translateX(-3px);
}

/* ---- Listas de precios / contacto: quitar subrayado en hover heredado ---- */
.list-group-item a {
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .hero-section {
    text-align: center;
  }
}

/* ---- Pago con Bre-B ---- */
.brebb-qr-card {
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.brebb-qr-placeholder {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border: 2px dashed rgba(37, 99, 235, 0.35);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--bs-primary);
  background: rgba(37, 99, 235, 0.04);
}

.brebb-qr-placeholder i {
  font-size: 2.8rem;
}

.brebb-qr-placeholder span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0 1.2rem;
  text-align: center;
  color: #64748b;
}

.brebb-key {
  font-size: 0.95rem;
  color: #334155;
}

.brebb-steps {
  padding-left: 1.2rem;
  color: #334155;
}

.brebb-steps li {
  margin-bottom: 0.6rem;
}
