/* ============================================================
   Edén — Agencia digital
   Paleta tomada del logotipo: beige cálido, vino y azul marino.
   ============================================================ */

:root {
  --cream:  #F3EEE8;
  --paper:  #E3DCD6;
  --paper-2:#DCD3CB;
  --wine:   #702028;
  --wine-d: #53141B;
  --navy:   #1B3D59;
  --ink:    #241E1C;
  --muted:  #6B5C55;
  --line:   rgba(36, 30, 28, .16);
  --line-2: rgba(36, 30, 28, .09);
  --line-soft: rgba(243, 238, 232, .28);

  --display: "Fraunces", "Georgia", serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 72px);
  --sec-y: clamp(72px, 11vh, 132px);
  --r: 2px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* grano de papel muy tenue */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.055'/%3E%3C/svg%3E");
}

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

::selection { background: var(--wine); color: var(--cream); }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: var(--cream);
  padding: 12px 20px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- tipografía base ---------- */

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; }

.kicker {
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
}

.sec__title {
  font-size: clamp(2rem, 4.1vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  text-wrap: balance;
}

.sec__intro, .sec__p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 17.5px;
  text-wrap: pretty;
}

.sec__intro { margin: 26px 0 0; }
.sec__p { margin: 24px 0 0; }
.sec__p + .sec__p { margin-top: 16px; }

/* ---------- botones ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--solid { --btn-bg: var(--wine); --btn-fg: var(--cream); }
.btn--solid:hover { --btn-bg: var(--wine-d); }

.btn--ghost { border-color: rgba(36,30,28,.28); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn--block { width: 100%; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-stuck { border-bottom-color: var(--line-2); }

.nav__in {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}

.nav__brand img { width: 104px; height: auto; }

.nav__links {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav__links a {
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--wine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { min-height: 42px; padding: 10px 22px; font-size: 14.5px; }

.nav__burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.nav__movil {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px var(--pad) 22px;
  border-bottom: 1px solid var(--line-2);
}
.nav__movil a {
  padding: 12px 0;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
}
.nav__movil[hidden] { display: none; }

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(48px, 7vh, 92px);
  padding-bottom: clamp(56px, 8vh, 104px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
}

.hero__title {
  font-size: clamp(2.65rem, 6.1vw, 5.6rem);
  line-height: .94;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--wine);
  padding-right: .04em;
}

.hero__lead {
  max-width: 44ch;
  margin: 28px 0 0;
  font-size: clamp(16.5px, 1.25vw, 19px);
  color: var(--muted);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* tarjeta-sello */
.stamp { display: flex; justify-content: center; margin-top: -14px; }

.stamp__card {
  width: min(100%, 320px);
  padding: 34px 30px 30px;
  background: var(--paper);
  border: 1px solid rgba(36,30,28,.13);
  box-shadow: 12px 12px 0 rgba(112, 32, 40, .10);
  transform: rotate(-3.2deg);
  text-align: center;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.stamp__card:hover {
  transform: rotate(-1deg) translateY(-4px);
  box-shadow: 16px 18px 0 rgba(112, 32, 40, .13);
}
.stamp__mark { width: 132px; margin: 0 auto 18px; }

.stamp__line {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--navy);
}
.stamp__strong {
  margin: 12px 0;
  padding: 12px 0;
  border-top: 1px solid rgba(27,61,89,.25);
  border-bottom: 1px solid rgba(27,61,89,.25);
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
  color: var(--wine);
}

/* ---------- banda ---------- */

.band {
  background: var(--wine);
  color: var(--cream);
  padding: 15px 0;
  transform: rotate(-1.1deg) scale(1.03);
  overflow: hidden;
  margin-block: -6px;
}
.band__track {
  display: flex;
  width: max-content;
  animation: slide 46s linear infinite;
}
.band__track:hover { animation-play-state: paused; }
.band__track span {
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  padding: 0 22px;
  position: relative;
  white-space: nowrap;
}
.band__track span::after {
  content: "✦";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-style: normal;
  opacity: .55;
}
@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- secciones ---------- */

.sec { padding-block: var(--sec-y); }
.sec--paper { background: var(--paper); }

.sec__head { max-width: 62ch; }

/* ---------- servicios ---------- */

.svc-list {
  margin-top: clamp(40px, 6vh, 64px);
  border-top: 1px solid var(--line);
}

.svc {
  display: grid;
  grid-template-columns: 56px minmax(200px, .9fr) minmax(0, 1.12fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: 30px 0 32px;
  border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), padding-inline .4s var(--ease);
}
.svc:hover { background: rgba(227,220,214,.6); padding-inline: 14px; }

.svc__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--navy);
  transition: color .4s;
}
.svc:hover .svc__num { color: var(--wine); }

.svc__title {
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.14;
  letter-spacing: -.015em;
  transition: color .4s var(--ease);
}
.svc:hover .svc__title { color: var(--wine); }

.svc__desc {
  margin: 0;
  color: #5E5048;
  font-size: 15.8px;
  transition: color .4s;
  text-wrap: pretty;
}
.svc:hover .svc__desc { color: var(--ink); }

/* ---------- proceso ---------- */

.steps {
  list-style: none;
  margin: clamp(40px, 6vh, 64px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
}

.step { padding-top: 24px; border-top: 1px solid rgba(36,30,28,.22); }

.step__num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--navy);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 20px;
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.step p { margin: 0; font-size: 15.5px; color: var(--muted); text-wrap: pretty; }

/* ---------- estudio ---------- */

.estudio {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}

/* tarjeta de presentación del estudio */
.estudio__media {
  margin: 0;
  max-width: 306px;
  padding: 26px 24px 22px;
  background: var(--paper);
  border: 1px solid rgba(36,30,28,.13);
  box-shadow: 10px 12px 0 rgba(27, 61, 89, .09);
  transform: rotate(-1.7deg);
  position: sticky;
  top: 108px;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.estudio__media:hover {
  transform: rotate(-.7deg) translateY(-3px);
  box-shadow: 12px 15px 0 rgba(27, 61, 89, .12);
}
.estudio__shot { display: block; }
.estudio__shot img { width: 74%; margin: 0 auto; }

.estudio__cardlist {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid rgba(27,61,89,.22);
}
.estudio__cardlist li {
  padding: 9px 0;
  border-bottom: 1px solid rgba(27,61,89,.14);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--navy);
}
.estudio__media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wine);
}

.estudio__list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.estudio__list li {
  padding: 15px 0 15px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 16px;
  color: var(--ink);
}
.estudio__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 24px;
  width: 9px; height: 9px;
  border: 1.5px solid var(--wine);
  border-radius: 50%;
}

/* ---------- cita ---------- */

.quote {
  background: var(--navy);
  color: var(--cream);
  padding-block: clamp(72px, 12vh, 132px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote::before,
.quote::after {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border: 1px solid rgba(243,238,232,.16);
  border-radius: 50%;
}
.quote::before { top: -80px; left: -60px; }
.quote::after { bottom: -110px; right: -40px; }

.quote__text {
  max-width: 24ch;
  margin: 0 auto;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  text-wrap: balance;
  position: relative;
}
.quote__text em { font-style: italic; color: #E8C9A8; }

.quote__by {
  margin: 30px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(243,238,232,.62);
}

/* ---------- contacto ---------- */

.sec--contact { padding-bottom: clamp(80px, 12vh, 140px); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.contact__list {
  list-style: none;
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.contact__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact__list span {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
}
.contact__list a, .contact__list p {
  margin: 0;
  font-size: 17px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  justify-self: start;
  transition: border-color .3s, color .3s;
}
.contact__list a:hover { color: var(--wine); border-bottom-color: var(--wine); }

/* form */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
  padding-top: 6px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(36,30,28,.3);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  transition: border-color .3s ease;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.field input::placeholder,
.field textarea::placeholder { color: rgba(94,80,72,.85); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--wine);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B3D59' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 24px;
}

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--wine); flex: 0 0 auto; }
.field--check label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
.field--check a { color: var(--wine); text-underline-offset: 3px; }

.form__note {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form .btn { margin-top: 6px; }

.form__status {
  margin: 0;
  font-size: 14.5px;
  min-height: 22px;
  color: var(--muted);
}
.form__status.is-ok { color: #2F6B4F; }
.form__status.is-err { color: var(--wine); }

.form.is-busy { opacity: .7; pointer-events: none; }

/* ---------- footer ---------- */

.foot {
  background: var(--paper);
  border-top: 1px solid rgba(36,30,28,.12);
  padding-top: clamp(48px, 7vh, 72px);
}
.foot__in {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding-bottom: clamp(40px, 6vh, 62px);
}
.foot__brand img { width: 132px; }
.foot__brand p {
  max-width: 26ch;
  margin: 18px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.foot__ttl {
  margin: 0 0 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--navy);
}
.foot__cols a {
  display: block;
  font-size: 15.5px;
  text-decoration: none;
  padding: 4px 0;
  color: var(--ink);
  transition: color .3s;
}
.foot__cols a:hover { color: var(--wine); }

.foot__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(36,30,28,.12);
  font-size: 13px;
  color: var(--muted);
}
.foot__base p { margin: 0; }

/* ---------- reveal ---------- */

.reveal {
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stamp { justify-content: flex-start; margin-top: 12px; }
  .stamp__card { width: min(100%, 290px); }
  .estudio { grid-template-columns: 1fr; }
  .estudio__media { position: static; max-width: 262px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .contact { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 44px 1fr; row-gap: 8px; }
  .svc__desc { grid-column: 2; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__movil:not([hidden]) { display: flex; }
  .nav__in { min-height: 68px; }
  .nav__brand img { width: 80px; }

  .hero { padding-top: 28px; padding-bottom: 44px; }
  .hero__title { font-size: clamp(2.05rem, 8.9vw, 2.8rem); line-height: .98; }
  .hero__lead { margin-top: 20px; font-size: 16px; }
  .hero__actions { margin-top: 26px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .stamp { margin-top: 4px; }
  .stamp__card { width: min(100%, 250px); padding: 24px 22px 20px; }
  .stamp__mark { width: 96px; margin-bottom: 12px; }

  .form { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .contact__list li { grid-template-columns: 92px 1fr; }
}

@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr; }
  .band { transform: rotate(-1.6deg) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  .band__track { animation: none; }
  .btn:hover, .stamp__card:hover { transform: none; }
  * { scroll-behavior: auto !important; }
}
