/* Colores de sa studio (paleta E elegida por Sandra): fondo claro y, en los bloques,
   Arcilla (terracota claro), Bruma (azul grisáceo) y Tierra (terracota oscuro). */
:root {
  --bg: #FBF8F4;
  --text: #33302D;
  --ink: #33302D;
  --brand: #6B5348;
  --soft: #7A6B62;
  --line: #E2DBD0;
  --topbar: #82665A;    --topbar-text: #FBF8F4;
  --tier-line: #82665A;
  --note-bg: #D4CEC2;   --note-text: #33302D;
  --rental-bg: #C0C6BA; --rental-text: #33302D; --rental-line: #A9B0A2;
  --online-bg: #82665A; --online-text: #FBF8F4; --online-accent: #EFEAE1; --online-line: #D4CEC2;
  --cta-bg: #EFEAE1;    --cta-text: #33302D;    --cta-button: #82665A; --cta-button-text: #FBF8F4;
}
:root { --gutter: clamp(20px, 2.6vw, 40px); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 300 17px/1.65 "Inter", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; filter: grayscale(1) contrast(.92) brightness(1.04); background: var(--line); }

/* Tipografía: grande y fina para titulares, mayúsculas espaciadas para etiquetas */
.display { font-family: "Inter Tight", "Inter", sans-serif; font-weight: 300; font-size: clamp(56px, 9.5vw, 150px); line-height: .98; letter-spacing: -.035em; color: var(--text); }
h1, h2 { font-family: "Inter Tight", "Inter", sans-serif; font-weight: 300; letter-spacing: -.025em; line-height: 1.05; }
h1 { font-size: clamp(44px, 6.4vw, 96px); }
h2 { font-size: clamp(32px, 3.8vw, 56px); }
h3 { font-weight: 400; font-size: 20px; margin-bottom: 10px; }
.caps, .nav, .ulink { font-size: 13px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.label { display: block; color: var(--soft); font-size: 13px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.ulink { display: inline-block; padding-bottom: 6px; border-bottom: 1.5px solid currentColor; transition: opacity .3s; }
.ulink:hover { opacity: .6; }

.page { padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(90px, 10vw, 140px); }
/* Título de cada página: mismo tamaño y en negro en Proyectos, Quién soy, Servicios y Contacto */
.page h1.display { font-size: clamp(40px, 4.6vw, 68px); line-height: 1; color: var(--ink); margin-bottom: 0; }
.page-sub { margin-top: 14px; }
.lead { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.5; max-width: 34em; margin-top: 32px; }

/* Franja de contacto */
.topbar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; row-gap: 4px; padding: 9px var(--gutter); background: var(--topbar); font-size: 13px; }
.topbar > * { display: inline-flex; align-items: center; padding: 0 18px; }
.topbar > * + * { border-left: 1px solid var(--soft); }
.topbar a { gap: 7px; color: var(--brand); transition: opacity .3s; }
.topbar a:hover { opacity: .6; }

/* Barra superior */
.header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
.logo { color: var(--brand); position: relative; padding-top: 6px; font: 300 36px/1 "Cormorant Garamond", Georgia, serif; }
.logo::before { content: ""; position: absolute; top: 0; left: 0; width: 26px; height: 1px; background: currentColor; }
.nav { display: flex; gap: clamp(18px, 2.4vw, 36px); color: var(--brand); }
/* Menú: al pasar el ratón el enlace sube un poco; al pinchar, se hunde ligeramente */
.nav a { display: inline-block; padding-bottom: 4px; border-bottom: 1.5px solid currentColor; transition: transform .3s ease, opacity .3s ease; }
.nav a:hover { transform: translateY(-3px); opacity: .7; }
.nav a:active { transform: translateY(0) scale(.95); }
.nav a[aria-current="page"] { color: var(--text); }

/* Portada con vídeo */
.hero { position: relative; height: calc(100svh - 130px); min-height: 460px; overflow: hidden; display: flex; align-items: flex-end; padding: 0 var(--gutter) clamp(36px, 6vh, 70px); background: var(--text); }
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media video { filter: grayscale(1) contrast(.92) brightness(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(40,32,27,0) 45%, rgba(40,32,27,.5)); }
.hero .display { position: relative; z-index: 1; color: #fff; }
/* Frase de portada: mayúsculas pequeñas y espaciadas (solo aquí) */
.hero h1.display { font-family: "Inter", sans-serif; font-weight: 400; font-size: min(16.25px, 3.875vw); line-height: 1.3; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap; }


/* Portada */
.intro { display: flex; justify-content: center; }
.intro .lead { margin-left: auto; margin-right: auto; }
.intro .lead { margin-top: 0; color: var(--ink); }

/* Proyectos */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px var(--gutter); margin-top: 56px; }
.card { flex: 0 0 calc((100% - 3 * var(--gutter)) / 4); }
.card figure { aspect-ratio: 3 / 4; overflow: hidden; }
.card img { height: 100%; object-fit: cover; transition: transform .7s ease; }
/* Al pasar el ratón por un proyecto: la tarjeta se eleva y la foto se acerca un poco */
a.card { transition: transform .45s ease; }
a.card figure { transition: box-shadow .45s ease; }
a.card:hover { transform: translateY(-8px); }
a.card:hover figure { box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .45); }
a.card:hover img { transform: scale(1.05); }
/* Proyectos en curso: aviso sobre la portada */
.card figure { position: relative; }
/* Portada de los proyectos en curso más clara y difuminada, para diferenciarlos */
.card-wip img { filter: grayscale(1) blur(2px) brightness(1.12); opacity: .55; transform: scale(1.04); }
.wip { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; background: var(--bg); color: var(--text); font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.card-name { padding-top: 16px; margin: 0; font-family: "Inter Tight", "Inter", sans-serif; font-weight: 300; font-size: clamp(24px, 2vw, 32px); line-height: 1.1; letter-spacing: -.02em; }
.card-meta { display: block; margin-top: 8px; color: var(--soft); font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.project-meta { margin-top: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }

/* Ficha de proyecto */
.back { display: inline-block; margin-bottom: 30px; }
/* Fotos del proyecto en filas de dos, en el orden de la lista (salones, exteriores, dormitorios, baños) */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; margin-top: 56px; }
.photos img { filter: none; } /* dentro del proyecto, fotos a color */
.pager { display: flex; justify-content: flex-end; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Quién soy */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about-text { font-size: 17px; line-height: 1.65; max-width: 36em; }
.about-text { margin: 0 auto; }
.page .about-text h1.display { margin-bottom: clamp(40px, 5vw, 64px); }
.about-title { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.3; letter-spacing: 0; color: var(--brand); margin: 14px 0 26px; }
.about-text p + p { margin-top: 14px; }
.about-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 36px; margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.sign { margin-top: 22px; }
.sign span { color: var(--soft); font-weight: 300; }
.about-photo { position: sticky; top: 32px; height: calc(100svh - 64px); min-height: 420px; max-height: 820px; }
.about-photo img { height: 100%; object-fit: cover; object-position: center top; }

/* Servicios */
.list { margin-top: 64px; border-top: 1px solid var(--line); }
.item { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.item .label { margin: 4px 0 0; }
.item h2 { font-size: clamp(26px, 2.6vw, 38px); }
.item p { max-width: 32em; }

/* Contacto */
.contact .ulink { margin-top: 44px; }
.connect { margin: 56px auto 0; max-width: 470px; }
.connect a { display: block; padding: 9px 0; border-bottom: 1.5px solid var(--text); font-size: 15px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; transition: opacity .3s; }
.connect a:hover { opacity: .6; }
.connect .label { margin-bottom: 14px; }

/* Pie */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 34px var(--gutter); border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; }

/* Servicios: presentación, tres servicios, diferencia y preguntas */
.statement { font-family: "Inter Tight", "Inter", sans-serif; font-weight: 300; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.15; letter-spacing: -.02em; max-width: 22em; margin: 56px auto 0; }
.subtitle { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 400; color: var(--brand); font-size: clamp(21px, 1.9vw, 27px); line-height: 1.3; }
.statement + .subtitle { max-width: 30em; margin-top: 28px; }
.services { margin-top: clamp(70px, 8vw, 110px); border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); padding: clamp(44px, 5vw, 70px) 0; border-bottom: 1px solid var(--line); }
.service h2 { font-size: clamp(26px, 2.4vw, 36px); }
.service .subtitle { margin: 16px 0 18px; }
.service .ulink { margin-top: 28px; }
.service ul, .service ol { list-style: none; align-self: center; }
.service li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.service li:last-child { border-bottom: 0; }
.service li::before { content: "— "; color: var(--brand); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); padding-top: clamp(40px, 5vw, 64px); }
.tier { padding-top: 22px; border-top: 1px solid var(--brand); }
.tier-mark { display: flex; justify-content: center; align-items: center; gap: 4px; color: var(--soft); font-size: 15px; font-weight: 400; letter-spacing: .06em; }
.tier-mark .house { font-size: 26px; }
.tier h2, .rental h2 { font-size: clamp(24px, 2vw, 30px); line-height: 1.15; margin-top: 14px; }
.tier-sub { margin: 8px 0 16px; color: var(--brand); font-weight: 400; }
.tier-face > p:not(.tier-sub) { font-size: 16px; }
.tier-face > p:not(.tier-sub) + p, .works-note p + p, .rental > div p + p { margin-top: 12px; }
.works-note .tier-sub { margin-top: -6px; }
/* Dirección de obra en un bloque de otro color */
.works-note { max-width: 52em; margin: clamp(40px, 5vw, 64px) auto clamp(44px, 5vw, 70px); padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 56px); background: var(--note-bg); color: var(--note-text); }
.works-note h3 { font-family: "Inter Tight", "Inter", sans-serif; font-weight: 300; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; margin-bottom: 14px; }
/* Listas numeradas */
ol.numbered { list-style: none; counter-reset: n; }
ol.numbered li { counter-increment: n; }
ol.numbered li::before { content: counter(n) ". "; color: var(--brand); }
.faq ol.numbered { margin-top: 12px; }
.faq ol.numbered li { padding: 4px 0; }
/* Servicios: un solo tipo de letra para el texto */
.services-page .statement { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: none; margin-top: 28px; }
/* Alojamientos turísticos en verde claro */
.rental { background: var(--rental-bg); color: var(--rental-text); align-items: center; padding-left: clamp(24px, 4vw, 56px); padding-right: clamp(24px, 4vw, 56px); border-bottom: 0; }
.rental li { border-bottom-color: var(--rental-line); }
.rental > div, .rental ol { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.house { display: inline-block; vertical-align: -.1em; width: 1.35em; margin-left: .3em; color: var(--brand); }
.house svg { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.house .thin { stroke-width: .9; }
.house .dash { stroke-dasharray: 2 2.2; stroke: var(--soft); }
.house .soft { stroke: var(--soft); }
.compare { max-width: 46em; margin: clamp(100px, 12vw, 160px) auto 0; }
.compare p + p { margin-top: 18px; }
.compare h2 { margin-bottom: 30px; }
/* Asesoría online */
.online { margin-top: clamp(70px, 8vw, 110px); background: var(--online-bg); color: var(--online-text); padding: clamp(40px, 5vw, 72px) clamp(22px, 4vw, 56px); }
.online .label { color: var(--online-accent); }
.online-intro { max-width: 46em; margin: 22px auto 0; }
.online-intro p + p { margin-top: 12px; }
.online-sub { margin-top: 8px; color: var(--online-accent); font-weight: 400; }
.online h3 + .online-sub { margin: -10px 0 16px; }
.online-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); margin-top: clamp(36px, 4vw, 56px); }
.online-grid > div { border-top: 1px solid var(--online-line); padding-top: 26px; }
.online h3 { font-family: "Inter Tight", "Inter", sans-serif; font-weight: 300; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.25; margin-bottom: 18px; }
.online-grid p + p, .online-grid ol + p { margin-top: 16px; }
.online ol.numbered { margin-top: 14px; }
.online ol.numbered li { padding: 6px 0; }
.online ol.numbered li::before { color: var(--online-accent); }
.faq { margin-top: clamp(100px, 12vw, 160px); border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: center; gap: 20px; padding: 26px 0; cursor: pointer; list-style: none; font-size: 14px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "›"; font-size: 22px; line-height: .8; color: var(--soft); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(90deg); }
.faq details > div { padding: 0 0 28px; max-width: 46em; margin: 0 auto; }
.faq details > div p + p { margin-top: 12px; }
.cta { margin-top: clamp(90px, 10vw, 140px); background: var(--cta-bg); color: var(--cta-text); text-align: center; padding: clamp(60px, 8vw, 110px) var(--gutter); }
.cta h2 { margin-bottom: 36px; }
.button { display: inline-block; padding: 18px 44px; background: var(--cta-button); color: var(--cta-button-text); font-size: 13px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; transition: opacity .3s; }
.button:hover { opacity: .7; }

@media (max-width: 860px) {
  .hero { height: calc(100svh - 205px); }
  .hero h1.display { white-space: normal; font-size: 15px; letter-spacing: .28em; line-height: 1.8; }
  .topbar > span { flex-basis: 100%; justify-content: center; border: 0; padding-bottom: 2px; }
  .topbar > * + * { border-left: 0; } /* en el móvil las líneas se parten, así que sin barras separadoras */
  .topbar > * { padding: 0 10px; }
  .service, .online-grid, .tiers { grid-template-columns: 1fr; }
  .page h1.display { font-size: 38px; }
  .header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .nav { flex-wrap: wrap; gap: 12px 14px; font-size: 11px; letter-spacing: .05em; }
  .intro, .about { grid-template-columns: 1fr; }
  .about-photo { order: -1; position: static; height: 52svh; min-height: 0; }
  .grid { gap: 36px 16px; }
  .card { flex-basis: calc((100% - 16px) / 2); }
  .photos { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; gap: 10px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .card { flex-basis: 100%; }
}

/* Todos los textos centrados (petición de Sandra) */
.page { text-align: center; }
.hero { justify-content: center; text-align: center; }

/* Línea de color encima de cada servicio */
.tier { border-top-color: var(--tier-line); }
.rental .tier-sub { color: var(--rental-text); }


/* Listas numeradas: números alineados en columna y texto alineado a su derecha */
ol.numbered { text-align: left; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
ol.numbered li { display: grid; grid-template-columns: 1.7em 1fr; }
ol.numbered li::before { text-align: left; }
.rental ol.numbered { justify-content: center; }

/* Asesorías online: las dos columnas con el mismo ancho y el botón abajo, a la misma altura */
.online-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.online-grid > div { display: flex; flex-direction: column; }
.online-grid .button { margin-top: auto; align-self: center; background: var(--online-text); color: var(--online-bg); }
.online-grid > div > p:last-of-type { margin-bottom: 28px; }
/* Alojamientos: la lista ocupa el mismo alto que el texto */
.rental { align-items: stretch; }
.rental ol.numbered { justify-content: space-between; align-self: stretch; }
@media (max-width: 860px) { .online-grid { grid-template-columns: 1fr; } }
.faq .faq-head { margin-top: 22px; }
.faq ol.numbered + p { margin-top: 22px; }
/* Títulos de las asesorías online más marcados */
.online-grid h3 { font-family: "Inter", sans-serif; font-weight: 400; color: var(--online-text); }

/* Al cambiar de página, el contenido entra suavemente */
@keyframes entrada { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
main.page { animation: entrada .7s ease both; }
@media (prefers-reduced-motion: reduce) { main.page { animation: none; } }
/* Etiqueta «Work in progress» dentro del proyecto */
.wip-tag { display: inline-block; margin-top: 18px; padding: 8px 16px; border: 1px solid var(--line); font-size: 12px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); }
/* Barra de arriba en terracota (el color de las asesorías online) */
.topbar { color: var(--topbar-text); }
.topbar a { color: var(--topbar-text); }
.topbar > * + * { border-left-color: rgba(251, 248, 244, .45); }
/* Proyectos en curso: fotos más pequeñas (tres por fila) y en blanco y negro */
.photos-wip { grid-template-columns: repeat(3, 1fr); }
.photos-wip img { filter: grayscale(1) contrast(.92) brightness(1.04); }
@media (max-width: 860px) { .photos-wip { grid-template-columns: repeat(2, 1fr); } }

/* Servicios: cada tarjeta gira al pasar el ratón (o al tocarla en el móvil) y muestra el segundo párrafo */
.tier { perspective: 1400px; outline: none; cursor: pointer; }
.tier-inner { display: grid; transition: transform .8s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d; }
.tier-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.tier-front { padding-bottom: 34px; position: relative; }
.tier-front::after { content: "↻"; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); color: var(--soft); font-size: 18px; transition: transform .4s; }
.tier-back { transform: rotateY(180deg); display: flex; flex-direction: column; justify-content: center; padding: 28px clamp(20px, 2.4vw, 34px); background: var(--note-bg); color: var(--note-text, var(--text)); }
.tier-back h2 { margin-top: 0; margin-bottom: 18px; font-size: clamp(21px, 1.7vw, 26px); }
.tier-back p { font-size: 16px; line-height: 1.6; }
@media (hover: hover) { .tier:hover .tier-inner { transform: rotateY(180deg); } }
.tier.flipped .tier-inner, .tier:focus-visible .tier-inner { transform: rotateY(180deg); }
@media (prefers-reduced-motion: reduce) { .tier-inner { transition: none; } }

/* Formulario de contacto: foto a la izquierda, formulario a la derecha */
.contact-form { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; max-width: 1180px; margin: clamp(44px, 5vw, 70px) auto 0; text-align: left; }
.contact-photo { position: sticky; top: 110px; }
.contact-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 100%; filter: none; }
.form-intro { font-size: 17px; color: var(--brand); margin-bottom: 26px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; }
.fields label { display: flex; flex-direction: column; gap: 6px; }
.fields label > span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 300; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--soft); border-radius: 0; padding: 8px 0; outline: none; transition: border-color .3s; }
.fields select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 22px; background: no-repeat right 4px center / 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237A6B62' stroke-width='1.2'/%3E%3C/svg%3E"); }
.fields textarea { resize: vertical; min-height: 44px; }
.fields input:focus, .fields select:focus, .fields textarea:focus { border-bottom-color: var(--text); }
.tried .fields :invalid { border-bottom-color: #B4533C; }
.tried .check input:invalid { outline: 1px solid #B4533C; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--soft); margin-top: 16px; cursor: pointer; }
.check:first-of-type { margin-top: 30px; }
.check input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.check a { text-decoration: underline; }
.contact-form .button { width: 100%; margin-top: 28px; border: 0; cursor: pointer; font-family: inherit; }
.contact-form .button:disabled { opacity: .5; cursor: wait; }
.form-msg { margin-top: 16px; font-size: 15px; min-height: 1.4em; }
.form-msg.ok { color: var(--brand); }
.form-msg.error { color: #B4533C; }
@media (max-width: 860px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-photo { position: static; }
  .contact-photo img { aspect-ratio: 5 / 4; object-position: 50% 85%; }
  .fields { grid-template-columns: 1fr; }
}

/* Página de aviso legal */
.legal { max-width: 46em; margin: 0 auto; text-align: left; }
.legal .display { text-align: center; font-size: clamp(40px, 6vw, 80px); margin-bottom: 40px; }
.legal h2 { font-size: clamp(22px, 2vw, 28px); margin: 40px 0 14px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0 1.2em; }
.legal-date { margin-top: 40px; color: var(--soft); font-size: 14px; }
.footer span a { text-decoration: underline; }

/* Aire entre las tarjetas de servicios y el bloque verde de alojamientos */
.services { padding-bottom: clamp(48px, 6vw, 90px); }

/* Formulario por pasos (01 Sobre ti · 02 Tu proyecto · 03 Cómo me has conocido) */
#formulario { scroll-margin-top: 110px; }
.step { border: 0; margin: 0; padding: 30px 0 10px; border-top: 1px solid var(--line); min-width: 0; }
.step:first-of-type { border-top: 0; padding-top: 6px; }
.step legend { float: left; width: 100%; margin-bottom: 22px; font-family: "Inter Tight", "Inter", sans-serif; font-weight: 300; font-size: clamp(22px, 1.9vw, 27px); color: var(--text); }
.step legend + * { clear: both; }
.step-n { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: var(--brand); margin-right: 6px; }
.step .fields input, .step .fields textarea { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; }
.step .fields input:focus, .step .fields textarea:focus { border-color: var(--brand); }
.tried .step .fields :invalid { border-color: #B4533C; }
.group { margin-top: 24px; }
.step > .group:first-of-type { margin-top: 0; }
.step .group + .fields { margin-top: 24px; }
.group-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; color: var(--text); transition: background .25s, color .25s, border-color .25s; }
.chip:hover span { border-color: var(--brand); }
.chip input:checked + span { background: var(--topbar); border-color: var(--topbar); color: var(--topbar-text); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.tried .chips:has(input:invalid) .chip span { border-color: #B4533C; }
.trap + .check { margin-top: 30px; }
