/* =========================================================
   Diego Rocha · Diseño Ontológico e Inteligencia Conversacional
   ========================================================= */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F1ECE3;
  --surface: #FFFFFF;
  --ink: #1D2B2A;
  --ink-soft: #4E5C5A;
  --muted: #7A8684;
  --line: #E4DDD1;

  --primary: #0F3A38;
  --primary-2: #16514D;
  --accent: #D9A45B;
  --accent-2: #C4863A;
  --sage: #8FA99A;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(15, 58, 56, .22);
  --shadow-lg: 0 24px 60px -20px rgba(15, 58, 56, .35);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-2); }

.btn-ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }

.btn-nav { padding: .6rem 1.2rem; background: var(--primary); color: #fff !important; }
.btn-nav:hover { background: var(--primary-2); }

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 247, 242, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0,0,0,.3); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--primary); color: var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav a:not(.btn) {
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: .3rem 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent); transition: width .25s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -200px; right: -200px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(217,164,91,.18), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 1.8rem; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; }
.hero-badges li { font-size: .92rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.hero-badges li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

.hero-visual { position: relative; width: 100%; max-width: 380px; justify-self: center; }
.hero-visual img, .portrait-placeholder {
  position: relative; z-index: 1;
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
}
.portrait-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-2) 55%, #2A6A60 100%);
  color: var(--accent);
}
.portrait-placeholder span { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; }
.portrait-placeholder small { color: rgba(255,255,255,.65); font-size: .85rem; letter-spacing: .04em; }
.portrait-placeholder.small { aspect-ratio: 1; border-radius: var(--radius); }
.hero-visual img { object-position: 48% 30%; }
.about-photo {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}

.hero-accent {
  position: absolute; z-index: 0; inset: auto -22px -22px auto; width: 70%; height: 70%;
  border: 2px solid var(--accent); border-radius: 200px 200px var(--radius) var(--radius);
}

/* ---------- Franja ---------- */
.stripe { background: var(--primary); color: #fff; padding: 56px 0; }
.stripe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.stripe-item h3 { color: var(--accent); font-size: 1.5rem; margin-bottom: .3em; }
.stripe-item p { color: rgba(255,255,255,.78); margin: 0; }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
/* El texto es largo: la foto acompaña el scroll en escritorio */
.about-visual {
  width: 100%; max-width: 300px; justify-self: center;
  position: sticky; top: calc(var(--header-h) + 32px);
}
.about-copy p { color: var(--ink-soft); }
.about-copy em { color: var(--muted); }
.about-points { margin: 1.6rem 0; display: grid; gap: 14px; }
.about-points > div {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem;
}
.about-points dt { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-bottom: .35rem; }
.about-points dd { margin: 0; color: var(--ink-soft); }
.about-copy .about-promise {
  font-family: var(--font-display); font-style: italic; font-size: 1.18rem; line-height: 1.55;
  color: var(--ink); margin: 1.8rem 0 0;
}
.about-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.about-facts li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .2rem;
}
.about-facts strong { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.about-facts span { font-size: .95rem; color: var(--ink); font-weight: 500; }

/* ---------- Mi camino (línea de tiempo) ---------- */
.journey { background: var(--primary); color: #fff; }
.journey .section-head h2 { color: #fff; }
.journey .section-sub { color: rgba(255,255,255,.78); font-family: var(--font-display); font-style: italic; font-size: 1.2rem; }
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(var(--accent), rgba(217,164,91,.25));
}
.tl-item { position: relative; padding-left: 60px; margin-bottom: 48px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); border: 2px solid var(--accent); box-sizing: border-box;
}
.tl-label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .4rem; }
.tl-item h3 { color: #fff; font-size: 1.5rem; margin-bottom: .6rem; }
.tl-item p { color: rgba(255,255,255,.8); }
.tl-tags { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-tags li {
  font-size: .84rem; line-height: 1.35; padding: .45rem .85rem; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff;
}
.tl-tags span { color: var(--accent); }
/* Etapa actual destacada: la tarjeta sobresale a la izquierda para que el punto siga sobre la línea */
.tl-now {
  background: linear-gradient(160deg, rgba(217,164,91,.2), rgba(217,164,91,.05));
  border: 1px solid rgba(217,164,91,.45); border-radius: var(--radius);
  padding: 1.8rem 2rem 1.8rem 82px; margin-left: -22px;
}
.tl-now::before { left: 22px; top: 31px; background: var(--accent); }

/* ---------- Servicios ---------- */
.services { background: var(--bg-alt); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.6rem; background: rgba(217,164,91,.16); margin-bottom: 1.3rem;
}
.card p { color: var(--ink-soft); }
.card ul { list-style: none; padding: 0; margin: 1.2rem 0 0; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.card li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; font-size: .95rem; color: var(--ink); }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-2); font-weight: 700; }

/* ---------- Metodología ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding: 2rem 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 1rem; }
.step p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 20px; }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff; border-radius: 28px; padding: 3.2rem 3.4rem; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-band-inner::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,164,91,.35), transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-band .btn-primary { background: var(--accent); color: var(--primary); position: relative; z-index: 1; }
.cta-band .btn-primary:hover { background: #E6B775; }

/* ---------- Beneficios (transformaciones "de… a…") ---------- */
.shift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shift {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; border-top: 3px solid var(--accent);
}
.shift-from {
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem;
  color: var(--muted); margin: 0 0 .35rem;
}
.shift h3 { font-size: 1.35rem; color: var(--primary); margin-bottom: .8rem; }
.shift p:last-child { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-alt); }
.faq-wrap { max-width: 820px; }
.accordion details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden; transition: box-shadow .25s ease;
}
.accordion details[open] { box-shadow: var(--shadow); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 1.3rem 1.5rem; font-weight: 600; font-size: 1.04rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent-2); transition: transform .25s ease; flex-shrink: 0;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.acc-body { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); }
.acc-body p { margin: 0; }

/* ---------- Agenda (Cal.com) ---------- */
.booking { background: var(--primary); }
.booking .section-head h2 { color: #fff; }
.booking .section-sub { color: rgba(255,255,255,.75); }
.booking-card {
  max-width: 1040px; margin: 0 auto; background: #fff;
  border-radius: 24px; padding: 12px; box-shadow: var(--shadow-lg);
}
.booking-embed { width: 100%; min-height: 560px; overflow: auto; border-radius: 16px; }
.booking-loading { margin: 0; padding: 3rem 1rem; text-align: center; color: var(--muted); }
.booking-alt { text-align: center; color: rgba(255,255,255,.7); font-size: .92rem; margin: 1.6rem 0 0; }
.booking-alt a { color: var(--accent); font-weight: 600; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact-copy p { color: var(--ink-soft); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0; }
.contact-list li { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--primary-2); text-decoration: underline; }
.ci {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line);
}
.socials { display: flex; gap: .8rem; }
.socials a {
  text-decoration: none; font-size: .9rem; font-weight: 600; padding: .5rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--ink-soft); transition: all .2s ease;
}
.socials a:hover { border-color: var(--primary); color: var(--primary); }

.contact-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 2.4rem; box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary-2); background: #fff; box-shadow: 0 0 0 4px rgba(22,81,77,.12);
}
.field .invalid { border-color: #C0492F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: var(--primary-2); }
.form-status.err { color: #C0492F; }
.form-note { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.75); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand .brand-mark { background: rgba(255,255,255,.08); }
.footer-brand strong { display: block; color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.footer-brand small { font-size: .82rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: var(--accent); }
.copyright { width: 100%; margin: 12px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 25px -8px rgba(37,211,102,.6);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .shift-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .tl-item { padding-left: 42px; margin-bottom: 40px; }
  .tl-item h3 { font-size: 1.3rem; }
  .tl-now { margin-left: -10px; padding: 1.4rem 1.2rem 1.4rem 52px; }
  .tl-now::before { left: 10px; top: 25px; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem 24px 1.6rem; box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    transform: translateY(-120%); visibility: hidden; transition: transform .35s ease, visibility .35s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .95rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn-nav { margin-top: 1rem; }

  .hero { padding: 40px 0 72px; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 300px; margin: 0 auto; }
  .about-visual { max-width: 260px; margin: 0 auto; position: static; }
  .stripe-grid { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .steps, .about-facts, .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .cta-band-inner { padding: 2.4rem 1.6rem; border-radius: 22px; }
  .cta-band .btn { width: 100%; }
  .contact-form { padding: 1.6rem; }
  .card { padding: 1.7rem; }
  .hero-accent { inset: auto -12px -12px auto; }
}
