/* Tabla comparativa */
.fc-comparison-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fc-comparison-section h2 {
  text-align: center;
  margin-bottom: 0.75rem;
}

.fc-comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin: 2rem 0;
  background: var(--bg-tertiary);
}

.fc-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.fc-comparison-table thead tr {
  background: rgba(255, 255, 255, 0.03);
}

.fc-comparison-table th,
.fc-comparison-table td {
  padding: 1rem 1.1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.fc-feature-col {
  text-align: left !important;
  color: var(--text-secondary) !important;
  min-width: 200px;
}

.fc-col-alone,
.fc-col-unknown {
  color: var(--text-muted);
}

.fc-highlight-col {
  background: rgba(230, 57, 70, 0.06);
  border-left: 1px solid rgba(230, 57, 70, 0.25);
  border-right: 1px solid rgba(230, 57, 70, 0.25);
}

.fc-highlight-col th {
  background: rgba(230, 57, 70, 0.12);
  color: var(--text-primary);
}

.fc-col-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  margin-bottom: 0.35rem;
}

.fc-cmp-yes {
  color: #22c55e;
  font-weight: 500;
}

.fc-cmp-no {
  color: var(--text-muted);
}

.fc-cmp-partial {
  color: var(--gold);
}

.fc-comparison-table tbody tr:hover {
  background: var(--bg-glass);
}

.fc-comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.fc-comparison-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Mapa — sección premium */
.fc-map-section {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.fc-map-section-bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 55% at 50% -15%, rgba(230, 57, 70, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 100% 80%, rgba(212, 168, 67, 0.08) 0%, transparent 50%);
  opacity: 1;
}

.fc-map-intro {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.fc-map-heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  color: var(--text-primary);
}

.fc-map-lead {
  max-width: 560px;
}

.fc-map-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.25rem auto 0;
  max-width: 880px;
}

@media (max-width: 768px) {
  .fc-map-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

.fc-map-stat {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1rem 1.1rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.fc-map-stat:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.fc-map-stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fc-map-stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fc-map-shell {
  position: relative;
  z-index: 1;
  margin: 2.5rem auto 0;
  max-width: 1160px;
  padding: 1px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(230, 57, 70, 0.45) 0%,
    rgba(212, 168, 67, 0.28) 42%,
    rgba(255, 255, 255, 0.12) 100%
  );
  box-shadow: var(--shadow-md), 0 0 80px rgba(230, 57, 70, 0.08);
}

.fc-map-shell-inner {
  border-radius: calc(var(--radius-xl) - 1px);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#operationsMap {
  width: 100%;
  height: clamp(420px, 58vw, 560px);
  background: var(--bg-tertiary);
}

.fc-map-shell .leaflet-container {
  background: var(--bg-tertiary);
  font-family: var(--font-sans);
}

.fc-map-shell .leaflet-bar {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.fc-map-shell .leaflet-bar a {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border-bottom-color: var(--border) !important;
  line-height: 28px;
}

.fc-map-shell .leaflet-bar a:hover {
  background: var(--bg-tertiary) !important;
  color: var(--accent) !important;
}

.fc-map-shell .leaflet-bar a:last-child {
  border-bottom: none !important;
}

.fc-map-shell .leaflet-control-attribution {
  background: rgba(9, 9, 11, 0.85);
  color: var(--text-muted);
  font-size: 0.65rem;
  border-radius: var(--radius-sm) 0 0 0;
  border: none;
  max-width: 70%;
}

.fc-map-shell .leaflet-control-attribution a {
  color: var(--text-secondary);
}

.fc-map-shell .leaflet-div-icon.fc-map-marker {
  background: transparent !important;
  border: none !important;
}

/* MarkerCluster — acento marca (reemplaza verdes por defecto) */
.fc-map-shell .marker-cluster-small,
.fc-map-shell .marker-cluster-medium,
.fc-map-shell .marker-cluster-large {
  background-color: rgba(230, 57, 70, 0.28);
}

.fc-map-shell .marker-cluster-small div,
.fc-map-shell .marker-cluster-medium div,
.fc-map-shell .marker-cluster-large div {
  background-color: rgba(230, 57, 70, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-sans);
}

.fc-map-shell .marker-cluster {
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.35);
}

.fc-map-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-sizing: border-box;
}

.fc-map-marker:hover {
  transform: scale(1.35);
  z-index: 900 !important;
}

.fc-map-marker-china {
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.35), 0 0 14px var(--accent-glow);
}

.fc-map-marker-latam {
  background: linear-gradient(145deg, #e8c86a 0%, var(--gold) 100%);
  box-shadow: 0 0 0 2px rgba(212, 168, 67, 0.35), 0 0 12px var(--shadow-gold);
}

.fc-map-marker-usa {
  background: linear-gradient(145deg, #60a5fa 0%, #2563eb 100%);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35), 0 0 14px rgba(37, 99, 235, 0.35);
}

.fc-map-shell .leaflet-popup-content-wrapper {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0;
}

.fc-map-shell .leaflet-popup-content {
  margin: 0.75rem 1rem !important;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.45;
}

.fc-map-shell .leaflet-popup-tip {
  background: var(--bg-tertiary);
  box-shadow: none;
  border: 1px solid var(--border);
  border-top: none;
  border-left: none;
}

.fc-popup-chip {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.28);
  padding: 0.2rem 0.5rem;
  border-radius: 100px;
  margin-bottom: 0.5rem;
}

.fc-popup-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
  line-height: 1.35;
}

.fc-popup-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.fc-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.fc-map-fallback code {
  font-size: 0.75rem;
  background: var(--bg-secondary);
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.fc-map-legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: auto;
  max-width: min(280px, calc(100% - 5rem));
  background: rgba(17, 17, 19, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.fc-map-legend-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.15rem;
}

.fc-legend-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.fc-legend-note {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.fc-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.fc-legend-china {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.fc-legend-latam {
  background: linear-gradient(145deg, #e8c86a, var(--gold));
}

.fc-legend-usa {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.45);
}

@media (max-width: 576px) {
  .fc-map-legend {
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
    bottom: 0.5rem;
    padding: 0.75rem 0.9rem;
  }
}

/* Toasts prueba social */
#socialProofContainer {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}

@media (max-width: 576px) {
  #socialProofContainer {
    left: 1rem;
    right: 1rem;
    bottom: 5rem;
  }
}

.fc-social-proof-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  max-width: 340px;
  box-shadow: var(--shadow-md);
  pointer-events: auto;
  animation: fc-toast-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  backdrop-filter: blur(12px);
}

.fc-toast-flag {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.fc-toast-body {
  flex: 1;
  min-width: 0;
}

.fc-toast-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.fc-toast-action {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.fc-toast-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

@keyframes fc-toast-in {
  from {
    transform: translateX(-110%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.fc-toast-hiding {
  animation: fc-toast-out 0.35s ease forwards;
}

@keyframes fc-toast-out {
  to {
    transform: translateX(-110%);
    opacity: 0;
  }
}
