/* ══════════════════════════════════════════════════════
   LinkPyme — Design System
   Paleta: Azul marino #0B1F4B, Cyan vibrante #00C9FF,
           Verde acento #00E676, Blanco #FFFFFF, Gris #F4F6FA
   ══════════════════════════════════════════════════════ */

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

:root {
  --navy:      #0B1F4B;
  --navy-dark: #071539;
  --navy-mid:  #152D6E;
  --cyan:      #00C9FF;
  --green:     #00E676;
  --white:     #FFFFFF;
  --gray-50:   #F4F6FA;
  --gray-100:  #E8ECF4;
  --gray-300:  #B0BAD0;
  --gray-600:  #5A6889;
  --red:       #FF4757;
  --orange:    #FFA502;
  --shadow-sm: 0 2px 8px rgba(11,31,75,.10);
  --shadow-md: 0 6px 24px rgba(11,31,75,.14);
  --shadow-lg: 0 16px 48px rgba(11,31,75,.20);
  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: .22s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-50);
  color: var(--navy);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── SCROLLBAR ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 3px; }

/* ══════════════════════════════════════════════════════
   LOGO ANIMADO
   ══════════════════════════════════════════════════════ */
.lp-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
}

.lp-logo-icon {
  width: 44px;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}

.lp-logo-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Hexágono que pulsa */
.logo-hex {
  animation: logoHexPulse 3s ease-in-out infinite;
  transform-origin: center;
}

/* Líneas de conexión flash */
.logo-link1 { animation: logoFlash 2s ease-in-out infinite 0s; }
.logo-link2 { animation: logoFlash 2s ease-in-out infinite .4s; }
.logo-link3 { animation: logoFlash 2s ease-in-out infinite .8s; }

/* Nodos de red */
.logo-node { animation: logoNodeBlink 2s ease-in-out infinite; }
.logo-node:nth-child(2) { animation-delay: .3s; }
.logo-node:nth-child(3) { animation-delay: .6s; }

/* Texto del logo */
.lp-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.lp-logo-main {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: -.5px;
}
.lp-logo-main span { color: var(--cyan); }
.lp-logo-sub {
  font-size: .65rem;
  color: var(--cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Logo oscuro (sobre fondo blanco) */
.lp-logo.dark .lp-logo-main { color: var(--navy); }
.lp-logo.dark .lp-logo-sub  { color: var(--navy-mid); }

@keyframes logoHexPulse {
  0%,100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(0,201,255,.4)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 12px rgba(0,201,255,.9)); }
}
@keyframes logoFlash {
  0%,100% { opacity: .3; stroke-dashoffset: 40; }
  50%      { opacity: 1;  stroke-dashoffset: 0; }
}
@keyframes logoNodeBlink {
  0%,100% { opacity: .5; r: 2; }
  50%      { opacity: 1;  r: 3.5; }
}

/* ── Splash screen del logo ────────────────────────── */
#logo-splash {
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 20px;
  animation: splashExit .6s ease-in .28s forwards var(--_splash-delay, 2s);
}
#logo-splash.hidden { display: none; }
#logo-splash .splash-logo-icon { width: 100px; height: 100px; }
#logo-splash .splash-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
}
#logo-splash .splash-name span { color: var(--cyan); }
#logo-splash .splash-tagline {
  font-size: .85rem;
  color: var(--gray-300);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.splash-bar {
  width: 200px;
  height: 3px;
  background: var(--navy-mid);
  border-radius: 2px;
  overflow: hidden;
}
.splash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  animation: splashBar 1.8s ease-out forwards;
}
@keyframes splashBar {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes splashExit {
  to { opacity: 0; pointer-events: none; transform: scale(1.03); }
}

/* ══════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════ */
.navbar-lp {
  background: var(--navy);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

.navbar-lp .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.navbar-lp .nav-links a {
  color: var(--gray-300);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.navbar-lp .nav-links a:hover,
.navbar-lp .nav-links a.active {
  color: var(--white);
  background: rgba(0,201,255,.12);
}
.navbar-lp .nav-links a.active { color: var(--cyan); }

.navbar-lp .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  letter-spacing: .5px;
}
.lang-btn:hover { background: rgba(0,201,255,.2); color: var(--cyan); }

.msg-badge {
  position: relative;
}
.msg-badge .badge-dot {
  position: absolute;
  top: -4px; right: -4px;
  width: 16px; height: 16px;
  background: var(--red);
  border-radius: 50%;
  font-size: .65rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #0099CC);
  color: var(--navy-dark);
  box-shadow: 0 4px 14px rgba(0,201,255,.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(0,201,255,.55); transform: translateY(-1px); }

.btn-accent {
  background: linear-gradient(135deg, var(--green), #00B058);
  color: var(--navy-dark);
  box-shadow: 0 4px 14px rgba(0,230,118,.35);
}
.btn-accent:hover { box-shadow: 0 6px 20px rgba(0,230,118,.55); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
}
.btn-outline:hover { background: rgba(0,201,255,.1); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-100);
}
.btn-ghost:hover { background: var(--gray-100); color: var(--navy); }

.btn-danger { background: var(--red); color: white; }
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════════
   HERO LANDING
   ══════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 60%, #1A3A7A 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 600px at 70% 50%, rgba(0,201,255,.1) 0%, transparent 70%),
    radial-gradient(ellipse 300px 300px at 20% 80%, rgba(0,230,118,.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Grid animado de fondo */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,201,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,255,.06) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 50px 50px; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,201,255,.12);
  border: 1px solid rgba(0,201,255,.25);
  color: var(--cyan);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInUp .6s ease both;
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.2rem;
  animation: fadeInUp .6s ease .1s both;
}
.hero-title .gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-300);
  margin-bottom: 2.2rem;
  animation: fadeInUp .6s ease .2s both;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp .6s ease .3s both;
}
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3.5rem;
  animation: fadeInUp .6s ease .4s both;
}
.hero-stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  font-size: .78rem;
  color: var(--gray-300);
  letter-spacing: .5px;
}

/* Ilustración del hero */
.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(-50%) translateY(0); }
  50%      { transform: translateY(-50%) translateY(-18px); }
}

/* ══════════════════════════════════════════════════════
   SECCIÓN FEATURES
   ══════════════════════════════════════════════════════ */
.section { padding: 5rem 2rem; }
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: .75rem;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 3.5rem;
  font-size: 1.05rem;
  max-width: 580px;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(0,201,255,.15), rgba(0,230,118,.1));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}
.feature-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}
.feature-card p { color: var(--gray-600); font-size: .9rem; }

/* ══════════════════════════════════════════════════════
   CARDS EMPRESA / BUSCADOR
   ══════════════════════════════════════════════════════ */
.empresa-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.empresa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.empresa-card-logo {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}
.empresa-card h3 { font-family: 'Space Grotesk',sans-serif; font-size: 1rem; font-weight: 700; }
.empresa-card .rubro-tag {
  display: inline-block;
  background: rgba(0,201,255,.1);
  color: var(--navy-mid);
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}
.empresa-card .country-flag { font-size: .85rem; }

/* ══════════════════════════════════════════════════════
   FORMULARIOS
   ══════════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: var(--navy);
  margin-bottom: .45rem;
}
.form-control {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  background: var(--white);
  color: var(--navy);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,201,255,.15);
}
.form-control.is-invalid { border-color: var(--red); }
.invalid-feedback { color: var(--red); font-size: .8rem; margin-top: .25rem; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Auth card ─────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 2rem;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp .5s ease both;
}
.auth-card .auth-logo { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.auth-card h1 { font-family: 'Space Grotesk',sans-serif; font-size: 1.6rem; font-weight: 700; margin-bottom: .35rem; }
.auth-card p.sub { color: var(--gray-600); font-size: .9rem; margin-bottom: 1.75rem; }

/* ══════════════════════════════════════════════════════
   PANEL INTERNO / LAYOUT
   ══════════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  min-height: calc(100vh - 64px);
}
.sidebar {
  width: 240px;
  background: var(--white);
  border-right: 1px solid var(--gray-100);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.sidebar-title {
  font-size: .72rem;
  font-weight: 700;
  color: var(--gray-600);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: .75rem;
  margin-top: 1.25rem;
}
.sidebar-title:first-child { margin-top: 0; }
.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.sidebar a:hover { background: var(--gray-50); color: var(--navy); }
.sidebar a.active { background: rgba(0,201,255,.1); color: var(--navy-mid); font-weight: 600; }

.main-content {
  flex: 1;
  padding: 2rem;
  max-width: 1100px;
}

/* ── Page header ───────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
}

/* ── Stats grid admin ──────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-card .stat-icon.blue  { background: rgba(0,201,255,.12); }
.stat-card .stat-icon.green { background: rgba(0,230,118,.12); }
.stat-card .stat-icon.red   { background: rgba(255,71,87,.12); }
.stat-card .stat-icon.orange{ background: rgba(255,165,2,.12); }
.stat-card strong { display: block; font-size: 1.75rem; font-family: 'Space Grotesk',sans-serif; font-weight: 700; }
.stat-card small { font-size: .78rem; color: var(--gray-600); }

/* ── Tables ─────────────────────────────────────────── */
.table-wrap { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-100); overflow: hidden; }
.table-lp { width: 100%; border-collapse: collapse; }
.table-lp th {
  background: var(--gray-50);
  padding: 12px 16px;
  text-align: left;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--gray-100);
}
.table-lp td {
  padding: 13px 16px;
  font-size: .875rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}
.table-lp tr:last-child td { border-bottom: none; }
.table-lp tbody tr:hover { background: var(--gray-50); }

/* ── Badge status ──────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-active   { background: rgba(0,230,118,.12); color: #007A3A; }
.badge-inactive { background: rgba(255,71,87,.1);  color: var(--red); }
.badge-pending  { background: rgba(255,165,2,.1);  color: #886A00; }

/* ══════════════════════════════════════════════════════
   MENSAJERÍA
   ══════════════════════════════════════════════════════ */
.msg-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  height: calc(100vh - 64px);
  background: var(--white);
}
.msg-sidebar {
  border-right: 1px solid var(--gray-100);
  overflow-y: auto;
}
.msg-list-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-100);
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  gap: .75rem;
}
.msg-list-item:hover { background: var(--gray-50); }
.msg-list-item.unread { background: rgba(0,201,255,.05); }
.msg-list-item.unread .msg-subject { font-weight: 700; }
.msg-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-dark);
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}
.msg-subject { font-size: .875rem; font-weight: 500; }
.msg-preview { font-size: .78rem; color: var(--gray-600); margin-top: 2px; }
.msg-time { font-size: .72rem; color: var(--gray-300); }

.msg-thread {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.msg-thread-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.msg-bubble-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.msg-bubble {
  max-width: 65%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: .875rem;
  line-height: 1.55;
}
.msg-bubble.mine {
  background: linear-gradient(135deg, var(--cyan), #0099CC);
  color: var(--navy-dark);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.msg-bubble.theirs {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-bottom-left-radius: 4px;
}
.msg-compose {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: .75rem;
  align-items: flex-end;
}
.msg-compose textarea {
  flex: 1;
  resize: none;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  outline: none;
  transition: border-color var(--transition);
}
.msg-compose textarea:focus { border-color: var(--cyan); }

/* ══════════════════════════════════════════════════════
   ALERTS
   ══════════════════════════════════════════════════════ */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  animation: fadeInUp .3s ease both;
}
.alert-success { background: rgba(0,230,118,.12); color: #007A3A; border: 1px solid rgba(0,230,118,.25); }
.alert-error   { background: rgba(255,71,87,.1);  color: var(--red); border: 1px solid rgba(255,71,87,.2); }
.alert-info    { background: rgba(0,201,255,.1);  color: var(--navy-mid); border: 1px solid rgba(0,201,255,.2); }

/* ══════════════════════════════════════════════════════
   SEARCH BAR
   ══════════════════════════════════════════════════════ */
.search-bar {
  display: flex;
  gap: .75rem;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}
.search-bar input, .search-bar select {
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  color: var(--navy);
  flex: 1;
  min-width: 140px;
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
footer {
  background: var(--navy-dark);
  color: var(--gray-300);
  padding: 3.5rem 2rem 1.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}
footer h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  font-size: .95rem;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: .5rem; }
footer ul a {
  color: var(--gray-300);
  text-decoration: none;
  font-size: .875rem;
  transition: color var(--transition);
}
footer ul a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .8rem;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-bottom span { color: var(--cyan); }

/* ══════════════════════════════════════════════════════
   ANIMATIONS UTILES
   ══════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-in { animation: fadeInUp .5s ease both; }

/* Intersection observer helper */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-visual { display: none; }
  .hero { min-height: auto; padding: 3rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .navbar-lp { padding: 0 1rem; }
  .nav-links { display: none; }
  .msg-layout { grid-template-columns: 1fr; }
  .app-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .main-content { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
