@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #002D62;
  --color-primary-dark: #071933;
  --color-primary-light: #0d448a;
  --color-accent: #EA580C;
  --color-accent-hover: #C2410C;
  --color-accent-light: #FFF7ED;
  --color-accent-border: #FDBA74;
  --color-blue: #0284C7;
  --color-blue-light: #E0F2FE;
  --color-emerald: #10B981;
  --color-emerald-light: #ECFDF5;
  
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F1F5F9;
  
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-text-light: #94A3B8;
  --color-text-inverted: #FFFFFF;
  
  --color-border: #E2E8F0;
  --color-border-subtle: #F1F5F9;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 45, 98, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 45, 98, 0.08), 0 6px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 35px -5px rgba(0, 45, 98, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
  --shadow-grevo: 0 15px 35px -5px rgba(0, 45, 98, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --transition-fast: 180ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Top Bar (Grevo Style) */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
  width: 100%;
}

.site-header.scrolled {
  box-shadow: var(--shadow-grevo);
  background-color: #FFFFFF;
}

.top-bar {
  background-color: var(--color-primary-dark);
  color: #CBD5E1;
  font-size: 0.8125rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #E2E8F0;
  font-weight: 500;
}

.top-bar-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.35);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(234, 88, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.top-bar-links a {
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.top-bar-links a:hover {
  color: var(--color-accent);
}

.navbar {
  padding: 0.85rem 1.5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  height: 46px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Right Widget (Grevo Call & CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-call-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header-call-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent-light);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent-border);
  transition: all var(--transition-fast);
}

.header-call-box:hover .header-call-icon {
  background-color: var(--color-accent);
  color: #FFFFFF;
  transform: scale(1.05);
}

.header-call-info {
  display: flex;
  flex-direction: column;
}

.header-call-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-call-number {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1.5rem;
  min-width: 340px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 100;
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-item:hover .dropdown-menu {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.dropdown-item:hover {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  padding-left: 1rem;
}

.dropdown-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-accent);
  background: rgba(234, 88, 12, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
}

/* Grevo Button System with Circular Animated Arrow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.65rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-arrow-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn:hover .btn-arrow-icon {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #D9480F 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.45);
}

.btn-navy {
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0, 45, 98, 0.25);
}

.btn-navy:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 45, 98, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  background: #FFFFFF;
  color: var(--color-primary);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  background-color: #20BD5A;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
}

.badge-accent {
  background-color: var(--color-accent-light);
  color: var(--color-accent);
  border: 1px solid var(--color-accent-border);
}

.badge-navy {
  background-color: rgba(0, 45, 98, 0.08);
  color: var(--color-primary);
}

/* Floating WhatsApp & Back to Top */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 85;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-normal);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 6.25rem;
  z-index: 80;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-accent);
  transform: translateY(-3px);
}

/* Footer (Grevo Style) */
.site-footer {
  background: linear-gradient(180deg, #071933 0%, #030E1E 100%);
  color: #94A3B8;
  padding-top: 3.75rem;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 50%, var(--color-blue) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.25fr 1.25fr 1.5fr;
  gap: 3.5rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 32px;
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.925rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #94A3B8;
}

.footer-links a::before {
  content: '›';
  color: var(--color-accent);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform var(--transition-fast);
}

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

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  font-size: 0.925rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.footer-contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.12);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.footer-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
}

.footer-bottom {
  padding: 1.75rem 0;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #94A3B8;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* Mobile Navigation Backdrop & Utility */
.nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 20, 50, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.nav-backdrop.active {
  opacity: 1;
  visibility: visible;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  height: 100% !important;
  overscroll-behavior: none !important;
}

.nav-drawer-header,
.nav-drawer-footer {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-actions .header-call-box {
    display: none;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 992px) {
  .top-bar {
    display: none;
  }

  .site-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #FFFFFF;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-actions {
    display: none;
  }

  .navbar {
    padding: 0.9rem 1.25rem;
  }

  .logo-link img {
    height: 38px;
    max-width: 210px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 45, 98, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.45rem;
    cursor: pointer;
  }

  .nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 0.5rem;
  }

  .nav-drawer-header img {
    height: 32px;
    width: auto;
  }

  .nav-drawer-close {
    background: rgba(0, 45, 98, 0.06);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-primary);
    cursor: pointer;
    transition: background var(--transition-fast);
  }

  .nav-drawer-close:hover {
    background: rgba(0, 45, 98, 0.12);
  }

  .nav-drawer-footer {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
  }

  .nav-drawer-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-primary);
    padding: 0.6rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
    background-color: #FFFFFF;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 2.5rem;
    gap: 0.5rem;
    box-shadow: none;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 1002;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
  }

  .nav-link svg {
    transition: transform var(--transition-fast);
  }

  .dropdown-menu {
    position: static;
    display: none;
    flex-direction: column;
    box-shadow: none;
    border: none;
    min-width: unset;
    width: 100%;
    box-sizing: border-box;
    padding: 0.4rem 0.5rem;
    background: rgba(0, 45, 98, 0.03);
    border-radius: var(--radius-sm);
    margin-top: 0.25rem;
    gap: 0.25rem;
  }

  .nav-item.dropdown-open .dropdown-menu {
    display: flex;
  }

  .nav-item.dropdown-open .nav-link svg {
    transform: rotate(180deg);
  }

  .dropdown-item {
    padding: 0.65rem 0.6rem;
    font-size: 0.88rem;
    color: var(--color-text);
    white-space: normal;
    line-height: 1.35;
    word-break: break-word;
  }

  /* Stacking FABs vertically on the bottom right */
  .floating-whatsapp {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }

  .floating-whatsapp svg {
    width: 30px;
    height: 30px;
  }

  .back-to-top {
    bottom: 5.25rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 1.25rem;
  }

  .footer-grid > :nth-child(1),
  .footer-grid > :nth-child(2) {
    grid-column: span 2;
  }

  .footer-grid > :nth-child(3),
  .footer-grid > :nth-child(4) {
    grid-column: span 1;
  }

  .footer-col h4 {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
  }

  .footer-links a {
    font-size: 0.84rem;
  }

  .footer-contact-item {
    gap: 0.5rem;
  }

  .footer-contact-icon {
    width: 32px;
    height: 32px;
  }

  .footer-contact-icon svg {
    width: 15px;
    height: 15px;
  }

  .footer-contact-item strong {
    font-size: 0.8rem;
  }

  .footer-contact-item a {
    font-size: 0.78rem;
    word-break: break-all;
  }

  .footer-col:first-child > div:first-child,
  .footer-logo {
    display: flex;
    justify-content: center;
  }

  .footer-col:first-child > div:first-child img,
  .footer-logo img {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}
