/* ==========================================================================
   Reseñas · Mi enfoque · Contacto · Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Reseñas — sección crema con dos filas en movimiento
   -------------------------------------------------------------------------- */
.reviews {
  --ink: var(--green-900); --ink-60: rgba(7, 45, 45, .62); --ink-15: rgba(7, 45, 45, .14); --gold-ink: #A87A2A;
  position: relative; overflow: hidden;
  padding: clamp(96px, 15vh, 160px) 0 clamp(90px, 13vh, 150px);
  background: var(--ivory); color: var(--ink);
}
.reviews .eyebrow--dark { color: var(--gold-ink); }
.reviews__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding: 0 var(--pad); margin-bottom: clamp(48px, 7vh, 80px);
}
.reviews__title {
  margin: 0; font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 6.4vw, 112px); line-height: .94; letter-spacing: -.02em;
}
.reviews__title .accent { color: var(--gold-ink); }

.rating {
  display: flex; align-items: center; gap: 22px;
  padding: 22px 28px; border: 1px solid var(--ink-15);
  transition: border-color .5s, background .5s;
}
.rating:hover { border-color: var(--ink); background: rgba(7, 45, 45, .03); }
.rating__num { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 6vw, 92px); line-height: .8; }
.rating__side { display: flex; flex-direction: column; gap: 6px; }
.rating__stars { color: var(--gold-ink); letter-spacing: .18em; font-size: 18px; }
.rating__count { font-size: 13px; color: var(--ink-60); }
.rating__link {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
}
.rating__link .cta__arrow { width: 22px; }
.rating:hover .rating__link .cta__arrow { width: 38px; }

/* Filas en movimiento */
.rv-rows { display: flex; flex-direction: column; gap: 18px; }
.rv-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.rv-track { display: flex; gap: 18px; width: max-content; will-change: transform; }
.rv {
  position: relative; flex: none; margin: 0;
  width: clamp(300px, 30vw, 440px);
  display: flex; flex-direction: column; gap: 22px;
  padding: 30px 30px 26px;
  background: var(--green-900); color: var(--ivory); border: 1px solid var(--green-900);
  box-shadow: 0 18px 40px rgba(7, 45, 45, .14);
  transition: transform .7s var(--ease-out), box-shadow .7s, border-color .5s;
}
.rv::before {
  content: "“"; position: absolute; top: 4px; right: 22px;
  font-family: var(--serif); font-size: 110px; line-height: 1; color: rgba(246, 197, 111, .22);
}
.rv:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(7, 45, 45, .25); border-color: rgba(246, 197, 111, .5); }
.rv__tag {
  align-self: flex-start; padding: 6px 11px 5px; background: var(--gold); color: var(--green-900);
  font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.rv blockquote { margin: 0; font-family: var(--serif); font-size: clamp(19px, 1.45vw, 23px); line-height: 1.35; color: var(--ivory); }
.rv figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--ivory-12); font-size: 14px; }
.rv figcaption b { display: block; font-weight: 600; }
.rv figcaption small { display: block; font-size: 11px; color: var(--ivory-60); letter-spacing: .04em; }
.rv__avatar {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--green-900);
  font-family: var(--serif); font-size: 20px;
}
.rv__stars { margin-left: auto; color: var(--gold); font-size: 13px; letter-spacing: .1em; }

/* --------------------------------------------------------------------------
   Mi enfoque — foto real + pasos con línea de progreso
   -------------------------------------------------------------------------- */
.approach { position: relative; padding: clamp(100px, 16vh, 180px) var(--pad); background: var(--green-800); }
.approach__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 130px); align-items: start; }
.approach__aside { position: sticky; top: 120px; }
.approach__photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.approach__photo img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 18%; will-change: transform; }
.approach__photo::before {
  content: ""; position: absolute; inset: 14px; z-index: 1; pointer-events: none;
  border: 1px solid rgba(246, 197, 111, .4);
}
.approach__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(4, 32, 31, .85)); }
.approach__photo figcaption {
  position: absolute; left: 34px; right: 34px; bottom: 30px; z-index: 2;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 10px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory);
}

.approach__title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(50px, 6.4vw, 110px); line-height: .95; letter-spacing: -.02em; }
.approach__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.approach__title .line__inner { display: inline-block; }
.approach__title .accent { color: var(--gold); }
.approach__lead { margin: clamp(22px, 3.5vh, 36px) 0 clamp(44px, 7vh, 72px); max-width: 520px; color: var(--ivory-60); font-weight: 300; font-size: 17px; }

.steps { --progress: 0; position: relative; list-style: none; margin: 0; padding: 0; }
.steps::before, .steps::after { /* línea base y línea de progreso */
  content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 1px; background: var(--ivory-12);
}
.steps::after { background: var(--gold); transform-origin: top; transform: scaleY(var(--progress)); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding-bottom: clamp(36px, 6vh, 60px); }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--ivory-30); background: var(--green-800);
  font-family: var(--serif); font-size: 20px; color: var(--ivory-60);
  transition: background .6s, border-color .6s, color .6s;
}
.step.is-on .step__num { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
.step__title { margin: 12px 0 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.4vw, 40px); line-height: 1.05; transition: color .6s; color: var(--ivory-60); }
.step.is-on .step__title { color: var(--ivory); }
.step__text { margin: 0; max-width: 480px; color: var(--ivory-60); font-weight: 300; }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact { position: relative; padding: clamp(100px, 16vh, 170px) var(--pad); background: var(--green-900); border-top: 1px solid var(--ivory-12); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 130px); align-items: start; }
.contact__title { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 7.4vw, 130px); line-height: .92; letter-spacing: -.02em; }
.contact__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.contact__title .line__inner { display: inline-block; }
.contact__title .accent { color: var(--gold); }
.contact__lead { margin: 26px 0 44px; max-width: 440px; color: var(--ivory-60); font-weight: 300; font-size: 17px; }

.cinfo { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--ivory-12); }
.cinfo li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--ivory-12); }
.cinfo__label { font-size: 10px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); padding-top: 6px; }
.cinfo__value { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); line-height: 1.25; transition: color .4s; }
a.cinfo__value:hover { color: var(--gold); }

.contact__map { position: relative; aspect-ratio: 16 / 8; overflow: hidden; border: 1px solid var(--ivory-12); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) sepia(.25) hue-rotate(120deg) contrast(.85) brightness(.9); }

/* Formulario */
.cform {
  position: relative; padding: clamp(32px, 3.4vw, 56px);
  background: var(--green-800); border: 1px solid var(--ivory-12);
  display: flex; flex-direction: column; gap: 26px;
}
.cform::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--gold), var(--coral)); }
.cform__intro { margin: 0; color: var(--ivory-60); font-weight: 300; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 22px 0 10px; border: 0; border-bottom: 1px solid var(--ivory-30); border-radius: 0;
  background: transparent; color: var(--ivory); font: inherit; font-size: 17px; resize: vertical; outline: none;
  transition: border-color .4s;
}
.field label {
  position: absolute; left: 0; top: 22px; pointer-events: none;
  color: var(--ivory-60); font-size: 16px; transform-origin: left;
  transition: transform .4s var(--ease-out), color .4s;
}
.field::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.field:focus-within::after { transform: scaleX(1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.72); color: var(--gold); }
.field.is-error input, .field.is-error textarea { border-color: var(--coral); }

.cform__areas { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cform__areas legend { margin-bottom: 12px; font-size: 13px; color: var(--ivory-60); }
.cform__areas label { cursor: pointer; }
.cform__areas input { position: absolute; opacity: 0; pointer-events: none; }
.cform__areas span {
  display: inline-block; padding: 10px 16px 9px; border: 1px solid var(--ivory-30);
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  transition: background .4s, color .4s, border-color .4s;
}
.cform__areas label:hover span { border-color: var(--gold); }
.cform__areas input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
.cform__areas input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.cform .sbtn { align-self: flex-start; }
.sbtn--solid { background: transparent; }
.cform__note { margin: 0; font-size: 12px; color: var(--ivory-60); }
.cform__note.is-ok { color: var(--gold); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { position: relative; overflow: hidden; padding: clamp(80px, 12vh, 130px) var(--pad) 28px; background: var(--green-950); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: clamp(56px, 9vh, 96px); }
.footer__mono { width: 64px; height: auto; overflow: visible; }
.footer__mono path { fill: var(--gold); }
.footer__brand p { margin: 22px 0 28px; max-width: 300px; color: var(--ivory-60); font-weight: 300; }
.footer__label { margin: 0 0 18px; font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: rgba(244, 238, 227, .8); }
.footer__col a { position: relative; align-self: flex-start; transition: color .4s; }
.footer__col a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.footer__col a:hover { color: var(--ivory); }
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__word { display: block; width: 100%; height: auto; overflow: visible; }
.footer__word path { fill: rgba(246, 197, 111, .1); transition: fill .8s; }
.footer__word:hover path { fill: rgba(246, 197, 111, .22); }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: clamp(36px, 6vh, 60px); padding-top: 22px; border-top: 1px solid var(--ivory-12);
  font-size: 12px; color: var(--ivory-60);
}
.footer__credit { color: var(--ivory-60); transition: color .4s; }
.footer__credit b { color: var(--ivory); font-weight: 600; letter-spacing: .04em; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.footer__credit:hover b { background-size: 100% 1px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .approach__grid, .contact__grid { grid-template-columns: 1fr; }
  .approach__aside { position: static; max-width: 520px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .rv { width: 82vw; }
  .rating { width: 100%; }
  .cinfo li { grid-template-columns: 1fr; gap: 6px; }
  .footer__top { grid-template-columns: 1fr; }
  .contact__map { aspect-ratio: 4 / 3; }
}

/* Arrastre de reseñas */
.rv-row { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.rv-row.is-dragging { cursor: grabbing; }
.rv-row.is-dragging .rv { transition: none; }

/* Formulario conectado al panel */
.cform__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field--select select {
  width: 100%; padding: 22px 0 10px; border: 0; border-bottom: 1px solid var(--ivory-30); border-radius: 0;
  background: transparent; color: var(--ivory); font: inherit; font-size: 17px; outline: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 12px) 60%, calc(100% - 7px) 60%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field--select select option { background: var(--green-900); color: var(--ivory); }
.field--select label { transform: translateY(-22px) scale(.72); color: var(--gold); }
.cform__trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__campos { display: flex; flex-direction: column; gap: 26px; }
.cform__note.is-error { color: #f0a58f; }
.cform [data-cform-btn]:disabled { opacity: .6; pointer-events: none; }
.cform__ok { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 0; }
.cform__ok[hidden] { display: none; }
.cform__ok-icon { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; }
.cform__ok-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cform__ok-title { margin: 6px 0 0; font-family: var(--serif); font-size: clamp(30px, 2.6vw, 42px); line-height: 1.05; }
.cform__ok-text { margin: 0 0 8px; max-width: 440px; color: var(--ivory-60); font-weight: 300; }
@media (max-width: 640px) { .cform__fila { grid-template-columns: 1fr; } }
.cform__campos[hidden] { display: none; }
