/* Nodo Informático — estilos base, sin dependencias externas */

:root {
  --bg: #0f1419;
  --bg-alt: #151b23;
  --surface: #1a222d;
  --surface-elevated: #222c3a;
  --border: #2a3544;
  --text: #e8edf4;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --error: #ef4444;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --max-width: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--border);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px 8px;
  border-left: 2px solid var(--text-muted);
  box-shadow: 6px 0 0 var(--text-subtle), 12px 0 0 var(--text-subtle);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

/* Hero */

.hero {
  padding: 4.5rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% -10%, rgba(59, 130, 246, 0.12), transparent),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.metrics {
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.metrics dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.2rem;
}

.metrics dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

/* Sections */

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head-wide {
  max-width: 720px;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
}

/* Cards */

.cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Packages */

.packages {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .packages {
    grid-template-columns: repeat(2, 1fr);
  }
}

.package {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
}

.package-featured {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.package-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.12);
  border-radius: 999px;
}

.package-head {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.package-num {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.15rem;
}

.package-head h3 {
  margin: 0 0 0.2rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.package-tagline {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
}

.package-for {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.package-for strong {
  color: var(--text);
  font-weight: 600;
}

.package-features {
  margin: 0 0 1.25rem;
  padding: 0 0 0 1.1rem;
  flex: 1;
}

.package-features li {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.package-features li::marker {
  color: var(--accent);
}

.package-pricing {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.price-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.price-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.price-value small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-subtle);
}

.price-row-muted .price-value {
  font-size: 1rem;
  font-weight: 600;
}

.price-note {
  margin: 0.5rem 0 1rem;
  font-size: 0.78rem;
  color: var(--text-subtle);
  line-height: 1.4;
}

/* Addon — soporte bajo demanda */

.addon {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
  .addon {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.addon-copy h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.addon-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.addon-plans {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 480px) {
  .addon-plans {
    grid-template-columns: repeat(2, 1fr);
  }
}

.addon-plan {
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.addon-plan-highlight {
  border-color: rgba(59, 130, 246, 0.4);
}

.addon-hours {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.25rem;
}

.addon-price {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.addon-plan .btn {
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}

/* Flow */

.flow {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flow li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.flow-step {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.flow h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.flow p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-copy > p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.contact-meta {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.contact-meta li {
  font-size: 0.95rem;
}

.contact-meta span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-bottom: 0.15rem;
}

.contact-form {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-status {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

/* Footer */

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--text-muted);
}

.footer-inner a:hover {
  color: var(--text);
}

/* Mobile nav */

@media (max-width: 640px) {
  .site-nav {
    gap: 0.85rem;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .brand-text small {
    display: none;
  }
}
