/* Casa Candilejas: identical duplicates removed within the same conditional scope. */
* { box-sizing: border-box; }
body { margin: 0; background: #faf5e9; color: #27251d; font: 1rem/1.55 system-ui,sans-serif; }
a { color: inherit; }
header,footer { background: #29291f; color: #faf5e9; padding: 18px max(5vw,20px); display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
header a,footer a { text-decoration: none; }
.brand { font: 25px Georgia,serif; }
nav { display: flex; flex-wrap: wrap; }
main { margin: auto; }
section { padding: clamp(24px,5vw,78px); }
.split { display: grid; grid-template-columns: 1fr 1.24fr; align-items: center; gap: clamp(25px,5vw,76px); }
.label { font-size: .75rem; text-transform: uppercase; font-weight: 700; }
h1,h2 { font: normal clamp(2rem,5vw,5rem)/1.04 Georgia,serif; margin: 12px 0 22px; }
h2 { font-size: clamp(1.9rem,4vw,3.6rem); }
p { max-width: 48ch; }
img { display: block; width: 100%; height: auto; border-radius: 4px; }
.hero img { aspect-ratio: 1.36; object-fit: cover; }
.btn { display: inline-block; background: #773e29; text-decoration: none; }
.quiet { margin-top: 23px; }
.room { border-bottom: 1px solid #d8cbb8; }
.room img { aspect-ratio: 1.5; object-fit: cover; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.gallery img { aspect-ratio: 1.38; object-fit: cover; }
.notice { color: #5e5443; font-size: .85rem; }
.sticky { display: none; }
:focus-visible { outline: 3px solid #b7783b; outline-offset: 4px; }
@media(max-width:700px) {
  .split { grid-template-columns: 1fr; }
  .hero img { aspect-ratio: 1.6; }
  .gallery { grid-template-columns: 1fr; }
  .sticky { display: block; position: sticky; bottom: 0; padding: 9px 16px; background: #faf5e9; border-top: 1px solid #d8cbb8; text-align: center; }
  .sticky .btn { width: 100%; }
  header { gap: 9px; }
  nav { font-size: .9rem; }
}
.guest { max-width: 840px; margin: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 30px; }
.guest details { border-bottom: 1px solid #d8cbb8; }
.guest summary { font-weight: 700; cursor: pointer; }
.guest details p { max-width: 65ch; }
.sticky[hidden] { display: none; }
.near-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding: 8px 0 24px; }
.near-card { background: #fffaf1; border: 1px solid #d8cbb8; border-radius: 8px; overflow: hidden; }
.near-card img { aspect-ratio: 16/10; object-fit: cover; border-radius: 0; background: #eee4d2; }
.near-card>div { padding: 16px; }
.near-card h3 { font: 1.35rem Georgia,serif; margin: 6px 0; }
.near-card .label { margin: 0; }
.near-card small { display: block; margin-top: 10px; }
@media(max-width:600px) {
  .near-grid { grid-template-columns: 1fr; }
}
.place-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.location { background: #eee4d2; }
.location address { font-style: normal; }
.hotel-map { display: block; width: 100%; height: clamp(260px,35vw,410px); border: 1px solid #d8cbb8; border-radius: 6px; background: #faf5e9; }
.hero-location { display: inline-block; padding: 12px 4px; }
.wa-float { position: fixed; z-index: 5; right: 18px; bottom: 20px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #126344; color: white; box-shadow: 0 4px 16px #0003; }
footer { padding-right: max(85px,7vw); }
@media(max-width:700px) {
  .wa-float { bottom: calc(82px + env(safe-area-inset-bottom)); right: 14px; }
  body:has(#guia:target) .wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media(min-width:1000px) {
  .rooms-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
body { color: var(--ink); }
header { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.brand { gap: 5px; line-height: 1; }
.brand small { font: 650 9px/1.2 system-ui,sans-serif; letter-spacing: .27em; }
.brand span { font-size: clamp(1.45rem,3vw,2.05rem); }
nav a { padding: 8px 0; }
nav a:hover,.rooms-grid a:hover { text-decoration: underline; }
.hero { position: relative; isolation: isolate; min-height: clamp(510px,67vw,730px); padding: clamp(24px,6vw,96px); background: #382922; color: #fff8ec; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#241711ed 0%,#241711af 35%,#24171112 80%); }
.hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; border-radius: 0; object-position: center 52%; }
.hero>div { grid-column: 1/-1; }
.hero .label { color: #fff1d8; }
.hero h1 { font-size: clamp(3.3rem,8vw,8.2rem); letter-spacing: -.058em; margin: 12px 0 19px; }
.hero p { color: #fff8ec; max-width: 39ch; }
.hero .btn { background: #fff0da; color: #41261c; }
.hero-location { margin-left: 12px; }
.btn { background: var(--wine); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.section-heading h2,.section-heading p { margin-bottom: 0; }
.section-heading>p { max-width: 36ch; }
.rooms-grid { gap: clamp(16px,3vw,36px); }
.rooms-grid .near-card { border-bottom: 1px solid var(--line); border-radius: 0; }
.rooms-grid .near-card img { aspect-ratio: 4/3; }
.rooms-grid h3 { font-size: clamp(1.65rem,3vw,2.2rem); }
.rooms-grid a { font-weight: 650; text-underline-offset: 4px; }
#terraza img { object-fit: cover; }
.location { background: var(--paper); }
footer { background: #302521; }
[data-room] .room img { aspect-ratio: 4/3; }
.guest details { background: #fffaf1; }
.guest details:first-of-type { border-top: 1px solid var(--line); }
@media(max-width:700px) {
  header { align-items: start; }
  .hero img { grid-row: auto; object-position: 52% center; }
  .hero::after { background: linear-gradient(0deg,#241711f5 0%,#241711d9 27%,#24171120 85%); }
  .hero h1 { font-size: clamp(3rem,13vw,5.2rem); }
  .hero-location { margin-left: 6px; }
  .section-heading { align-items: start; flex-direction: column; gap: 6px; }
  .section-heading>p { margin-top: 0; }
}
.room-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.room-filters button { font: inherit; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; }
.room-filters button[aria-pressed=true] { color: white; }
.filter-count { font-size: .85rem; margin: 12px 0 20px; }
.rooms-grid [hidden] { display: none; }
.stay-story { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding: clamp(18px,4vw,48px); }
.stay-story h3 { font: clamp(1.7rem,3vw,2.8rem)/1.06 Georgia,serif; margin: 0; }
.stay-story figure,.room-extra figure { margin: 0; }
.stay-story img { aspect-ratio: 4/3; object-fit: cover; }
.stay-story figcaption,.room-extra figcaption { font-size: .84rem; margin-top: 8px; }
.room-extra figure { max-width: 680px; }
@media(max-width:700px) {
  .stay-story { grid-template-columns: 1fr; }
  .room-filters button { min-height: 44px; }
}
html { scroll-behavior: smooth; }
header { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; bottom: 2px; left: 0; right: 0; height: 1px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
nav a:hover::after,nav a:focus-visible::after { transform: scaleX(1); }
.btn { position: relative; padding: 16px 22px; transition: background .25s,transform .25s,box-shadow .25s; }
.btn:hover { background: #48251f; color: #fff; transform: translateY(-3px); box-shadow: 0 10px 25px #30252126; }
.btn:active { transform: translateY(0); }
.hero .btn:hover { background: #e4c79c; color: #302521; }
.hero { min-height: min(770px,88svh); }
.hero h1 { font-weight: 400; }
.hero-location { text-underline-offset: 7px; }
.section-heading { padding-bottom: 28px; }
.label { letter-spacing: .23em; }
.rooms-grid { display: flex!important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 28px; scrollbar-width: thin; scrollbar-color: #9a7660 #eee4d2; }
.rooms-grid .near-card { flex: 0 0 43%; scroll-snap-align: start; background: #f1e7d7; border: 0; overflow: hidden; box-shadow: 0 10px 25px #3025210a; transition: box-shadow .35s,transform .35s; }
.rooms-grid .near-card>img { aspect-ratio: 1.14; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.rooms-grid .near-card>div { padding: 24px 28px 30px; position: relative; background: #f1e7d7; }
.rooms-grid .near-card a { display: flex; align-items: center; min-height: 44px; padding-top: 16px; }
.rooms-grid .near-card:hover { box-shadow: 0 16px 32px #30252120; }
.rooms-grid .near-card:hover>img { transform: scale(1.035); }
.room-tools { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 16px 0; }
.room-tools p { font-size: .8rem; letter-spacing: .05em; }
.room-arrows { display: flex; gap: 10px; }
.room-arrows button { width: 48px; height: 48px; border: 1px solid #9b7b64; border-radius: 50%; background: transparent; color: var(--ink); font: 24px Georgia; cursor: pointer; transition: background .25s,color .25s; }
.room-arrows button:hover { background: var(--wine); color: white; }
.room-filters button { transition: all .25s; }
.room-filters button[aria-pressed=true] { background: var(--wine); }
.stay-story { padding: 45px 0; background: transparent; gap: 30px; }
.stay-story figure:nth-child(2) { transform: translateY(28px); }
.stay-story figure img { aspect-ratio: 3/4; }
.stay-story figure:nth-child(3) img { aspect-ratio: 4/5; }
#terraza { margin: 40px clamp(16px,4vw,60px); color: #fff0dc; }
#terraza .label { color: #d7b48b; }
#terraza img { border-radius: 80px 0 0 0; aspect-ratio: 1.1; }
.guest details { margin: 12px 0; border: 1px solid #dfcdb6; padding: 0 20px; box-shadow: 0 4px 15px #30252105; }
.guest summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.guest summary::-webkit-details-marker { display: none; }
.guest summary::after { content: "+"; font: 28px Georgia; color: var(--wine); }
.guest details[open]>summary::after { content: "−"; }
.guest details[open] { background: #f2e6d4; }
.guest details[open]>:not(summary) { animation: unfold .3s ease; }
.hotel-map { box-shadow: 12px 12px 0 #e8dac7; }
.wa-float { transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
@keyframes unfold {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-ready { opacity: 0; transform: translateY(24px); transition: opacity .7s ease,transform .7s ease; }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
@media(max-width:700px) {
  header { position: relative; }
  .hero { min-height: 620px; }
  .rooms-grid .near-card { flex-basis: 86%; }
  .rooms-grid .near-card>div { padding: 20px; }
  .stay-story { gap: 18px; margin-top: 35px; }
  .stay-story figure:nth-child(2) { transform: none; }
  .stay-story figure img,.stay-story figure:nth-child(3) img { aspect-ratio: 1.45; }
  #terraza { gap: 25px; }
  #terraza img { border-radius: 45px 0 0 0; aspect-ratio: 1.4; }
  .room-tools { align-items: start; }
  .hero h1 { font-size: clamp(3.3rem,14vw,5rem); }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none!important; transition: none!important; }
  .reveal-ready { opacity: 1; transform: none; }
}
.photo-motion { overflow: hidden; position: relative; border-radius: 4px; isolation: isolate; }
.photo-motion img { display: block; width: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1),filter .8s; will-change: auto; }
.photo-motion::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg,transparent 35%,#fff2 50%,transparent 65%); transform: translateX(-140%); pointer-events: none; transition: transform 1s; }
.hero>.photo-motion { z-index: -2; border-radius: 0; }
.hero .photo-motion img { position: static; width: 100%; }
.rooms-grid .near-card>.photo-motion { padding: 0; background: transparent; }
.rooms-grid .near-card>.photo-motion img { aspect-ratio: 1.14; object-fit: cover; }
.experience { margin: 28px clamp(16px,4vw,60px); padding: clamp(24px,5vw,72px); gap: clamp(24px,5vw,68px); }
.experience .photo-motion img { aspect-ratio: 1.12; object-fit: cover; }
.steam { background: #e8dfce; }
.steam .label { color: #61442b; }
.service-price { font: 1.65rem Georgia,serif; }
.service-price small { display: block; font: .9rem system-ui,sans-serif; margin-top: 5px; }
.gastro { background: #412a30; color: #fff4e4; }
.gastro .label { color: #ffc4a5; }
.gastro .btn { background: #f1c6ac; color: #382329; }
.gastro-map { padding: 13px 0; text-underline-offset: 6px; }
.gastro .photo-motion { border-radius: 0 60px 0 0; }
.hero:focus-within .photo-motion img { transform: scale(1.025); }
.near-card:focus-within .photo-motion img { transform: scale(1.045); }
@media(hover:hover) and (pointer:fine) {
  .photo-motion:hover img,.near-card:hover .photo-motion img { transform: scale(1.065); }
  .photo-motion:hover::after { transform: translateX(140%); }
  .hero:hover .photo-motion img { transform: scale(1.025); }
}
@media(max-width:700px) {
  .experience { margin: 20px 0; }
  .gastro>.photo-motion { grid-row: 1; }
  .experience .photo-motion img { aspect-ratio: 1.3; }
  .hero>.photo-motion { height: 100%; }
}
@media(prefers-reduced-motion:reduce) {
  .photo-motion img,.photo-motion::after,.hero:hover .photo-motion img,.near-card:hover .photo-motion img,.near-card:focus-within .photo-motion img { transition: none!important; transform: none!important; filter: none!important; }
  .photo-motion::after { display: none; }
}
#habitaciones { background: #faf6ed; }
#habitaciones .section-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; }
#habitaciones .section-heading h2 { font-size: clamp(2.8rem,6vw,6rem); }
#terraza { grid-template-columns: 1fr; gap: 0; position: relative; isolation: isolate; padding: 0; align-items: end; overflow: hidden; background: #382d25; }
#terraza>.photo-motion { position: absolute; inset: 0; border-radius: 0; z-index: -2; }
#terraza>.photo-motion img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
#terraza>div:first-child { margin: clamp(18px,4vw,54px); padding: clamp(20px,3vw,42px); width: min(430px,calc(100% - 36px)); pointer-events: auto; }
#terraza h2 { font-size: clamp(2rem,4.5vw,4.25rem); }
#turco { align-items: center; background: transparent; padding-block: clamp(26px,5vw,70px); }
#turco>.photo-motion { border-radius: 48% 48% 0 0; }
#turco>.photo-motion img { aspect-ratio: 1.18; object-fit: cover; }
#turco>div:last-child { position: relative; z-index: 1; margin-left: -25px; padding: clamp(24px,4vw,56px); }
#tejo-house { grid-template-columns: 1fr; gap: 0; padding: 0; }
#tejo-house>.photo-motion { border-radius: 0; }
#tejo-house>.photo-motion img { aspect-ratio: 2.6; object-position: 50% 55%; }
#tejo-house>div:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; padding: clamp(22px,5vw,60px); }
#tejo-house .label,#tejo-house h2 { grid-column: 1; }
#tejo-house h2 { grid-row: 2/4; }
#tejo-house p:not(.label),#tejo-house .actions { grid-column: 2; }
#tejo-house .actions { margin-bottom: 0; }
#ubicacion { display: grid; grid-template-columns: 1fr; gap: 0; max-width: 1280px; margin: auto; }
#ubicacion>.location-intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0 25px; border-top: 1px solid var(--line); padding: 24px 0; }
#ubicacion h2 { grid-row: 2/5; margin-top: 5px; }
#ubicacion address,#ubicacion .actions,#ubicacion>.location-intro>a { grid-column: 2; }
#ubicacion .actions { margin: 12px 0; }
#ubicacion .hotel-map { box-shadow: none; border-radius: 0; }
.guest h1 { border-bottom: 1px solid var(--line); padding-bottom: 23px; }
@media(max-width:700px) {
  #habitaciones .section-heading,#turco,#tejo-house>div:first-child,#ubicacion>.location-intro { grid-template-columns: 1fr; }
  #turco>div:last-child { margin: -18px 12px 0; }
  #tejo-house>.photo-motion img { aspect-ratio: 1.45; }
  #tejo-house p:not(.label),#tejo-house .actions,#ubicacion address,#ubicacion .actions,#ubicacion>.location-intro>a { grid-column: auto; }
  #tejo-house h2,#ubicacion h2 { grid-row: auto; }
}
.hero { display: grid; grid-template-columns: 1fr; min-height: 0; gap: 0; padding: 0; align-items: end; }
.hero::after { display: none; }
.hero>.photo-motion { position: relative; inset: auto; grid-area: 1/1; height: auto; }
.hero .photo-motion img { height: auto; aspect-ratio: auto; object-fit: contain; }
.hero>div:first-child { grid-area: 1/1; z-index: 1; align-self: end; padding: clamp(25px,5vw,75px); }
.hero h1 { font-size: clamp(3rem,7vw,7rem); }
.hero:hover .photo-motion img,.hero:focus-within .photo-motion img { transform: none; }
.guest-invite { display: flex; justify-content: space-between; align-items: center; padding: clamp(22px,4vw,46px) clamp(24px,5vw,78px); border-bottom: 1px solid var(--line); }
.guest-invite h2 { font-size: clamp(1.85rem,3.8vw,3rem); margin: 4px 0 8px; }
.guest-invite p { margin: 0; }
.guest-invite .btn { flex-shrink: 0; }
nav a[href="#guia"] { font-weight: 700; color: var(--wine); }
.photo-motion img { filter: contrast(1.035) saturate(.94); }
@media(max-width:700px) {
  .hero>.photo-motion { grid-area: 1/1; }
  .hero>div:first-child { grid-area: 2/1; }
  .hero h1 { font-size: clamp(2.7rem,10vw,4.4rem); }
  .guest-invite { align-items: flex-start; flex-direction: column; }
}
.photo-motion img,.hero .photo-motion img { filter: brightness(1.13) contrast(.98) saturate(.97); }
@media(hover:hover) and (pointer:fine) {
  .photo-motion:hover img,.near-card:hover .photo-motion img { filter: brightness(1.17) contrast(.98) saturate(.97); }
}
@media(prefers-reduced-motion:reduce) {
  .photo-motion img { filter: brightness(1.13) contrast(.98) saturate(.97)!important; }
}
.steam-photo { margin: 0; min-width: 0; }
.steam-photo figcaption { font-size: .78rem; color: #5e5443; margin-top: 8px; }
.steam-photo details { margin-top: 12px; }
.steam-photo details summary { cursor: pointer; font-size: .85rem; }
.steam-photo details img { margin-top: 10px; }
:root { --ease: cubic-bezier(.22,1,.36,1); }
.photo-motion::after { display: none; }
.photo-motion img { transition: transform 1.1s var(--ease),opacity .7s ease,filter .7s ease; }
.photo-open { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: zoom-in; color: white; }
.photo-open span { position: absolute; bottom: 18px; right: 18px; padding: 11px 17px; background: #302521db; border: 1px solid #ffffff70; border-radius: 40px; font: 500 12px/1.4 system-ui; letter-spacing: .06em; transition: background .3s,transform .3s; }
.photo-open:hover span,.photo-open:focus-visible span { background: #773e29; transform: translateY(-4px); }
.photo-motion .alternate-photo { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
@media(hover:hover) {
  .rooms-grid .near-card:hover .alternate-photo { opacity: 1; }
  .photo-motion:hover img { transform: scale(1.045); }
}
.hero .photo-open { inset: 16px 16px auto auto; width: 150px; height: 50px; }
.hero .photo-open span { inset: 0; display: grid; place-items: center; }
.hero>.photo-motion { z-index: auto; }
.hero>div:first-child { pointer-events: none; }
.hero>div:first-child a { pointer-events: auto; }
#terraza>.photo-motion { z-index: 0; }
#terraza>div:first-child { position: relative; z-index: 2; }
#terraza .photo-open span { bottom: auto; top: 20px; }
.visual-tour { background: #eee5d7; }
.visual-tour .section-heading { border: 0; }
.visual-tour h2 { font-size: clamp(2.6rem,5.5vw,5rem); }
.tour-grid { display: grid; grid-template-columns: 1.25fr .75fr 1fr; align-items: start; }
.tour-grid img { aspect-ratio: 4/5; object-fit: cover; }
.tour-grid .photo-motion:nth-child(2) img { aspect-ratio: 3/4; }
.photo-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 22px clamp(16px,4vw,64px); border: 0; background: #211c18; color: #fff7e9; overflow: auto; }
.photo-viewer::backdrop { background: #211c18; }
.photo-viewer[open] { display: grid; animation: viewerIn .35s var(--ease); }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.viewer-title { font: clamp(1.25rem,3vw,2rem) Georgia; margin: 0; }
.viewer-close,.viewer-arrow,.viewer-thumb { cursor: pointer; color: inherit; background: transparent; border: 1px solid #fff6; }
.viewer-close { padding: 12px 18px; border-radius: 30px; font: inherit; }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.viewer-stage img { height: 100%; border-radius: 0; filter: brightness(1.13) contrast(.98) saturate(.97); }
.viewer-arrow { position: absolute; top: 45%; width: 48px; height: 48px; border-radius: 50%; font: 26px Georgia; background: #211c18d9; z-index: 2; }
.viewer-prev { left: 0; }
.viewer-next { right: 0; }
.viewer-bottom { text-align: center; }
.viewer-caption { margin: 0 auto 12px; max-width: 80ch; font-size: .9rem; }
.viewer-thumbs { display: flex; gap: 10px; justify-content: center; overflow: auto; padding: 4px; }
.viewer-thumb { padding: 3px; flex: 0 0 68px; opacity: .55; }
.viewer-thumb[aria-pressed=true] { opacity: 1; border-color: #e9c99b; }
.viewer-thumb img { height: 45px; object-fit: cover; border-radius: 0; }
.viewer-status { font-size: .75rem; color: #dac9b6; letter-spacing: .15em; margin: 10px auto 0; }
body.gallery-open { overflow: hidden; }
.viewer-arrow:disabled { opacity: .3; cursor: default; }
.viewer-image-enter { animation: photoEnter .4s ease; }
.motion-section { transition: opacity .8s var(--ease),translate .8s var(--ease); }
.motion-section.awaiting { opacity: 0; translate: 0 24px; }
@keyframes photoEnter {
  from { opacity: .25; transform: scale(.99); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes viewerIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@media(max-width:700px) {
  .tour-grid { grid-template-columns: 1fr 1fr; }
  .tour-grid .photo-motion:last-child { grid-column: 1/-1; }
  .tour-grid .photo-motion:last-child img { aspect-ratio: 16/9; }
  .photo-open span { font-size: 0.6875rem; bottom: 12px; right: 12px; padding: 10px 13px; }
  .photo-viewer { padding: 16px 12px; }
  .viewer-title { max-width: 70%; }
  .viewer-close { font-size: 0.8125rem; }
  .viewer-arrow { width: 44px; height: 44px; }
}
@media(prefers-reduced-motion:reduce) {
  .motion-section.awaiting { opacity: 1; translate: none; }
  .photo-motion:hover img { transform: none!important; }
  html { scroll-behavior: auto!important; }
}
#room-progress { width: clamp(35px,11vw,150px); height: 5px; accent-color: var(--wine); align-self: center; }
.room-arrows button:disabled { opacity: .38; cursor: default; background: transparent; color: var(--ink); }
@media(max-width:460px) {
  .room-tools { flex-wrap: wrap; align-items: center; gap: 8px; }
  .room-tools p { flex-basis: 100%; margin: 0; }
  .room-arrows { margin-left: auto; }
}
.photo-viewer[open] { grid-template-rows: auto minmax(100px,1fr) auto auto; gap: 10px; }
.viewer-stage { overflow: hidden; touch-action: pan-y; }
.viewer-stage img { display: block; width: 100%; max-height: 100%; }
.viewer-controls { display: flex; justify-content: center; gap: 18px; }
.viewer-controls[hidden] { display: none; }
.viewer-controls .viewer-arrow { position: static; display: grid; place-items: center; height: 48px; touch-action: manipulation; }
#guia:not(:target) { display: none; }
#guia:target { display: block; }
.photo-viewer:not([open]) { display: none; }
.photo-viewer[open] { position: fixed; inset: 0; z-index: 100; }
.viewer-controls .viewer-arrow { width: auto; min-width: 105px; padding: 0 12px; font: 600 .85rem system-ui,sans-serif; }
@media(max-width:700px) {
  html { scroll-padding-top: 16px; }
  main section,main section>div,main figure { min-width: 0; }
  main h1,main h2,main p,.btn { overflow-wrap: anywhere; }
  .hero { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .hero>.photo-motion { width: 100%; position: relative; }
  .hero>div:first-child { align-self: stretch; }
  #terraza { display: flex; flex-direction: column-reverse; align-items: stretch; }
  #terraza>.photo-motion { position: relative; inset: auto; }
  #terraza>.photo-motion img { height: auto; aspect-ratio: 1.4; }
  #terraza>div:first-child { width: auto; }
  #tejo-house>div:first-child,#ubicacion>.location-intro { display: block; }
  .viewer-top { gap: 8px; }
  .viewer-title { margin: 0; }
  .viewer-caption { margin-bottom: 6px; }
}
:root { --paper: #F5F0E8; --ink: #282B2A; --line: #d5d5c8; --wine: #9E2A2B; }
body { background: var(--paper); }
main { max-width: none; }
h1,h2,h3 { letter-spacing: -.035em; }
h1 em,h2 em { font-weight: normal; color: inherit; }
header { padding: 20px 4vw; }
nav { gap: 18px; }
nav a { font-size: .75rem; letter-spacing: .025em; }
.btn { border-radius: 40px; box-shadow: none; font-size: .86rem; font-weight: 500; }
.hero>div:first-child { padding: 5vw; }
.hero h1 { font-size: clamp(3rem,7.5vw,8rem); line-height: 1.03; }
.hero p { font-size: 1rem; }
.guest-invite { background: #282B2A; color: #F5F0E8; padding: 24px 5vw; gap: 30px; }
.guest-invite h2 { font-size: 1.7rem; }
.guest-invite p:not(.label) { font-size: .87rem; }
.house-intro { text-align: center; padding: clamp(70px,10vw,150px) 7vw; }
.house-intro h2 { font-size: clamp(2.3rem,4.5vw,5.2rem); line-height: 1.2; }
.house-intro>p { margin: 24px auto; max-width: 55ch; }
.discover-link { display: inline-flex; gap: 40px; align-items: center; text-decoration: none; border-bottom: 1px solid; padding: 16px 0; font-size: .85rem; }
.discover-link span { font-size: 1.5rem; transition: transform .3s; }
.discover-link:hover span { transform: translateY(5px); }
#habitaciones { padding: 40px 5vw 90px; background: var(--paper); }
#habitaciones .section-heading { border: 0; margin-bottom: 30px; gap: 40px; }
#habitaciones .section-heading h2 { font-size: clamp(2.8rem,5.5vw,6rem); line-height: 1.08; }
.rooms-grid { gap: 30px; padding-bottom: 35px; }
#habitaciones .rooms-grid .near-card { flex-basis: 46%; background: transparent; box-shadow: none; border-radius: 0; }
#habitaciones .rooms-grid .near-card>.photo-motion { border-radius: 7px; }
#habitaciones .rooms-grid .near-card>.photo-motion img { aspect-ratio: 1.18; object-fit: cover; }
#habitaciones .rooms-grid .near-card>div:not(.photo-motion) { padding: 22px 0; background: transparent; }
.rooms-grid h3 { font-size: 2.4rem; margin: 4px 0 10px; }
.rooms-grid .near-card p { font-size: .9rem; }
.rooms-grid .near-card a { border-top: 0; justify-content: flex-start; gap: 25px; margin-top: 8px; text-decoration: underline; text-underline-offset: 8px; }
.room-filters button { border: 0; border-bottom: 1px solid transparent; border-radius: 0; padding: 12px 4px; margin-right: 18px; }
.room-filters button[aria-pressed=true] { color: var(--wine); background: transparent; border-color: var(--wine); }
.room-filters button:hover { background: transparent; border-color: var(--line); }
.room-tools { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.stay-story { padding-top: 60px; border-top: 1px solid var(--line); margin-top: 35px; }
.stay-story h3 { font-size: clamp(2rem,3.5vw,4rem); }
.stay-story figure img { border-radius: 6px; }
#terraza { margin: 0 0 80px; min-height: 680px; }
#terraza>div:first-child { background: #282B2Ae8; color: #fff8e9; padding: 45px; margin: 6vw; border-radius: 4px; }
#turco { margin: 0 auto 70px; max-width: 1400px; padding: 30px 6vw; gap: 6vw; grid-template-columns: 1fr 1fr; }
#turco>div:last-child { margin: 0; padding: 0; background: transparent; box-shadow: none; }
#turco h2 { font-size: clamp(3rem,5vw,5.5rem); }
.steam-photo .photo-motion { border-radius: 160px 160px 8px 8px; }
#tejo-house { margin: 0; background: #412a30; border: 0; }
#tejo-house>div:first-child { padding: 65px 7vw; }
#tejo-house h2 { font-size: clamp(3.3rem,6vw,7rem); }
.visual-tour { padding: 100px 6vw; background: var(--paper); }
.tour-grid { gap: 30px; }
.tour-grid .photo-motion { border-radius: 6px; }
.tour-grid .photo-motion:nth-child(2) { margin-top: 100px; }
#ubicacion { padding-block: 80px; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .photo-motion:hover img { transform: scale(1.055); }
  .rooms-grid .near-card:hover .photo-motion img { transform: scale(1.055); }
}
@media(max-width:700px) {
  header { padding: 18px 20px; }
  nav { gap: 4px 17px; }
  nav a { font-size: .78rem; min-height: 40px; }
  .hero h1 { font-size: clamp(2.8rem,11vw,4.5rem); }
  .guest-invite { padding: 25px 22px; gap: 15px; }
  .house-intro { padding: 70px 24px; }
  .house-intro h2 { font-size: 2.5rem; }
  #habitaciones { padding: 25px 22px 55px; }
  #habitaciones .section-heading { gap: 10px; }
  #habitaciones .rooms-grid .near-card { flex-basis: 88%; }
  .rooms-grid { gap: 18px; }
  #habitaciones .rooms-grid .near-card>.photo-motion img { aspect-ratio: 4/5; }
  .rooms-grid h3 { font-size: 2rem; }
  #terraza { min-height: 0; margin: 0 0 50px; }
  #terraza>div:first-child { margin: 0; padding: 32px 24px; }
  #turco { grid-template-columns: 1fr; padding: 20px 24px; margin: 0 0 50px; gap: 28px; }
  #turco>div:last-child { margin: 0; }
  #tejo-house>div:first-child { display: block; padding: 35px 24px; }
  .visual-tour { padding: 65px 24px; }
  .tour-grid { gap: 14px; }
  .tour-grid .photo-motion:nth-child(2) { margin-top: 45px; }
}
.location-map-card { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; padding: 24px; margin: 14px 0 0; background: #eee5d7; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.location-map-card strong { font: 1.45rem Georgia,serif; }
.location-map-card svg { flex: none; }
.map-action { margin-left: auto; text-decoration: underline; text-underline-offset: 4px; }
@media(max-width:600px) {
  .map-action { margin-left: 0; flex-basis: 100%; }
}
body { font-family: "Segoe UI",Arial,sans-serif; }
header { background: #FCFEFD; padding-block: 0; }
.brand { display: block; flex: none; }
.brand-logo { display: block; width: 217px; height: auto; border-radius: 0; }
.btn { background: #9E2A2B; color: #FCFEFD; }
.label { color: #9E2A2B; }
.guest-invite .label { color: #B5956F; }
@media(min-width:701px) {
  html { scroll-padding-top: 165px; }
}
@media(max-width:700px) {
  header nav { padding-bottom: 12px; }
}
.guest .near-card>.photo-motion { padding: 0; }
.guest .near-card>.photo-motion img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.guest .photo-credit { display: block; margin: 0; padding: 0 16px 18px; font-size: .75rem; line-height: 1.5; }
.guest .restaurant-logo img { object-fit: contain; background: #FCFEFD; padding: 24px; }
header { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 24px; padding: 8px clamp(20px,4vw,64px); min-height: 112px; border-bottom: 1px solid #e1d7ca; box-shadow: none; }
header .brand { display: block; flex: 0 0 160px; }
header .brand-logo { width: 160px; height: 105px; object-fit: contain; }
header nav { display: flex; justify-content: center; align-items: center; gap: clamp(14px,1.8vw,28px); flex-wrap: nowrap; padding: 0; margin-left: auto; }
header nav a { font-size: 0.875rem; white-space: nowrap; line-height: 1.4; padding: 12px 0; text-decoration: none; }
header .header-booking { flex: none; padding: 13px 22px; font-size: 0.875rem; white-space: nowrap; }
.menu-toggle { display: none; }
html { scroll-padding-top: 130px; }
@media(max-width:1200px) {
  header { position: sticky; top: 0; min-height: 100px; gap: 16px; padding: 5px 22px; z-index: 20; }
  header .brand { flex-basis: 144px; }
  header .brand-logo { width: 144px; height: 94px; }
  header .header-booking { margin-left: auto; padding: 12px 18px; }
  .menu-toggle { display: flex; align-items: center; gap: 10px; border: 1px solid #d5c8b9; background: transparent; color: #282B2A; border-radius: 30px; font: .875rem "Segoe UI",Arial,sans-serif; padding: 12px 16px; cursor: pointer; min-height: 44px; }
  header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 24px 24px; margin: 0; background: #FCFEFD; border-bottom: 1px solid #d5c8b9; box-shadow: 0 12px 22px #282B2A12; flex-wrap: wrap; justify-content: flex-start; gap: 4px 28px; }
  header.menu-open nav { display: flex; }
  header nav a { min-height: 44px; }
}
@media(max-width:480px) {
  header { padding: 4px 14px; gap: 10px; min-height: 88px; }
  header .brand { flex-basis: 120px; }
  header .brand-logo { width: 120px; height: 79px; }
  header .header-booking { padding: 11px 14px; font-size: 0.8125rem; }
  .menu-toggle { padding: 11px 12px; font-size: 0.8125rem; gap: 7px; }
  html { scroll-padding-top: 104px; }
}
.hero>div:first-child { background: linear-gradient(90deg,rgba(22,19,16,.87) 0%,rgba(22,19,16,.64) 47%,rgba(22,19,16,.12) 80%,transparent 100%); padding-top: 50px; }
.hero h1,.hero p,.hero .label,.hero .hero-location { text-shadow: 0 2px 10px rgba(0,0,0,.28); }
.hero .label { font-weight: 600; letter-spacing: .17em; }
.hero .hero-location { font-weight: 600; text-underline-offset: 6px; }
.hero .btn { text-shadow: none; }
@media(max-width:700px) {
  .hero h1,.hero p,.hero .label,.hero .hero-location { text-shadow: none; }
}
@media(prefers-reduced-motion:reduce) {
  .hero .photo-motion img { filter: brightness(.94) contrast(1.03) saturate(.96)!important; }
}
.guest-invite .btn { background: #9E2A2B; color: #FCFEFD; border: 1px solid #B5956F; font-weight: 650; padding: 17px 26px; box-shadow: 0 5px 18px #0002; }
.guest-invite .btn:hover,.guest-invite .btn:focus-visible { background: #7e2122; color: #fff; border-color: #F5F0E8; box-shadow: 0 8px 22px #0003; }
header nav a[href="#guia"] { padding: 11px 16px; border: 1px solid #B5956F; border-radius: 30px; background: #F5F0E8; color: #9E2A2B; font-weight: 650; }
.photo-open:focus-visible { outline: 3px solid #fff; outline-offset: -6px; box-shadow: inset 0 0 0 9px #9E2A2B; }
.steam-photo summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.guide-return { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 16px; text-underline-offset: 5px; }
@media(max-width:359px) {
  header { gap: 6px; padding-inline: 10px; }
  .brand { flex-basis: 96px; min-width: 96px; }
  .brand-logo { width: 96px; height: 63px; }
  .header-booking { padding: 11px 12px; }
  .menu-toggle { padding: 10px; }
}
.hero .photo-motion img { filter: brightness(.94) contrast(1.03) saturate(.96)!important; }
.hero h1,.hero p,.hero .label,.hero .hero-location { color: #fff!important; }
.hero .hero-location { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid rgba(255,255,255,.65); border-radius: 32px; text-decoration: none; font-size: .86rem; }
@media(min-width:701px) {
  .hero::after { content: ""; display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg,rgba(22,19,16,.88) 0%,rgba(22,19,16,.76) 32%,rgba(22,19,16,.34) 62%,rgba(22,19,16,.08) 85%,transparent 100%); }
  .hero>div:first-child { position: relative; z-index: 1; background: transparent; align-self: start; padding: clamp(80px,17svh,180px) clamp(28px,5vw,75px) 36px; max-width: 850px; }
  .hero h1 { font-size: clamp(2.7rem,5vw,5.4rem); line-height: 1.06; margin: 14px 0 20px; }
  .hero p { max-width: 42ch; line-height: 1.55; margin-bottom: 24px; }
  .hero .label { font-size: .76rem; font-weight: 650; letter-spacing: .16em; }
  .hero .btn,.hero .hero-location { vertical-align: middle; }
}
@media(min-width:701px) and (max-height:650px) {
  .hero>div:first-child { padding-top: 32px; }
  .hero h1 { font-size: clamp(2.4rem,4.2vw,3.8rem); }
}
@media(max-width:700px) {
  .hero>div:first-child { padding: 32px 22px; background: #282B2A; }
  .hero .hero-location { margin-left: 0; margin-top: 10px; }
}
.guest summary h2 { font: inherit; line-height: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
.no-js #inicio { display: block; }
.no-js [data-room] { display: none; }
.no-js [data-room]:target { display: block; }
html.no-js:has([data-room]:target, #guia:target) #inicio { display: none; }
.no-js .room-filters, .no-js .room-tools, .no-js .menu-toggle { display: none; }
@media(max-width:1200px) {
  .no-js header { flex-wrap: wrap; }
  .no-js header nav { display: flex; position: static; flex: 1 0 100%; order: 3; padding: 10px 0; border: 0; box-shadow: none; }
}
header nav a { text-underline-offset: 7px; }
.btn,.menu-toggle,.room-filters button { transition: background-color .25s ease,color .25s ease,box-shadow .25s ease,transform .25s ease; }
.guest summary { transition: color .2s ease; }
.guest summary:hover { color: var(--wine); }
@media (prefers-reduced-motion: no-preference) {
  .hero>div:first-child> :is(h1,p,.btn,.hero-location) { animation: candi-arrive .7s ease both; }
  .hero>div:first-child>p { animation-delay: .08s; }
  .hero>div:first-child>.btn,.hero>div:first-child>.hero-location { animation-delay: .16s; }
  [data-room]:not([hidden]) .room>div:first-child { animation: candi-arrive .45s ease both; }
  @keyframes candi-arrive {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
  }
  @media (hover:hover) and (pointer:fine) {
    .btn:hover,.menu-toggle:hover { transform: translateY(-2px); box-shadow: 0 7px 18px #30252120; }
    .btn:active,.menu-toggle:active { transform: translateY(0); }
    .near-card { transition: box-shadow .3s ease,border-color .3s ease; }
    .near-card:hover,.near-card:focus-within { border-color: #b5956f; box-shadow: 0 10px 24px #30252116; }
    .discover-link,.stay-story a { transition: text-underline-offset .25s ease; }
    .discover-link:hover,.stay-story a:hover { text-underline-offset: 7px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,.menu-toggle,.room-filters button,.guest summary { transition: none; }
}
header .language-switch { flex: 0 0 auto; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; padding: 9px 8px; border: 1px solid var(--line); border-radius: 20px; min-width: 36px; text-align: center; }
header .language-switch:hover,header .language-switch:focus-visible { color: var(--wine); border-color: var(--wine); }
@media(max-width:700px) {
  header .language-switch { padding: 8px 5px; min-width: 30px; font-size: .7rem; }
  header { column-gap: 6px; }
}
@media(max-width:420px) {
  header .brand { flex-basis: 100px; min-width: 100px; }
  header .brand-logo { width: 100px; height: 66px; }
  header .header-booking { padding-inline: 10px; }
  .menu-toggle { padding-inline: 10px; }
  header { padding-inline: 10px; }
}
@media(max-width:359px) {
  header .brand { flex-basis: 88px; min-width: 88px; }
  header .brand-logo { width: 88px; height: 58px; }
}
header .language-switch { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 9px 12px; border-color: #b5956f; background: #f5f0e8; color: #74352e; letter-spacing: 0; font-size: .78rem; white-space: nowrap; transition: background-color .2s ease,border-color .2s ease; }
header .language-switch:hover,header .language-switch:focus-visible { background: #ede2d2; border-color: #9e2a2b; }
header .language-globe { width: 19px; height: 19px; flex: none; border-radius: 0; }
header .language-code { display: none; }
@media(max-width:1200px) {
  header .language-name { display: none; }
  header .language-code { display: inline; }
  header .language-switch { gap: 5px; padding: 8px; min-width: 54px; }
}
@media(max-width:359px) {
  header .language-code { display: none; }
  header .language-switch { min-width: 36px; padding: 7px; }
}
@media(prefers-reduced-motion:reduce) {
  header .language-switch { transition: none; }
}
header { position: relative; top: auto; min-height: 82px; padding-block: 4px; backdrop-filter: none; }
header .brand { flex-basis: 112px; min-width: 112px; }
header .brand-logo { width: 112px; height: 74px; }
html { scroll-padding-top: 20px; }
@media(max-width:1200px) {
  header { position: relative; top: auto; min-height: 76px; padding-block: 3px; }
  header .brand { flex-basis: 104px; min-width: 104px; }
  header .brand-logo { width: 104px; height: 68px; }
}
@media(max-width:480px) {
  header { min-height: 70px; }
  header .brand { flex-basis: 92px; min-width: 92px; }
  header .brand-logo { width: 92px; height: 61px; }
  html { scroll-padding-top: 16px; }
}
@media(max-width:359px) {
  header .brand { flex-basis: 80px; min-width: 80px; }
  header .brand-logo { width: 80px; height: 53px; }
}
.viewer-stage img { width: auto; height: auto; max-width: 100%; max-height: 65dvh; object-fit: contain; filter: none; }
@media(max-width:700px) {
  .viewer-stage img { max-height: 58dvh; }
}
#tejo-house { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(28px,4vw,64px); padding: clamp(30px,5vw,72px); overflow: hidden; }
#tejo-house>div:first-child { display: block; grid-column: 1; grid-row: 1; padding: 0; min-width: 0; }
#tejo-house h2 { font-size: clamp(2.6rem,4.5vw,4.8rem); line-height: 1.06; }
#tejo-house>.photo-motion { grid-column: 2; grid-row: 1; justify-self: center; width: 100%; max-width: 640px; border-radius: 8px; box-shadow: 0 18px 40px #160c1640; }
#tejo-house>.photo-motion img { width: 100%; height: auto; aspect-ratio: 1280/721; object-fit: contain; object-position: center; filter: none!important; transform: none!important; }
#tejo-house .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
@media(max-width:900px) {
  #tejo-house { grid-template-columns: minmax(0,1fr); gap: 26px; padding: 32px 22px; }
  #tejo-house>.photo-motion { grid-column: 1; grid-row: 1; }
  #tejo-house>div:first-child { grid-column: 1; grid-row: 2; }
  #tejo-house h2 { font-size: clamp(2.5rem,8vw,4rem); }
}

/* Audit 2: native anchors start at the header; section anchors keep normal spacing. */
#inicio,[data-room],#guia{scroll-margin-top:100vh}
header nav{flex-wrap:wrap;min-width:0;row-gap:0}
header{flex-wrap:wrap}
.guest summary::after{content:"+" / ""}
.guest details[open]>summary::after{content:"−" / ""}

/* Keep content usable in short landscape windows and at high browser zoom. */
@media (max-width:700px) and (max-height:500px) {
  .sticky { position: static; }
  .wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (max-width:1200px) {
  header nav { max-height: 70dvh; overflow-y: auto; overscroll-behavior: contain; }
}
