/* ==========================================================================
   MULTI SERVICE DE LA COSTA S.A.S. — GLOBAL STYLES & LAYOUT
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  zoom: 0.8; /* Hace que toda la página luzca al 80% de zoom */
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background-color: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
}

p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* CONTAINER WRAPPERS */
.wrap {
  width: 100%;
  max-width: 1320px; /* Wider container for spacious, un-zoomed layout */
  margin: 0 auto;
  padding: 0 24px;
}

/* BUTTON COMPONENTS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 100px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-lg { padding: 13px 26px; font-size: 14.5px; }

.btn-primary { background: var(--green-500); color: var(--white); box-shadow: 0 8px 20px -6px rgba(94,162,38,0.6); }
.btn-primary:hover { background: var(--green-600); transform: translateY(-2px); box-shadow: 0 12px 26px -6px rgba(94,162,38,0.75); }

.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-900); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(10,37,64,0.5); }

.btn-gold { background: var(--gold-500); color: var(--navy-950); font-weight: 700; }
.btn-gold:hover { background: var(--gold-600); color: #fff; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--navy-800); border: 1.5px solid var(--gray-300); }
.btn-outline:hover { background: var(--gray-100); border-color: var(--navy-800); }

.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green { background: var(--green-100); color: var(--green-600); }
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-navy { background: var(--gray-100); color: var(--navy-800); }

/* FIXED HEADER & NAVIGATION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

/* LOGO LINK WRAPPER */
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.25s var(--ease);
}
.brand-logo:hover {
  transform: scale(1.03);
}

/* LOGO IMAGE — se vuelve blanco sobre hero oscuro y original al hacer scroll */
.brand-img-logo {
  height: 120px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  transition: filter 0.35s var(--ease);
}

/* Cuando el nav es transparente → logo blanco */
.header:not(.scrolled) .brand-img-logo {
  filter: brightness(0) invert(1);
}

/* Cuando el nav está scrolled → logo con colores originales */
.header.scrolled .brand-img-logo {
  filter: none;
}

/* NAV MENU LINKS */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  font-size: 14.5px;
  font-weight: 600;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--green-500);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

/* NAV LINKS WHEN HEADER IS TRANSPARENT */
.header:not(.scrolled) .nav-link {
  color: #FFFFFF;
}
.header:not(.scrolled) .nav-link:hover,
.header:not(.scrolled) .nav-link.active {
  color: var(--green-300);
}
.header:not(.scrolled) .nav-link:hover::after,
.header:not(.scrolled) .nav-link.active::after {
  width: 100%;
  background: var(--green-300);
}

/* CONTABILIDAD LINK BADGE IN NAV */
.header:not(.scrolled) .nav-link-accounting {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header:not(.scrolled) .nav-link-accounting:hover {
  background: var(--gold-500);
  color: var(--navy-950);
  border-color: var(--gold-500);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-btn-trigger {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease);
  border: none;
  cursor: pointer;
}
.header:not(.scrolled) .cart-btn-trigger {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.header:not(.scrolled) .cart-btn-trigger:hover {
  background: var(--green-500);
  color: #FFFFFF;
}

.cart-count-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--green-500);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.mobile-toggle {
  display: none;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.header:not(.scrolled) .mobile-toggle { color: #FFFFFF; }

/* SCROLLED HEADER STATE */
.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px -12px rgba(8, 29, 52, 0.15);
  border-bottom: none;
}
.header.scrolled .nav-link {
  color: var(--navy-900);
}
.header.scrolled .nav-link:hover, 
.header.scrolled .nav-link.active {
  color: var(--green-600);
}
.header.scrolled .nav-link:hover::after,
.header.scrolled .nav-link.active::after {
  width: 100%;
  background: var(--green-500);
}
.header.scrolled .nav-link-accounting {
  color: var(--navy-900);
  background: var(--gold-100);
  border: 1px solid var(--gold-300);
  padding: 6px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header.scrolled .nav-link-accounting:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}
.header.scrolled .cart-btn-trigger {
  background: var(--gray-100);
  color: var(--navy-900);
}
.header.scrolled .cart-btn-trigger:hover {
  background: var(--navy-800);
  color: #FFFFFF;
}
.header.scrolled .mobile-toggle { color: var(--navy-900); }

/* MULTI-PAGE ROUTER VIEW SYSTEM */
.page-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.page-view.active-page {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* FOOTER */
.footer {
  background: var(--navy-950);
  color: #8CA2B8;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--gold-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col h4 svg {
  color: var(--green-300);
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col a {
  font-size: 14px;
  color: #B4C6D8;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s var(--ease);
}

.footer-col a svg {
  color: var(--green-300);
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
  flex-shrink: 0;
}

.footer-col a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-col a:hover svg {
  color: var(--green-400);
  transform: scale(1.15);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #B4C6D8;
  line-height: 1.4;
}

.footer-contact-item svg {
  color: var(--green-300);
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item.gold-item svg {
  color: var(--gold-300);
}

.footer-contact-item.gold-item {
  color: var(--gold-300);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
}

/* FLOATING WHATSAPP BUTTON & POPOVER */
.wa-float-container {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 1500;
}
.wa-main-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(37,211,102,0.5);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s var(--ease);
  border: none;
}
.wa-main-btn:hover { transform: scale(1.08); }
.wa-main-btn svg { width: 32px; height: 32px; }
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.wa-popover {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 320px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid var(--gray-200);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 12px;
  z-index: 1600;
}
.wa-popover.open { display: flex; }
.wa-popover-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.wa-contact-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: all 0.2s;
}
.wa-contact-option:hover {
  background: var(--green-100);
  border-color: var(--green-300);
}
.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.wa-avatar.herly { background: var(--gold-500); color: var(--navy-950); }

/* MEDIA QUERIES FOR RESPONSIVE DESIGN */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link { color: var(--navy-900) !important; }
  .mobile-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}
