/* ============================================
   VSC & SUPPLY LLC — Global Styles
   Extiende Tailwind CSS
   ============================================ */

:root {
  --deep: #0B2545;
  --navy: #134074;
  --ocean: #1B6CA8;
  --turq: #00C2CB;
  --mint: #00E5A0;
  --light: #F4F9FC;
  --text: #0A1A2F;
  --gray: #5A7184;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #0B2545 0%, #134074 30%, #1B6CA8 55%, #00C2CB 80%, #00E5A0 100%);
  --radius: 14px;
  --shadow: 0 20px 60px rgba(11, 37, 69, 0.12);
  --transition: all .35s cubic-bezier(.4,0,.2,1);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: #f5f5f7;
  overflow-x: hidden;
}

/* ===== TEXT GRADIENTS ===== */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 40%, #00C2CB 80%, #00E5A0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  white-space: normal;
  max-width: 100%;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #00C2CB 0%, #00E5A0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* ===== GLASSMORPHISM ===== */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== APPLE BUTTONS ===== */
.btn-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-apple-primary {
  background: linear-gradient(135deg, #00C2CB 0%, #00E5A0 100%);
  color: #000;
}

.btn-apple-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px 0 rgba(0, 194, 203, 0.6);
}

.btn-apple-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-apple-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.03);
}

/* ===== NAVBAR ===== */
.nav-ios {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== HERO VIDEO ===== */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.75) 70%, rgba(0, 0, 0, 0.95) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(135deg, rgba(11, 37, 69, 0.5) 0%, rgba(0, 194, 203, 0.15) 100%);
}

/* ===== WATER CANVAS ===== */
#water-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ===== LANGUAGE SWITCH ===== */
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 12px;
  border-radius: 980px;
  font-family: inherit;
  font-weight: 500;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.lang-btn:hover { color: #fff; }

.lang-btn.active {
  background: linear-gradient(135deg, #00C2CB 0%, #00E5A0 100%);
  color: #000;
  font-weight: 600;
}

/* ===== AI CHAT ===== */
.chat-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C2CB 0%, #00E5A0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0, 194, 203, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-bubble:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 50px rgba(0, 194, 203, 0.7);
}

.chat-bubble svg { color: #000; }

.chat-window {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 560px;
  max-height: calc(100vh - 140px);
  border-radius: 24px;
  background: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  z-index: 998;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chat-header {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 44px;
  height: 44px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  overflow: visible;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  animation: messageIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.chat-message.bot {
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.chat-message.user {
  background: linear-gradient(135deg, #00C2CB 0%, #00E5A0 100%);
  color: #000;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  font-weight: 500;
}

.chat-input-area {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 980px;
  padding: 11px 18px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.chat-input:focus {
  border-color: rgba(0, 194, 203, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.chat-input::placeholder { color: rgba(255, 255, 255, 0.4); }

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00C2CB 0%, #00E5A0 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.chat-send:hover { transform: scale(1.1); }

.chat-send svg { color: #000; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #1d1d1f; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00C2CB; }

/* ===== CONTAINER ===== */
.container-apple {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== PARALLAX CARDS ===== */
.parallax-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
  will-change: transform;
}

/* ===== LOGO BRAND ===== */
.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.logo-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.logo-brand:hover img {
  transform: scale(1.08);
}

.logo-brand-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  transition:
    max-width 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    margin-left 0.4s ease;
  margin-left: 0;
}

.logo-brand:hover .logo-brand-text {
  max-width: 400px;
  opacity: 1;
  margin-left: 8px;
}

.logo-brand-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.01em;
  transform: translateY(6px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-brand-sub {
  font-size: 10px;
  font-weight: 500;
  color: #00E5A0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1.2;
  margin-top: 2px;
  transform: translateY(6px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.logo-brand:hover .logo-brand-title,
.logo-brand:hover .logo-brand-sub {
  transform: translateY(0);
}

/* ============================================
   TEAM AVATAR — Iconos SVG descriptivos
   ============================================ */
.team-avatar-wrapper {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s;
  box-shadow:
    0 10px 30px rgba(0, 194, 203, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  isolation: isolate;
  background: radial-gradient(circle at 30% 30%, #134074 0%, #0a1a2f 70%);
}

/* Anillo de gradiente giratorio */
.team-avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #00C2CB 0deg,
    #00E5A0 90deg,
    #00C2CB 180deg,
    #00E5A0 270deg,
    #00C2CB 360deg
  );
  z-index: -1;
  opacity: 0.6;
  animation: rotate-ring 8s linear infinite;
  filter: blur(1px);
}

.team-avatar-wrapper::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #134074 0%, #0a1a2f 70%);
  z-index: -1;
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.glass-strong:hover .team-avatar-wrapper {
  transform: scale(1.08);
  box-shadow:
    0 15px 45px rgba(0, 194, 203, 0.5),
    inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.glass-strong:hover .team-avatar-wrapper::before {
  opacity: 1;
  filter: blur(0);
}

/* SVG del avatar */
.team-avatar-svg {
  width: 78%;
  height: 78%;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(0, 194, 203, 0.5));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-strong:hover .team-avatar-svg {
  transform: scale(1.08);
}

/* Fallback antiguo (no se usa) */
.team-avatar-fallback {
  display: none;
}

.team-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* ===== TRACKER ===== */
.tracker-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00E5A0;
  box-shadow: 0 0 20px #00E5A0, 0 0 40px rgba(0, 229, 160, 0.5);
  animation: pulse 2s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s;
}

.tracker-dot:hover { transform: scale(1.8); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.route-path {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0.4;
  animation: dash 20s linear infinite;
}

@keyframes dash {
  to { stroke-dashoffset: -100; }
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #0B2545;
  font-size: 0.92rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid #E1E8EF;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #0A1A2F;
  transition: var(--transition);
  background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #00C2CB;
  box-shadow: 0 0 0 4px rgba(0, 194, 203, 0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .logo-brand-text {
    max-width: 200px;
    opacity: 1;
    margin-left: 8px;
  }
  .logo-brand-title { font-size: 12px; }
  .logo-brand-sub { font-size: 9px; }
  .logo-brand img { height: 40px; }

  .chat-window {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 90px;
    height: 70vh;
  }
  .chat-bubble { bottom: 20px; right: 16px; width: 54px; height: 54px; }

  .team-avatar-wrapper {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .team-avatar-wrapper {
    width: 110px;
    height: 110px;
  }
  .team-avatar-svg {
    width: 75%;
    height: 75%;
  }
}