:root {
  --hb-navy: #0a316a;
  --hb-navy-dark: #072248;
  --hb-text: #474747;
  --hb-muted: #7a7d84;
  --hb-border: #ededed;
}

body {
  font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif;
  color: var(--hb-text);
  font-size: 15px;
  line-height: 1.7;
  background: #fff;
}

/* Wrap a cluster of .hb-diagonal sections in this so the diagonal cuts
   reveal navy at the seams (used on the home page between hero and "our company"). */
.hb-diagonal-zone { background: var(--hb-navy-dark); }

a { color: var(--hb-navy); text-decoration: none; }
a:hover { color: var(--hb-navy-dark); }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: #222; font-weight: 700; }

.fancy-title {
  color: var(--hb-navy);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.fancy-title.small-label {
  font-size: 0.85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--hb-muted);
  font-weight: 600;
  margin-bottom: .35rem;
}
.fancy-title.big-label {
  font-size: 2rem;
  text-transform: lowercase;
}

/* ---------- Ornamental title (dash — TEXT — dash) ---------- */
.hb-ornamental-title {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: .04em;
}
.hb-ornamental-title::before,
.hb-ornamental-title::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 2px;
  background: currentColor;
}

/* ---------- Navbar ---------- */
.hb-navbar {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.hb-navbar .navbar-brand img { height: 48px; }
.hb-navbar .nav-link {
  color: var(--hb-text);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .04em;
  padding: .5rem 1rem !important;
}
.hb-navbar .nav-link:hover,
.hb-navbar .nav-link.active {
  color: var(--hb-navy);
}
.hb-lang-switch a {
  font-size: .78rem;
  color: var(--hb-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.hb-lang-switch a.active { color: var(--hb-navy); }

/* ---------- Home hero (real team photo + overlay) ---------- */
.hb-hero {
  position: relative;
  background: url('/uploads/site/fondo-home-hero.jpg') center/cover no-repeat;
  color: #fff;
  padding: 8rem 0 9rem;
  text-align: center;
  overflow: hidden;
}
.hb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,34,72,.35) 0%, rgba(7,34,72,.55) 55%, rgba(7,34,72,.92) 100%);
}
.hb-hero .container { position: relative; z-index: 1; }
.hb-hero p.eyebrow {
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  color: #cfd9e8;
  margin-bottom: .5rem;
}
.hb-hero h1 {
  color: #fff;
  font-size: 2.4rem;
  text-transform: lowercase;
  font-weight: 700;
  margin-bottom: .5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.hb-hero p.subtitle { color: #cfd9e8; font-size: 1.1rem; margin: 0; }

/* Photo hero used on Productos (and similar interior pages with a real banner) */
.hb-page-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 6rem 0;
  text-align: center;
  overflow: hidden;
}
.hb-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,34,72,.55) 0%, rgba(7,34,72,.75) 100%);
}
.hb-page-hero .container { position: relative; z-index: 1; }

/* Plain heading used on Sobre Nosotros / Servicios (no photo banner) */
.hb-plain-heading {
  font-size: 2.4rem;
  font-weight: 800;
  color: #3a3d42;
  text-transform: lowercase;
  line-height: 1.15;
}

/* ---------- Sections ---------- */
.hb-section { padding: 4.5rem 0; }
.hb-section.bg-light-gray { background: #fafafa; }
.hb-section.bg-navy { background: var(--hb-navy); color: #fff; }
.hb-section.bg-navy h2, .hb-section.bg-navy h3 { color: #fff; }

/* Diagonal-cut section backgrounds (signature style of the original site).
   Only the background is clipped via a pseudo-element so admin-edited
   content of any length never gets cropped. */
.hb-diagonal {
  position: relative;
  z-index: 0;
  padding: 6rem 0;
}
.hb-diagonal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
}
.hb-diagonal.bg-navy::before { background: var(--hb-navy); }
.hb-diagonal.bg-light-gray::before { background: #fafafa; }
.hb-diagonal.bg-white::before { background: #fff; }

.hb-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
}

.hb-card {
  border: 1px solid var(--hb-border);
  border-radius: 4px;
  padding: 1.75rem;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
  background: #fff;
}
.hb-card:hover { box-shadow: 0 6px 24px rgba(10,49,106,.12); transform: translateY(-3px); }
.hb-card .hb-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(10,49,106,.08);
  color: var(--hb-navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.hb-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.hb-card p { font-size: .92rem; color: var(--hb-muted); margin-bottom: 0; }

/* Big-photo cards used on Servicios and Productos */
.hb-photo-card {
  border: 1px solid var(--hb-border);
  border-radius: 4px;
  overflow: hidden;
  height: 100%;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}
.hb-photo-card:hover { box-shadow: 0 8px 28px rgba(10,49,106,.15); transform: translateY(-3px); }
.hb-photo-card .photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f2f2f2;
}
.hb-photo-card .body { padding: 1.1rem 1.3rem 1.4rem; }
.hb-photo-card h3 {
  font-size: .95rem;
  color: var(--hb-navy);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: .4rem;
}
.hb-photo-card p { font-size: .88rem; color: var(--hb-muted); margin-bottom: .6rem; }
.hb-photo-card a.read-more {
  font-size: .78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
}

/* Productos sidebar */
.hb-categories-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--hb-border); border-radius: 4px; overflow: hidden; }
.hb-categories-list li { border-bottom: 1px solid var(--hb-border); }
.hb-categories-list li:last-child { border-bottom: none; }
.hb-categories-list a {
  display: block;
  padding: .85rem 1.1rem;
  color: var(--hb-text);
  font-size: .9rem;
}
.hb-categories-list a:hover { background: #fafafa; color: var(--hb-navy); }

.hb-team-card { text-align: center; }
.hb-team-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.hb-team-card h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: #fff; font-weight: 600; }

.hb-values-list { list-style: none; padding: 0; margin: 0; }
.hb-values-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hb-border);
}
.hb-values-list li:last-child { border-bottom: none; }
.hb-values-list strong {
  color: var(--hb-navy);
  display: block;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .15rem;
}

/* ---------- Brands section (home) — full-color logos on a photo/navy backdrop ---------- */
.hb-brands-section {
  position: relative;
  background: linear-gradient(120deg, var(--hb-navy-dark), var(--hb-navy)), url('/uploads/site/fondo-brands-section.jpg') center/cover;
  background-blend-mode: multiply;
  color: #fff;
  text-align: center;
}
.hb-brands-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hb-brands-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: hb-marquee 40s linear infinite;
}
.hb-brands-marquee:hover .hb-brands-track { animation-play-state: paused; }
@keyframes hb-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.hb-brand-chip {
  flex: 0 0 auto;
  width: 130px;
  height: 76px;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .6rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.hb-brand-chip img { max-width: 100%; max-height: 100%; }

/* Footer official-agents row: same white chip, smaller */
.hb-brands { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.hb-brands .brand-logo {
  width: 84px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 4px;
  padding: .3rem;
}
.hb-brands .brand-logo img { max-width: 100%; max-height: 100%; }
.hb-footer .hb-brands { justify-content: flex-start; }

/* ---------- Footer ---------- */
.hb-footer { background: var(--hb-navy-dark); color: #c7c7c7; padding-top: 3rem; }
.hb-footer .footer-logo { text-align: center; margin-bottom: 2.5rem; }
.hb-footer .footer-logo img { height: 56px; filter: brightness(0) invert(1); opacity: .92; }
.hb-footer h5 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }
.hb-footer a { color: #c7c7c7; }
.hb-footer a:hover { color: #fff; }
.hb-footer .social-icons a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  margin-right: .5rem;
}
.hb-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  font-size: .8rem;
  color: #8c8e91;
}
.hb-footer .map-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hb-footer .map-link i { font-size: 1.6rem; }
.hb-footer .map-link:hover { color: #cfd9e8; }

.hb-newsletter .form-control { border-radius: 2px; }
.hb-newsletter .btn-navy { background: #333; color: #fff; border-radius: 2px; }
.hb-newsletter .btn-navy:hover { background: #000; color: #fff; }

.btn-navy {
  background: var(--hb-navy);
  color: #fff;
  border: none;
  padding: .65rem 1.75rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .04em;
  border-radius: 2px;
}
.btn-navy:hover { background: var(--hb-navy-dark); color: #fff; }

.btn-outline-navy {
  border: 1px solid var(--hb-navy);
  color: var(--hb-navy);
  padding: .6rem 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .82rem;
  border-radius: 2px;
}
.btn-outline-navy:hover { background: var(--hb-navy); color: #fff; }

.hb-alert-success {
  background: #e6f4ea;
  color: #1e7e34;
  border: 1px solid #b7e2c4;
  border-radius: 4px;
  padding: .9rem 1.2rem;
  margin-bottom: 1.5rem;
}

.hb-contact-info dt { color: var(--hb-navy); text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; margin-top: 1.25rem; }
.hb-contact-info dt:first-child { margin-top: 0; }
.hb-contact-info dd { margin-bottom: 0; }

.hb-contact-map iframe { width: 100%; height: 480px; border: 0; display: block; }
.hb-contact-banner { background: var(--hb-navy); color: #fff; text-align: center; padding: 1.4rem 0; }
.hb-contact-banner h2 { color: #fff; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .05em; margin: 0; }

/* "Trabajá con nosotros" section — light overlay over a workshop photo */
.hb-work-with-us {
  position: relative;
  background: url('/uploads/site/fondo-trabaja-nosotros.jpg') center/cover;
}
.hb-work-with-us::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(238, 238, 238, .88);
}
.hb-work-with-us .container { position: relative; z-index: 1; }
.hb-work-with-us h2 { color: #3a3d42; }
.hb-work-with-us p.lead-text { color: #6b6f76; }

/* ---------- WhatsApp floating button ---------- */
.hb-whatsapp-float {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  width: 54px;
  height: 54px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  z-index: 1040;
  transition: transform .15s ease;
}
.hb-whatsapp-float:hover { color: #fff; transform: scale(1.08); }

@media (max-width: 767px) {
  .hb-hero { padding: 5.5rem 0 6.5rem; }
  .hb-hero h1 { font-size: 1.7rem; }
  .hb-section, .hb-diagonal { padding: 3rem 0; }
  .hb-plain-heading { font-size: 1.8rem; }
  .hb-contact-map iframe { height: 320px; }
}
