/* =============================================================
   1. TOKENS — claro y cálido
   ============================================================= */
:root {
  --bg:        #fbf6ec;   /* cream cálido */
  --bg-2:      #f3ead9;   /* arena */
  --paper:     #ffffff;
  --ink:       #2a2320;   /* marrón casi negro */
  --ink-soft:  #4a423c;
  --ink-mute:  #877d72;
  --accent:    #e07a3f;   /* terracota cálida */
  --accent-dk: #c25f28;
  --accent-soft:#fbe4d3;
  --green:     #25a560;   /* whatsapp / confianza */
  --green-dk:  #1d8b50;
  --line:      rgba(42, 35, 32, 0.12);
  --line-soft: rgba(42, 35, 32, 0.07);

  --sans:    "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1140px;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; overscroll-behavior-y: none;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); font-weight: 600; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--accent); color: #fff;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =============================================================
   3. BACKGROUND — warm glow suave
   ============================================================= */
.bg-warm {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(224, 122, 63, 0.10), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(224, 122, 63, 0.07), transparent 70%);
}

/* =============================================================
   4. NAV
   ============================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem var(--pad);
  transition: background .4s var(--ease-out), box-shadow .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(251, 246, 236, 0.85);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line);
}
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-logo-mark {
  width: 38px; height: 38px; border-radius: 50%;
  object-fit: contain; display: block; flex-shrink: 0;
}
.nav-logo-text { font-size: 0.95rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.nav-logo-text em { display: block; font-style: normal; font-weight: 400; font-size: 0.78rem; color: var(--ink-mute); }
.nav-links { display: none; gap: 1.8rem; font-size: 0.95rem; }
.nav-links a { color: var(--ink-soft); position: relative; transition: color .25s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--accent); transition: width .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: none; padding: .55rem 1.2rem; border-radius: 100px;
  background: var(--ink); color: var(--bg); font-size: .9rem; font-weight: 500;
  transition: transform .25s var(--ease-out), background .25s;
}
.nav-cta:hover { background: var(--accent); transform: translateY(-1px); }
@media (min-width: 760px) { .nav-links { display: flex; } }
@media (min-width: 960px) { .nav-cta { display: inline-block; } }

/* =============================================================
   5. LAYOUT HELPERS
   ============================================================= */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) var(--pad); position: relative; }
.eyebrow {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-dk); font-weight: 600; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 4.4vw, 3rem); max-width: 22ch; margin-bottom: 1rem; color: var(--ink); }

/* =============================================================
   6. BUTTONS
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .95rem 1.9rem; border-radius: 100px; font-weight: 500; font-size: 1rem;
  transition: transform .25s var(--ease-out), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-2px); box-shadow: 0 14px 34px -10px var(--accent); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dk); transform: translateY(-2px); }
.btn-whatsapp { background: var(--green); color: #fff; box-shadow: 0 8px 24px -10px var(--green); }
.btn-whatsapp:hover { background: var(--green-dk); transform: translateY(-2px); box-shadow: 0 14px 34px -8px var(--green); }

/* =============================================================
   7. HERO
   ============================================================= */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  min-height: 100vh; min-height: 100svh;
  padding: 7rem var(--pad) 4rem;
  display: grid; align-items: center;
  grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-inner { max-width: 46ch; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; height: auto; display: block;
  border-radius: 1.4rem;
}
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 6rem; gap: 2.4rem;
  }
  .hero-inner { max-width: 100%; }
  .hero-media { order: -1; max-width: 520px; }
}
.hero-kicker {
  font-size: 0.9rem; color: var(--accent-dk); font-weight: 500;
  margin-bottom: 1.4rem; letter-spacing: 0.02em;
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.8rem); line-height: 1.04; letter-spacing: -0.03em;
  margin-bottom: 1.5rem; color: var(--ink); font-weight: 600;
}
.hero-title em { font-style: normal; font-weight: 700; color: var(--accent); }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft);
  line-height: 1.6; font-weight: 300; margin-bottom: 2.2rem; max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.hero-trust { font-size: 0.9rem; color: var(--ink-mute); }

/* =============================================================
   8. SERVICIOS
   ============================================================= */
.servicios-grid { display: grid; gap: 1.4rem; margin-top: 3rem; }
@media (min-width: 860px) { .servicios-grid { grid-template-columns: repeat(3, 1fr); } }
.servicio-card {
  background: var(--paper); border: 1px solid var(--line-soft); border-radius: 20px;
  padding: 2.2rem 1.9rem;
  transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s;
}
.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -24px rgba(42, 35, 32, 0.28);
  border-color: var(--accent-soft);
}
.servicio-icon {
  width: 64px; height: 64px; margin-bottom: 1.4rem;
  display: grid; place-items: center;
}
.servicio-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.servicio-card h3 { font-size: 1.4rem; margin-bottom: .8rem; color: var(--ink); }
.servicio-card p { color: var(--ink-soft); font-weight: 300; line-height: 1.6; margin-bottom: 1.3rem; }
.servicio-points { list-style: none; display: grid; gap: .55rem; }
.servicio-points li {
  color: var(--ink-soft); font-size: 0.95rem; padding-left: 1.6rem; position: relative;
}
.servicio-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--green);
  font-weight: 700;
}

/* =============================================================
   9. CÓMO TRABAJO — steps
   ============================================================= */
.steps-grid { display: grid; gap: 1.2rem; margin-top: 3rem; counter-reset: step; }
@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }
.step {
  background: var(--bg-2); border-radius: 18px; padding: 1.8rem 1.6rem;
  position: relative;
}
.step-num {
  font-family: var(--display); font-weight: 600; font-size: 2.4rem; color: var(--accent);
  line-height: 1; margin-bottom: .9rem; opacity: .9;
}
.step h3 { font-size: 1.2rem; margin-bottom: .6rem; color: var(--ink); }
.step p { color: var(--ink-soft); font-size: 0.95rem; font-weight: 300; line-height: 1.55; }

/* =============================================================
   10. POR QUÉ — reasons
   ============================================================= */
.porque { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .porque { grid-template-columns: 0.8fr 1.2fr; align-items: start; gap: 3.5rem; } }
.reasons-grid { display: grid; gap: 1.2rem; }
@media (min-width: 560px) { .reasons-grid { grid-template-columns: repeat(2, 1fr); } }
.reason {
  padding: 1.6rem; border-radius: 16px; background: var(--paper);
  border: 1px solid var(--line-soft);
}
.reason h3 { font-size: 1.18rem; margin-bottom: .55rem; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.reason h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.reason p { color: var(--ink-soft); font-size: 0.95rem; font-weight: 300; line-height: 1.55; }

/* =============================================================
   11. PREGUNTAS — FAQ
   ============================================================= */
.faq-list { margin-top: 2.5rem; max-width: 760px; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.5rem 0.25rem; font-family: var(--display); font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--ink); transition: color .25s;
}
.faq-q:hover { color: var(--accent-dk); }
.faq-icon {
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; flex-shrink: 0; position: relative; transition: border-color .3s, transform .35s var(--ease-out), background .3s;
}
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--ink-soft); transition: background .3s, opacity .3s; }
.faq-icon::before { width: 12px; height: 1.6px; }
.faq-icon::after { width: 1.6px; height: 12px; }
.faq.is-open .faq-icon { border-color: var(--accent); background: var(--accent-soft); }
.faq.is-open .faq-icon::after { opacity: 0; }
.faq.is-open .faq-icon::before { background: var(--accent-dk); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.faq.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p { color: var(--ink-soft); font-weight: 300; line-height: 1.65; padding: 0 0.25rem 1.6rem; max-width: 64ch; }

/* =============================================================
   12. CONTACTO
   ============================================================= */
.contacto { display: grid; place-items: center; }
.contacto-card {
  background: var(--ink); color: var(--bg); border-radius: 28px;
  padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; max-width: 720px; width: 100%;
  position: relative; overflow: hidden;
}
.contacto-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(224, 122, 63, 0.28), transparent 70%);
}
.contacto-card > * { position: relative; z-index: 1; }
.contacto-title { font-size: clamp(1.9rem, 5vw, 3rem); color: var(--bg); margin-bottom: 1rem; }
.contacto-sub { color: rgba(251, 246, 236, 0.78); font-weight: 300; max-width: 48ch; margin: 0 auto 2.2rem; line-height: 1.6; }
.contacto-card .btn-whatsapp { font-size: 1.1rem; padding: 1.05rem 2.2rem; }
.contacto-mail { margin-top: 1.6rem; font-size: 0.95rem; color: rgba(251, 246, 236, 0.65); text-align: center; }
.contacto-mail a { color: var(--bg); border-bottom: 1px solid rgba(251,246,236,0.4); word-break: break-word; overflow-wrap: anywhere; }
.contacto-mail a:hover { border-color: var(--accent); color: var(--accent); }

/* =============================================================
   13. FOOTER
   ============================================================= */
.footer {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.5rem var(--pad); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.88rem; color: var(--ink-mute);
}

/* =============================================================
   14. WHATSAPP FLOAT
   ============================================================= */
.wa-float {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -6px rgba(37, 165, 96, 0.6);
  transition: transform .25s var(--ease-out), background .25s;
  animation: waPop .5s var(--ease-out) both;
}
.wa-float:hover { background: var(--green-dk); transform: scale(1.08); }
@keyframes waPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* =============================================================
   15. REVEAL
   ============================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   16. REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; }
}
