/* =========================================================
   Growth Media Consulting — subpáginas: agendar · gracias · legales
   (requiere styles.css)
   ========================================================= */

.page-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); padding: clamp(150px, 16vw, 210px) 0 clamp(80px, 9vw, 120px); }
.page-hero__inner { position: relative; }
.page-hero__inner > * { max-width: 980px; }
.page-hero__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(46px, 7vw, 104px); line-height: .98; letter-spacing: -.045em; margin-bottom: 28px; }
.page-hero__title--sm { font-size: clamp(40px, 5.6vw, 80px); }
.page-hero__title em, .thanks__title em { font-style: normal; color: var(--red); }
.page-hero__lead { font-size: clamp(17px, 1.45vw, 20px); color: rgba(255,255,255,.72); max-width: 680px; }
.page-hero__lead strong { color: var(--white); font-weight: 600; }

/* ---------- Booking ---------- */
.booking { background: var(--paper); padding: clamp(56px, 7vw, 100px) 0 clamp(96px, 11vw, 150px); }
.booking__inner { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.booking__aside { position: sticky; top: 110px; }
.next-steps { display: flex; flex-direction: column; margin-bottom: 44px; }
.next-steps li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.next-steps li:last-child { border-bottom: 1px solid var(--line); }
.next-steps span { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .1em; color: var(--red); padding-top: 4px; }
.next-steps h3 { font-family: var(--f-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 4px; }
.next-steps p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.direct { padding: 28px; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.direct__title { font-family: var(--f-display); font-weight: 700; font-size: 16px; margin-bottom: 14px; }
.direct__link { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: rgba(255,255,255,.82); font-size: 15px; overflow-wrap: anywhere; transition: color .3s; }
.direct__link:hover { color: var(--white); }
.direct__link svg { width: 20px; height: 20px; flex: none; color: var(--red); }

/* ---------- Form ---------- */
.form-card { background: var(--white); border-radius: 24px; padding: clamp(26px, 4vw, 56px); box-shadow: 0 40px 90px -50px rgba(0,0,0,.28); }
.lead-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lead-form .form-group { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line-2); }
.form-group__title { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--ink); margin-bottom: 26px; padding: 0; }
.form-group__title span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: var(--white); font-size: 12px; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.field { position: relative; margin-bottom: 26px; }
.form-group > .field:last-child { margin-bottom: 0; }
.form-grid .field { margin-bottom: 0; }
.field--full { grid-column: 1 / -1; }
.field > label:not(.check), .field__label { display: block; font-family: var(--f-display); font-weight: 600; font-size: 14.5px; color: var(--charcoal); margin-bottom: 10px; }
.field i, .check i { font-style: normal; color: var(--red); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid transparent; border-radius: 12px;
  padding: 15px 18px; outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #A0A0A0; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { background: var(--white); border-color: var(--red); box-shadow: 0 0 0 4px rgba(206,14,45,.1); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--gray); border-bottom: 2px solid var(--gray); transform: rotate(45deg); pointer-events: none; }
.field select { padding-right: 44px; cursor: pointer; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--paper); border: 1.5px solid transparent; font-family: var(--f-display); font-weight: 600; font-size: 14.5px; color: var(--charcoal); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.pill:hover span { border-color: var(--line); }
.pill input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(206,14,45,.2); }
.pill:active span { transform: scale(.97); }

.field--check { margin: 0 0 24px; }
.check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 15px; color: var(--gray); line-height: 1.5; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--paper); border: 1.5px solid var(--line); position: relative; transition: background .25s, border-color .25s; }
.check__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 12px; border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .25s var(--ease); }
.check input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 4px rgba(206,14,45,.2); }
.check a, .rgpd a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.field__error { display: none; margin-top: 8px; font-size: 13.5px; font-weight: 500; color: var(--red); }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); background: #FFF6F7; }
.field.is-invalid .check__box, .field.is-invalid .pill span { border-color: rgba(206,14,45,.5); }

.form-status { margin-bottom: 18px; padding: 16px 18px; border-radius: 12px; background: #FFF0F2; border: 1px solid rgba(206,14,45,.25); color: var(--red-dark); font-size: 15px; font-weight: 500; }
.btn--block { width: 100%; justify-content: center; }
.form-submit { margin-bottom: 22px; }
.form-submit .spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: var(--white); animation: spin .8s linear infinite; }
.form-submit.is-loading { pointer-events: none; opacity: .85; }
.form-submit.is-loading .btn__arrow { display: none; }
.form-submit.is-loading .spinner { display: block; }
.rgpd { font-size: 12.5px; line-height: 1.6; color: #8A8A8A; }
.rgpd strong { color: var(--gray); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Gracias ---------- */
.thanks { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: var(--ink); color: var(--white); overflow: hidden; padding: 60px 0; text-align: center; }
.thanks__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.thanks__logo { width: 150px; margin-bottom: clamp(36px, 6vh, 64px); }
.thanks__check { width: 104px; height: 104px; margin-bottom: 30px; filter: drop-shadow(0 18px 40px rgba(206,14,45,.45)); }
.thanks__check svg { width: 100%; height: 100%; }
.thanks__circle { stroke: var(--red); }
.thanks__tick { stroke: var(--white); }
.thanks .eyebrow { margin-bottom: 20px; }
.nowrap { white-space: nowrap; }
.thanks__title { font-family: var(--f-display); font-weight: 900; font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -.045em; max-width: 1000px; margin-bottom: 28px; text-wrap: balance; }
.thanks__lead { max-width: 620px; font-size: clamp(17px, 1.45vw, 20px); color: rgba(255,255,255,.72); margin-bottom: 44px; }
.thanks__lead strong { color: var(--white); }
.thanks__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 900px; margin-bottom: 44px; text-align: left; }
.thanks__steps li { padding: 22px 22px 24px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.thanks__steps span { display: block; font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .12em; color: var(--red); margin-bottom: 10px; }
.thanks__steps p { font-family: var(--f-display); font-weight: 700; font-size: 16px; line-height: 1.35; }
.thanks__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Legales ---------- */
.legal { background: var(--white); padding: clamp(56px, 7vw, 100px) 0 clamp(96px, 11vw, 150px); }
.legal__body { max-width: 820px; }
.legal__body h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; color: var(--ink); margin: 48px 0 14px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: var(--gray); margin-bottom: 14px; }
.legal__body ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal__body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 15px; }
.legal__body td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--gray); vertical-align: top; }
.legal__body td:first-child { font-weight: 600; color: var(--ink); width: 34%; }
.legal__updated { font-size: 14px; color: var(--muted); }

@media (max-width: 1080px) {
  .booking__inner { grid-template-columns: 1fr; }
  .booking__aside { position: static; order: 2; }
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .thanks__steps { grid-template-columns: 1fr; }
  .thanks__ctas .btn { width: 100%; justify-content: center; }
  .pill span { padding: 11px 16px; font-size: 14px; }
  .legal__body td { display: block; width: 100%; padding: 6px 0; border: 0; }
  .legal__body tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}
