@font-face {
  font-family: Sora;
  src: url('../personal-assets/Sora-variable.ttf') format('truetype');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --paper: #f7f6f2;
  --blue: #334578;
  --blue-dark: #293962;
  --ink: #263557;
  --muted: #586173;
  --line: #dce0e8;
  --accent: #eda783;
  --chip: #f0d5c5;
  --danger: #a32925;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.55 Sora, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, p { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 3; padding: .75rem 1rem; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.topbar, .contact-layout, .page-footer { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.topbar a { display: inline-flex; min-height: 44px; align-items: center; }
.topbar img { width: clamp(112px, 20vw, 176px); }
.back { gap: .5rem; font-size: .875rem; font-weight: 650; }

.contact-layout { flex: 1; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; padding-block: clamp(2.5rem, 6vw, 5rem); }
.contact-intro { padding-top: clamp(.5rem, 3vw, 2.5rem); }
.eyebrow { margin-bottom: 1rem; font-size: .74rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { font-weight: 700; letter-spacing: -.065em; line-height: 1.06; text-wrap: balance; }
.contact-intro h1 { font-size: clamp(2.4rem, 5.4vw, 4.8rem); }
h1 span, .success h2 span { color: var(--ink); text-decoration: underline solid var(--accent) .13em; text-underline-offset: .09em; }
.lead { max-width: 34ch; margin-block: 1.35rem 1.75rem; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.7; color: var(--muted); }

.steps { list-style: none; margin: 0 0 1.9rem; padding: 0; max-width: 40ch; }
.steps li { display: flex; align-items: flex-start; gap: .85rem; padding-block: .8rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { flex: none; min-width: 34px; padding: 5px 6px; border-radius: 4px; background: var(--chip); text-align: center; font-size: .68rem; font-weight: 700; line-height: 1.5; }
.steps p { font-size: .9rem; line-height: 1.6; }

.contact-signature { display: flex; align-items: center; gap: .85rem; margin-top: 1.9rem; }
.steps + .contact-signature { margin-top: 0; }
.contact-signature img { width: 52px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.contact-signature strong, .contact-signature span { display: block; font-size: .85rem; line-height: 1.45; }
.contact-signature span { font-weight: 400; color: var(--muted); }
.direct { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.direct a { font-weight: 650; color: var(--ink); overflow-wrap: anywhere; }

.contact-card { min-width: 0; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 0 0 16px 16px; padding: clamp(1.25rem, 3.5vw, 2.5rem); box-shadow: 0 16px 46px #2635570b; }
.contact-card h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); letter-spacing: -.05em; }
.form-hint { margin-block: .6rem 1.4rem; color: var(--muted); font-size: .95rem; }

.booking { margin-bottom: 1.25rem; padding: 1.1rem 1.2rem; border-radius: 12px; background: #f0f2f9; }
.booking-title { font-weight: 700; font-size: .95rem; }
.booking p:not(.booking-title) { margin-top: .25rem; font-size: .88rem; color: var(--muted); }
.booking-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 50px; margin-top: .9rem; padding: .7rem 1.2rem; border-radius: 8px; background: var(--accent); color: #1c294b; font-size: .9rem; font-weight: 700; text-decoration: none; }
.booking-link:hover { background: #f4bc9f; }
.or { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.25rem; font-size: .8rem; color: var(--muted); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

form { display: grid; gap: 1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { min-width: 0; }
label { display: block; font-size: .85rem; font-weight: 700; }
.optional { font-weight: 400; color: var(--muted); }
input:not([type=hidden]), textarea, select { display: block; width: 100%; min-height: 48px; margin-top: .38rem; padding: .65rem .8rem; border: 1px solid #aeb8ce; border-radius: 8px; background: #fafafb; color: var(--ink); font: 400 1rem/1.4 Sora, system-ui, sans-serif; }
textarea { resize: vertical; min-height: 128px; }
select { appearance: none; padding-right: 2.4rem; background: #fafafb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23263557' stroke-width='2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right .9rem center; }
::placeholder { color: #6b7487; opacity: 1; }
input:not([type=hidden]):focus, textarea:focus, select:focus { border-color: var(--blue); outline: 3px solid #33457840; outline-offset: 0; }
[aria-invalid='true'] { border-color: var(--danger) !important; background: #fff8f7 !important; }
.field-error { margin-top: .35rem; font-size: .82rem; font-weight: 600; color: var(--danger); }
.field-error[hidden], .fallback[hidden], .success[hidden], #form-panel[hidden] { display: none; }

.privacy { font-size: .8rem; line-height: 1.6; color: var(--muted); }
button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 50px; justify-self: start; padding: .7rem 1.2rem; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font: 700 .9rem/1.35 Sora, system-ui, sans-serif; cursor: pointer; }
button:hover:not(:disabled) { background: var(--blue-dark); }
button:disabled { opacity: .7; cursor: progress; }

.form-status:not(:empty) { margin-top: 1rem; padding: .8rem .9rem; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; background: #f0f2f9; font-size: .9rem; }
.form-status[data-state='error'] { border-color: var(--danger); background: #fff1ef; color: #7a2622; }
.fallback { margin-top: .7rem; font-size: .9rem; }
.fallback a { font-weight: 700; }

.success { padding-block: .5rem; outline: none; }
.success h2 { margin-bottom: 1rem; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -.06em; }
.success p:not(.eyebrow) { color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.success strong { color: var(--ink); }
.success-links { display: grid; gap: .1rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.success-links a { display: inline-flex; min-height: 44px; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 650; }

.page-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 76px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.page-footer a { display: inline-flex; min-height: 44px; align-items: center; }

/* Página legal (privacidad) */
.legal { flex: 1; width: min(760px, calc(100% - 3rem)); margin: 0 auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.legal .updated { margin-top: 1rem; font-size: .85rem; color: var(--muted); }
.legal h2 { margin-top: 2.2rem; font-size: 1.25rem; letter-spacing: -.035em; line-height: 1.25; }
.legal p, .legal li { margin-top: .6rem; font-size: .95rem; line-height: 1.75; color: #3a4562; }
.legal ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.legal a { font-weight: 650; }

@media (max-width: 780px) {
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-intro { padding: 0; }
  .lead { max-width: none; margin-bottom: 1.25rem; }
  .steps, .contact-signature { display: none; }
  .booking-link { width: 100%; }
}

@media (max-width: 490px) {
  .topbar, .contact-layout, .page-footer, .legal { width: calc(100% - 2rem); }
  .field-row { grid-template-columns: 1fr; }
  button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.brand .person-name { color: var(--indigo, #334578); font-weight: 700; font-size: clamp(1rem, 2vw, 1.35rem); letter-spacing: -.04em; white-space: nowrap; }
.brand:has(.person-name) { text-decoration: none; }
