/* ==========================================================================
   GRUPO IMPERIO S.A / TRANSPORTES IMPERIO - PREMIUM DESIGN SYSTEM
   Agency-Grade Modern Luxury & Industrial Architecture
   ========================================================================== */

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

/* --- Root Color Variables (Theme: Light by default) --- */
:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', var(--font-primary);
  --font-body: 'Inter', var(--font-primary);

  /* Brand Primary Colors */
  --color-brand-azure: #0088CB;
  --color-brand-azure-glow: rgba(0, 136, 203, 0.18);
  --color-brand-azure-dark: #006da3;
  --color-brand-navy: #0B192C;
  --color-brand-gold: #F59E0B;
  --color-brand-gold-hover: #D97706;
  --color-brand-red: #ED1C24;

  /* Theme Surfaces - Light Mode */
  --bg-page: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-surface-subtle: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.75);
  --border-subtle: #E2E8F0;
  --border-card: rgba(226, 232, 240, 0.9);
  --border-focus: rgba(0, 136, 203, 0.4);

  /* Typography Colors - Light Mode */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-on-dark: #F8FAFC;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(0, 136, 203, 0.2);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
  --bg-page: #060B14;
  --bg-surface: #0B1321;
  --bg-surface-elevated: #111C2E;
  --bg-surface-subtle: #0F1B2F;
  --bg-glass: rgba(11, 19, 33, 0.88);
  --bg-glass-card: rgba(15, 27, 47, 0.7);
  --border-subtle: #1E293B;
  --border-card: rgba(30, 41, 59, 0.75);
  --border-focus: rgba(0, 136, 203, 0.5);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --text-on-dark: #F8FAFC;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px rgba(0, 136, 203, 0.35);
}

/* --- Global Reset & Basics --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Custom Selection */
::selection {
  background-color: var(--color-brand-azure);
  color: #FFFFFF;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-page);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-brand-azure);
}

/* --- Container & Grid System --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 1536px) {
  .container {
    max-width: 1400px;
  }
}

/* --- Typography Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.font-display {
  font-family: var(--font-display);
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  background: var(--color-brand-azure-glow);
  color: var(--color-brand-azure);
  border: 1px solid rgba(0, 136, 203, 0.3);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--color-brand-gold);
  border-color: rgba(245, 158, 11, 0.3);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand-azure);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.section-desc {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-brand-azure) 0%, #38bdf8 50%, var(--color-brand-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons & CTAs --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--color-brand-azure);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 136, 203, 0.35);
}
.btn-primary:hover {
  background-color: var(--color-brand-azure-dark);
  box-shadow: 0 6px 20px rgba(0, 136, 203, 0.5);
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--color-brand-gold);
  color: #0F172A;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.btn-gold:hover {
  background-color: var(--color-brand-gold-hover);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-surface-subtle);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--color-brand-azure);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  border-color: var(--color-brand-azure);
  color: var(--color-brand-azure);
  background: var(--color-brand-azure-glow);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), padding var(--transition-base);
  padding: 1.25rem 0;
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  padding: 0.85rem 0;
}

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

.header-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1010;
}

.header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.header-logo:hover img {
  transform: scale(1.02);
}

/* Universal Logo with crisp white outline */
.logo-universal {
  display: block;
  /* Delineado blanco nítido (borde externo sin desenfoque) en contornos y letras */
  filter: 
    drop-shadow(1px 0 0 #ffffff)
    drop-shadow(-1px 0 0 #ffffff)
    drop-shadow(0 1px 0 #ffffff)
    drop-shadow(0 -1px 0 #ffffff)
    drop-shadow(0.75px 0.75px 0 #ffffff)
    drop-shadow(-0.75px -0.75px 0 #ffffff)
    drop-shadow(0.75px -0.75px 0 #ffffff)
    drop-shadow(-0.75px 0.75px 0 #ffffff);
}

.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }
}

.nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

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

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

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-surface);
  color: var(--color-brand-azure);
  border-color: var(--color-brand-azure);
}

.theme-icon-sun, .theme-icon-moon {
  width: 20px;
  height: 20px;
}

[data-theme="dark"] .theme-icon-moon {
  display: none;
}
[data-theme="dark"] .theme-icon-sun {
  display: block;
}
[data-theme="light"] .theme-icon-sun {
  display: none;
}
[data-theme="light"] .theme-icon-moon {
  display: block;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 1005;
  padding: 5.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-base);
  box-shadow: var(--shadow-xl);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--color-brand-azure);
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  overflow: hidden;
  background-color: var(--color-brand-navy);
  color: #FFFFFF;
}

.hero-bg-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.38;
  transform: scale(1.04);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 40%, rgba(0, 136, 203, 0.28) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(11, 25, 44, 0.85) 0%, rgba(6, 11, 20, 0.94) 85%, var(--bg-page) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-badge-wrapper {
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.35rem, 5.2vw, 4.25rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: #38bdf8;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: #CBD5E1;
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Quick Floating Bar in Hero */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: rgba(15, 27, 47, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35);
}

.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 136, 203, 0.2);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94A3B8;
}

.hero-stat-val {
  font-size: 1.125rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* --- Animated Stats Section (KPIs) --- */
.kpi-section {
  position: relative;
  margin-top: -2.5rem;
  z-index: 10;
  padding-bottom: 4rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-azure);
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-brand-azure), var(--color-brand-gold));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.kpi-card:hover::before {
  opacity: 1;
}

.kpi-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.5vw, 3.25rem);
  font-weight: 800;
  color: var(--color-brand-azure);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.kpi-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.kpi-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* --- Freight Quotation Calculator (Cotizador Inteligente) --- */
.calc-section {
  padding: 5rem 0;
  background: var(--bg-surface-subtle);
  position: relative;
}

.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .calc-card {
    padding: 3.5rem;
  }
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .calc-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-brand-azure);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.calc-summary-box {
  background: var(--bg-surface-subtle);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .calc-summary-box {
    padding: 2rem;
  }
}

.calc-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9375rem;
}

.calc-summary-item:last-child {
  border-bottom: none;
}

.calc-summary-label {
  color: var(--text-secondary);
}

.calc-summary-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.calc-total-pill {
  background: var(--color-brand-azure-glow);
  color: var(--color-brand-azure);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 136, 203, 0.3);
}

.calc-total-pill-title {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.calc-total-pill-val {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

/* --- Services & Port Operations --- */
.services-section {
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-brand-azure);
  box-shadow: var(--shadow-xl);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--color-brand-azure-glow);
  color: var(--color-brand-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon-box {
  background: var(--color-brand-azure);
  color: #FFFFFF;
  transform: scale(1.05);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

/* Feature Spotlight Card for Port Operations */
.spotlight-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, var(--color-brand-navy) 0%, #102A45 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
  margin-bottom: 1.5rem;
}

.spotlight-content {
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .spotlight-content {
    padding: 3.5rem;
  }
}

.spotlight-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.spotlight-desc {
  color: #CBD5E1;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.spotlight-hubs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  justify-content: center;
  max-width: 800px;
  width: 100%;
}

.spotlight-hub-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.spotlight-hub-country {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-brand-gold);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.spotlight-hub-ports {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 0.25rem;
}


/* --- Interactive Fleet Showcase --- */
.fleet-section {
  padding: 6rem 0;
  background: var(--bg-surface-subtle);
}

.fleet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
}

.fleet-tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fleet-tab-btn:hover {
  border-color: var(--color-brand-azure);
  color: var(--color-brand-azure);
}

.fleet-tab-btn.active {
  background: var(--color-brand-azure);
  color: #FFFFFF;
  border-color: var(--color-brand-azure);
  box-shadow: 0 4px 12px rgba(0, 136, 203, 0.35);
}

.fleet-display-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .fleet-display-card {
    grid-template-columns: 1fr 1fr;
    padding: 3.5rem;
    gap: 3.5rem;
  }
}

.fleet-image-wrap {
  position: relative;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
  width: 100%;
  box-shadow: var(--shadow-sm);
}

.fleet-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.28s ease-in-out, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.fleet-image-wrap img.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.fleet-display-card:hover .fleet-image-wrap img:not(.fade-out) {
  transform: scale(1.04);
}

.fleet-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

.fleet-spec-item {
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-subtle);
}

.fleet-spec-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fleet-spec-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.25rem;
}

/* --- Differentiators & Tech Section --- */
.diff-section {
  padding: 6rem 0;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.diff-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.diff-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-azure);
  box-shadow: var(--shadow-lg);
}

.diff-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-brand-azure-glow);
  color: var(--color-brand-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.diff-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.diff-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* --- Clients & Marquee Section --- */
.clients-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.marquee-container {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 40s linear infinite;
  margin-top: 2.5rem;
}

.marquee-container:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo-card {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  min-width: 180px;
  transition: all var(--transition-fast);
}

.client-logo-card img {
  max-height: 50px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.75);
  transition: filter var(--transition-fast), transform var(--transition-fast);
}

.client-logo-card:hover {
  border-color: var(--color-brand-azure);
  transform: translateY(-2px);
}

.client-logo-card:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* --- Carrier Partners Portal (Socios Transportistas) --- */
.partners-section {
  padding: 6rem 0;
  background: var(--bg-surface-subtle);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: 4rem;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-azure);
  box-shadow: var(--shadow-lg);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-brand-azure);
  margin-bottom: 1rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.requirements-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .requirements-box {
    padding: 3.5rem;
  }
}

.req-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.req-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--bg-surface-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.req-icon {
  width: 22px;
  height: 22px;
  color: #10B981;
  flex-shrink: 0;
  margin-top: 2px;
}

.req-text {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}



/* --- Multi-Hub Directory & Contact Section --- */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-surface-subtle);
}

/* --- Interactive Central America Regional Map & Hubs --- */
.regional-map-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem 1.75rem 2rem;
  box-shadow: var(--shadow-xl);
  margin-top: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.map-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.map-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(0, 136, 203, 0.1);
  color: var(--color-brand-azure);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1px solid rgba(0, 136, 203, 0.25);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.map-instruction {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 650px;
}

.regional-map-container {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, rgba(11, 25, 44, 0.03) 0%, rgba(0, 136, 203, 0.05) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem;
  overflow: hidden;
}

[data-theme="dark"] .regional-map-container {
  background: linear-gradient(135deg, rgba(6, 13, 23, 0.9) 0%, rgba(11, 25, 44, 0.8) 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.regional-ca-map {
  width: 100%;
  height: auto;
  max-height: 480px;
  display: block;
}

.map-grid-lines line {
  stroke: var(--border-subtle);
  stroke-width: 0.8;
  stroke-dasharray: 4, 8;
  opacity: 0.6;
}

[data-theme="dark"] .map-grid-lines line {
  stroke: rgba(255, 255, 255, 0.07);
}

.ocean-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  fill: var(--text-muted);
  opacity: 0.45;
  font-family: var(--font-primary);
  user-select: none;
}

/* Transit Countries (Muted) */
.map-country.transit {
  fill: rgba(148, 163, 184, 0.18);
  stroke: rgba(148, 163, 184, 0.45);
  stroke-width: 1.2;
  stroke-dasharray: 4, 4;
  transition: all var(--transition-base);
}

[data-theme="dark"] .map-country.transit {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 255, 255, 0.12);
}

/* Active Hub Countries with Flags */
.map-country.active-hub {
  cursor: pointer;
  stroke: #0088CB;
  stroke-width: 2.2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.map-country.active-hub:hover,
.map-country.active-hub.is-hovered {
  stroke: #F59E0B;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 18px rgba(0, 136, 203, 0.85)) brightness(1.12);
}

/* Logistics Route Line */
.map-logistics-line {
  fill: none;
  stroke: #0088CB;
  stroke-width: 2.5;
  stroke-dasharray: 6, 6;
  opacity: 0.75;
  animation: logisticsDash 25s linear infinite;
}

@keyframes logisticsDash {
  to { stroke-dashoffset: -200; }
}

/* Hub Beacon Pins */
.map-hub-pin {
  cursor: pointer;
  outline: none;
}

.hub-pulse-ring {
  fill: rgba(0, 136, 203, 0.25);
  stroke: #0088CB;
  stroke-width: 1.5;
  animation: hubRadarPulse 2s ease-out infinite;
  transform-origin: center;
}

.hub-pin-dot {
  fill: #0088CB;
  stroke: #FFFFFF;
  stroke-width: 2;
  transition: transform var(--transition-fast);
}

.hub-pulse-ring.central {
  fill: rgba(245, 158, 11, 0.3);
  stroke: #F59E0B;
  animation: hubRadarPulseCentral 1.8s ease-out infinite;
}

.hub-pin-dot.central {
  fill: #F59E0B;
  stroke: #FFFFFF;
}

.map-hub-pin:hover .hub-pin-dot {
  transform: scale(1.35);
}

.hub-pin-title {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  fill: var(--text-primary);
  text-anchor: middle;
  text-shadow: 0 1px 4px rgba(255, 255, 255, 0.8);
  pointer-events: none;
  user-select: none;
}

[data-theme="dark"] .hub-pin-title {
  fill: #F8FAFC;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.hub-pin-title.central {
  fill: #D97706;
  font-weight: 800;
}

[data-theme="dark"] .hub-pin-title.central {
  fill: #FBBF24;
}

@keyframes hubRadarPulse {
  0% { r: 5; opacity: 1; }
  100% { r: 24; opacity: 0; }
}

@keyframes hubRadarPulseCentral {
  0% { r: 6; opacity: 1; }
  100% { r: 30; opacity: 0; }
}

/* Floating Interactive Tooltip */
.map-interactive-tooltip {
  position: absolute;
  z-index: 50;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  box-shadow: var(--shadow-xl), 0 0 20px rgba(0, 136, 203, 0.25);
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  min-width: 240px;
  max-width: 320px;
}

.tooltip-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.tooltip-flag {
  width: 28px;
  height: 18px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  display: inline-block;
  background-size: cover;
  background-position: center;
}

.tooltip-country {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text-primary);
}

.tooltip-office {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-brand-azure);
  text-transform: uppercase;
}

.tooltip-detail {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.tooltip-action {
  font-size: 0.75rem;
  font-weight: 700;
  color: #10B981;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.4rem;
}

/* Quick Bar below Map */
.map-quick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.quick-bar-label {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.map-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.map-quick-btn:hover {
  background: var(--bg-surface);
  border-color: var(--color-brand-azure);
  color: var(--color-brand-azure);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --- Multi-Hub Directory Cards --- */
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.hub-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
}

.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand-azure);
  box-shadow: var(--shadow-xl);
}

.hub-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.hub-badge-flag {
  width: 48px;
  height: 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  transition: transform var(--transition-fast);
}

.hub-card:hover .hub-badge-flag {
  transform: scale(1.08);
}

.hub-badge-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-brand-azure);
  margin-bottom: 0.2rem;
}

.hub-tag.central {
  color: var(--color-brand-gold);
}

.hub-name {
  font-size: 1.3rem;
  font-weight: 700;
}

/* Spotlight Animation when targeted from Map */
@keyframes hubCardSpotlight {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(0, 136, 203, 0);
    border-color: var(--border-card);
  }
  20% {
    transform: translateY(-10px) scale(1.025);
    box-shadow: 0 0 35px rgba(0, 136, 203, 0.75), 0 0 0 4px var(--color-brand-azure);
    border-color: var(--color-brand-azure);
  }
  40% {
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 0 20px rgba(0, 136, 203, 0.4), 0 0 0 2px var(--color-brand-azure);
    border-color: var(--color-brand-azure);
  }
  60% {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.8), 0 0 0 4px var(--color-brand-gold);
    border-color: var(--color-brand-gold);
  }
  80% {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 0 20px rgba(0, 136, 203, 0.4), 0 0 0 2px var(--color-brand-azure);
    border-color: var(--color-brand-azure);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: var(--shadow-md);
    border-color: var(--border-card);
  }
}

.hub-card.hub-card-spotlight {
  animation: hubCardSpotlight 2.6s ease-in-out forwards !important;
  z-index: 20;
}

.hub-dept-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.hub-dept-item {
  display: flex;
  flex-direction: column;
}

.dept-name {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-azure);
  font-weight: 700;
}

.dept-person {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

.dept-contact {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.dept-contact a:hover {
  color: var(--color-brand-azure);
  text-decoration: underline;
}

/* Contact Form Section */
.contact-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 3.5rem;
  }
}

/* --- Floating Quick Contact Widget --- */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #25D366;
  color: #FFFFFF;
  padding: 0.875rem 1.35rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
}

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

/* --- Footer --- */
.site-footer {
  background: #060B14;
  color: #94A3B8;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  filter: 
    drop-shadow(1px 0 0 #ffffff)
    drop-shadow(-1px 0 0 #ffffff)
    drop-shadow(0 1px 0 #ffffff)
    drop-shadow(0 -1px 0 #ffffff)
    drop-shadow(0.75px 0.75px 0 #ffffff)
    drop-shadow(-0.75px -0.75px 0 #ffffff)
    drop-shadow(0.75px -0.75px 0 #ffffff)
    drop-shadow(-0.75px 0.75px 0 #ffffff);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  color: #94A3B8;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: #94A3B8;
}

.footer-links a:hover {
  color: var(--color-brand-azure);
  transform: translateX(3px);
  display: inline-block;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-social-links {
  display: flex;
  gap: 1rem;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--color-brand-azure);
  border-color: var(--color-brand-azure);
  transform: translateY(-2px);
}

/* --- Scroll Animation Classes --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Comprehensive Mobile Viewport Hardening (Phones <= 640px)
   ========================================================================== */
@media (max-width: 640px) {
  /* Prevent horizontal scroll leakage globally */
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Optimize container gutters for small screens */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Section vertical padding */
  .services-section,
  .fleet-section,
  .diff-section,
  .partners-section,
  .contact-section {
    padding: 3.5rem 0;
  }

  /* Headings size scaling */
  .section-title {
    font-size: 1.65rem;
  }

  .section-desc {
    font-size: 0.875rem;
    margin-bottom: 2rem;
  }

  /* Spotlight Card (Descarga de Barcos) */
  .spotlight-card {
    border-radius: var(--radius-lg);
  }

  .spotlight-content {
    padding: 1.75rem 1rem;
  }

  .spotlight-title {
    font-size: 1.45rem;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .spotlight-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .spotlight-hubs {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.75rem;
    width: 100%;
  }

  .spotlight-hub-box {
    padding: 1rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
  }

  /* Fleet Display Card */
  .fleet-display-card {
    padding: 1.5rem 1.15rem;
    gap: 1.5rem;
    border-radius: var(--radius-lg);
  }

  .fleet-specs-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .fleet-tabs {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .fleet-tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  /* Differentiators Grid */
  .diff-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .diff-card {
    padding: 1.5rem 1.25rem;
  }

  /* Hubs & Directory */
  .hubs-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  .hub-card {
    padding: 1.5rem 1.15rem;
  }

  /* Regional Map wrapper */
  .regional-map-wrapper {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
  }

  .regional-map-container {
    padding: 0.5rem;
  }

  .map-quick-bar {
    gap: 0.5rem;
  }

  .map-quick-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Requirements box */
  .requirements-box {
    padding: 1.5rem 1.15rem;
  }

  .req-list-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Contact Form */
  .contact-form-card {
    padding: 1.5rem 1.15rem;
  }

  /* Floating WhatsApp button on small devices */
  .floating-whatsapp {
    bottom: 1rem;
    right: 1rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.8125rem;
  }
  
  .floating-whatsapp span {
    font-size: 0.775rem;
  }

  /* Ensure footer content has breathing room and social buttons are fully visible above floating widget */
  .site-footer {
    padding-bottom: 5.5rem;
  }

  .footer-bottom {
    margin-bottom: 1rem;
  }
}

