:root {
  --bg: #0a0a0c;
  --surface: #101014;
  --panel: #14141a;
  --panel-hover: #171720;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(212, 180, 131, 0.50);
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --muted-dark: #71717a;
  --accent: #d4b483;
  --accent-hover: #e3c79b;
  --accent-soft: rgba(212, 180, 131, 0.10);
  --accent-glow: rgba(212, 180, 131, 0.16);
  --success: #4ade80;
  --danger: #f87171;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(212, 180, 131, 0.28);
  color: #ffffff;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.9;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand strong {
  color: var(--accent);
  font-weight: 650;
}

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

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 450;
  letter-spacing: -0.005em;
  transition: color 0.18s ease;
}

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

.header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link-subtle {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.18s ease;
}

.nav-link-subtle:hover {
  color: var(--text);
}

/* Tipografía y Jerarquía */
h1, h2, h3, h4 {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.028em;
  font-weight: 650;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.028em;
}

h3 {
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 16px;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.68;
  font-weight: 400;
}

.section-lead {
  max-width: 660px;
  margin-top: -4px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

/* Etiquetas y Eyebrows */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 13px;
  border-radius: 9999px;
  background: var(--accent-soft);
  border: 1px solid rgba(212, 180, 131, 0.22);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0a0a0c;
  font-weight: 600;
  font-size: 0.93rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 12px rgba(212, 180, 131, 0.16);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(212, 180, 131, 0.24);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--border-hover);
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.btn-full {
  width: 100%;
}

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

/* Hero Section */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(circle at 75% 15%, var(--accent-soft), transparent 40%),
    linear-gradient(180deg, #0a0a0c, #0d0d11);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.91rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-points li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* Monitor de Arquitectura en Hero */
.hero-monitor {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 16, 20, 0.88);
  box-shadow:
    0 24px 64px -12px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.monitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.monitor-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.monitor-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.24);
  color: var(--success);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.91rem;
}

.panel-row:last-child {
  border-bottom: 0;
}

.panel-row strong {
  margin-left: auto;
  color: var(--text);
  font-weight: 550;
  font-size: 0.86rem;
  font-feature-settings: "tnum";
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.dot.green {
  background: var(--success);
}

.dot.amber {
  background: var(--accent);
}

.monitor-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted-dark);
  font-feature-settings: "tnum";
}

/* Secciones Generales */
.section {
  padding: 104px 0;
}

.section.alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Pilares / Garantías */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.pillar-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    0 4px 20px -2px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover {
  border-color: rgba(212, 180, 131, 0.32);
  transform: translateY(-2px);
}

.pillar-num {
  font-size: 0.74rem;
  font-weight: 750;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

/* Tarjetas de Servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    0 4px 24px -2px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  border-color: rgba(212, 180, 131, 0.35);
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px -4px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(212, 180, 131, 0.12);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(212, 180, 131, 0.2);
  color: var(--accent);
}

.card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.64;
}

/* Arquitectura de Flujo */
.architecture-box {
  margin-top: 36px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0d0d11;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.arch-nodes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.arch-node {
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  text-align: center;
  transition: border-color 0.2s ease;
}

.arch-node:hover {
  border-color: rgba(212, 180, 131, 0.28);
}

.arch-node h4 {
  margin: 0 0 8px;
  font-size: 0.94rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.arch-node p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Split (IA y n8n) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.check-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.check-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.code-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0c0c0f;
  box-shadow:
    0 20px 48px -6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.code-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(16, 16, 20, 0.7);
}

.code-title span:last-child {
  color: var(--accent);
  font-weight: 700;
}

.code-panel pre {
  margin: 0;
  padding: 26px;
  overflow-x: auto;
  color: #e4e4e7;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.87rem;
  line-height: 1.72;
}

/* Grid 3 (IoT) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mini-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    0 4px 20px -2px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mini-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.62;
}

/* Metodología / Pasos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    0 4px 20px -2px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.step-num {
  display: block;
  font-size: 1.12rem;
  font-weight: 750;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  font-feature-settings: "tnum";
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
  line-height: 1.6;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.faq-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    0 4px 20px -2px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.faq-card h3 {
  margin-bottom: 10px;
  font-size: 1.06rem;
  letter-spacing: -0.015em;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.62;
}

/* Contacto y Formulario */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.form {
  display: grid;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    0 24px 60px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.89rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.optional {
  color: var(--muted-dark);
  font-weight: 400;
  font-size: 0.8rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #0d0d11;
  color: var(--text);
  font: inherit;
  font-size: 0.93rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(212, 180, 131, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #52525b;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.hp-field {
  display: none !important;
}

.form-status {
  min-height: 22px;
  margin: 6px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status.ok {
  color: var(--success);
  font-weight: 500;
}

.form-status.error {
  color: var(--danger);
  font-weight: 500;
}

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

/* Pie de página */
.site-footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: #08080a;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted-dark);
  font-size: 0.86rem;
}

/* Panel de Administración */
.admin-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-body main {
  flex: 1;
}

.admin-auth {
  max-width: 440px;
  margin: 48px auto;
}

.auth-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    0 24px 60px -8px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-header {
  text-align: center;
  margin-bottom: 26px;
}

.auth-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.85;
}

.auth-header h1 {
  font-size: 1.48rem;
  margin-bottom: 8px;
}

.auth-header .section-lead {
  font-size: 0.89rem;
  margin-bottom: 0;
}

.input-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrapper input {
  padding-right: 76px;
}

.btn-toggle-pw {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 6px 8px;
  transition: color 0.18s ease;
}

.btn-toggle-pw:hover {
  color: var(--text);
}

.admin-dashboard {
  display: grid;
  gap: 30px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.dashboard-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.stats-pills {
  display: flex;
  gap: 10px;
}

.stat-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.83rem;
  color: var(--muted);
  font-feature-settings: "tnum";
}

.stat-pill strong {
  color: var(--text);
}

.stat-pill.stat-unread {
  background: var(--accent-soft);
  border-color: rgba(212, 180, 131, 0.28);
  color: var(--accent);
}

.action-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-select {
  padding: 8px 12px;
  font-size: 0.85rem;
  background: var(--panel);
  width: auto;
}

.messages-container {
  display: grid;
  gap: 16px;
}

.msg-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    0 4px 20px -2px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.18s ease;
}

.msg-card.is-unread {
  border-color: rgba(212, 180, 131, 0.35);
  background: #171720;
}

.msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.msg-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.msg-author h3 {
  margin: 0;
  font-size: 1.15rem;
}

.msg-badge {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-new {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(212, 180, 131, 0.26);
}

.badge-read {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-dark);
  border: 1px solid var(--border);
}

.msg-time {
  font-size: 0.81rem;
  color: var(--muted-dark);
  font-feature-settings: "tnum";
}

.msg-details {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  padding: 10px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 0.87rem;
}

.msg-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-label {
  color: var(--muted-dark);
}

.meta-link {
  color: var(--accent);
  text-decoration: none;
}

.meta-link:hover {
  text-decoration: underline;
}

.service-tag {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.81rem;
  color: #e4e4e7;
}

.btn-copy {
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.71rem;
  padding: 2px 6px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-copy:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.msg-body {
  font-size: 0.94rem;
  line-height: 1.64;
  color: #e4e4e7;
  margin-bottom: 16px;
}

.msg-body p {
  margin: 0;
}

.msg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.btn-danger {
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.25);
  background: transparent;
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.50);
  color: #fca5a5;
  box-shadow: 0 2px 10px rgba(248, 113, 113, 0.15);
}

.hidden {
  display: none !important;
}

.empty-state,
.loading-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* Responsividad */
@media (max-width: 990px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pillars-grid,
  .cards,
  .steps,
  .arch-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-header {
    flex-direction: column;
  }

  .dashboard-controls {
    align-items: flex-start;
    width: 100%;
  }

  .nav a:not(.btn) {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 72px 0 60px;
  }

  .section {
    padding: 72px 0;
  }

  .pillars-grid,
  .cards,
  .grid-3,
  .steps,
  .faq-grid,
  .arch-nodes {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
