/* ==========================================================================
   NAVICIRRUS · ESTILO NÁUTICO OCEÁNICO DE ALTO CONTRASTE (DEEP SEA NAVY)
   Inspirado en la atmósfera nocturna del puente de mando y plotters profesionales:
   #060E18 (Navy Profundo), #0B1B2F (Azul Abisal), #10243E (Superficie Card),
   Acentos #0284C7 (Ocean Blue), #38BDF8 (Cyan Náutico) y #22D3EE (Aqua Glow)
   ========================================================================== */

:root {
  --navy-950: #060e18;
  --navy-900: #0b1b2f;
  --navy-850: #10243e;
  --navy-800: #162e4e;
  --navy-700: #1e3d67;
  
  --ocean-blue: #0284c7;
  --ocean-light: #38bdf8;
  --marine-teal: #06b6d4;
  --sea-foam: #e0f2fe;
  
  --accent-aqua: #22d3ee;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  
  --text-main: #f0f6fc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --surface-card: rgba(16, 36, 62, 0.78);
  --surface-card-hover: rgba(22, 46, 78, 0.92);
  --surface-border: rgba(56, 189, 248, 0.18);
  --surface-border-hover: rgba(56, 189, 248, 0.48);
  --glow-ocean: rgba(2, 132, 199, 0.28);
  --glow-cyan: rgba(34, 211, 238, 0.35);
  
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-dark: 0 15px 35px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px var(--glow-ocean);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--navy-950);
  color: var(--text-main);
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: 
    radial-gradient(ellipse at 50% -10%, #16365f 0%, transparent 60%),
    radial-gradient(ellipse at 90% 40%, rgba(2, 132, 199, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    var(--navy-950);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ocean-light);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: var(--accent-aqua);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN (LOGO VISIBLE Y DESTACADO)
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 27, 47, 0.92);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}

.brand-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--ocean-light);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
  flex-shrink: 0;
}

.brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo span.suite-label {
  color: var(--ocean-light);
  font-weight: 500;
  font-size: 0.85em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-links a:hover {
  color: var(--ocean-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-pill-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ocean-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lang-pill-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.btn-nav {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35) 0%, rgba(6, 182, 212, 0.35) 100%);
  border: 1px solid var(--ocean-light);
  padding: 0.55rem 1.35rem !important;
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  transition: var(--transition-smooth);
}

.btn-nav:hover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.6) 0%, rgba(6, 182, 212, 0.6) 100%);
  box-shadow: 0 0 18px var(--glow-ocean);
  transform: translateY(-1px);
}

/* ==========================================================================
   HERO SECTION (GIF PULSANTE ARRIBA BIEN VISIBLE)
   ========================================================================== */
.hero {
  padding: 4.5rem 0 4rem;
  text-align: center;
  position: relative;
}

/* Gran insignia GIF animada en el Hero: estirada horizontalmente y estrecha verticalmente (banner panorámico) */
.hero-gif-badge {
  display: inline-block;
  width: clamp(360px, 92vw, 780px);
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 45px var(--glow-ocean);
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: radial-gradient(circle at center, #0a1f3d 0%, #030814 100%);
  transition: var(--transition-smooth);
}

.hero-gif-badge:hover {
  transform: scale(1.015);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.85), 0 0 55px var(--glow-cyan);
  border-color: rgba(56, 189, 248, 0.75);
}

.hero-gif-badge img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 50px;
  color: var(--ocean-light);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--ocean-light);
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  max-width: 960px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.03em;
}

.hero h1 .text-gradient {
  background: linear-gradient(135deg, #ffffff 15%, var(--ocean-light) 65%, var(--accent-aqua) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(2, 132, 199, 0.55);
}

.btn-secondary {
  background: rgba(16, 36, 62, 0.8);
  color: var(--text-main);
  border: 1px solid var(--surface-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
  background: rgba(22, 46, 78, 0.95);
  border-color: var(--ocean-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-microsoft {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  color: #ffffff;
  border: 1px solid rgba(96, 205, 255, 0.45);
  box-shadow: 0 4px 20px rgba(0, 120, 212, 0.35);
}

.btn-microsoft:hover {
  background: linear-gradient(135deg, #1084e0 0%, #006bbd 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 120, 212, 0.55);
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Showcase Principal */
.hero-showcase {
  max-width: 1040px;
  margin: 0 auto 3rem;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3) 0%, rgba(2, 132, 199, 0.1) 50%, rgba(6, 182, 212, 0.3) 100%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(2, 132, 199, 0.2);
}

.hero-showcase-inner {
  border-radius: calc(var(--radius-lg) - 6px);
  overflow: hidden;
  position: relative;
  background: #000;
}

.hero-showcase-img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-showcase-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(to top, rgba(6, 14, 24, 0.95) 0%, rgba(6, 14, 24, 0.7) 70%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-showcase-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.hero-showcase-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-showcase-tags span {
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--sea-foam);
  font-weight: 500;
}

/* Tiras de confianza */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.trust-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.trust-pill svg {
  width: 18px;
  height: 18px;
  stroke: var(--ocean-light);
  flex-shrink: 0;
}

/* ==========================================================================
   SECCIONES Y ENCABEZADOS NÁUTICOS
   ========================================================================== */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   APLICACIONES PRINCIPALES (GRID CENTRADO DE 2 COLUMNAS AL 50%)
   ========================================================================== */
.apps-section {
  padding: 5rem 0 4rem;
}

.apps-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

.app-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-dark);
  padding: 2.25rem;
}

.app-card:hover {
  background: var(--surface-card-hover);
  border-color: var(--surface-border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.app-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-logo-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.app-title-group h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.app-title-group span {
  font-size: 0.88rem;
  color: var(--ocean-light);
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

.status-pill-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill-available {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.pill-soon {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.app-lead-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.app-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.app-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.94rem;
  color: var(--text-main);
  line-height: 1.5;
}

.app-features-list .check-icon {
  color: var(--accent-aqua);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   CARRUSEL DINÁMICO DE FOTOS (SLIDESHOW)
   ========================================================================== */
.app-carousel-frame {
  margin-top: auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1.5px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 1.5rem;
  position: relative;
}

/* Alturas ajustables para que AnchorGuard se vea más compacta y proporcionada */
.carousel-navicirrus {
  height: 270px;
}

.carousel-anchorguard {
  height: 220px; /* AnchorGuard más pequeña como pidió el usuario */
}

.carousel-slides-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Pie de foto en el carrusel */
.carousel-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(6, 14, 24, 0.92) 0%, rgba(6, 14, 24, 0.6) 80%, transparent 100%);
  padding: 10px 14px 6px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-caption-text {
  font-size: 0.78rem;
  color: var(--sea-foam);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active {
  background: var(--ocean-light);
  box-shadow: 0 0 8px var(--ocean-light);
  width: 16px;
  border-radius: 4px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(6, 14, 24, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: var(--transition-smooth);
  opacity: 0;
}

.app-carousel-frame:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: var(--ocean-blue);
  color: #fff;
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.app-actions-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

/* Banner secundario ToSailCirrus */
.tosail-banner-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-dark);
  transition: var(--transition-smooth);
}

.tosail-banner-card:hover {
  background: var(--surface-card-hover);
  border-color: var(--surface-border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.tosail-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.tosail-left img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.tosail-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.tosail-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==========================================================================
   SECCIÓN SOBRE NOSOTROS (STORYTELLING NAVICIRRUS & CARTAS NAVMAYORAL)
   ========================================================================== */
.about-section {
  padding: 5rem 0;
  position: relative;
}

.about-card-narrative {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 3.25rem;
  box-shadow: var(--shadow-dark);
}

.about-hero-badge {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  flex-wrap: wrap;
}

.about-title-block h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.about-title-block .subtitle {
  font-size: 1.05rem;
  color: var(--ocean-light);
  font-weight: 500;
  margin-top: 4px;
}

.about-grid-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.about-text-block h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sea-foam);
  margin-bottom: 1rem;
}

.about-text-block p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-bullets-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
  position: relative;
  padding-left: 20px;
}

.about-bullets-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--accent-aqua);
  font-weight: bold;
  font-size: 1.2rem;
}

.about-bullets-list strong {
  color: #ffffff;
}

/* ==========================================================================
   CENTRO DE MANUALES INTERACTIVO
   ========================================================================== */
.manuals-section {
  padding: 5rem 0;
}

.manuals-controls-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-dark);
}

.segmented-control-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.segmented-tabs {
  display: inline-flex;
  background: rgba(6, 14, 24, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.15);
  padding: 4px;
  border-radius: var(--radius-sm);
  gap: 2px;
}

.segmented-tab {
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.segmented-tab.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
}

.manuals-toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  background: rgba(6, 14, 24, 0.7);
  font-size: 0.92rem;
  color: #ffffff;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--ocean-light);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.3);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Layout del Lector */
.manual-reader-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

.manual-toc-sidebar {
  position: sticky;
  top: 94px;
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: var(--shadow-dark);
}

.manual-toc-sidebar h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--ocean-light);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.35;
  transition: var(--transition-smooth);
}

.toc-link:hover, .toc-link.active {
  background: rgba(2, 132, 199, 0.25);
  color: #ffffff;
  font-weight: 600;
}

.manual-content-view {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-dark);
  overflow-wrap: break-word;
}

.manual-content-view .cover {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.4) 0%, rgba(6, 182, 212, 0.2) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

.manual-content-view .cover .brand {
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ocean-light);
  font-weight: 700;
}

.manual-content-view .cover h1 {
  font-size: 2.1rem;
  margin: 8px 0;
  line-height: 1.2;
  color: #ffffff;
}

.manual-content-view .box {
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.manual-content-view .box.warn {
  background: rgba(245, 158, 11, 0.12);
  border-left: 4px solid var(--accent-amber);
  color: #fde68a;
}

.manual-content-view .box.tip {
  background: rgba(16, 185, 129, 0.12);
  border-left: 4px solid var(--accent-emerald);
  color: #a7f3d0;
}

.manual-content-view h2 {
  font-size: 1.45rem;
  color: #ffffff;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
}

.manual-content-view h2 .n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.manual-content-view .shot {
  margin: 1.5rem 0 2rem;
}

.manual-content-view .shot img {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.manual-content-view ul, .manual-content-view ol {
  padding-left: 24px;
  margin-bottom: 1.5rem;
}

.manual-content-view li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.manual-content-view li strong {
  color: #ffffff;
}

/* ==========================================================================
   AVISO LEGAL TIPO DOCUMENTO WORD / OFICIAL (SIN RECUADRO DE PUNTOS)
   ========================================================================== */
.legal-section {
  padding: 5rem 0;
}

.word-doc-sheet {
  background: #ffffff;
  color: #1e293b;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 6px;
  padding: 56px 64px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(2, 132, 199, 0.25);
  border: 1px solid #cbd5e1;
  position: relative;
}

.word-doc-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0284c7, #22d3ee);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.doc-header-block {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 32px;
}

.doc-header-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.doc-header-title h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.doc-badge-version {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.doc-body-content {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #334155;
}

.doc-body-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 28px 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #cbd5e1;
}

.doc-body-content p {
  margin-bottom: 16px;
  text-align: justify;
}

.doc-credits-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-credits-list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.94rem;
  line-height: 1.5;
}

.doc-credits-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #0284c7;
  font-weight: bold;
}

.doc-credits-list strong {
  color: #0f172a;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  background: rgba(6, 14, 24, 0.95);
  padding: 3.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
}
.footer-links a:hover {
  color: var(--ocean-light);
}

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Modal de idiomas */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--navy-900);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  max-width: 460px;
  width: 100%;
  padding: 28px;
  box-shadow: var(--shadow-glow);
  text-align: center;
  color: #ffffff;
}

.modal-box h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #ffffff;
}

.modal-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .apps-dual-grid {
    grid-template-columns: 1fr;
  }
  .about-grid-content {
    grid-template-columns: 1fr;
  }
  .manual-reader-layout {
    grid-template-columns: 1fr;
  }
  .manual-toc-sidebar {
    position: static;
    max-height: 300px;
  }
  .tosail-banner-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 3rem;
  }
  .app-card {
    padding: 1.5rem;
  }
  .word-doc-sheet {
    padding: 32px 20px;
  }
  .about-card-narrative {
    padding: 1.75rem;
  }
  .manual-content-view {
    padding: 1.75rem 1.25rem;
  }
  .hero-showcase-caption {
    position: static;
  }
  .hero-gif-badge {
    width: 260px;
  }
}


/* ============================================================================
   INTEGRACIÓN MIXTA: SELECTOR 5 IDIOMAS, CARRUSELES, RADAR AIS, MANUALES Y LEGAL OSCURO
   ============================================================================ */

.dark-lang-switcher {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.dark-lang-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dark-lang-btn.active {
  background: var(--ocean-light);
  color: #04101f;
}

.btn-nav {
  white-space: nowrap;
}

.apps-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.apps-trio-grid .app-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Carrusel horizontal deslizante dentro de cada app */
.app-gallery-wrap {
  margin: 1.25rem 0;
}

.gallery-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #040d1a;
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.gallery-viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-slide:hover img {
  transform: scale(1.03);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(6, 14, 24, 0.78);
  color: #ffffff;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.gallery-arrow:hover {
  background: var(--ocean-light);
  color: #04101f;
}

.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }

.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.gallery-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.gallery-dots {
  display: inline-flex;
  gap: 5px;
  flex-shrink: 0;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  width: 18px;
  border-radius: 999px;
  background: var(--ocean-light);
}

/* Botones / Insignias de tiendas */
.app-stores-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(56, 189, 248, 0.14);
}

.store-pill-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Ingeniería Cartográfica & Radar AIS */
.engineering-section {
  padding: 5rem 0;
}

.eng-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.eng-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.eng-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ocean-light);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
}

.eng-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.eng-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.ais-instrument-panel {
  background: radial-gradient(circle at 30% 20%, #0d213f 0%, #050d1a 78%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.ais-instrument-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.5rem;
}

.ais-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ocean-light);
}

.ais-range-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 9999px;
}

.ais-instrument-grid {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: 2rem;
  align-items: center;
}

.ais-radar-stage {
  display: flex;
  justify-content: center;
}

#ais-radar-canvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  cursor: pointer;
  background: radial-gradient(circle, #07192f 0%, #030b16 100%);
  box-shadow: inset 0 0 36px rgba(56, 189, 248, 0.14), 0 0 24px rgba(0, 0, 0, 0.45);
}

.ais-telemetry-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ais-panel-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 700;
}

.ais-target-card {
  background: rgba(12, 27, 51, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
}

.ais-target-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ais-target-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.ais-target-risk {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.ais-target-risk.safe {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.ais-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.ais-metric {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px;
}

.metric-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.metric-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ocean-light);
}

.ais-target-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ais-target-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.86rem;
}

.ais-target-row:hover,
.ais-target-row.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.38);
}

.ais-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Sobre nosotros simplificado oscuro */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.about-block h3 {
  font-size: 1.15rem;
  color: var(--ocean-light);
  margin-bottom: 0.75rem;
}

.about-block p {
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  font-size: 0.96rem;
}

/* Manuales oscuros */
.manuals-dark-shell {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.manuals-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 22px;
  background: rgba(6, 14, 24, 0.65);
  border-bottom: 1px solid var(--surface-border);
}

.manuals-app-tabs,
.manuals-format-tabs {
  display: inline-flex;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  padding: 4px;
  border-radius: 9999px;
}

.manual-app-tab,
.manual-format-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 9999px;
  cursor: pointer;
}

.manual-app-tab.active,
.manual-format-tab.active {
  background: var(--ocean-light);
  color: #04101f;
}

.manuals-pdf-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pdf-note-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.manuals-search-bar {
  padding: 14px 22px;
  border-bottom: 1px solid var(--surface-border);
}

#manual-search-input {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(6, 14, 24, 0.7);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
}

.manuals-workspace {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 440px;
}

.manuals-toc {
  border-right: 1px solid var(--surface-border);
  padding: 18px;
  background: rgba(6, 14, 24, 0.45);
  max-height: 660px;
  overflow-y: auto;
}

.toc-heading {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ocean-light);
  margin-bottom: 10px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  display: block;
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: 8px;
}

.toc-list a:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--ocean-light);
}

.manuals-content {
  padding: 26px 32px;
  max-height: 660px;
  overflow-y: auto;
}

.manual-sec-block {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}

.manual-sec-block h3 {
  font-size: 1.3rem;
  color: var(--ocean-light);
  margin-bottom: 12px;
}

.manual-sec-block p,
.manual-sec-block li {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.manual-sec-block ul,
.manual-sec-block ol {
  padding-left: 20px;
  margin-bottom: 10px;
}

.manual-sec-block img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  margin: 12px 0;
  display: block;
}

.manual-sec-block .box,
.manual-sec-block .note,
.manual-sec-block .warn {
  background: rgba(6, 14, 24, 0.65);
  border-left: 3px solid var(--ocean-light);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
}

/* Legal & Privacidad OSCURO (cero fondos blancos) */
.legal-section {
  padding: 5rem 0;
}

.legal-dark-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.legal-dark-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.legal-dark-card h3 {
  font-size: 1.25rem;
  color: var(--ocean-light);
  margin-bottom: 1rem;
}

.legal-dark-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

.legal-dark-custom {
  margin-top: 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(6, 14, 24, 0.7);
  border: 1px dashed rgba(56, 189, 248, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  color: var(--text-main);
}

/* Lightbox oscuro */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 10, 20, 0.92);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-figure {
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 76vh;
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  object-fit: contain;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f8fafc;
  font-size: 0.94rem;
}

.lightbox-counter {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--ocean-light);
  background: rgba(56, 189, 248, 0.14);
  padding: 3px 10px;
  border-radius: 9999px;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(6, 14, 24, 0.85);
  color: #ffffff;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-close { top: 20px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.dark-footer {
  border-top: 1px solid rgba(56, 189, 248, 0.14);
  padding: 2.25rem 0;
  background: #040a14;
  text-align: center;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.footer-credits {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .apps-trio-grid,
  .eng-cards-grid,
  .ais-instrument-grid,
  .about-grid,
  .legal-dark-grid,
  .manuals-workspace {
    grid-template-columns: 1fr;
  }
  .manuals-toc {
    border-right: none;
    border-bottom: 1px solid var(--surface-border);
    max-height: 220px;
  }
}

@media (max-width: 600px) {
  .ais-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Cobertura Mundial en Vivo */
.coverage-panel {
  margin: 24px 0 28px;
  padding: 22px 24px;
  border-radius: 18px;
  background: rgba(10, 22, 38, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.coverage-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.coverage-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.coverage-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #f8fafc;
}

.coverage-total-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.coverage-sub {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: #94a3b8;
}

.coverage-toggle-btn {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.coverage-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 31, 52, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.coverage-chip-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
}

.coverage-chip-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
}

.coverage-map-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.cov-quick-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cov-quick-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(15, 31, 52, 0.9);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cov-quick-btn:hover,
.cov-quick-btn.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
}

.cov-world-map {
  width: 100%;
  height: 460px;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #0c2340 0%, #050d1a 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.coverage-map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.cov-dot-blue {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #10b981;
  border: 1px solid #065f46;
  margin-right: 6px;
  vertical-align: middle;
}

.cov-hover-info {
  color: #38bdf8;
  font-weight: 600;
}
