:root {
  --bg: #f7f9fc;
  --white: #ffffff;
  --ink: #0d1728;
  --muted: #5f6f86;
  --soft: #e8edf5;
  --soft2: #f1f5fb;
  --blue: #2458ff;
  --blue2: #6f42ff;
  --mint: #10c79a;
  --dark: #111827;
  --shadow: 0 24px 70px rgba(20, 31, 55, .12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(36, 88, 255, .12), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(16, 199, 154, .16), transparent 26%),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 35px rgba(10, 20, 40, .08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.5px;
  font-size: 22px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  font-size: 14px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.top-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
}

.top-nav a:hover {
  background: var(--soft2);
  color: var(--ink);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.header-cta {
  background: var(--ink);
  color: white;
  padding: 11px 16px;
  white-space: nowrap;
}

.btn {
  padding: 15px 20px;
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  box-shadow: 0 18px 40px rgba(36, 88, 255, .24);
}

.btn-secondary {
  color: var(--ink);
  background: white;
  border-color: rgba(15, 23, 42, .10);
}

.btn-ghost {
  color: var(--blue);
  background: rgba(36, 88, 255, .08);
}

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 46px;
  align-items: center;
  padding: 38px 0 50px;
}

.eyebrow,
.label {
  display: inline-flex;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(16, 199, 154, .12);
  color: #087e64;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2px;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(48px, 7vw, 86px);
  line-height: .94;
  letter-spacing: -4px;
  margin: 0;
  max-width: 780px;
}

.hero-text {
  margin: 24px 0 28px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.58;
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.trust-row div {
  background: white;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 12px 25px rgba(20,31,55,.06);
  min-width: 150px;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -28px;
  background: linear-gradient(135deg, rgba(36, 88, 255, .20), rgba(16, 199, 154, .20));
  border-radius: 38px;
  transform: rotate(-3deg);
  z-index: -1;
}

.panel-window {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(15, 23, 42, .09);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 18px;
}

.window-top {
  display: flex;
  gap: 7px;
  padding: 4px 4px 18px;
}

.window-top span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #d7dfed;
}

.dashboard-card {
  background: linear-gradient(135deg, #142033, #263d70);
  color: white;
  border-radius: 26px;
  padding: 24px;
  min-height: 210px;
}

.dashboard-card small {
  color: #a8ffe6;
  font-weight: 900;
}

.dashboard-card h3 {
  font-size: 30px;
  margin: 14px 0 12px;
  letter-spacing: -1px;
}

.dashboard-card p {
  margin: 0;
  color: #d8e4ff;
  line-height: 1.55;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.dashboard-grid div {
  background: #f6f8fc;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 20px;
  padding: 16px;
}

.dashboard-grid strong,
.dashboard-grid span {
  display: block;
}

.dashboard-grid span {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}

.strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px;
  border-radius: 22px;
  background: white;
  border: 1px solid rgba(15, 23, 42, .08);
  display: flex;
  justify-content: space-around;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(20, 31, 55, .06);
}

.section,
.split-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0 20px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2,
.split-section h2,
.project-box h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -2px;
}

.section-head p,
.split-section p,
.project-box p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.package-card,
.preview-card,
.project-box,
.timeline div {
  background: white;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 18px 48px rgba(20,31,55,.08);
}

.service-card {
  border-radius: var(--radius);
  padding: 26px;
  min-height: 230px;
}

.icon {
  font-size: 34px;
  margin-bottom: 14px;
}

.service-card h3,
.package-card h3 {
  font-size: 23px;
  letter-spacing: -.5px;
  margin: 0 0 10px;
}

.service-card p,
.package-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.packages-section {
  padding-top: 90px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.package-card {
  position: relative;
  border-radius: var(--radius);
  padding: 26px;
  overflow: hidden;
}

.package-card.featured {
  border-color: rgba(36, 88, 255, .22);
  box-shadow: 0 26px 70px rgba(36, 88, 255, .16);
}

.tag {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(16,199,154,.14);
  color: #087e64;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.price {
  margin: 18px 0;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 950;
  color: var(--blue);
}

.package-card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.package-card li {
  padding: 8px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--soft);
}

.package-card li::before {
  content: "✓";
  color: var(--mint);
  font-weight: 900;
  margin-right: 8px;
}

.package-card a {
  display: inline-flex;
  color: var(--blue);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 34px;
  align-items: center;
}

.preview-card {
  border-radius: 32px;
  padding: 26px;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
}

.fake-toolbar {
  width: 130px;
  height: 14px;
  background: var(--soft);
  border-radius: 999px;
  margin-bottom: 22px;
}

.fake-line {
  height: 15px;
  background: var(--soft);
  border-radius: 999px;
  margin: 12px 0;
}

.fake-line.big {
  width: 70%;
  height: 24px;
  background: linear-gradient(90deg, rgba(36,88,255,.20), rgba(16,199,154,.18));
}

.fake-table {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  background: white;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--soft);
}

.fake-table span {
  color: var(--muted);
}

.project-box {
  border-radius: 34px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(16,199,154,.16), transparent 35%),
    white;
}

.project-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.timeline div {
  border-radius: 24px;
  padding: 22px;
}

.timeline strong {
  display: block;
  color: var(--blue);
  margin-bottom: 8px;
}

.timeline span {
  color: var(--muted);
  line-height: 1.5;
}

.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 0;
  padding: 34px 0 48px;
  border-top: 1px solid rgba(15, 23, 42, .10);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
  font-size: 22px;
}

.footer p {
  max-width: 560px;
  line-height: 1.5;
}

.footer div:last-child {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.footer a {
  font-weight: 900;
  color: var(--blue);
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split-section,
  .project-box {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .package-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .project-actions {
    justify-content: flex-start;
  }

  h1 {
    letter-spacing: -2px;
  }
}

@media (max-width: 640px) {
  .top-nav {
    justify-content: flex-start;
  }

  .hero {
    margin-top: 34px;
  }

  .service-grid,
  .package-grid,
  .timeline,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 44px;
  }

  .hero-text {
    font-size: 18px;
  }

  .section,
  .split-section {
    padding-top: 58px;
  }
}

/* === IdeaNodo v0.3: formulario de proyectos === */
.form-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.form-hero {
  max-width: 840px;
  margin-bottom: 34px;
}

.form-hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: .96;
  letter-spacing: -3px;
  margin: 0 0 18px;
}

.form-hero p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.project-form,
.form-side {
  background: white;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(20,31,55,.10);
}

.project-form {
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-weight: 900;
}

.project-form input,
.project-form select,
.project-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, .14);
  border-radius: 16px;
  padding: 14px 15px;
  background: #f8fafc;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.project-form textarea {
  resize: vertical;
  min-height: 190px;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
  border-color: rgba(36, 88, 255, .55);
  background: white;
  box-shadow: 0 0 0 4px rgba(36, 88, 255, .10);
}

.check {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  font-weight: 700 !important;
  color: var(--muted) !important;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.form-actions button {
  cursor: pointer;
  font: inherit;
}

.form-actions button:disabled {
  opacity: .7;
  cursor: wait;
}

.form-result {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  font-weight: 900;
}

.form-result.success {
  background: rgba(16, 199, 154, .12);
  color: #087e64;
  border: 1px solid rgba(16, 199, 154, .28);
}

.form-result.error {
  background: rgba(239, 68, 68, .10);
  color: #b42318;
  border: 1px solid rgba(239, 68, 68, .24);
}

.form-side {
  padding: 26px;
  position: sticky;
  top: 110px;
}

.form-side h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -1px;
}

.form-side ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.6;
}

.form-side li {
  margin-bottom: 10px;
}

.side-note {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: #f3f7ff;
  color: var(--muted);
  line-height: 1.55;
}

.side-note strong {
  color: var(--ink);
}

@media (max-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr;
  }

  .form-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .project-form {
    padding: 20px;
  }
}
