/* System Design: Pulse Networks Premium Interactive Guide - Mobile First (BCD Light Grey Theme) */

:root {
  --rojo: #D64545;
  --rojo-bg: #fbeaea;
  --naranja: #E08A3C;
  --naranja-bg: #fbf0e4;
  --amarillo: #E6B800;
  --amarillo-bg: #fbf6e0;
  --verde: #3E9B62;
  --verde-bg: #e8f4ee;
  --azul: #3B7DD8;
  --azul-bg: #e9f1fc;
  
  --bg-primary: #f4f5f7; /* Grisáceo BCD */
  --bg-secondary: #eef0f3; /* Gris claro de fondo/botones */
  --bg-card: #ffffff; /* Blanco puro de panel */
  --border-card: #e4e7ec; /* Borde BCD */
  
  --color-primary: var(--azul); /* Azul BCD */
  --color-primary-glow: var(--azul-bg);
  --color-secondary: #2f3a4a; /* Accent BCD (Gris oscuro azulado) */
  --color-secondary-glow: rgba(47, 58, 74, 0.06);
  
  --text-main: #1d2026; /* Negro/Tinta principal BCD */
  --text-muted: #5b626e; /* Gris medio secundario BCD */
  --text-dark: #1d2026;
  --text-muted-light: #878f9c; /* Gris claro BCD */
  
  --success: var(--verde);
  --error: var(--rojo);
  --warning: var(--naranja);
  --info: var(--azul);
  
  --font-title: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  --transition-smooth: all 0.15s ease;
  --shadow: 0 1px 2px rgba(20,24,33,.05), 0 2px 8px rgba(20,24,33,.04);
  --radius: 10px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header */
header {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-card);
  background: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.2px;
  color: var(--text-main);
}

.device-badge {
  background: var(--color-primary-glow);
  border: 1px solid rgba(59, 125, 216, 0.2);
  color: #1c4f93;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-title);
}

/* Main Container (Mobile First) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 1rem auto;
  padding: 0 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex-grow: 1;
}

@media (min-width: 992px) {
  .container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    padding: 0 2rem;
    margin: 1.5rem auto;
  }
}

/* Card Styling */
.main-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .main-card {
    padding: 24px;
  }
}

/* Welcome Screen */
.welcome-screen {
  text-align: center;
  padding: 1rem 0;
}

.welcome-screen h1 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .welcome-screen h1 {
    font-size: 2.1rem;
  }
}

.welcome-screen p {
  color: var(--text-muted);
  font-size: 13px;
  max-width: 500px;
  margin: 0 auto;
}

.product-preview-img {
  max-width: 150px;
  height: auto;
}

.start-btn {
  background: var(--color-secondary); /* Accent BCD */
  color: #FFF;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 12px;
  padding: 8px 18px;
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
  text-transform: none;
  width: 100%;
}

@media (min-width: 480px) {
  .start-btn {
    width: auto;
  }
}

.start-btn:hover {
  background: #1d2530;
  border-color: #1d2530;
}

.start-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Progress nodes */
.progress-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 5px;
}

.progress-container::before {
  content: '';
  background: var(--border-card);
  height: 2px;
  width: 98%;
  position: absolute;
  top: 50%;
  left: 1%;
  transform: translateY(-50%);
  z-index: 1;
}

.progress-bar-fill {
  background: var(--color-primary);
  height: 2px;
  position: absolute;
  top: 50%;
  left: 1%;
  transform: translateY(-50%);
  z-index: 2;
  transition: var(--transition-smooth);
  width: 0%;
}

.step-node {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 11px;
  color: var(--text-muted-light);
  position: relative;
  z-index: 3;
  transition: var(--transition-smooth);
}

@media (min-width: 768px) {
  .step-node {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

.step-node.active {
  border-color: var(--color-primary);
  color: #1c4f93;
  background: var(--color-primary-glow);
}

.step-node.completed {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #FFF;
}

.step-node .step-label {
  position: absolute;
  bottom: -20px;
  font-size: 10px;
  color: var(--text-muted-light);
  white-space: nowrap;
  font-weight: 500;
  text-transform: none;
}

.step-node.active .step-label {
  color: #1c4f93;
  font-weight: 600;
}

/* Steps content */
.wizard-steps {
  min-height: 220px;
}

.step-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.step-content.active {
  display: block;
}

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

.step-content h2 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 6px;
}

/* Instructions List styling */
.instruction-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instruction-item {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.item-num {
  background: var(--color-primary-glow);
  color: #1c4f93;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.item-text h3 {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
  color: var(--text-dark);
}

.item-text p {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.highlight-box {
  background: var(--naranja-bg);
  border: 1px solid var(--border-card);
  border-left: 3.5px solid var(--warning);
  padding: 12px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #8a5a00;
}

.highlight-box strong {
  color: #8a5a00;
}

.instruction-item.highlight-item {
  background: var(--naranja-bg);
  border-color: rgba(224, 138, 60, 0.2);
  border-left: 3.5px solid var(--warning);
}

.instruction-item.highlight-item .item-num {
  background: rgba(224, 138, 60, 0.1);
  color: #a85a10;
}

.instruction-item.highlight-item h3 {
  color: #a85a10;
}

/* Mesh Active Banner - Step 4 Success Notification */
.mesh-active-banner {
  background: var(--verde-bg);
  border: 1px solid rgba(62, 155, 98, 0.15);
  border-left: 4px solid var(--success);
  padding: 12px 14px;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.mesh-active-banner .banner-icon {
  background: var(--verde);
  color: #FFF;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

.mesh-active-banner .banner-text strong {
  color: var(--verde);
  font-size: 13px;
  display: block;
  font-family: var(--font-title);
  margin-bottom: 2px;
}

.mesh-active-banner .banner-text p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0;
}

/* Image containers */
.image-container {
  margin-top: 12px;
  text-align: center;
  background: var(--bg-primary);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-card);
}

.step-img {
  max-width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  border-radius: 6px;
}

.img-caption {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Base del Router Mockup (Capsule Shape) */
.label-mockup-wrapper {
  margin-top: 1.5rem;
  background: var(--bg-primary);
  border: 1px dashed var(--border-card);
  padding: 1rem 0.5rem;
  border-radius: var(--radius);
}

.router-base-mockup {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 84px;
  padding: 22px 26px;
  box-shadow: 
    0 8px 20px rgba(15,23,42,0.06),
    inset 0 0 0 7px #FFFFFF,
    inset 0 0 0 12px #10B981, /* Vents */
    inset 0 0 12px rgba(16, 185, 129, 0.8);
  max-width: 500px;
  margin: 0.5rem auto;
  border: 3px solid var(--border-card);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.led-glowing-vents {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 82px;
  box-shadow: inset 0 0 14px rgba(16, 185, 129, 0.9);
  pointer-events: none;
}

/* REAL STICKER LABEL */
.sticker-real {
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #94A3B8;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: monospace, Courier, sans-serif;
  font-size: 9px;
  line-height: 1.25;
  width: 100%;
  max-width: 500px;
  margin: 0.5rem auto;
  display: flex;
  gap: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
  z-index: 5;
}

.sticker-left-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #CBD5E1;
  padding-right: 6px;
  flex-shrink: 0;
  text-align: center;
}

.pulse-icon-sticker {
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 8px;
  margin-bottom: 2px;
}

.pulse-icon-sticker .line {
  width: 1px;
  height: 6px;
  background: #000;
}

.pulse-icon-sticker .dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #10B981;
}

.sticker-left-logo strong {
  font-family: var(--font-title);
  font-size: 8.5px;
  letter-spacing: 0.5px;
}

.sticker-center-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4px;
}

.specs-col p {
  margin: 0;
}

.spec-label {
  color: #475569;
}

.spec-val-bold {
  font-weight: bold;
  color: #0F172A;
}

.spec-val-highlight {
  background: #F1F5F9;
  color: #000;
  padding: 0 3px;
  border-radius: 2px;
  font-weight: bold;
  display: inline-block;
  border: 0.5px solid #94A3B8;
}

@keyframes wifiPulse {
  0% { background-color: #F1F5F9; border-color: #94A3B8; }
  100% { background-color: rgba(0, 163, 196, 0.35); border-color: var(--color-primary); box-shadow: 0 0 5px var(--color-primary-glow); }
}

.pulse-wifi-high {
  animation: wifiPulse 1.2s infinite alternate;
}

.barcode-section {
  display: flex;
  justify-content: space-between;
  border-top: 0.5px solid #E2E8F0;
  padding-top: 3px;
  font-size: 8px;
}

.barcode-item span {
  display: block;
}

.barcode-graphic {
  font-size: 8.5px;
  letter-spacing: -0.5px;
  font-weight: bold;
  margin-top: 1px;
  opacity: 0.8;
}

.sticker-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 0.5px solid #E2E8F0;
  padding-top: 3px;
}

.cert-logos {
  display: flex;
  gap: 3px;
  align-items: center;
}

.cert-bold {
  font-weight: 900;
  font-size: 7px;
  border: 0.5px solid #000;
  padding: 0 1px;
  border-radius: 1px;
  line-height: 1;
}

.cert-icon {
  font-size: 8.5px;
}

.ramatel-badge {
  display: flex;
  align-items: center;
  gap: 2px;
}

.ramatel-letter {
  border: 0.5px solid #000;
  width: 8.5px;
  height: 8.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  font-weight: bold;
  line-height: 1;
}

.ramatel-text {
  font-size: 6.5px;
}

.made-china {
  font-size: 7px;
  color: #64748B;
}

.sticker-networks-text {
  font-size: 6px;
}

.text-right {
  text-align: right;
}

/* Mobile adjustments for the Router Base Mockup and Sticker Label to prevent text wrapping */
@media (max-width: 480px) {
  .router-base-mockup {
    border-radius: 56px;
    padding: 12px 14px;
    box-shadow: 
      0 8px 20px rgba(15,23,42,0.06),
      inset 0 0 0 5px #FFFFFF,
      inset 0 0 0 8px #10B981,
      inset 0 0 8px rgba(16, 185, 129, 0.8);
  }
  
  .led-glowing-vents {
    border-radius: 54px;
    box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.9);
  }

  .sticker-real {
    padding: 8px 10px;
    font-size: 7.2px;
    gap: 4px;
  }

  .sticker-left-logo strong {
    font-size: 7px;
  }

  .sticker-networks-text {
    font-size: 4.8px;
  }

  .barcode-section {
    font-size: 6px;
  }

  .barcode-graphic {
    font-size: 7px;
  }

  .cert-bold {
    font-size: 5.5px;
  }

  .cert-icon {
    font-size: 7px;
  }

  .ramatel-letter {
    width: 7px;
    height: 7px;
    font-size: 5px;
  }

  .ramatel-text {
    font-size: 5px;
  }

  .made-china {
    font-size: 5.5px;
  }
}

/* Credentials card */
.credentials-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 0.5rem;
}

.cred-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dark);
}

.cred-row code {
  background: var(--color-primary-glow);
  color: #1c4f93;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.cred-desc {
  font-size: 11px;
  color: var(--text-muted-light);
  margin-top: 2px;
}

/* Wizard buttons */
.wizard-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow);
}

.nav-btn:hover:not(:disabled) {
  background: var(--bg-secondary);
  border-color: #cfd4dc;
}

.nav-btn.primary {
  background: var(--color-secondary); /* Accent BCD */
  color: #FFF;
  border: 1px solid var(--color-secondary);
  box-shadow: var(--shadow);
}

.nav-btn.primary:hover {
  background: #1d2530;
  border-color: #1d2530;
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* Sidebar & Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.widget {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

#led-simulator-widget:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 125, 216, 0.35), var(--shadow);
}

.widget-title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 0.85rem;
  color: var(--text-dark);
  border-left: 3px solid var(--color-primary);
  padding-left: 0.5rem;
}

/* LED Simulator widget */
.led-simulator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  padding: 0.35rem 0;
  width: 100%;
}

.dual-led-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 0.5rem;
}

.led-device-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  max-width: 120px;
}

.device-label-mini {
  font-family: var(--font-title);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  display: none; /* Ocultar etiquetas por defecto */
}

/* Ocultar el extensor por defecto */
.dual-led-container .led-device-wrapper:nth-child(2) {
  display: none;
}

/* Activar vista dual en Paso 3 */
.dual-led-container.show-dual .led-device-wrapper:nth-child(2) {
  display: flex;
}

.dual-led-container.show-dual .device-label-mini {
  display: block;
}

/* Redimensionar solo en vista dual */
.dual-led-container.show-dual .led-ap-container {
  max-width: 105px;
  height: 110px;
  padding: 10px;
}

/* Tamaño por defecto para vista de un solo LED */
.dual-led-container:not(.show-dual) .led-ap-container {
  max-width: 140px;
  height: 120px;
  padding: 16px;
}


.led-ap-container {
  background: var(--bg-primary);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 140px;
  height: 120px;
  transition: var(--transition-smooth);
}

.ap-button-recess {
  width: 44px;
  height: 90px;
  background: #eaecef;
  border-radius: 22px;
  padding: 2px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.12), 0 1px 1px #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ap-button {
  width: 38px;
  height: 84px;
  background: #ffffff;
  border-radius: 19px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06), inset 0 1px 1px #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.ap-led-slot {
  width: 6px;
  height: 52px;
  background: #e4e7ec; /* Off state */
  border-radius: 3px 3px 2px 2px;
  transition: var(--transition-smooth);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Off State */
.led-ap-container.state-off .ap-led-slot {
  background: #e4e7ec;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);
}

/* Red State */
.led-ap-container.state-red .ap-led-slot {
  background: #ff3b30; /* Rojo */
  box-shadow: 0 0 10px #ff3b30, 0 0 2px #ff3b30;
}

/* Green State */
.led-ap-container.state-green .ap-led-slot {
  background: #00ff00; /* Verde neón exacto de la foto */
  box-shadow: 0 0 10px #00ff00, 0 0 2px #00ff00;
}

/* Blue Blink State */
.led-ap-container.state-blue-blink .ap-led-slot {
  background: #007aff; /* Azul */
  animation: apLedBlink 0.8s infinite alternate;
}

@keyframes apLedBlink {
  0% { opacity: 0.25; box-shadow: none; }
  100% { opacity: 1; box-shadow: 0 0 12px #007aff, 0 0 3px #007aff; }
}

.led-label {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.led-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.led-legend {
  width: 100%;
  margin-top: 0.65rem;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: left;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.red { background: var(--rojo); }
.legend-dot.green { background: var(--verde); }
.legend-dot.blue { background: var(--azul); }

/* Quick Actions support widget */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.action-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-main);
  text-align: left;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.action-btn:hover {
  background: var(--bg-secondary);
  border-color: #cfd4dc;
}

/* Modals */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 24, 33, 0.28);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 24px rgba(20, 24, 33, 0.12);
  animation: modalScale 0.2s ease-out;
  position: relative;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted-light);
  font-size: 1.35rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text-dark);
}

.modal h3 {
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 6px;
}

.modal p {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-bottom: 1.15rem;
}

.reset-visual-container {
  background: var(--rojo-bg);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(214, 69, 69, 0.15);
}

.reset-badge {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: var(--error);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.35rem;
}

/* Footer */
footer.main-footer {
  text-align: center;
  padding: 1.25rem;
  border-top: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 2.5rem;
  background: rgba(255, 255, 255, 0.4);
}

.ip-link-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary-glow);
  border: 1px solid rgba(59, 125, 216, 0.2);
  color: #1c4f93;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  font-family: monospace;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.ip-link-badge:hover {
  background: var(--color-primary);
  color: #FFF;
  border-color: var(--color-primary);
}

/* --- PRINT / POCKET MANUAL STYLES --- */
#print-section {
  display: none;
}

@media print {
  body {
    background: #FFF !important;
    color: #000 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 9.5pt !important;
    display: block !important;
    overflow: visible !important;
  }
  
  header, .container, footer.main-footer, .modal-overlay {
    display: none !important;
  }
  
  #print-section {
    display: block !important;
    padding: 10mm !important;
  }
  
  .print-header {
    border-bottom: 1.5pt solid #000;
    padding-bottom: 3mm;
    margin-bottom: 6mm;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .print-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 18pt;
    font-weight: 800;
    color: #000;
  }
  
  .print-header span {
    font-size: 10pt;
    font-weight: 600;
    border: 1px solid #000;
    padding: 0.5mm 2.5mm;
    border-radius: 2px;
  }
  
  .print-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11.5pt;
    font-weight: 700;
    margin-top: 5mm;
    margin-bottom: 2mm;
    border-bottom: 0.75pt solid #AAA;
    padding-bottom: 0.5mm;
  }
  
  .print-step {
    margin-bottom: 3mm;
    line-height: 1.4;
  }
  
  .print-step strong {
    font-weight: 700;
  }
  
  .print-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2mm;
    margin-bottom: 3mm;
  }
  
  .print-table th, .print-table td {
    border: 0.75pt solid #AAA;
    padding: 1.5mm 2.5mm;
    text-align: left;
    font-size: 8.5pt;
  }
  
  .print-table th {
    background-color: #F1F5F9;
  }
  
  .print-footer {
    margin-top: 8mm;
    border-top: 0.75pt solid #AAA;
    padding-top: 2.5mm;
    font-size: 7.5pt;
    text-align: center;
    color: #666;
  }
}
