/* =========================================================
   NEREUS · BASE
========================================================= */

:root {
  --bg: #071522;
  --bg-2: #0f2235;
  --panel: rgba(8, 22, 36, 0.9);
  --panel-2: rgba(14, 33, 53, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --text: #ecf3fb;
  --muted: #9fb4c8;
  --accent: #00b8ff;
  --accent-2: #36d28a;
  --danger: #ff6b6b;
  --border: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.24);
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body.auth-body,
body.admin-body,
body.site-body,
body.legal-body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, Arial, sans-serif;
}

body.auth-body,
body.admin-body,
body.site-body {
  color: var(--text);
}

body.auth-body,
body.admin-body {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}

body.auth-body a,
body.admin-body a,
body.site-body a,
body.legal-body a {
  color: inherit;
  text-decoration: none;
}

body.auth-body .container,
body.admin-body .container {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   NEREUS · SOLO PANTALLA DE NAVEGACIÓN
   Scopeado a body.map-body para no tocar login/admin/site
========================================================= */

body.map-body {
  margin: 0;
  min-height: 100vh;
  background: #09131d;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  font-family: Inter, system-ui, Arial, sans-serif;
}

body.map-body .map-screen {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
}

body.map-body #map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  z-index: 1;
}

body.map-body .map-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

body.map-body .map-overlay > * {
  pointer-events: auto;
}

/* Tarjetas flotantes */

body.map-body .nav-card {
  background: rgba(13, 28, 43, 0.92);
  color: #eef6ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

body.map-body .nav-card-top {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 14px;
  right: 14px;
  border-radius: 20px;
  padding: 14px 14px 16px;
  max-width: min(760px, calc(100vw - 28px));
}

body.map-body .nav-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

body.map-body .nav-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.map-body .nav-chip-info {
  background: rgba(0, 184, 255, 0.14);
  color: #6edbff;
}

body.map-body .nav-chip-warn {
  background: rgba(255, 196, 61, 0.14);
  color: #ffd667;
}

body.map-body .nav-distance-block {
  display: grid;
  gap: 6px;
}

body.map-body .nav-distance {
  font-size: clamp(44px, 9vw, 58px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.map-body .nav-instruction-main {
  font-size: clamp(18px, 4.3vw, 24px);
  line-height: 1.2;
  font-weight: 800;
}

body.map-body .nav-instruction-sub {
  font-size: 15px;
  line-height: 1.35;
  color: #c3d2e2;
  max-width: 32ch;
}

body.map-body .nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 184, 255, 0.14);
  color: #6edbff;
}

body.map-body .nav-lang-flag {
  font-size: 18px;
  line-height: 1;
}

body.map-body .nav-lang-select {
  border: 0;
  background: transparent;
  color: #6edbff;
  font-size: 14px;
  font-weight: 700;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 8px;
  cursor: pointer;
}

body.map-body .nav-lang-select option {
  color: #102336;
}

body.map-body .nav-status {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  color: #6edbff;
  margin-bottom: 2px;
}

/* Botones */

body.map-body .nav-controls {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  z-index: 30;
}

body.map-body .nav-btn {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(17, 34, 50, 0.92);
  color: #eef6ff;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  padding: 0 10px;
}

body.map-body .nav-btn-primary {
  background: linear-gradient(135deg, #18b8ff, #4fd6ff);
  color: #062133;
}

/* Oculta footer antiguo */

body.map-body .nav-card-bottom,
body.map-body #footer-panel {
  display: none !important;
}

/* Ajustes Leaflet */

body.map-body .leaflet-control-container {
  z-index: 5;
}

body.map-body .leaflet-bottom.leaflet-right {
  right: 10px;
  bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  margin: 0 !important;
}

body.map-body .leaflet-control-zoom {
  border: none !important;
  margin: 0 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

body.map-body .leaflet-control-zoom a {
  width: 38px;
  height: 38px;
  line-height: 38px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f2235;
}

/* Etiquetas del mapa */

body.map-body .checkpoint-label {
  color: #fff;
  background: rgba(17, 34, 50, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

body.map-body .boat-marker {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #7de8ff, #00b8ff);
  clip-path: polygon(50% 0%, 100% 100%, 50% 78%, 0% 100%);
  box-shadow: 0 0 18px rgba(0, 184, 255, 0.55);
}

/* Móvil estrecho */

@media (max-width: 430px) {
  body.map-body .nav-card-top {
    left: 10px;
    right: 10px;
    top: calc(10px + env(safe-area-inset-top));
    padding: 12px 12px 14px;
    border-radius: 18px;
  }

  body.map-body .nav-distance {
    font-size: clamp(34px, 12vw, 52px);
  }

  body.map-body .nav-instruction-main {
    font-size: 16px;
    line-height: 1.2;
  }

  body.map-body .nav-instruction-sub {
    font-size: 13px;
    line-height: 1.35;
  }

  body.map-body .nav-controls {
    left: 10px;
    right: 10px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    gap: 8px;
  }

  body.map-body .nav-btn {
    min-height: 50px;
    font-size: 13px;
    padding: 0 10px;
  }

  body.map-body .leaflet-bottom.leaflet-right {
    right: 10px;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }
}

/* Tablet / escritorio */

@media (min-width: 431px) and (max-width: 900px) {
  body.map-body .nav-controls {
    left: 14px;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }

  body.map-body .leaflet-bottom.leaflet-right {
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }
}

@media (min-width: 760px) {
  body.map-body .nav-card-top,
  body.map-body .nav-controls {
    left: 16px;
    width: 340px;
    right: auto;
  }
}

/* Safari iPhone */

@supports (-webkit-touch-callout: none) {
  body.map-body .map-screen {
    height: 100svh;
    min-height: 100svh;
  }

  body.map-body #map {
    height: 100svh;
    min-height: 100svh;
  }
}

/* =========================================================
   NEREUS · AUTH + ADMIN
========================================================= */

body.auth-body .brand,
body.admin-body .brand,
body.site-body .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

body.auth-body .brand,
body.admin-body .brand {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}

body.auth-body .brand-mark,
body.admin-body .brand-mark,
body.site-body .brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(0, 184, 255, 0.6);
  flex: 0 0 auto;
}

/* =========================
   LOGIN
========================= */

body.auth-body .hero {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: 1.2fr 0.8fr;
  min-height: 100vh;
  padding: 32px 0;
}

@media (max-width: 900px) {
  body.auth-body .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 24px 0 40px;
  }
}

body.auth-body .hero h1,
body.admin-body .page-title {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -0.03em;
}

body.auth-body .lead,
body.admin-body .lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 650px;
}

body.auth-body .features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 700px) {
  body.auth-body .features {
    grid-template-columns: 1fr;
  }
}

body.auth-body .feature-card,
body.admin-body .glass-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

body.auth-body .feature-card strong {
  display: block;
  margin-bottom: 6px;
}

body.auth-body .feature-card span,
body.admin-body .muted {
  color: var(--muted);
}

body.auth-body .auth-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

/* =========================
   LOGIN · BACK LINK
========================= */

body.auth-body .auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

body.auth-body .auth-back-link:hover {
  color: var(--text);
  transform: translateX(-2px);
}

/* =========================
   LOGIN · PASSWORD FIELD
========================= */

body.auth-body .password-field {
  position: relative;
  width: 100%;
}

body.auth-body .password-field input {
  width: 100%;
  padding-right: 58px;
}

body.auth-body .password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.auth-body .password-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

body.auth-body .password-toggle:focus-visible {
  outline: none;
  border-color: rgba(0, 184, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 184, 255, 0.12);
}

body.auth-body .password-toggle-icon {
  width: 20px;
  height: 20px;
  display: block;
}

body.auth-body .password-toggle .eye-closed {
  display: none;
}

body.auth-body .password-toggle.is-visible .eye-open {
  display: none;
}

body.auth-body .password-toggle.is-visible .eye-closed {
  display: block;
}

body.auth-body .hidden {
  display: none;
}

body.auth-body .form-group,
body.admin-body .form-group,
body.site-body .form-group {
  margin-bottom: 16px;
}

body.auth-body .form-label,
body.admin-body .form-label,
body.site-body .form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

body.auth-body input,
body.auth-body select,
body.auth-body button,
body.auth-body textarea,
body.admin-body input,
body.admin-body select,
body.admin-body button,
body.admin-body textarea,
body.site-body input,
body.site-body select,
body.site-body button,
body.site-body textarea {
  font: inherit;
}

/* Inputs base */

body.auth-body input,
body.auth-body select,
body.admin-body input,
body.admin-body select {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 15px;
  outline: none;
}

body.auth-body input:focus,
body.auth-body select:focus,
body.admin-body input:focus,
body.admin-body select:focus {
  border-color: rgba(0, 184, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 184, 255, 0.12);
}

body.auth-body button,
body.admin-body button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

body.auth-body .btn-primary,
body.admin-body .btn-primary {
  background: linear-gradient(135deg, var(--accent), #57d1ff);
  color: #042133;
}

body.auth-body .btn-secondary,
body.admin-body .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

body.auth-body .btn-danger,
body.admin-body .btn-danger {
  background: rgba(255, 107, 107, 0.16);
  color: #ffd1d1;
  border: 1px solid rgba(255, 107, 107, 0.4);
}

body.auth-body .stack,
body.admin-body .stack {
  display: grid;
  gap: 12px;
}

body.auth-body .row,
body.admin-body .row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

body.auth-body .space-between,
body.admin-body .space-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.auth-body .small,
body.admin-body .small {
  font-size: 13px;
}

body.auth-body .status,
body.admin-body .status {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  min-height: 48px;
}

body.auth-body .status.error,
body.admin-body .status.error {
  background: rgba(255, 107, 107, 0.12);
  color: #ffd6d6;
}

body.auth-body .status.success,
body.admin-body .status.success {
  background: rgba(54, 210, 138, 0.12);
  color: #d7ffeb;
}

/* =========================
   ADMIN
========================= */

body.admin-body .admin-shell {
  padding: 24px 0 48px;
}

body.admin-body .admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 980px) {
  body.admin-body .admin-grid {
    grid-template-columns: 1fr;
  }
}

body.admin-body .table {
  width: 100%;
  border-collapse: collapse;
}

body.admin-body .table th,
body.admin-body .table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 8px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

body.admin-body .table th {
  color: var(--muted);
  font-weight: 600;
}

body.admin-body .token-link {
  word-break: break-all;
  color: #bdefff;
}

body.admin-body .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

body.admin-body .badge.ok {
  color: #d7ffeb;
}

body.admin-body .badge.warn {
  color: #fff1cf;
}

body.admin-body .badge.off {
  color: #ffd7d7;
}

/* =========================================================
   NEREUS · SELECTORES ADMIN / AUTH
========================================================= */

body.admin-body select,
body.auth-body select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ecf3fb;
  border-radius: 16px;
  padding: 14px 44px 14px 15px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #bdefff 50%),
    linear-gradient(135deg, #bdefff 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

body.admin-body select:focus,
body.auth-body select:focus {
  border-color: rgba(0, 184, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 184, 255, 0.12);
}

body.admin-body select option,
body.auth-body select option {
  background: #102336;
  color: #ecf3fb;
}

/* =========================================================
   NEREUS · LANDING / SITE PREMIUM
========================================================= */

body.site-body {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(0, 184, 255, 0.08), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(87, 163, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #04111d 0%, #071522 45%, #091b2c 100%);
  color: #eaf2ff;
  overflow-x: hidden;
}

body.site-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.1));
  z-index: 0;
}

body.site-body main,
body.site-body header,
body.site-body footer {
  position: relative;
  z-index: 1;
}

body.site-body .container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* BRAND */

body.site-body .brand {
  color: #f3f8ff;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.site-body .brand,
body.site-body .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

body.site-body .brand-link {
  gap: 14px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

body.site-body .brand-logo {
  height: 120px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

body.site-body .hero-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(9, 27, 44, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin-bottom: 18px;
}

/* HEADER PREMIUM */

body.site-body .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 21, 34, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.site-body .site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

body.site-body .site-nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

body.site-body .site-menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

body.site-body .site-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

body.site-body .site-menu a:hover {
  color: var(--text);
}

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

body.site-body .btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

body.site-body .btn-nav:hover {
  transform: translateY(-1px);
}

body.site-body .btn-nav-ghost {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

body.site-body .btn-nav-primary {
  border: 1px solid rgba(0, 184, 255, 0.28);
  background: linear-gradient(135deg, #18b8ff, #57d1ff);
  color: #042133;
  box-shadow: 0 12px 28px rgba(0, 184, 255, 0.18);
}

body.site-body .lang-switcher,
body.auth-body .lang-switcher,
body.admin-body .lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.site-body .lang-btn,
body.auth-body .lang-btn,
body.admin-body .lang-btn {
  min-width: 42px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.site-body .lang-btn.is-active,
body.auth-body .lang-btn.is-active,
body.admin-body .lang-btn.is-active {
  background: rgba(0, 184, 255, 0.16);
  border-color: rgba(0, 184, 255, 0.32);
  color: #7fdcff;
}

body.site-body .nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

body.site-body .nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #eaf2ff;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.site-body .nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.site-body .nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

body.site-body .nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.site-body .mobile-menu {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 21, 34, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.site-body .mobile-menu.is-open {
  display: block;
}

body.site-body .mobile-menu-inner {
  display: grid;
  gap: 12px;
  padding: 18px 0 22px;
}

body.site-body .mobile-menu-inner a {
  color: var(--text);
  text-decoration: none;
}

body.site-body .mobile-lang-switcher {
  display: flex;
  margin-bottom: 8px;
}

/* HERO */

body.site-body .site-hero {
  padding: 88px 0 68px;
}

body.site-body .site-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 54px;
  align-items: center;
}

body.site-body .site-hero-copy h1 {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(2.9rem, 6vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: #f5f9ff;
  text-wrap: balance;
}

body.site-body .lead {
  max-width: 760px;
  font-size: clamp(1.06rem, 1.8vw, 1.34rem);
  line-height: 1.7;
  color: rgba(220, 232, 246, 0.84);
}

body.site-body .site-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

body.site-body .site-btn,
body.site-body .btn-primary,
body.site-body .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

body.site-body .btn-primary {
  color: #04111d;
  background: linear-gradient(135deg, #16b9ff 0%, #5fd0ff 100%);
  box-shadow:
    0 10px 30px rgba(20, 185, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.site-body .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(20, 185, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.site-body .btn-secondary {
  color: #e9f3ff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.site-body .btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 184, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

body.site-body .site-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

body.site-body .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dce8f6;
  font-size: 14px;
  font-weight: 600;
}

body.site-body .badge.ok {
  background: rgba(22, 185, 255, 0.14);
  border-color: rgba(22, 185, 255, 0.22);
  color: #7fdcff;
}

/* CARDS */

body.site-body .glass-card,
body.site-body .feature-card {
  position: relative;
  background: linear-gradient(180deg, rgba(10, 28, 46, 0.88) 0%, rgba(7, 22, 36, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.site-body .glass-card::before,
body.site-body .feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 28%);
}

body.site-body .site-mockup {
  padding: 22px;
  overflow: hidden;
}

body.site-body .site-mockup-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

body.site-body .site-mockup-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

body.site-body .site-mockup-map {
  position: relative;
  min-height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 24%, rgba(25, 201, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #0a2337 0%, #0b1c2d 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.site-body .site-mockup-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

body.site-body .site-map-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 20, 33, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dcecff;
  font-size: 14px;
  font-weight: 700;
}

body.site-body .site-map-route {
  position: absolute;
  inset: 0;
}

body.site-body .site-map-route::before {
  content: "";
  position: absolute;
  left: 22%;
  top: 70%;
  width: 48%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(19, 208, 255, 0.35), #37c0ff, #7ce1ff);
  transform: rotate(-28deg);
  box-shadow: 0 0 18px rgba(55, 192, 255, 0.35);
}

body.site-body .site-map-boat {
  position: absolute;
  left: 24%;
  top: 67%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.06),
    0 0 20px rgba(255, 255, 255, 0.18);
}

body.site-body .site-map-berth {
  position: absolute;
  right: 16%;
  top: 28%;
  min-width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #16b9ff 0%, #6ed6ff 100%);
  color: #03111c;
  font-weight: 800;
  box-shadow: 0 18px 30px rgba(22, 185, 255, 0.25);
}

body.site-body .site-mockup-info {
  padding-top: 18px;
  display: grid;
  gap: 8px;
}

body.site-body .muted,
body.site-body .feature-card span,
body.site-body .glass-card span {
  color: rgba(217, 229, 242, 0.74);
  line-height: 1.7;
}

body.site-body .feature-card strong,
body.site-body .glass-card strong {
  display: block;
  margin-bottom: 10px;
  color: #f5f9ff;
  font-size: 1.18rem;
  line-height: 1.25;
}

/* STRIP */

body.site-body .site-strip {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

body.site-body .site-strip-text {
  margin: 0;
  text-align: center;
  color: rgba(220, 232, 246, 0.82);
  font-size: 1rem;
}

/* SECTIONS */

body.site-body .site-section {
  padding: 92px 0;
}

body.site-body .site-section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
}

body.site-body .site-section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

body.site-body .site-section-heading h2,
body.site-body .site-cta h2 {
  margin: 18px 0 14px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: #f5f9ff;
  text-wrap: balance;
}

/* BENEFICIOS · CARDS */

body.site-body .site-card-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

body.site-body .site-card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.site-body .site-card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.site-body .site-card-grid > .glass-card,
body.site-body .site-card-grid > .feature-card,
body.site-body .site-feature-item,
body.site-body .site-step,
body.site-body .site-price-card,
body.site-body .site-contact-grid > .glass-card {
  padding: 28px 30px;
}

body.site-body .site-card-grid article,
body.site-body .feature-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

body.site-body .site-card-grid strong,
body.site-body .feature-card strong {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.2;
}

body.site-body .site-card-grid span,
body.site-body .feature-card span {
  font-size: 16px;
  line-height: 1.68;
}

body.site-body #beneficios .glass-card {
  min-height: 165px;
}

body.site-body .site-feature-list {
  display: grid;
  gap: 18px;
}

/* STEPS */

body.site-body .site-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.site-body .site-step-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22, 185, 255, 0.22), rgba(95, 208, 255, 0.08));
  border: 1px solid rgba(95, 208, 255, 0.16);
  color: #88deff;
  font-size: 1.08rem;
  font-weight: 800;
}

/* PRICING */

body.site-body .site-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

body.site-body .site-price-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

body.site-body .site-price-card.site-price-featured {
  transform: translateY(-10px);
  border-color: rgba(22, 185, 255, 0.24);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(22, 185, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.site-body .site-price {
  margin: 10px 0 18px;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
}

body.site-body .site-price span {
  font-size: 1rem;
  color: rgba(217, 229, 242, 0.72);
  font-weight: 600;
  margin-left: 4px;
}

body.site-body .site-price-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

body.site-body .site-price-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(224, 234, 246, 0.86);
}

body.site-body .site-price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #13d0ff 0%, #48b2ff 100%);
  box-shadow: 0 0 12px rgba(19, 208, 255, 0.28);
}

body.site-body .full {
  width: 100%;
  margin-top: auto;
}

/* CTA FINAL */

body.site-body .site-cta {
  text-align: center;
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
}

body.site-body .site-cta h2 {
  margin-bottom: 20px;
}

body.site-body .site-cta .lead {
  margin: 0 auto 30px auto;
  max-width: 640px;
}

body.site-body .site-cta .site-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* CONTACT */

body.site-body .site-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

body.site-body textarea,
body.site-body input,
body.site-body select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.045);
  color: #f0f6ff;
  padding: 16px 18px;
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.site-body textarea::placeholder,
body.site-body input::placeholder {
  color: rgba(214, 224, 237, 0.42);
}

body.site-body textarea:focus,
body.site-body input:focus,
body.site-body select:focus {
  outline: none;
  border-color: rgba(22, 185, 255, 0.36);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(22, 185, 255, 0.1);
}

body.site-body .stack {
  display: grid;
  gap: 16px;
}

body.site-body .status {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(223, 234, 245, 0.84);
  line-height: 1.65;
}

/* COOKIE BANNER */

body.site-body .cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 600px;
  margin: auto;
  background: #0f1724;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

body.site-body .cookie-banner p {
  font-size: 14px;
  margin: 0;
  color: #cbd5e1;
}

body.site-body .cookie-banner button {
  background: #2563eb;
  border: none;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

body.site-body .cookie-banner.hidden {
  display: none;
}

/* FOOTER */

body.site-body .site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.site-body .site-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

body.site-body .site-footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

body.site-body .site-footer-links a {
  color: rgba(218, 230, 244, 0.72);
}

body.site-body .site-footer-links a:hover {
  color: #ffffff;
}

/* =========================================================
   NEREUS · LEGAL
========================================================= */

body.legal-body {
  background: linear-gradient(180deg, #04111d 0%, #071522 45%, #091b2c 100%);
  color: #eaf2ff;
}

body.legal-body .container {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

body.legal-body .legal-container {
  padding: 64px 0 80px;
}

body.legal-body h1 {
  margin: 0 0 24px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #f5f9ff;
}

body.legal-body h2 {
  margin: 38px 0 14px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.15;
  color: #f5f9ff;
}

body.legal-body h3 {
  margin: 24px 0 10px;
  font-size: 1.1rem;
  line-height: 1.2;
  color: #f5f9ff;
}

body.legal-body p,
body.legal-body li {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(220, 232, 246, 0.84);
}

body.legal-body p {
  margin: 0 0 16px;
}

body.legal-body ul {
  margin: 0 0 18px 0;
  padding-left: 20px;
}

body.legal-body li {
  margin-bottom: 8px;
}

body.legal-body strong {
  color: #ffffff;
}

body.legal-body a {
  color: #7fdcff;
  text-decoration: none;
}

body.legal-body a:hover {
  text-decoration: underline;
}

/* =========================================================
   RESPONSIVE GENERAL
========================================================= */

@media (max-width: 1080px) {
  body.site-body .site-hero-grid,
  body.site-body .site-contact-grid,
  body.site-body .site-pricing,
  body.site-body .site-steps,
  body.site-body .site-card-grid-3,
  body.site-body .site-card-grid-2 {
    grid-template-columns: 1fr;
  }

  body.site-body .site-price-card.site-price-featured {
    transform: none;
  }

  body.site-body .site-hero {
    padding-top: 72px;
  }

  body.site-body .site-menu {
    display: none;
  }

  body.site-body .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  body.site-body .site-section,
  body.site-body .site-hero {
    padding: 72px 0;
  }

  body.site-body .site-mockup-map {
    min-height: 300px;
  }

  body.site-body .site-cta {
    padding: 26px;
  }
}

@media (max-width: 760px) {
  body.site-body .container,
  body.auth-body .container,
  body.admin-body .container {
    width: min(1100px, calc(100% - 20px));
  }

  body.site-body .site-header {
    padding: 10px 0;
  }

  body.site-body .site-nav {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.site-body .site-nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  body.site-body .site-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  body.site-body .brand-logo {
    height: 30px;
  }

  body.site-body .brand-link {
    gap: 12px;
    font-size: 1rem;
  }

  body.site-body .site-section {
    padding: 58px 0;
  }

  body.site-body .site-hero-actions {
    flex-direction: column;
  }

  body.site-body .site-btn,
  body.site-body .btn-primary,
  body.site-body .btn-secondary,
  body.site-body .btn-nav {
    width: 100%;
  }

  body.site-body .site-mockup-map {
    min-height: 280px;
  }

  body.site-body .site-nav-actions .lang-switcher,
  body.site-body .site-nav-actions .btn-nav-ghost,
  body.site-body .site-nav-actions .btn-nav-primary {
    display: none;
  }

  body.site-body .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  body.site-body .mobile-menu-inner .btn-nav {
    width: 100%;
  }

  body.site-body .site-card-grid > .glass-card,
  body.site-body .site-card-grid > .feature-card,
  body.site-body .site-feature-item,
  body.site-body .site-step,
  body.site-body .site-price-card,
  body.site-body .site-contact-grid > .glass-card {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  body.auth-body .auth-card {
    padding: 20px;
    border-radius: 22px;
  }

  body.auth-body .lead,
  body.admin-body .lead {
    font-size: 16px;
  }

  body.admin-body .table th,
  body.admin-body .table td {
    font-size: 13px;
    padding: 10px 6px;
  }
}

@media (max-width: 560px) {
  body.site-body .container {
    width: min(100% - 24px, 1180px);
  }

  body.site-body .site-hero-copy h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  body.site-body .lead {
    font-size: 1rem;
  }

  body.site-body .site-hero-actions,
  body.site-body .site-trust-row,
  body.site-body .site-footer-row,
  body.site-body .site-footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  body.site-body .site-mockup,
  body.site-body .feature-card,
  body.site-body .site-feature-item,
  body.site-body .site-step,
  body.site-body .site-price-card,
  body.site-body .site-contact-grid > .glass-card,
  body.site-body .site-card-grid > .glass-card {
    padding: 20px;
    border-radius: 22px;
  }

  body.site-body .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: stretch;
  }
}
/* =========================================================
   NEREUS · HERO CAROUSEL
========================================================= */

body.site-body .site-carousel {
  padding: 22px;
  overflow: hidden;
}

body.site-body .site-carousel-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

body.site-body .site-carousel-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

body.site-body .site-carousel-stage {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 70% 24%, rgba(25, 201, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #0a2337 0%, #0b1c2d 100%);
  min-height: 520px;
}

body.site-body .site-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
}

body.site-body .site-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px 18px 56px;
  margin: 0;
}

body.site-body .site-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

body.site-body .site-carousel-slide img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
}

body.site-body .site-carousel-slide figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 20, 33, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #dcecff;
  font-size: 14px;
  font-weight: 700;
}

body.site-body .site-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(7, 21, 34, 0.72);
  color: #eff7ff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.site-body .site-carousel-btn.prev {
  left: 14px;
}

body.site-body .site-carousel-btn.next {
  right: 14px;
}

body.site-body .site-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 8px;
}

body.site-body .site-carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

body.site-body .site-carousel-dots button.is-active {
  background: #5fd0ff;
  box-shadow: 0 0 14px rgba(95, 208, 255, 0.45);
}

@media (max-width: 820px) {
  body.site-body .site-carousel-stage,
  body.site-body .site-carousel-track {
    min-height: 420px;
  }

  body.site-body .site-carousel-slide img {
    max-height: 360px;
  }
}

@media (max-width: 560px) {
  body.site-body .site-carousel {
    padding: 20px;
    border-radius: 22px;
  }

  body.site-body .site-carousel-stage,
  body.site-body .site-carousel-track {
    min-height: 360px;
  }

  body.site-body .site-carousel-slide {
    padding: 14px 14px 52px;
  }

  body.site-body .site-carousel-slide img {
    max-height: 300px;
  }

  body.site-body .site-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
}
