/* Contacto: hero corto, formulario con validación y, al lado, los relojes de Madrid y Lima
   que dicen en vivo si el estudio está atendiendo (el momento de esta página). */
.page-hero { min-height: min(62svh, 600px); }
.page-hero .wrap { grid-template-columns: 1fr; }
.page-hero h1 { font-size: clamp(3.4rem, 10vw, 8.6rem); }
.page-hero .sub { max-width: 34ch; }

.ct { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; align-items: start; }

/* Formulario */
.form-card { min-width: 0; padding: clamp(24px, 4vw, 44px); border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.form-card > h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 8px; }
.form-card > p { color: var(--muted); margin-bottom: 28px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field > label, .field legend { font-size: 0.92rem; font-weight: 700; padding: 0; }
.field .req { color: var(--accent); margin-left: 2px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 16px; min-height: 50px;
  transition: border-color var(--m-out) var(--ease), background-color var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.field.bad input, .field.bad textarea { border-color: var(--accent); }
.err { display: none; font-size: 0.86rem; color: var(--accent-text); font-weight: 500; }
.field.bad .err { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); font-size: 0.94rem; font-weight: 500; cursor: pointer; transition: transform var(--m-out) var(--ease), border-color var(--m-out) var(--ease), background-color var(--m-out) var(--ease), color var(--m-out) var(--ease); }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips label:active { transform: scale(.975); }
@media (hover: hover) and (pointer: fine) { .chips label:hover { border-color: var(--ink); } }
.send { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 8px; }
.send .btn { min-height: 54px; padding: 0 28px; }
.send small { color: var(--muted); font-size: 0.86rem; flex-basis: 100%; }
.btn--wa::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.6 14.2c-.2.6-1.4 1.2-2 1.3-.5.1-1.2.1-1.9-.1a17 17 0 0 1-1.7-.6 13.4 13.4 0 0 1-5.1-4.5c-.4-.5-1.1-1.6-1.1-3s.7-2.1 1-2.4c.3-.3.6-.4.8-.4h.6c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .5l-.3.5-.4.5c-.1.1-.3.3-.1.6.2.3.7 1.2 1.6 2 1.1 1 2 1.3 2.3 1.4.3.1.4.1.6-.1l.9-1c.2-.3.4-.2.6-.1l2 1c.3.1.5.2.5.3.1.1.1.7-.2 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm5.6 14.2c-.2.6-1.4 1.2-2 1.3-.5.1-1.2.1-1.9-.1a17 17 0 0 1-1.7-.6 13.4 13.4 0 0 1-5.1-4.5c-.4-.5-1.1-1.6-1.1-3s.7-2.1 1-2.4c.3-.3.6-.4.8-.4h.6c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .5l-.3.5-.4.5c-.1.1-.3.3-.1.6.2.3.7 1.2 1.6 2 1.1 1 2 1.3 2.3 1.4.3.1.4.1.6-.1l.9-1c.2-.3.4-.2.6-.1l2 1c.3.1.5.2.5.3.1.1.1.7-.2 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Mensaje tras enviar */
.done { display: none; text-align: left; gap: 18px; justify-items: start; padding: clamp(8px, 2vw, 20px) 0; }
.form-card.sent form, .form-card.sent > h2, .form-card.sent > p { display: none; }
.form-card.sent .done { display: grid; }
.done .mark { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; }
.done .mark svg { width: 30px; height: 30px; }
.done h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.done p { color: var(--muted); max-width: 46ch; }
.done:focus { outline: none; }

/* Lateral: relojes y vías directas */
.ct-side { min-width: 0; display: grid; gap: 20px; position: sticky; top: calc(var(--nav-h) + 24px); }
.clocks { padding: 24px; border-radius: 26px; background: var(--band-bg); color: var(--band-fg); display: grid; gap: 18px; }
.clocks h3 { font-family: var(--f-body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-muted); }
.city { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; padding-top: 16px; border-top: 1px solid var(--band-line); }
.city b { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: -0.02em; }
.city time { font-family: var(--f-display); font-size: clamp(2.2rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; }
.city span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--band-muted); }
.city span i { width: 8px; height: 8px; border-radius: 50%; background: var(--band-line); flex: none; }
.city.open span { color: var(--band-fg); }
.city.open span i { background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } }
.clocks small { color: var(--band-muted); font-size: 0.84rem; }
.direct { display: grid; gap: 12px; }
.way { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform 120ms var(--ease), border-color 120ms var(--ease); }
.way .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.way .ic svg { width: 20px; height: 20px; }
.way small { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.way strong { font-weight: 500; overflow-wrap: anywhere; }
.way .copy-btn { color: var(--accent-text); border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) { a.way:hover { transform: translateY(-2px); border-color: var(--line-strong); transition-duration: 180ms; } }

/* Qué pasa después */
.after { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.after li { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink); }
.after b { font-family: var(--f-display); font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; justify-self: start; }
.after p { color: var(--muted); max-width: 34ch; }

@media (max-width: 1023px) {
  .ct { grid-template-columns: 1fr; }
  .ct-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .fields, .ct-side, .after { grid-template-columns: 1fr; }
  .send .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .city.open span i { animation: none; } }
