/* ========================================================
   Che Webs — styles.css
   ======================================================== */

:root {
  --azul: #0E3A4B;
  --verde: #1F5C4E;
  --arena: #F0E4D3;
  --terracota: #C45B3E;
  --sol: #F2B705;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-w: 1100px;
  --radius: 14px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--arena);
  color: var(--azul);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; }
p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Focus visibility ---------- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sol);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--sol);
  color: var(--azul);
  font-family: var(--font-mono);
  font-weight: 500;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 72px 0;
}
.section-alt { background: var(--arena); }
.section-dark {
  background: var(--azul);
  color: var(--arena);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 228, 211, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(14, 58, 75, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--azul);
}
.header-cta {
  font-size: 0.85rem;
  padding: 10px 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-primary {
  background: var(--sol);
  color: var(--azul);
  box-shadow: 0 4px 0 rgba(14, 58, 75, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(14, 58, 75, 0.25);
}
.btn-primary:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(14, 58, 75, 0.25);
}
.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}
.btn-small {
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracota);
  margin: 0 0 14px;
}
.eyebrow-on-dark { color: var(--sol); }

/* ---------- Marker underline (signature element) ---------- */
.marker {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.marker::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 0.05em;
  height: 0.32em;
  background: var(--sol);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: marker-draw 0.7s ease-out 0.5s forwards;
}
.marker-alt::after {
  background: var(--terracota);
}
.section-dark .marker { color: var(--arena); }

@keyframes marker-draw {
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .marker::after { transform: scaleX(1); animation: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
}
.hero-inner {
  max-width: 720px;
}
.hero-title {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.08;
  color: var(--azul);
}
.hero-sub {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--verde);
  max-width: 46ch;
}
.hero-actions {
  margin-top: 34px;
}
.hero-note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--verde);
}

/* ---------- Section titles / prose ---------- */
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.15;
  max-width: 20ch;
  margin-bottom: 24px;
}
.section-title-on-dark { color: var(--arena); }

.prose {
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.05rem;
}
.prose-on-dark { color: rgba(240, 228, 211, 0.9); }
.prose-on-dark strong { color: var(--sol); }

.prose-lead {
  max-width: 56ch;
  font-size: 1.1rem;
  color: var(--verde);
  margin-bottom: 32px;
}
.prose-on-dark.prose-lead { color: rgba(240, 228, 211, 0.85); }

.inline-link {
  color: var(--sol);
  text-decoration: underline;
  text-decoration-color: rgba(242, 183, 5, 0.5);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.inline-link:hover {
  text-decoration-color: var(--sol);
}

/* ---------- Tag list (a quién ayudo) ---------- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: #fff;
  color: var(--azul);
  border: 1px solid rgba(14, 58, 75, 0.15);
  padding: 9px 16px;
  border-radius: 999px;
}

/* ---------- Steps (cómo trabajo) ---------- */
.steps {
  display: grid;
  gap: 28px;
  margin-top: 8px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(14, 58, 75, 0.12);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step-number {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--terracota);
  flex-shrink: 0;
  padding-top: 4px;
}
.step-body h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.step-body p {
  color: var(--verde);
  max-width: 50ch;
}

/* ---------- Planes ---------- */
.planes-inner {
  max-width: 640px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--verde);
  color: var(--arena);
  padding: 72px 0 40px;
}
.footer-inner {
  max-width: 640px;
}
.footer-title {
  color: var(--arena);
}
.footer-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(240, 228, 211, 0.2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-link {
  color: var(--sol);
  width: fit-content;
}
.footer-link:hover { text-decoration: underline; }
.footer-brand { color: var(--arena); }
.footer-location { color: rgba(240, 228, 211, 0.75); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .steps { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .step { border-bottom: none; padding-bottom: 0; }
}

@media (min-width: 860px) {
  .section { padding: 100px 0; }
  .hero { padding: 130px 0 96px; }
}
