/* ============================================================
   HSM MAINTIPRO — Shared Stylesheet
   Colors: Primary #003366 | Accent #FF6B35 | Gray #a3a7a9
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #003366;
  --accent:    #FF6B35;
  --gray:      #a3a7a9;
  --gray-light:#f4f5f6;
  --white:     #ffffff;
  --text-dark: #1a2332;
  --text-mid:  #4a5568;
  --radius:    6px;
  --shadow:    0 4px 20px rgba(0,51,102,.12);
  --transition:0.28s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--text-mid); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary  { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #e5541f; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,.35); }
.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
  transition: background var(--transition);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: .3px;
  flex-shrink: 0;
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .92rem;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,.1); }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  border-radius: var(--radius);
  padding: 9px 20px !important;
  font-weight: 700 !important;
  font-size: .9rem !important;
  transition: background var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { background: #e5541f !important; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: var(--primary);
  padding: 16px 24px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.nav-mobile a {
  display: block;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-cta {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 24px !important;
}

/* ── SECTION WRAPPER ─────────────────────────────────────── */
.section { padding: 90px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block;
  background: rgba(255,107,53,.12);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.section-title { color: var(--primary); margin-bottom: 14px; }
.section-sub   { max-width: 600px; font-size: 1.05rem; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0 24px;
  margin-top: 68px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(.45);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1.0); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,51,102,.82) 0%, rgba(0,20,50,.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,107,53,.18);
  border: 1px solid rgba(255,107,53,.35);
  color: #ffb088;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 28px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero p {
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  z-index: 2;
}
.breadcrumb a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--white); font-weight: 600; }

/* ── SERVICES GRID ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--white);
  border: 1px solid rgba(0,51,102,.1);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,51,102,.18); border-color: rgba(255,107,53,.3); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px;
  background: rgba(0,51,102,.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: var(--accent);
  transition: background var(--transition);
}
.service-card:hover .service-icon { background: rgba(255,107,53,.1); }
.service-card h3 { color: var(--primary); margin-bottom: 12px; }
.service-card p  { font-size: .93rem; margin-bottom: 16px; }
.service-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-mid);
}
.service-list li::before {
  content: '';
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── FEATURES STRIP ──────────────────────────────────────── */
.features-strip {
  background: var(--primary);
  padding: 56px 24px;
}
.features-strip .section-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}
.feature-item {}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.feature-item h4 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.feature-item p  { color: rgba(255,255,255,.7); font-size: .88rem; }

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-grid {
  columns: 4;
  column-gap: 12px;
  margin-top: 48px;
  orphans: 1;
  widows: 1;
}
.gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  display: block;
  background: #e8eaed;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .45s ease;
  object-fit: cover;
  vertical-align: bottom;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,51,102,.82) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 14px 16px;
}
.gallery-item:hover .overlay { opacity: 1; }
.overlay-text {
  color: var(--white);
  font-size: .83rem;
  font-weight: 600;
  letter-spacing: .2px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  color: white; font-size: 2rem;
  cursor: pointer; background: rgba(255,255,255,.1);
  border: none; padding: 12px 18px; border-radius: 6px;
  transition: background .2s;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #001f3f;
  border-top: 6px solid var(--accent);
  padding: 64px 24px 0;
  color: rgba(255,255,255,.8);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 14px;
}
.footer p { font-size: .9rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-links a:hover { color: var(--accent); padding-left: 6px; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.social-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}
.social-btn:hover { background: var(--accent); color: var(--white); }
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ── WHATSAPP FLOAT ──────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { opacity: 0; }
.fade-up.visible { animation: fadeUp .6s ease forwards; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .2s; }
.fade-up:nth-child(4) { animation-delay: .3s; }
.fade-up:nth-child(5) { animation-delay: .4s; }
.fade-up:nth-child(6) { animation-delay: .5s; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: block; }
  .section { padding: 64px 20px; }
  .gallery-grid { columns: 2; column-gap: 8px; }
  .gallery-item { margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .hero-btns { flex-direction: column; align-items: center; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid { columns: 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
