:root {
  color-scheme: light;
  --bg: #faf6ee;
  --ink: #12120f;
  --muted: #4a4a45;
  --pink: #ff2f6e;
  --yellow: #ffd23f;
  --blue: #2f6bff;
  --green: #17c98d;
  --line: #12120f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

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

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 4px solid var(--line);
  z-index: 10;
}

.site-header::after {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--pink) 0 25%, var(--yellow) 25% 50%, var(--blue) 50% 75%, var(--green) 75% 100%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav a {
  display: inline-block;
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.6rem;
  border: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--yellow);
}

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-grid,
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.meta {
  display: inline-block;
  color: var(--ink);
  background: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  transform: rotate(-2deg);
}

.meta {
  background: var(--blue);
  color: white;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98;
  margin: 1.1rem 0 1rem;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
}

.highlight {
  background: var(--yellow);
  padding: 0 0.2em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lead,
.section p,
.card p,
label {
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 10px;
  border: 3px solid var(--line);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  box-shadow: 5px 5px 0 var(--line);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--line);
}

.primary {
  background: var(--pink);
  color: white;
}

.secondary {
  background: white;
  color: var(--ink);
}

.section {
  padding: 4rem 0;
}

.alt {
  background: var(--ink);
  color: white;
  border-top: 4px solid var(--line);
  border-bottom: 4px solid var(--line);
}

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

.cards,
.pricing {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.hero-card,
.contact-form {
  background: white;
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: 7px 7px 0 var(--line);
  position: relative;
  overflow-wrap: break-word;
  min-width: 0;
}

.card p,
.hero-card p {
  color: var(--muted);
}

.card p.meta {
  color: white;
}

.card p.card-link {
  color: var(--pink);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  margin-top: 1rem;
  margin-bottom: 0;
}

a.card {
  display: block;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

a.card:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--line);
}

.cards .card:nth-child(3n+1) { border-top: 8px solid var(--pink); }
.cards .card:nth-child(3n+2) { border-top: 8px solid var(--blue); }
.cards .card:nth-child(3n+3) { border-top: 8px solid var(--green); }

.hero-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 700;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--muted);
}

.pricing .card { border-top: 8px solid var(--ink); }

.featured {
  background: var(--yellow);
  transform: rotate(-1deg);
  border-top: 8px solid var(--pink);
}

.amount {
  font-size: 2.2rem;
  font-weight: 900;
}

.card p.amount {
  color: var(--ink);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 3px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  text-transform: none;
}

input:focus,
textarea:focus {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

button {
  cursor: pointer;
  font-family: inherit;
}

.hidden {
  display: none !important;
}

.error-text {
  color: var(--pink);
  min-height: 1.2em;
  font-weight: 700;
}

.post-list {
  display: grid;
  gap: 1.25rem;
}

.post-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.post-item > div {
  min-width: 0;
}

.post-item .post-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.button.small {
  min-height: 36px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  box-shadow: 3px 3px 0 var(--line);
}

.button.small:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line);
}

.button.danger {
  background: var(--pink);
  color: white;
}

/* --- CTA banner --- */

.cta-banner {
  background: var(--pink);
  border-top: 4px solid var(--line);
  border-bottom: 4px solid var(--line);
  padding: 4rem 0;
  text-align: center;
  color: white;
}

.cta-banner .lead {
  color: white;
  opacity: 0.9;
}

.cta-banner .hero-actions {
  justify-content: center;
}

.cta-banner .secondary {
  background: var(--ink);
  color: white;
}

/* --- Section intro / link-out row --- */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin-bottom: 0;
}

/* --- Timeline (Metodología) --- */

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

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.step-number {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border: 3px solid var(--line);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--line);
  font-weight: 900;
  font-size: 1.6rem;
}

.step:nth-child(3n+2) .step-number { background: var(--blue); color: white; }
.step:nth-child(3n+3) .step-number { background: var(--green); }

.step-card {
  background: white;
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 6px 6px 0 var(--line);
}

/* --- Footer --- */

.site-footer {
  background: var(--ink);
  color: white;
  border-top: 4px solid var(--line);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-grid p {
  color: #cfcfc9;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  font-weight: 700;
  color: #f4f1ea;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  color: #a9a9a2;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .contact,
  .cards,
  .pricing,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    line-height: 1.02;
  }

  .post-item {
    flex-direction: column;
  }

  .post-item .post-actions {
    width: 100%;
  }

  .post-item .post-actions .button {
    flex: 1;
  }

  .step {
    grid-template-columns: 56px 1fr;
  }

  .step-number {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
  }
}
