/* ═══════════════════════════════════════════
   FUENTES AUTOALOJADAS
   Descarga los woff2 según el README y colócalos en /public/fonts/
═══════════════════════════════════════════ */
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════
   TOKENS DE DISEÑO
═══════════════════════════════════════════ */
:root {
  --surface:        #F4F0E6;
  --surface-raised: #FBF8F1;
  --line:           #E2DBC9;
  --ink:            #1B1F1C;
  --ink-muted:      #5C625C;
  --bosque:         #1F5F4A;
  --bosque-soft:    #DCE8E0;
  --on-bosque:      #F4F0E6;
  --miel:           #E3A13B;
  --miel-text:      #8A5A12;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   28px;
  --radius-pill: 999px;

  --font-heading: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1120px;
  --gutter:    1.25rem;
}

/* ═══════════════════════════════════════════
   RESET Y BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

ol, ul { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════
   UTILIDADES
═══════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--bosque);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   BOTONES
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  min-height: 48px;
  min-width: 48px;
  transition: opacity 0.15s;
  border: 2px solid transparent;
}

.btn:focus-visible {
  outline: 3px solid var(--miel);
  outline-offset: 3px;
}

.btn:hover { opacity: 0.88; }

.btn-primary {
  background-color: var(--bosque);
  color: var(--on-bosque);
}

.btn-cream {
  background-color: var(--surface);
  color: var(--bosque);
}

.btn-outline-cream {
  background-color: transparent;
  color: var(--on-bosque);
  border-color: rgba(244, 240, 230, 0.5);
}

.btn-outline-cream:hover {
  background-color: rgba(244, 240, 230, 0.12);
  opacity: 1;
}

.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.875rem; min-height: 44px; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

/* ═══════════════════════════════════════════
   HEADER
═══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.logo-link { flex-shrink: 0; }

.logotipo {
  height: 40px;
  width: auto;
  color: var(--ink);
}

.logo-dev {
  fill: var(--bosque);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.25rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover { color: var(--bosque); }
.nav-link:focus-visible { outline: 3px solid var(--bosque); outline-offset: 3px; border-radius: 4px; }

@media (max-width: 500px) {
  .nav-link { display: none; }
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  background-color: var(--bosque);
  color: var(--on-bosque);
  padding-block: 4rem 3.5rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content { max-width: 540px; }

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--miel);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  color: var(--on-bosque);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.125rem;
  color: rgba(244, 240, 230, 0.85);
  margin-bottom: 2rem;
  max-width: 420px;
}

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

.hero-symbol {
  flex-shrink: 0;
  opacity: 0.9;
}

.hero-symbol svg {
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.18));
}

@media (max-width: 640px) {
  .hero-symbol { display: none; }
  .hero { padding-block: 3rem 2.5rem; }
}

/* ═══════════════════════════════════════════
   EL PROBLEMA
═══════════════════════════════════════════ */
.section-problema {
  padding-block: 4rem;
}

.problema-inner { display: flex; flex-direction: column; gap: 2rem; }

.problema-text {
  max-width: 620px;
}

.problema-text p {
  margin-bottom: 1rem;
  color: var(--ink);
}

.problema-text p:last-child { margin-bottom: 0; }

.problema-destacado {
  margin-top: 1.75rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  color: var(--bosque) !important;
}

.problema-box {
  background-color: var(--bosque-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  max-width: 360px;
}

.problema-box .mono-label {
  color: var(--bosque);
  display: block;
  margin-bottom: 1rem;
}

.problema-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.problema-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--ink);
}

.check {
  color: var(--bosque);
  font-weight: 700;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .problema-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  .problema-box { align-self: center; }
}

/* ═══════════════════════════════════════════
   SERVICIOS
═══════════════════════════════════════════ */
.section-servicios {
  background-color: var(--surface-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 4rem;
}

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

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

@media (min-width: 900px) {
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background-color: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  position: relative;
}

.card-highlight {
  border-color: var(--miel);
}

.card-badge {
  display: inline-flex;
  align-self: flex-start;
  background-color: var(--miel);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--bosque);
  line-height: 1.3;
}

.card-desc {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.card-time {
  font-size: 0.8125rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-weight: 500;
}

.card-price-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}

.card-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--bosque);
}

.card-price-usd {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.servicios-notas {
  background-color: var(--bosque-soft);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.servicios-notas p {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════
   CÓMO TRABAJO
═══════════════════════════════════════════ */
.section-proceso {
  padding-block: 4rem;
}

.proceso-lista {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
  counter-reset: paso;
}

.proceso-paso {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 2rem;
  position: relative;
}

.proceso-paso:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.375rem;
  top: 3rem;
  bottom: 0;
  width: 2px;
  background-color: var(--line);
}

.paso-num {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  background-color: var(--bosque);
  color: var(--on-bosque);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.proceso-paso strong {
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.proceso-paso p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .proceso-lista { max-width: 640px; }
}

/* ═══════════════════════════════════════════
   SOBRE MÍ
═══════════════════════════════════════════ */
.section-sobre {
  background-color: var(--bosque-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 4rem;
}

.sobre-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .sobre-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
}

.foto-wrapper {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--line);
  flex-shrink: 0;
}

.foto-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sobre-texto .section-title { margin-bottom: 1rem; }

.sobre-texto p {
  color: var(--ink);
  margin-bottom: 0.875rem;
}

.sobre-texto p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.section-faq {
  padding-block: 4rem;
}

.faq-inner { max-width: 720px; }

.faq-lista {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-pregunta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}

.faq-pregunta::-webkit-details-marker { display: none; }

.faq-pregunta::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bosque);
  line-height: 1;
}

details[open] > .faq-pregunta::after { content: '−'; }

.faq-pregunta:focus-visible {
  outline: 3px solid var(--bosque);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-respuesta {
  padding-bottom: 1.125rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 600px;
}

/* ═══════════════════════════════════════════
   CONTACTO
═══════════════════════════════════════════ */
.section-contacto {
  background-color: var(--bosque);
  color: var(--on-bosque);
  padding-block: 4.5rem;
  text-align: center;
}

.contacto-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.contacto-symbol { margin-bottom: 0.25rem; }

.contacto-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--on-bosque);
  line-height: 1.2;
}

.contacto-texto {
  color: rgba(244, 240, 230, 0.8);
  font-size: 1.0625rem;
  max-width: 400px;
}

.contacto-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background-color: var(--surface-raised);
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.footer-marca {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.25rem;
}

.footer-nombre {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--bosque);
}

.footer-slogan {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-style: italic;
}

.footer-meta {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.footer-meta a {
  color: var(--bosque);
  text-decoration: none;
}

.footer-meta a:hover { text-decoration: underline; }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

/* ═══════════════════════════════════════════
   MODO OSCURO
   La guía de marca lo reserva para piezas especiales,
   pero si el sistema lo pide lo servimos con tokens oscuros.
   El logotipo usa fill:currentColor para adaptarse solo.
═══════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --surface:        #161A17;
    --surface-raised: #1E2420;
    --line:           #2C3530;
    --ink:            #EAE6DC;
    --ink-muted:      #8A9490;
    --bosque:         #2A7A5F;
    --bosque-soft:    #1A2E25;
    --on-bosque:      #F4F0E6;
    --miel:           #E3A13B;
    --miel-text:      #C88A28;
  }
}
