/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f1e8;
  --bg-2:      #ede5d6;
  --paper:     #fffdf8;
  --ink:       #211d18;
  --ink-soft:  #38322a;
  --ink-mute:  #75695a;
  --accent:    #b35a38;
  --accent-deep: #8f4528;
  --moss:      #56624a;
  --line:      rgba(33, 29, 24, 0.14);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, "Segoe UI", sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  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, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: min(1140px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.container--narrow { width: min(780px, 100% - var(--gutter) * 2); }

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.kicker--light { color: #e8c4ae; }

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); max-width: 640px; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 500;
}
.section-head h2 em, .hero-title em, .cta-title em, .manifesto-text em {
  font-style: italic;
  color: var(--accent);
}
.section-sub {
  margin-top: 1.1rem;
  color: var(--ink-mute);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
html.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 8px 24px -10px rgba(179, 90, 56, 0.55);
}
.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: 0 14px 30px -10px rgba(179, 90, 56, 0.6);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--paper); }

.btn-light {
  background: var(--paper);
  color: var(--accent-deep);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.4);
}
.btn-light:hover { background: #fff; }
.btn-ghost-light {
  border: 1px solid rgba(246, 241, 232, 0.35);
  color: var(--paper);
}
.btn-ghost-light:hover { border-color: var(--paper); background: rgba(246, 241, 232, 0.08); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}
.nav.is-solid {
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  width: min(1240px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 1.05rem;
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-right: auto;
}
.nav-brand em { font-style: italic; color: var(--accent); }
.nav-links { display: none; gap: 1.8rem; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 0.2rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { display: none; padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.nav-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px; height: 42px;
  align-items: center;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.35s;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.5rem var(--gutter) 2.2rem;
  background: rgba(246, 241, 232, 0.98);
  box-shadow: 0 1px 0 var(--line);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a:not(.btn) {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
}
.nav-mobile .btn { align-self: flex-start; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger, .nav-mobile { display: none !important; }
}

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  padding-top: clamp(6.5rem, 14vw, 9.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(179, 90, 56, 0.09), transparent 70%),
    var(--bg);
}
.hero-inner {
  width: min(1140px, 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 500;
  max-width: 16ch;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 50ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.hero-note {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.hero-figure {
  position: relative;
  justify-self: center;
  width: min(380px, 88%);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 60px -20px rgba(33, 29, 24, 0.35);
}
.hero-frame {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--accent);
  border-radius: 18px;
  transform: translate(14px, 14px);
  z-index: 0;
}
.hero-card {
  position: absolute;
  z-index: 2;
  left: -8%;
  bottom: 7%;
  background: var(--paper);
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 14px 34px -12px rgba(33, 29, 24, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.hero-card strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.hero-card span { font-size: 0.78rem; color: var(--ink-mute); }

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
  .hero-figure { justify-self: end; }
}

/* =============================================================
   7. Manifesto
   ============================================================= */
.manifesto {
  background: var(--ink);
  color: var(--bg);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  max-width: 26ch;
  margin-inline: auto;
}
.manifesto-text em { color: #d98f6c; }

/* =============================================================
   8. Servicio (pillars)
   ============================================================= */
.pillars {
  display: grid;
  gap: 1.4rem;
}
.pillar {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.pillar:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px -18px rgba(33, 29, 24, 0.22);
}
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--accent);
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  margin-block: 0.7rem 0.8rem;
}
.pillar p { color: var(--ink-mute); font-size: 0.97rem; }

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

/* =============================================================
   9. Marquee
   ============================================================= */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: 0.9rem;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-mute);
  padding-right: 0.5rem;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =============================================================
   10. Proceso (timeline)
   ============================================================= */
.proceso { background: var(--bg); }
.timeline {
  --line-progress: 0;
  position: relative;
  display: grid;
  gap: clamp(2.2rem, 5vw, 3.2rem);
  padding-left: 2.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}
.timeline::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--accent);
  transform: scaleY(var(--line-progress, 0));
  transform-origin: top;
}
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
}
.step-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  font-weight: 600;
  margin-block: 0.35rem 0.6rem;
}
.step-body p { color: var(--ink-mute); max-width: 58ch; }

@media (min-width: 960px) {
  .timeline { padding-left: 0; }
  .timeline::before, .timeline::after { left: 50%; margin-left: -1px; }
  .step {
    width: calc(50% - 3rem);
  }
  .step:nth-child(odd) { margin-left: auto; padding-left: 0; }
  .step:nth-child(even) { text-align: right; }
  .step:nth-child(even) .step-body p { margin-left: auto; }
  .step:nth-child(odd)::before { left: -3rem; margin-left: -11px; }
  .step:nth-child(even)::before { left: auto; right: -3rem; margin-right: -13px; }
}

/* =============================================================
   11. Incluye / No incluye
   ============================================================= */
.incluye { background: var(--bg-2); }
.incluye-grid {
  display: grid;
  gap: 1.4rem;
}
.incluye-card {
  background: var(--paper);
  border-radius: 16px;
  padding: 2.1rem 1.9rem;
  border-top: 4px solid var(--moss);
}
.incluye-card--no { border-top-color: var(--ink-mute); }
.incluye-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.3rem;
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  font-family: var(--sans);
  flex-shrink: 0;
}
.mark-yes { background: rgba(86, 98, 74, 0.14); color: var(--moss); }
.mark-no { background: rgba(117, 105, 90, 0.14); color: var(--ink-mute); }
.incluye-card ul { display: grid; gap: 0.85rem; }
.incluye-card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.incluye-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--moss);
}
.incluye-card--no li::before { background: var(--ink-mute); }
.incluye-card li strong { color: var(--ink); font-weight: 600; }

@media (min-width: 960px) {
  .incluye-grid { grid-template-columns: 1.05fr 0.95fr; align-items: start; }
}

/* =============================================================
   12. Para quién
   ============================================================= */
.quien-grid {
  display: grid;
  gap: 1.4rem;
}
.quien-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.9rem 1.7rem;
  background: var(--bg);
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
              background-color 0.45s var(--ease-out);
}
.quien-card:hover {
  transform: translateY(-5px);
  border-color: rgba(179, 90, 56, 0.4);
  background: var(--paper);
}
.quien-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--accent-deep);
  margin-bottom: 0.7rem;
}
.quien-card p { color: var(--ink-mute); font-size: 0.96rem; }
.quien-close {
  margin-top: 2.6rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  text-align: center;
}
.quien-close a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
  transition: color 0.3s;
}
.quien-close a:hover { color: var(--accent-deep); }

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

/* =============================================================
   12b. Sobre mí
   ============================================================= */
.sobre { background: var(--paper); }
.sobre-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.sobre-figure {
  position: relative;
  justify-self: center;
  width: min(340px, 80%);
}
.sobre-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 18px;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 60px -20px rgba(33, 29, 24, 0.35);
}
.sobre-frame {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--moss);
  border-radius: 18px;
  transform: translate(-14px, 14px);
  z-index: 0;
}
.sobre-copy p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
  max-width: 56ch;
}
.sobre-copy p em { font-style: italic; color: var(--accent-deep); }
.sobre-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink);
  margin: 2rem 0;
  padding-left: 1.3rem;
  border-left: 3px solid var(--accent);
  max-width: 32ch;
}
.sobre-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-mute);
}
.sobre-sign span {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--accent-deep);
}

@media (min-width: 880px) {
  .sobre-grid {
    grid-template-columns: minmax(280px, 380px) 1fr;
    align-items: start;
  }
  .sobre-figure {
    justify-self: start;
    position: sticky;
    top: 6rem;
  }
}

/* =============================================================
   13. FAQ
   ============================================================= */
.faq { background: var(--bg-2); }
.faq-list { display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--paper);
  border-radius: 14px;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(179, 90, 56, 0.35); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent);
  transition: transform 0.35s var(--ease-out);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); }
.faq-body { padding: 0 1.5rem 1.4rem; }
.faq-body p { color: var(--ink-mute); font-size: 0.97rem; max-width: 62ch; }

/* =============================================================
   14. CTA final
   ============================================================= */
.cta {
  background:
    radial-gradient(70% 80% at 50% 110%, rgba(217, 143, 108, 0.22), transparent 70%),
    var(--ink);
  color: var(--bg);
  text-align: center;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.5vw, 3.8rem);
  font-weight: 500;
}
.cta-title em { color: #d98f6c; }
.cta-sub {
  margin: 1.3rem auto 0;
  color: rgba(246, 241, 232, 0.7);
  max-width: 46ch;
  font-size: 1.05rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* =============================================================
   15. Footer
   ============================================================= */
.footer {
  background: var(--ink);
  color: rgba(246, 241, 232, 0.55);
  border-top: 1px solid rgba(246, 241, 232, 0.1);
  padding-block: 2.6rem;
}
.footer-inner { text-align: center; display: grid; gap: 0.4rem; }
.footer-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bg);
}
.footer-brand em { font-style: italic; color: #d98f6c; }
.footer-meta { font-size: 0.85rem; }
.footer-copy { font-size: 0.78rem; margin-top: 0.6rem; }

/* =============================================================
   16. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
