/* ================================================================
   PSYNC — Landing v4
   Paleta del logo: chocolate #3D2010 + baby blue #A8C4CE
   Tipografía: Cormorant Garamond (display) + Source Sans 3 (body)
   Interacciones: CSS keyframes hero + IntersectionObserver scroll
   ================================================================ */

:root {
  --dark:        #2C1709;
  --sky:         #A8C4CE;
  --sky-deep:    #4D8499;
  --font-display: 'Cormorant Garamond', serif;
}

/* ── ANIMACIONES HERO (entrada inmediata) ───────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero .eyebrow  { animation: fadeUp 0.65s ease 0.05s both; }
.hero h1        { animation: fadeUp 0.75s ease 0.18s both; }
.hero p         { animation: fadeUp 0.7s  ease 0.34s both; }
.hero .hero-ctas { animation: fadeUp 0.7s ease 0.48s both; }
.hero > .container > div:last-child { animation: fadeIn 1s ease 0.3s both; }

/* ── SCROLL ANIMATIONS ──────────────────────────────────── */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BOTONES ─────────────────────────────────────────────── */
.btn {
  transition: background 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.15s ease,
              box-shadow 0.2s ease;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* ── HEADER — crema, limpio ─────────────────────────────── */
header {
  background: rgba(253,250,247,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
header .logo     { color: var(--ink); }
header .logo-svg { color: var(--sky-deep); }

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: color 0.18s ease;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--sky-deep);
  transition: width 0.24s ease;
}
.nav-links a:hover        { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

header .btn--solid {
  background: #3D2010;
  border-color: #3D2010;
  color: #F2ECE4;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 22px;
}
header .btn--solid:hover {
  background: var(--sky-deep);
  border-color: var(--sky-deep);
  color: #fff;
}

/* ── HERO — chocolate oscuro, como el logo ──────────────── */
.hero {
  padding: 144px 0 124px;
  background: #3D2010;
  border-bottom: none;
  overflow: hidden;
  /* Variables CSS para que el blueprint SVG se adapte */
  --line:        rgba(255,255,255,0.07);
  --surface:     rgba(255,255,255,0.05);
  --accent:      var(--sky);
  --accent-deep: rgba(168,196,206,0.65);
  --ink:         #F2ECE4;
  --ink-soft:    rgba(242,236,228,0.45);
  --teal:        rgba(168,196,206,0.45);
  --bg:          rgba(255,255,255,0.03);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero .eyebrow {
  color: rgba(168,196,206,0.65);
  display: block;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(3.4rem, 7.5vw, 6.2rem);
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 28px;
  color: #F2ECE4;
  font-weight: 700;
}
.hero h1 em {
  font-style: italic;
  color: var(--sky);
}
.hero p {
  font-size: 1.12rem;
  color: rgba(242,236,228,0.58);
  max-width: 460px;
  margin-bottom: 40px;
  line-height: 1.78;
}
.hero .btn--solid {
  background: var(--sky);
  border-color: var(--sky);
  color: #1A0804;
  font-weight: 700;
  font-size: 0.95rem;
}
.hero .btn--solid:hover {
  background: #fff;
  border-color: #fff;
  color: #1A0804;
  box-shadow: 0 8px 28px rgba(168,196,206,0.35);
}
.hero .btn--ghost {
  border-color: rgba(242,236,228,0.22);
  color: rgba(242,236,228,0.6);
}
.hero .btn--ghost:hover {
  background: rgba(242,236,228,0.07);
  border-color: rgba(242,236,228,0.4);
  color: #F2ECE4;
}

/* ── TRUST STRIP ─────────────────────────────────────────── */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.trust-row {
  display: flex;
  align-items: center;
}
.trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 0 28px;
}
.trust-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: #3D2010;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.3s ease;
}
.trust-item:hover .trust-num { color: var(--sky-deep); }
.trust-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 155px;
  line-height: 1.45;
}
.trust-divider {
  width: 1px;
  height: 60px;
  background: var(--line);
  flex-shrink: 0;
}

/* ── SECCIONES — escala ─────────────────────────────────── */
section { padding: 104px 0; }
.section-head h2 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
  font-weight: 700;
}
.section-head p { font-size: 1.05rem; max-width: 560px; }

/* ── PROCESO — crema, lista editorial ──────────────────── */
.process {
  background: var(--bg);
  border-top: none;
  border-bottom: 1px solid var(--line);
  padding: 104px 0;
}
.process .section-head .mono { color: var(--sky-deep); }

.process .steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 52px;
}
.process .step {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  display: grid;
  grid-template-columns: 72px 1fr 100px;
  column-gap: 36px;
  transition: background 0.2s ease, padding-left 0.2s ease;
  cursor: default;
}
.process .step:hover {
  background: rgba(61,34,18,0.03);
  padding-left: 8px;
  transform: none;
  box-shadow: none;
}
.process .step-num {
  grid-column: 1;
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--sky-deep);
  letter-spacing: 0.12em;
  display: block;
  align-self: start;
  padding-top: 5px;
  margin-bottom: 0;
}
.process .step-time {
  grid-column: 3;
  grid-row: 1;
  position: static;
  top: auto; right: auto;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  padding-top: 6px;
  opacity: 0.55;
}
.process .step h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.18;
}
.process .step p {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin-top: 0;
}
/* Sesión de Arquitectura destacada */
.process .step:nth-child(2) { background: rgba(77,132,153,0.05); }
.process .step:nth-child(2) .step-num { color: var(--sky-deep); }
.process .step:nth-child(2) h3        { color: var(--sky-deep); }
.process .step:nth-child(2):hover     { background: rgba(77,132,153,0.09); }

/* ── POR QUÉ PSYNC — superficie cálida ─────────────────── */
.why { background: var(--surface); }
.why .section-head .mono { color: var(--sky-deep); }

.cards { gap: 20px; }
.card {
  padding: 48px 40px;
  border: 1px solid var(--line);
  box-shadow: none;
  border-radius: 20px;
  transition: transform 0.22s ease, box-shadow 0.22s ease,
              border-color 0.22s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(61,34,18,0.1);
  border-color: var(--line-strong);
}
.card .mono { color: var(--sky-deep); }
.card h3    { font-size: 1.3rem; margin-bottom: 14px; font-weight: 600; }
.card p     { font-size: 0.97rem; line-height: 1.68; }

/* ── PSICÓLOGOS — chocolate, único segmento oscuro ─────── */
.psico {
  background: #3D2010;
  border: none;
  padding: 108px 0;
}
.psico .section-head     { max-width: 720px; }
.psico .section-head .mono { color: rgba(168,196,206,0.5); }
.psico h2 {
  color: #F2ECE4;
  font-size: clamp(2.2rem, 4.8vw, 3.2rem);
  letter-spacing: -0.04em;
  font-weight: 700;
}
.psico .section-head p { color: rgba(242,236,228,0.5); }
.psico-reqs            { color: rgba(242,236,228,0.28); }
.psico-reqs span       { color: rgba(168,196,206,0.7); }
.psico .btn--solid {
  background: var(--sky);
  border-color: var(--sky);
  color: #1A0804;
  font-weight: 700;
}
.psico .btn--solid:hover {
  background: #fff;
  border-color: #fff;
  color: #1A0804;
  box-shadow: 0 6px 24px rgba(168,196,206,0.3);
}

/* ── FAQ ─────────────────────────────────────────────────── */
#faq { background: var(--bg); }
#faq .section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
summary {
  font-size: 1.06rem;
  transition: color 0.15s ease;
}
summary:hover { color: #3D2010; }
summary::after {
  content: "+";
  width: 28px; height: 28px;
  display: inline-block;
  text-align: center;
  line-height: 25px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--sky-deep);
  transition: transform 0.28s ease, background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
details[open] summary::after {
  transform: rotate(45deg);
  background: #3D2010;
  border-color: #3D2010;
  color: #F2ECE4;
}
details p { font-size: 1rem; line-height: 1.72; }

/* ── FINAL CTA — chocolate oscuro, tipografía enorme ────── */
.final-cta {
  background: #3D2010;
  border: none;
  padding: 140px 0;
  text-align: center;
}
.final-cta .mono {
  color: rgba(168,196,206,0.5);
  display: block;
  margin-bottom: 28px;
}
.final-cta h2 {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  max-width: 800px;
  margin: 0 auto 44px;
  color: #F2ECE4;
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 700;
}
.final-cta .btn--solid {
  background: var(--sky);
  border-color: var(--sky);
  color: #1A0804;
  font-weight: 700;
  font-size: 1rem;
  padding: 17px 48px;
}
.final-cta .btn--solid:hover {
  background: #fff;
  border-color: #fff;
  color: #1A0804;
  box-shadow: 0 8px 32px rgba(168,196,206,0.35);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: none;
  padding: 52px 0;
}
footer .logo       { color: rgba(242,236,228,0.6); font-size: 1rem; margin-bottom: 6px; }
footer .logo-svg   { color: var(--sky); }
.footer-grid .mono { color: rgba(242,236,228,0.25); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { padding: 96px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .trust-row { flex-direction: column; gap: 32px; }
  .trust-divider { width: 48px; height: 1px; }
  section    { padding: 76px 0; }
  .process   { padding: 76px 0; }
  .psico     { padding: 76px 0; }
  .final-cta { padding: 96px 0; }

  .process .step {
    grid-template-columns: 48px 1fr;
    column-gap: 20px;
  }
  .process .step-time { display: none; }
  .process .step-num  { grid-row: 1; }
  .process .step h3   { grid-column: 2; grid-row: 1; }
  .process .step p    { grid-column: 2; grid-row: 2; }
}
@media (max-width: 480px) {
  .hero { padding: 68px 0 52px; }
  .hero h1 { font-size: 2.8rem; }
  section  { padding: 60px 0; }
  .final-cta { padding: 72px 0; }
  .final-cta h2 { font-size: 2.4rem; }
}
