.tiber-hero { position: relative; height: clamp(300px, 36vw, 550px); overflow: hidden; background: var(--navy); }
.tiber-hero > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tiber-sections { position: relative; z-index: 10; top: auto; --detail-scroll-offset: 192px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 73px; background: #fff; }
.tiber-sections a { display: flex; min-width: 0; align-items: center; justify-content: center; padding: 8px; color: var(--navy); font-size: max(13px, calc(clamp(22px, 2.3vw, 38px) * var(--content-text-scale, 1))); font-style: italic; text-align: center; }
.tiber-sections a:hover, .tiber-sections a[aria-current="location"] { background: #d5d1d1; }
.tiber-sections a:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.tiber-view[hidden] { display: none; }
.tiber-content { background: #f2f3ee; }
.tiber-return { padding: 13px max(24px, calc((100vw - 1210px) / 2)); background: #fcfcf9; }
.tiber-return a { display: inline-flex; min-height: 40px; align-items: center; color: var(--navy); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.tiber-return a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tiber-stay { position: relative; padding: 82px max(24px, calc((100vw - 1210px) / 2)) 100px; scroll-margin-top: 155px; overflow: hidden; }
.tiber-stay::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 292px; background: #6c846d; }
/* El motivo parcial se recorta en el borde de la franja, igual que en Figma. */
.tiber-stay::after { content: ""; position: absolute; top: 0; right: 0; width: 150px; height: 141px; background: url('/assets/figma/desktop-elemento-grafico-correccion2.png') center / 100% 100% no-repeat; opacity: 1; pointer-events: none; }
.tiber-stay--short { background: #f2f3ee; }
.tiber-stay--short::before { background: #6c846d; }
.tiber-stay__overview { position: relative; display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(34px, 5vw, 80px); }
.tiber-stay--short .tiber-stay__media { order: 2; }
.tiber-stay__media { align-self: stretch; min-height: 470px; overflow: hidden; }
.tiber-stay__media img { width: 100%; height: 100%; max-height: 570px; object-fit: cover; object-position: center top; }
.tiber-stay__copy { align-self: center; max-width: 62ch; padding: 24px 0; color: var(--navy); }
.tiber-stay__eyebrow { margin-bottom: 10px; color: #e4b962; font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.tiber-stay h2 { margin-bottom: 28px; color: #fff; font-size: max(13px, calc(clamp(34px, 3.3vw, 50px) * var(--content-text-scale, 1))); font-style: italic; font-weight: 400; line-height: 1.1; text-shadow: 0 1px 9px #0d281d30; }
.tiber-stay__copy > p:not(.tiber-stay__eyebrow) { margin-top: 24px; font-size: max(13px, calc(21px * var(--content-text-scale, 1))); line-height: 1.25; }
.tiber-stay__copy > p.tiber-stay__provisional { color: #66756c; font-size: 13px; font-style: italic; }
@media (min-width: 1201px) {
  .tiber-stay--short { padding-top: 37px; }
  .tiber-stay--short::before { height: 141px; }
  .tiber-stay--short .tiber-stay__overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .tiber-stay--short .tiber-stay__media { height: 404px; min-height: 0; }
  .tiber-stay--short .tiber-stay__copy { align-self: start; padding-top: 24px; }
  .tiber-stay--short h2 { margin-bottom: 32px; }
  .tiber-stay--fixed { padding-top: 37px; padding-bottom: 60px; }
  .tiber-stay--fixed::before { height: 141px; }
  .tiber-stay--fixed::after { width: 150px; }
  .tiber-stay--fixed .tiber-stay__overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
  .tiber-stay--fixed .tiber-stay__media { height: 404px; min-height: 0; }
  .tiber-stay--fixed .tiber-stay__copy { align-self: start; padding-top: 24px; }
  .tiber-stay--fixed h2 { margin-bottom: 32px; }
}
.tiber-amenities { position: relative; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.tiber-amenities li { min-width: 0; color: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.tiber-amenities__icon { display: flex; width: 96px; height: 96px; align-items: center; justify-content: center; }
.tiber-amenities__icon img { display: block; width: 87px; height: 87px; object-fit: contain; }
.tiber-amenities li > span:last-child { font-size: max(13px, calc(16px * var(--content-text-scale, 1))); font-weight: 800; line-height: 1.2; }
.tiber-plan { position: relative; margin-top: 68px; padding: 38px; border-radius: 22px; background: #e9f0e9; scroll-margin-top: 155px; }
.tiber-plan__heading { display: flex; align-items: baseline; gap: 18px; margin-bottom: 25px; color: var(--navy); }
.tiber-plan__heading span { font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.tiber-plan h3 { font-size: max(13px, calc(clamp(27px, 3vw, 38px) * var(--content-text-scale, 1))); font-style: italic; font-weight: 400; }
.tiber-plan figure { width: min(100%, 700px); margin: auto; padding: 16px; border: 1px solid #d6ddd4; border-radius: 16px; background: #fff; box-shadow: 0 15px 35px #14283a16; }
.tiber-plan img { width: 100%; height: auto; border-radius: 8px; }
.tiber-plan figcaption { margin-top: 12px; color: #607067; font-size: 12px; text-align: center; }
.tiber-plan .project-plan__caption { margin: 0; padding: 14px 16px; color: var(--navy); font-size: max(13px, calc(17px * var(--content-text-scale, 1))); font-weight: 700; line-height: 1.3; text-align: center; }
.tiber-plans-section { padding: 78px max(24px, calc((100vw - 1271px) / 2)) 70px; background: linear-gradient(to bottom, #6c846d calc(100% - 139px), #f2f3ee 0); }
.tiber-plans { margin: 0; padding: 0; border-radius: 0; background: transparent; }
.tiber-plans .tiber-plan__heading { justify-content: center; margin-bottom: 26px; }
.tiber-plans h2 { color: #fff; font-size: max(13px, calc(50px * var(--content-text-scale, 1))); font-style: italic; font-weight: 700; line-height: 1.2; text-align: center; }
.tiber-plans__hint { display: none; }
.tiber-plans__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 37px; }
.tiber-plans .tiber-plans__card { position: relative; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.tiber-plans__card:last-child { grid-column: 1 / -1; width: calc((100% - 37px) / 2); justify-self: center; }
.tiber-plans__card a { display: block; }
.tiber-plans__card a:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.tiber-plans .tiber-plans__card img { width: 100%; height: auto; aspect-ratio: 617 / 427; object-fit: contain; border-radius: 0; }
.tiber-gallery { padding: 78px max(24px, calc((100vw - 1210px) / 2)) 95px; background: #fcfcf9; scroll-margin-top: 155px; }
.tiber-gallery__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.tiber-gallery__heading h2 { color: var(--navy); font-size: max(13px, calc(clamp(27px, 2.7vw, 37px) * var(--content-text-scale, 1))); font-style: italic; font-weight: 400; }
.tiber-gallery__heading span { color: #6a746d; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tiber-gallery__grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, .9fr); grid-template-rows: 500px; gap: 18px; }
.tiber-gallery__image { position: relative; overflow: hidden; border-radius: 18px; background: #e8e8df; box-shadow: 0 12px 30px #19302b17; }
.tiber-gallery__image img { width: 100%; height: 100%; object-fit: cover; }
.tiber-gallery__image--portrait img { object-position: center 47%; }
.tiber-gallery__controls { display: none; }
.tiber-contact { position: relative; isolation: isolate; overflow: hidden; padding: 86px 24px 100px; background: #d6d7cb; scroll-margin-top: 155px; }
.tiber-contact::before { content: ""; position: absolute; z-index: -2; inset: -8%; background: url('/assets/tiber/cocina-referencia.png') center / cover; filter: blur(2px); }
.tiber-contact::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(115deg, #f7f6eece, #f1f2ebbf 55%, #e9eee4d6); }
.tiber-contact__card { width: min(100%, 990px); margin: auto; padding: clamp(28px, 4vw, 56px); border: 1px solid #ffffffca; border-radius: 24px; background: #fffffff0; box-shadow: 0 24px 65px #0e263045; backdrop-filter: blur(14px); }
.tiber-contact__eyebrow { margin-bottom: 12px; color: #54725e; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-align: center; text-transform: uppercase; }
.tiber-contact h2 { max-width: 26ch; margin: 0 auto 34px; color: var(--navy); font-size: max(13px, calc(clamp(29px, 3vw, 39px) * var(--content-text-scale, 1))); font-style: italic; font-weight: 400; line-height: 1.2; text-align: center; }
.tiber-contact__form { display: grid; gap: 18px; }
.tiber-contact__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tiber-contact__field { display: grid; gap: 8px; }
.tiber-contact__field label { color: var(--navy); font-size: max(13px, calc(14px * var(--content-text-scale, 1))); font-weight: 700; }
.tiber-contact__field input, .tiber-contact__field textarea { width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid #c8d3c9; border-radius: 12px; outline: none; background: #fff; color: var(--navy); font-size: max(13px, calc(15px * var(--content-text-scale, 1))); box-shadow: 0 2px 4px #0716300b; }
.tiber-contact__field textarea { min-height: 112px; resize: vertical; }
.tiber-contact__field input:focus, .tiber-contact__field textarea:focus { border-color: #5d806d; box-shadow: 0 0 0 3px #5d806d33; }
.tiber-contact__field input::placeholder { color: #a8b2aa; opacity: 1; }
.tiber-contact__field input:focus::placeholder { color: #78877d; }
.tiber-contact__field select { width: 100%; min-height: 48px; padding: 12px 15px; border: 1px solid #c8d3c9; border-radius: 12px; outline: none; background: #fff; color: var(--navy); font: inherit; box-shadow: 0 2px 4px #0716300b; }
.tiber-contact__field select:invalid { color: #a8b2aa; }
.tiber-contact__field select:focus { border-color: #5d806d; box-shadow: 0 0 0 3px #5d806d33; }
.tiber-contact__actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 4px; }
.tiber-contact__actions p { max-width: 55ch; color: #47554d; font-size: 12px; line-height: 1.5; }
.tiber-contact__actions a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.tiber-contact__actions button { min-width: 150px; min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; }
.tiber-contact__actions button:hover { background: #254475; }
.tiber-contact__actions button:disabled { background: #87918a; cursor: not-allowed; }
@media (max-width: 1200px) {
  .tiber-hero { height: clamp(250px, 33vw, 400px); }
  .tiber-sections { --detail-scroll-offset: 105px; }
  .tiber-stay__overview { gap: 30px; }
  .tiber-amenities { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 24px; }
  .tiber-gallery__grid { grid-template-rows: 440px; }
}
@media (min-width: 701px) and (max-width: 1200px) {
  .tiber-stay { padding: 58px 32px 75px; }
  .tiber-stay::before { height: 245px; }
  .tiber-stay::after { display: none; }
  .tiber-stay--fixed { padding-top: 32px; }
  .tiber-stay--fixed::before { height: 140px; }
  .tiber-stay--fixed::after { width: 105px; height: 99px; }
  .tiber-stay__overview { display: flex; flex-direction: column; align-items: stretch; gap: 28px; width: min(100%, 900px); margin: auto; }
  .tiber-stay--short .tiber-stay__media { order: 0; }
  .tiber-stay__media { min-height: 0; height: clamp(350px, 45vw, 500px); }
  .tiber-stay__media img { max-height: none; }
  .tiber-stay__copy { align-self: stretch; max-width: none; padding: 0; }
  .tiber-stay h2 { color: var(--navy); text-shadow: none; }
  .tiber-stay__eyebrow { color: #60796c; }
  .tiber-amenities { grid-template-columns: repeat(4, minmax(0, 1fr)); width: min(100%, 900px); margin: 38px auto 0; }
}
@media (max-width: 700px) {
  .tiber-hero { height: 140px; }
  .tiber-sections { justify-content: space-between; gap: 3px; min-height: 58px; padding: 0 10px; }
  .tiber-sections a { padding: 8px 6px; font-size: max(13px, calc(clamp(12px, 3.2vw, 14px) * var(--content-text-scale, 1))); white-space: normal; text-align: center; }
  .tiber-sections a::after { right: 6px; bottom: 8px; left: 6px; }
  .tiber-stay { padding: 42px 20px 60px; scroll-margin-top: 125px; }
  .tiber-stay::before { height: 190px; }
  .tiber-stay::after { display: none; }
  .tiber-stay--fixed { padding-top: 28px; }
  .tiber-stay--fixed::before { height: 125px; }
  .tiber-stay--fixed::after { width: 90px; height: 85px; }
  .tiber-stay__overview { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .tiber-stay--short .tiber-stay__media { order: 0; }
  .tiber-stay__media { min-height: 0; height: 330px; }
  .tiber-stay__media img { max-height: none; object-position: center 30%; }
  .tiber-stay__copy { padding: 0; }
  .tiber-stay h2 { margin-bottom: 22px; color: var(--navy); text-shadow: none; }
  .tiber-stay__eyebrow { color: #60796c; }
  .tiber-stay__copy > p:not(.tiber-stay__eyebrow) { font-size: max(13px, calc(15px * var(--content-text-scale, 1))); line-height: 1.56; }
  .tiber-amenities { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 9px; margin-top: 28px; }
  .tiber-amenities__icon { width: 72px; height: 72px; }
  .tiber-amenities__icon img { width: 68px; height: 68px; }
  .tiber-amenities li > span:last-child { font-size: 12px; }
  .tiber-plan { margin-top: 36px; padding: 22px 14px; border-radius: 16px; scroll-margin-top: 125px; }
  .tiber-plan__heading { gap: 10px; margin-bottom: 18px; }
  .tiber-plan figure { padding: 8px; }
  .tiber-plan .project-plan__caption { padding: 12px; font-size: max(13px, calc(15px * var(--content-text-scale, 1))); }
  .tiber-plans-section { padding: 0 20px 20px; background: #f2f3ee; }
  .tiber-plans { margin: 0; padding: 0; border-radius: 0; }
  .tiber-plans .tiber-plan__heading { margin: 0 -20px 20px; padding: 18px 20px; background: #6c846d; }
  .tiber-plans h2 { font-size: max(13px, calc(26px * var(--content-text-scale, 1))); line-height: 1.1; }
  .tiber-plans__hint { display: block; margin: -4px 0 14px; color: #4f6759; font-size: 13px; }
  .tiber-plans__grid { grid-auto-flow: column; grid-auto-columns: 88%; grid-template-columns: none; gap: 12px; padding-bottom: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
  .tiber-plans__grid:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
  .tiber-plans__card:last-child { grid-column: auto; width: 100%; }
  .tiber-plans .tiber-plans__card { scroll-snap-align: start; }
  .tiber-plans .tiber-plans__card img { height: auto; aspect-ratio: 350 / 242; }
  .tiber-gallery { padding: 52px 20px 65px; scroll-margin-top: 125px; }
  .tiber-gallery__heading { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 20px; }
  .tiber-gallery__grid { display: flex; gap: 14px; overflow-x: auto; padding: 0 0 15px; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
  .tiber-gallery__image { flex: 0 0 min(84vw, 450px); height: 300px; scroll-snap-align: start; }
  .tiber-gallery__image--portrait img { object-fit: contain; }
  .tiber-gallery__controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 12px; color: var(--navy); font-size: 13px; font-weight: 700; }
  .tiber-gallery__controls button { display: grid; width: 50px; height: 50px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--navy); color: #fff; box-shadow: 0 5px 16px #14283a30; }
  .tiber-gallery__controls button:hover:not(:disabled) { background: #264778; }
  .tiber-gallery__controls button:disabled { opacity: .38; cursor: default; box-shadow: none; }
  .tiber-gallery__controls .ri-icon { font-size: 29px; }
  .tiber-contact { padding: 42px 16px 60px; scroll-margin-top: 125px; }
  .tiber-contact__card { padding: 26px 20px; border-radius: 18px; }
  .tiber-contact h2 { margin-bottom: 25px; font-size: max(13px, calc(clamp(26px, 7vw, 32px) * var(--content-text-scale, 1))); }
  .tiber-contact__form { gap: 15px; }
  .tiber-contact__row { grid-template-columns: 1fr; gap: 15px; }
  .tiber-contact__actions { align-items: stretch; flex-direction: column-reverse; gap: 14px; }
  .tiber-contact__actions button { width: 100%; }
}

@media (max-width: 600px) {
  .tiber-sections { --detail-scroll-offset: 116px; }
}
