/* ============================================================
   RECONECTA — Landing (editorial-cálido de coaching)
   Papel, tinta espresso, terracota y salvia.
   Firma: "el hilo que vuelve a unir".
   ============================================================ */

:root {
  /* Superficies (una sola tonalidad cálida, varía solo la claridad) */
  --paper:        #FAF6EE;
  --paper-deep:   #F3ECDD;
  --surface:      #FFFDF8;
  --surface-2:    #F6EFE2;

  /* Tinta */
  --ink:          #2C2721;
  --ink-soft:     #5A534A;
  --ink-faint:    #8C8377;

  /* Acento (un solo color de acción) */
  --clay:         #C26A3E;
  --clay-deep:    #A8532B;
  --clay-soft:    #F0DED2;

  /* Calma / éxito (uso escaso) */
  --sage:         #5F7A63;
  --sage-soft:    #E4EADF;

  /* Líneas: progresión de intensidad según importancia */
  --line:         rgba(44, 39, 33, 0.09);
  --line-soft:    rgba(44, 39, 33, 0.05);
  --line-strong:  rgba(44, 39, 33, 0.16);
  --line-focus:   rgba(194, 106, 62, 0.55);

  /* Profundidad: sombras sutiles, un solo enfoque */
  --shadow-sm: 0 1px 2px rgba(44,39,33,0.05), 0 4px 14px rgba(44,39,33,0.06);
  --shadow-md: 0 2px 4px rgba(44,39,33,0.05), 0 12px 32px rgba(44,39,33,0.09);

  /* Radio: suave pero contenido */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  /* Tipografía */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Public Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Espaciado base 8px */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px;
  --s6: 72px;

  --container: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--clay-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--clay-soft); }

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

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

/* ------------------------------------------------------------------ */
/* Tipografía                                                          */
/* ------------------------------------------------------------------ */

.display {
  font-family: var(--serif);
  font-weight: 540;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

.display em {
  font-style: italic;
  font-weight: 420;
  color: var(--clay);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--clay);
}

.lead {
  font-size: clamp(1.06rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 var(--s2);
}

.section-sub {
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 var(--s5);
}

.muted { color: var(--ink-faint); }

/* ------------------------------------------------------------------ */
/* Botones                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
  text-decoration: none !important;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--clay); color: #FFFDF8; }
.btn-primary:hover { background: var(--clay-deep); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }

.btn-sage { background: var(--sage); color: #FBFBF7; }
.btn-sage:hover { background: #4E684F; }

.btn-lg { padding: 18px 32px; font-size: 1.06rem; }

/* ------------------------------------------------------------------ */
/* Barra de navegación                                                 */
/* ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 238, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 68px;
}

.brand {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.brand small {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s1);
}

.nav-links a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color .15s ease, background-color .15s ease;
}

.nav-links a:hover { color: var(--ink); background: rgba(44,39,33,0.05); text-decoration: none; }

.nav-links a.nav-cta {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--clay); color: #FFFDF8; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}

.nav-toggle svg { display: block; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s6);
  align-items: center;
}

.hero-copy .kicker { margin-bottom: var(--s2); }
.hero-copy .display { margin-bottom: var(--s3); }
.hero-copy .lead { margin-bottom: var(--s4); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s3);
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.hero-note .dots { display: inline-flex; gap: 4px; }
.hero-note .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); opacity: .6; }

/* Firma: el hilo que vuelve a unir */
.hero-thread { position: relative; }

.hero-thread svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.node { filter: drop-shadow(0 6px 14px rgba(44,39,33,0.12)); }

.thread-path {
  fill: none;
  stroke: var(--clay);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 4 9;
  animation: thread-flow 4.5s linear infinite;
}

@keyframes thread-flow { to { stroke-dashoffset: -130; } }

.thread-glow {
  fill: none;
  stroke: var(--clay);
  stroke-opacity: 0.18;
  stroke-width: 6;
  stroke-linecap: round;
}

.hero-chip {
  position: absolute;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.01em;
}

.hero-chip b { color: var(--clay-deep); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Secciones                                                           */
/* ------------------------------------------------------------------ */

.section { padding: clamp(64px, 8vw, 112px) 0; }

.section--tinted { background: var(--paper-deep); }

.section-head {
  max-width: 640px;
  margin-bottom: var(--s5);
}

/* ------------------------------------------------------------------ */
/* "¿Te suena?" — el momento compartido                                */
/* ------------------------------------------------------------------ */

.moments {
  display: grid;
  gap: var(--s2);
  margin-bottom: var(--s4);
}

.moment {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--clay-soft);
  border-radius: var(--r-sm);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 460;
  color: var(--ink);
}

.moment span {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clay);
  min-width: 3ch;
}

.moment--last { border-left-color: var(--sage); }
.moment--last span { color: var(--sage); }

.reassure {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  justify-content: space-between;
  padding: var(--s3) var(--s4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.reassure p { margin: 0; font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; }
.reassure p b { color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Caminos (con el hilo entre ellos)                                   */
/* ------------------------------------------------------------------ */

.caminos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  position: relative;
}

.camino {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s4) var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.camino:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clay-soft);
}

.camino .camino-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--clay);
}

.camino h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0;
}

.camino .camino-start {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.camino p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.camino .camino-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--clay-deep);
}

.camino .camino-link:hover { color: var(--clay-deep); }
.camino .camino-link svg { transition: transform .18s ease; }
.camino:hover .camino-link svg { transform: translateX(4px); }

/* Hilo que une los tres caminos (escritorio) */
.caminos::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 8%;
  right: 8%;
  height: 0;
  border-top: 1px dashed rgba(194, 106, 62, 0.4);
  z-index: 0;
}

.camino .camino-dot {
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--clay);
  z-index: 1;
}

/* ------------------------------------------------------------------ */
/* Sobre Mariela                                                       */
/* ------------------------------------------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s6);
  align-items: center;
}

.about-portrait {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--clay-soft);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.about-portrait .placeholder {
  color: var(--clay-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
}

.about-portrait::after {
  content: "";
  position: absolute;
  inset: auto -18px -18px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--sage-soft);
  z-index: -1;
}

.about-copy h2 { margin-top: 0; }
.about-copy p { color: var(--ink-soft); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
  margin-top: var(--s3);
}

.chips .chip {
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/* Cómo funciona                                                       */
/* ------------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}

.step {
  padding-top: var(--s2);
  border-top: 2px solid var(--line);
  position: relative;
}

.step b {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
  font-size: 1.05rem;
  color: var(--clay);
  margin-bottom: var(--s1);
}

.step h3 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.18rem;
  margin: 0 0 6px;
}

.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ------------------------------------------------------------------ */
/* Recursos                                                            */
/* ------------------------------------------------------------------ */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.article-card .meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
}

.article-card h3 {
  font-family: var(--serif);
  font-weight: 540;
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0;
}

.article-card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

.article-card .read {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--clay-deep);
}

/* ------------------------------------------------------------------ */
/* Tienda                                                              */
/* ------------------------------------------------------------------ */

.product-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s5);
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.product-card .kicker { color: var(--clay); }
.product-card .kicker::before { background: var(--clay); }

.product-card h3 {
  font-family: var(--serif);
  font-weight: 520;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.12;
  margin: var(--s2) 0;
}

.product-card p { color: rgba(250,246,238,0.78); margin: 0 0 var(--s3); }

.product-price {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--paper);
  margin-bottom: var(--s3);
}

.product-price small { color: rgba(250,246,238,0.6); }

.product-includes {
  list-style: none;
  margin: 0;
  padding: var(--s3) var(--s4);
  border: 1px solid rgba(250,246,238,0.22);
  border-radius: var(--r-md);
  display: grid;
  gap: var(--s2);
}

.product-includes li {
  color: rgba(250,246,238,0.85);
  font-size: 1rem;
  padding-left: 26px;
  position: relative;
}

.product-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clay);
}

/* ------------------------------------------------------------------ */
/* Lead magnet / CTA final                                             */
/* ------------------------------------------------------------------ */

.regalo {
  position: relative;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s6);
  align-items: center;
}

.regalo::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--clay-soft);
  right: -90px;
  bottom: -90px;
  z-index: 0;
}

.regalo > * { position: relative; z-index: 1; }

.regalo h2 {
  font-family: var(--serif);
  font-weight: 540;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  margin: var(--s2) 0;
}

.regalo .lead { margin-bottom: var(--s2); }

.regalo ul {
  list-style: none;
  margin: 0 0 var(--s3);
  padding: 0;
  display: grid;
  gap: 8px;
}

.regalo ul li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--ink-soft);
}

.regalo ul li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* Formulario */
.regalo-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
}

.regalo-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.regalo-form input[type="text"],
.regalo-form input[type="email"],
.regalo-form input[type="tel"] {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.regalo-form input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--line-focus);
}

.regalo-form .field { margin-bottom: var(--s2); }

.regalo-form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: var(--s2);
}

.regalo-form .consent input { margin-top: 3px; accent-color: var(--clay); }

.regalo-form .btn { width: 100%; }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: var(--s6) 0 var(--s4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--s5);
  margin-bottom: var(--s5);
}

.footer .brand { margin-bottom: var(--s2); display: block; }

.footer p { color: var(--ink-faint); font-size: 0.94rem; max-width: 34ch; }

.footer h4 {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--s2);
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--ink-soft); font-size: 0.96rem; }
.footer ul a:hover { color: var(--clay-deep); }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: var(--s3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s2);
  color: var(--ink-faint);
  font-size: 0.88rem;
}

/* ------------------------------------------------------------------ */
/* Avisos de sesión                                                    */
/* ------------------------------------------------------------------ */

.flash {
  max-width: var(--container);
  margin: 16px auto 0;
  padding: 0 var(--s3);
}

.flash .alert {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--s3) var(--s3);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
}

@media (max-width: 980px) {
  .hero-inner,
  .about-grid,
  .regalo,
  .product-card { grid-template-columns: 1fr; gap: var(--s4); }

  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .caminos { grid-template-columns: 1fr; }
  .caminos::before { display: none; }
  .camino .camino-dot { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s3); }
}

@media (max-width: 760px) {
  .hero { padding-top: 48px; }
  .steps, .article-grid { grid-template-columns: 1fr; }
  .moment { flex-direction: column; gap: 4px; }
  .regalo-form { padding: var(--s3); }
}