/* ============================= */
/* RESET GENERAL */
/* ============================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  background:
    radial-gradient(circle at top left, #1e3a8a 0, transparent 35%),
    radial-gradient(circle at bottom right, #0f766e 0, transparent 30%),
    #020617;
  overflow-x: hidden;
}

/* ============================= */
/* FONDO DECORATIVO */
/* ============================= */

.background-blur {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  z-index: -1;
}

.background-blur-1 {
  top: 80px;
  left: -120px;
  background: #2563eb;
}

.background-blur-2 {
  right: -120px;
  bottom: 80px;
  background: #14b8a6;
}

/* ============================= */
/* CONTENEDOR PRINCIPAL */
/* ============================= */

.welcome-page {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ============================= */
/* HEADER */
/* ============================= */

.header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.25);
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.25);
}

.brand-logo img {
  max-width: 82%;
  max-height: 82%;
  object-fit: contain;
  display: block;
}

.brand h1 {
  font-size: 22px;
  line-height: 1;
}

.brand p {
  margin-top: 5px;
  font-size: 13px;
  color: #94a3b8;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  color: #46c49a;
  text-decoration: none;
  font-size: 14px;
}

.nav-link:hover {
  color: #ffffff;
}

/* ============================= */
/* BOTONES */
/* ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  transition: 0.2s ease;
  border: 1px solid transparent;
}

.btn-small {
  padding: 10px 16px;
  background: #ffffff;
  color: #020617;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  padding: 50px 0 90px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 9px 14px;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.14);
  border: 1px solid rgba(103, 232, 249, 0.2);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-content h2 {
  max-width: 680px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.hero-description {
  max-width: 620px;
  margin-top: 24px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.security-note {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 14px;
}

.security-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.9);
}

/* ============================= */
/* PREVIEW DASHBOARD */
/* ============================= */

.dashboard-preview {
  padding: 24px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
}

.preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.preview-header h3 {
  font-size: 22px;
}

.preview-header p {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 14px;
}

.status {
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.online {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.machine-card {
  margin-top: 24px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 16px;
}

.machine-card h4 {
  font-size: 18px;
}

.machine-card p {
  margin-top: 6px;
  color: #94a3b8;
}

.machine-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotor {
  width: 36px;
  height: 36px;
  border: 5px solid rgba(255, 255, 255, 0.18);
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.metrics-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.metric {
  padding: 16px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.metric span {
  display: block;
  color: #94a3b8;
  font-size: 13px;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 22px;
}

.chart-box {
  position: relative;
  height: 120px;
  margin-top: 22px;
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.chart-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
}

.line-1 {
  top: 38px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.line-2 {
  top: 68px;
  background: linear-gradient(90deg, transparent, #22c55e, transparent);
}

.line-3 {
  top: 92px;
  background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

/* ============================= */
/* CARACTERÍSTICAS */
/* ============================= */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 30px 0 70px;
}

.feature-card {
  padding: 26px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.feature-card p {
  color: #94a3b8;
  line-height: 1.6;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 24px 0 36px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dashboard-preview {
    max-width: 620px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .header {
    height: auto;
    padding: 22px 0;
    align-items: flex-start;
    gap: 18px;
  }

  .header-actions {
    display: none;
  }

  .hero {
    padding-top: 30px;
  }

  .hero-content h2 {
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dashboard-preview {
    max-width: 620px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   RESPONSIVE CELULARES
   ====================================================== */

@media (max-width: 600px) {
  .welcome-page {
    width: min(100%, 92%);
  }

  .header {
    height: auto;
    padding: 18px 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .brand-logo img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
  }

  .brand h1 {
    font-size: 17px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .brand p {
    font-size: 11px;
    white-space: nowrap;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-content h2 {
    letter-spacing: -1px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}