/* ==========================================================
   Merly Flórez · Futuros Conscientes
   Maquetación basada en landing_page_mer.pdf (ancho de diseño 1440 px)
   Mobile-first: los ajustes de escritorio empiezan en 900 px
   ========================================================== */

:root {
  --terra: #b8512f;      /* terracota: títulos, líneas, acentos */
  --olive: #76804f;      /* círculo verde del hero */
  --olive-line: #8c9072; /* línea que sale del punto verde */
  --ink: #0d0d0d;
  --cream: #fef9f2;      /* fondo base */
  --peach: #fff3e4;      /* fondos durazno */
  --white: #ffffff;
  --beige: #f6e8d6;      /* beige de la portada */
  --ph: #d9d9d9;         /* placeholders de foto */

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --g: clamp(20px, 5vw, 80px);          /* margen lateral */
  --header-h: 72px;
  --section-y: clamp(56px, 7vw, 100px);
  --fs-body: clamp(1rem, 1.5vw, 1.375rem);
  --fs-big: clamp(1.05rem, 1.7vw, 1.5rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.4;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 700; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--terra); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------- Piezas reutilizables ---------- */
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--g); }
.center { text-align: center; margin-top: clamp(28px, 4vw, 48px); }

.section { padding: var(--section-y) 0; }
.section--cream { background: var(--cream); }
.section--peach { background: var(--peach); }
.section--white { background: var(--white); }
.section--tight-top { padding-top: clamp(24px, 3vw, 40px); }

.divider {
  position: relative; display: block;
  width: 56px; height: 14px; margin: 0 auto clamp(28px, 4vw, 44px);
}
.divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 2px; margin-top: -1px; background: var(--terra);
}
.divider::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%; background: var(--terra);
}

.title {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.1;
  color: var(--terra); text-align: center;
}
.title--left { text-align: left; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px 40px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--terra); border-color: var(--terra); color: #fff; }
.btn--sm { min-height: 48px; padding-inline: 36px; font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.btn--solid { background: #000; color: #fff; }
.btn--solid:hover { background: var(--terra); border-color: var(--terra); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.btn-row--center { justify-content: center; margin-top: clamp(32px, 4vw, 56px); }

/* Fotos pendientes (placeholders grises) */
.ph { width: 100%; background: var(--ph); border-radius: clamp(24px, 3vw, 40px); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph--about { aspect-ratio: 510 / 753; }
.ph--mi { aspect-ratio: 513 / 575; }
.ph--team { aspect-ratio: 513 / 673; }
.ph--workshop { aspect-ratio: 513 / 260; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); background: var(--white);
}
.header__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--g);
}
.logo img { height: 50px; width: auto; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--terra); border-radius: 2px; transition: transform .25s, opacity .25s; }
.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); }

.nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  display: none; background: var(--white);
  padding: 4px var(--g) 20px; box-shadow: 0 12px 20px rgba(0, 0, 0, .06);
}
.nav.is-open { display: block; }
.nav a {
  display: block; padding: 14px 0; text-decoration: none;
  font-weight: 600; font-size: 1rem; border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nav a:hover { color: var(--terra); }

.search-btn { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink); }
.search-btn:hover { color: var(--terra); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; background: var(--beige); }
.hero__title {
  order: -1;
  padding: 36px var(--g) 28px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1.12;
  color: var(--terra);
}
.hero__title em { font-weight: 700; font-style: italic; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 84% 18%; }
.hero__deco { display: none; }

.intro {
  max-width: 1240px; margin-inline: auto; text-align: center;
  padding: clamp(40px, 6vw, 80px) var(--g) clamp(32px, 4vw, 56px);
}
.intro__lead, .intro__text { max-width: 960px; margin-inline: auto; font-size: var(--fs-big); line-height: 1.35; }
.intro__text { margin-top: 1.4em; }
.intro__link { margin-top: clamp(32px, 4vw, 56px); font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.25rem); }
.intro__link a { text-underline-offset: 4px; }
.intro__link a:hover { color: var(--terra); }

/* ---------- Sobre mí ---------- */
.quote {
  max-width: 1040px; margin: 0 auto clamp(36px, 5vw, 64px); padding-inline: var(--g);
  text-align: center;
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 2.2rem); line-height: 1.35; color: var(--terra);
}

.about { display: grid; gap: 32px; }
.about__text p + p { margin-top: 1.3em; }

/* Tres movimientos */
.moves { display: grid; gap: 48px; margin-top: clamp(48px, 6vw, 80px); }
.move { text-align: center; font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.4; }
.move p + p { margin-top: 1.1em; }
.move__lead { font-weight: 700; }
.pill {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  height: clamp(60px, 5.6vw, 80px); margin-bottom: clamp(24px, 3vw, 40px);
  padding: 0 clamp(18px, 2vw, 26px) 0 clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--terra); border-radius: 999px; background: var(--cream);
}
.pill span {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem); color: var(--terra);
}
.pill i { width: clamp(24px, 2.4vw, 34px); aspect-ratio: 1; border-radius: 50%; background: var(--terra); }

.closing { max-width: 1000px; margin: clamp(48px, 6vw, 80px) auto 0; text-align: center; font-size: var(--fs-big); line-height: 1.35; }
.cta-line {
  margin-top: clamp(48px, 6vw, 80px); text-align: center;
  font-weight: 600; font-size: clamp(1rem, 1.4vw, 1.25rem); color: var(--terra);
}
.cta-line + .center { margin-top: 28px; }

/* ---------- Cómo puedo acompañarte ---------- */
.serif-intro { max-width: 960px; margin: clamp(32px, 4vw, 56px) auto 0; padding-inline: var(--g); text-align: center; color: var(--terra); }
.serif-intro__a { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.serif-intro__b { margin-top: 1.3em; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 2.1vw, 1.8rem); line-height: 1.35; }
.serif-intro__b strong { font-weight: 700; }

.test { margin-top: clamp(48px, 6vw, 88px); text-align: center; padding-inline: var(--g); font-size: var(--fs-body); }
.test .btn { margin-top: 28px; }

.center-text { max-width: 960px; margin-inline: auto; padding-inline: var(--g); text-align: center; font-size: var(--fs-big); line-height: 1.35; }
.center-text p + p { margin-top: 1.2em; }
.center-text .center { margin-top: 28px; }

/* ---------- Bloques con foto + texto ---------- */
.feature { display: grid; gap: 32px; margin-top: clamp(56px, 7vw, 100px); }
.feature__text p { margin-top: 1.3em; line-height: 1.4; }
.feature__text .title { margin-bottom: clamp(20px, 3vw, 44px); }
.feature__text .title + p { margin-top: 0; }
.section--white .feature { margin-top: 0; }

/* ---------- Planes ---------- */
.plans { display: grid; margin-top: clamp(56px, 7vw, 100px); row-gap: 56px; }
.plan {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 clamp(8px, 2vw, 32px);
}
.plan h3 { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.2; color: var(--terra); }
.plan__meta { margin-top: 14px; color: var(--terra); text-decoration: underline; text-underline-offset: 4px; font-size: clamp(1.05rem, 1.7vw, 1.45rem); font-weight: 400; }
.plan__title { margin-top: clamp(28px, 4vw, 56px); font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(1.4rem, 2.1vw, 1.9rem); line-height: 1.2; }
.plan__text { margin-top: clamp(20px, 2.6vw, 36px); font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.4; }
.more { margin-top: auto; padding-top: clamp(24px, 3vw, 40px); font-weight: 700; font-size: clamp(1rem, 1.3vw, 1.2rem); text-underline-offset: 4px; }
.more:hover { color: var(--terra); }

/* Móvil: separadores horizontales entre planes */
.plans .plan + .plan { border-top: 1px solid var(--ink); padding-top: 48px; }

.workshop { display: grid; gap: 28px; margin-top: clamp(56px, 7vw, 96px); align-items: end; }
.workshop__text { font-size: var(--fs-big); line-height: 1.35; }
.workshop__text .btn { margin-top: 28px; }

/* ---------- Cierre ---------- */
.section--close { padding-block: clamp(48px, 6vw, 80px); }
.disclaimer {
  margin-top: clamp(40px, 6vw, 72px) !important;
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(.9rem, 1.2vw, 1.05rem); line-height: 1.4;
}

/* ---------- Formulario ---------- */
.form { max-width: 1060px; margin: clamp(36px, 5vw, 64px) auto 0; padding-inline: var(--g); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  display: block; width: 100%; margin-bottom: 20px;
  min-height: clamp(52px, 5vw, 70px); padding: 12px 16px;
  background: transparent; border: 1px solid #333; border-radius: 8px;
  font-size: clamp(1rem, 1.5vw, 1.35rem); line-height: 1.3;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: clamp(180px, 20vw, 260px); resize: vertical; }
.form ::placeholder { color: var(--ink); opacity: 1; }
.form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none' stroke='%230d0d0d' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m2 2 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.form select:invalid { color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(184, 81, 47, .2);
}
.form [aria-invalid="true"] { border-color: #b3261e !important; }

.check {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: clamp(28px, 4vw, 48px) 0 12px; cursor: pointer;
  font-weight: 700; font-size: clamp(.95rem, 1.3vw, 1.15rem); text-align: left;
}
.check input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0;
  width: 28px; height: 28px; margin: 0; border: 1px solid var(--ink); border-radius: 2px; background: transparent; cursor: pointer;
}
.check input:checked {
  background: var(--terra) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 80% no-repeat;
  border-color: var(--terra);
}
.form__status { min-height: 1.5em; text-align: center; font-size: 1rem; font-weight: 500; }
.form__status.is-error { color: #b3261e; }
.form__status.is-ok { color: #2e6b3a; }
.btn-row--form { display: grid; gap: 16px; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); padding: clamp(40px, 5vw, 64px) var(--g); }
.footer__inner { display: grid; gap: 32px; align-items: start; max-width: 1280px; margin-inline: auto; }
.footer__logo img { width: 130px; height: auto; }
.footer__col p + p { margin-top: 1.1em; }
.footer__col { font-size: clamp(1rem, 1.3vw, 1.15rem); }
.footer__col a { text-decoration: none; }
.footer__col a:hover { text-decoration: underline; }
.social { display: flex; gap: 12px; margin-top: 20px; }
.social a { display: block; width: 42px; height: 42px; color: #000; transition: color .2s, transform .2s; }
.social a:hover { color: var(--terra); text-decoration: none; transform: translateY(-2px); }
.social svg { display: block; width: 100%; height: 100%; }

/* ==========================================================
   Tablet ≥ 700px
   ========================================================== */
@media (min-width: 700px) {
  .about { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
  .feature { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
  .moves { grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 36px); align-items: start; }
  .move:not(:last-child) .pill::after {
    content: ""; position: absolute; left: 100%; top: 50%; width: clamp(20px, 2.5vw, 36px); height: 1px; background: var(--terra);
  }

  .plans--3 { grid-template-columns: repeat(3, 1fr); row-gap: 0; }
  .plans--2 { grid-template-columns: repeat(2, 1fr); row-gap: 80px; }
  .plans .plan + .plan { border-top: 0; padding-top: 0; }
  .plans--3 .plan + .plan, .plans--2 .plan:nth-child(even) { border-left: 1px solid var(--ink); }

  .workshop { grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
  .btn-row--form { grid-template-columns: .7fr 1fr 1fr; gap: 24px; }
  .footer__inner { grid-template-columns: minmax(120px, 1fr) 2fr auto; gap: 40px; }
}

/* ==========================================================
   Escritorio ≥ 900px
   ========================================================== */
@media (min-width: 900px) {
  :root { --header-h: 103px; }

  /* Header */
  .nav-toggle { display: none; }
  .nav {
    position: static; display: block; margin: 0 auto 0 clamp(40px, 8vw, 120px);
    padding: 0; background: none; box-shadow: none;
  }
  .nav ul { display: flex; gap: clamp(32px, 5.6vw, 86px); }
  .nav a { padding: 6px 0; border: 0; font-size: clamp(.85rem, 1.05vw, 1rem); }
  .search-btn { display: inline-flex; }
  .logo img { height: 64px; }

  /* Hero: foto a todo el ancho + título superpuesto + círculo verde */
  .hero { position: relative; display: block; height: clamp(380px, 35.4vw, 620px); overflow: hidden; }
  .hero__img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: right 22%; }
  .hero__title {
    position: absolute; left: 11.1%; top: 26%; padding: 0; z-index: 2;
    font-size: clamp(2.6rem, 5.2vw, 5.4rem); line-height: 1.12;
  }
  .hero__deco { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .hero__line { position: absolute; top: 78%; display: block; }
  .hero__line--white { left: 0; width: 21.4%; height: 1px; background: rgba(255, 255, 255, .9); }
  .hero__line--olive { left: 33.4%; width: 28.4%; height: 2px; margin-top: -1px; background: var(--olive-line); }
  .hero__circle {
    position: absolute; left: 21.4%; top: 78%; width: 8.9%; aspect-ratio: 1;
    transform: translate(-50%, -50%); border-radius: 50%; background: var(--olive);
    display: grid; place-items: center;
  }
  .hero__circle i { width: 30%; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .9); border-radius: 50%; }
  .hero__dot {
    position: absolute; left: 33.4%; top: 78%; width: 1.1vw; max-width: 16px; aspect-ratio: 1;
    transform: translate(-50%, -50%); border-radius: 50%; background: var(--olive);
  }

  /* Botones de portada más anchos, como en el diseño */
  .intro .btn-row .btn { min-width: clamp(240px, 28vw, 410px); }
  .intro .btn-row { gap: 24px clamp(40px, 5.4vw, 80px); }

  .plan__text { max-width: 24em; }
  .footer__inner { grid-template-columns: minmax(120px, 1fr) 2fr auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
