/* Custom styles and modern design tokens for Zona Franca Comodoro Rivadavia */

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

:root {
  --primary-navy: #051630;
  --secondary-slate: #003262;
  --accent-cyan: #039FD0;
  --accent-blue: #0155A0;
  --medium-blue: #0285C5;
  --accent-red: #E42928;
  --patagonia-teal: #039FD0;
  --surface-light: #F8FAFC;
  --border-light: rgba(1, 85, 160, 0.14);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 135px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 96px;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism effects */
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(1, 85, 160, 0.15);
  box-shadow: 0 4px 20px -4px rgba(1, 85, 160, 0.08);
}

.dark .glass-nav {
  background: rgba(5, 22, 48, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(3, 159, 208, 0.25);
  box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.45);
}

/* Nav link subtle underline indicator in official logo palette */
.nav-link-logo {
  position: relative;
}
.nav-link-logo::after {
  content: '';
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #0155A0 0%, #039FD0 75%, #E42928 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link-logo:hover::after {
  transform: scaleX(1);
}

/* Mesh glow ambient background */
.mesh-glow-blue {
  background: radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.15) 0%, rgba(37, 99, 235, 0.08) 50%, transparent 70%);
}

.mesh-glow-patagonia {
  background: radial-gradient(circle at 60% 40%, rgba(13, 148, 136, 0.18) 0%, rgba(14, 165, 233, 0.08) 55%, transparent 75%);
}

/* Bento card hover effect */
.bento-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(14, 165, 233, 0.15), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

.dark .bento-card:hover {
  box-shadow: 0 20px 35px -10px rgba(14, 165, 233, 0.25), 0 10px 20px -5px rgba(0, 0, 0, 0.5);
}

/* Image zoom effect on hover */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom-container:hover img {
  transform: scale(1.06);
}

/* Subtle badge pulse */
@keyframes pulse-subtle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.animate-pulse-subtle {
  animation: pulse-subtle 3s ease-in-out infinite;
}

/* Animación suave de entrada de derecha a izquierda para el título principal */
@keyframes heroTitleSlideFromRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-title-entrance {
  opacity: 0;
  animation: heroTitleSlideFromRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-entrance {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Animated gradient text */
.text-gradient-ocean {
  background: linear-gradient(135deg, #38BDF8 0%, #039FD0 50%, #0285C5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Grid background pattern */
.bg-grid-pattern {
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(226, 232, 240, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
}

.dark .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* Lightbox Modal */
#image-lightbox {
  transition: opacity 0.3s ease;
}

/* Intranet Dropdown Banner hover reveal (desplegado por debajo del navbar/botón) */
#top-intranet-banner {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, transform 0.25s ease;
}

#top-intranet-banner.is-active {
  max-height: 90px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown menu for La Empresa */
#empresa-dropdown-menu.is-open {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}

/* Brand institutional top accent bar (Azul #0155A0 -> Cian #039FD0 -> Rojo #E42928) */
.brand-accent-line {
  position: relative;
}
.brand-accent-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0155A0 0%, #039FD0 65%, #E42928 100%);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  z-index: 10;
}

/* Conectividad interactive node buttons */
.map-node-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.map-node-btn.is-active {
  border-color: #039FD0 !important;
  background-color: rgba(3, 159, 208, 0.08) !important;
  box-shadow: 0 0 0 2px rgba(3, 159, 208, 0.3) !important;
}
.dark .map-node-btn.is-active {
  background-color: rgba(3, 159, 208, 0.18) !important;
  box-shadow: 0 0 0 2px rgba(3, 159, 208, 0.4) !important;
}

/* User Type Selection Cards for Radicación Wizard */
.user-type-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.user-type-card:hover {
  transform: translateY(-2px);
}
.user-type-card.is-selected {
  border-color: #0155A0 !important;
  background-color: rgba(1, 85, 160, 0.04) !important;
  box-shadow: 0 6px 20px -2px rgba(1, 85, 160, 0.15), inset 0 0 0 2px #0155A0 !important;
}
.dark .user-type-card.is-selected {
  border-color: #039FD0 !important;
  background-color: rgba(3, 159, 208, 0.08) !important;
  box-shadow: 0 6px 20px -2px rgba(3, 159, 208, 0.3), inset 0 0 0 2px #039FD0 !important;
}
.user-type-card.is-selected .radio-circle {
  border-color: #0155A0 !important;
  background-color: #0155A0 !important;
}
.user-type-card.is-selected .radio-dot {
  opacity: 1 !important;
}

