/* Dalí, the hotel and Cadaqués share the opening view. */
.opening-quote{background:#153d50;color:#f5e5c5;padding:23px 7% 20px;text-align:center;border-bottom:1px solid #d9b77940}
.opening-quote blockquote{margin:0 auto;max-width:1100px}
@font-face {
  font-family: "Caveat Brush";
  src: url("/assets/caveat-brush.woff") format("woff");
  font-display: swap;
}
.opening-quote p {
  color: inherit;
  font: oblique clamp(1.5rem, 3.2vw, 2.45rem)/1.15 "Caveat Brush", "Segoe Print", cursive;
  text-wrap: balance;
}
.opening-quote-author {
  font-size: .75em;
  white-space: nowrap;
}
.opening-quote footer {
  font-size: .875rem;
  font-weight: 600;
  color: #e6d9c0;
  line-height: 1.5;
  margin-top: 8px;
  letter-spacing: .06em;
}
.opening-quote cite { font-style: normal; }
.opening-quote-credit { white-space: nowrap; }
@media(max-width:800px){.opening-quote{padding:20px 7% 18px}.opening-quote footer{font-size:.8125rem;max-width:300px;margin:9px auto 0}}
.hero{height:clamp(740px,calc(100svh - 140px),900px);min-height:740px;max-height:900px;background:#102f40}
.hero-photo{object-position:50% 65%}
.hero-shade{background:linear-gradient(90deg,#071d2bad 0%,#071d2b6e 30%,#071d2b14 58%,transparent 78%),linear-gradient(0deg,#071d2b66,transparent 38%)}
.hero-content{width:62%;max-width:900px;padding:67px 0 50px 7%;position:relative;z-index:2}
.hero h1{font-size:clamp(4.5rem,7.6vw,7.2rem);line-height:.97;letter-spacing:-.055em}
.hero h1 em{color:#f0d39f}
.hero .eyebrow{font-size:.875rem;color:#f4e5c9;letter-spacing:.19em;margin-bottom:27px}
.hero-description{max-width:390px;font-size:1.0625rem;line-height:1.75;color:#fff6e6;margin:28px 0}
.hero-cta{display:flex;align-items:center;gap:26px;flex-wrap:wrap;max-width:580px}
.hero-cta .button{background:#f0dfbc;border-color:#f0dfbc;color:#173d4c;min-height:54px;padding:17px 25px;font-size:1rem}
.hero-art-link{color:#fff2dc;font-size:.9375rem;line-height:1.5;border-bottom:1px solid #efddbb8c;padding-bottom:5px;max-width:185px}
.hero-art-link:hover{color:#f0d39f}

.hero-portrait{position:absolute;z-index:3;right:6%;top:45px;width:32%;max-width:480px;margin:0}
.hero-portrait:before{content:'';position:absolute;inset:14px -14px 83px 14px;border:1px solid #eccb8ba6;border-radius:220px 220px 5px 5px;pointer-events:none}
.hero-portrait button{position:relative;display:block;padding:0;width:100%;height:clamp(490px,calc(100svh - 330px),635px);border:1px solid #eed8a9;background:#3f362e;border-radius:220px 220px 4px 4px;overflow:hidden;box-shadow:0 20px 70px #0004}
.hero-portrait img{width:100%;height:100%;object-fit:cover;object-position:45% center;transition:transform 1s}
.hero-portrait button:hover img{transform:scale(1.035)}
.portrait-expand{position:absolute;right:17px;bottom:17px;background:#f4e6cdd9;color:#183e4e;border-radius:50%;width:38px;height:38px;line-height:36px;font-size:1.6rem}
.hero-portrait figcaption{padding:23px 0 0 8px;color:#fff5e1}
.portrait-caption{display:block;font:italic 1.4rem/1.3 var(--serif)}
.portrait-caption-small{display:block;font-size:.8125rem;letter-spacing:.03em;margin-top:7px;color:#e3dccb}
.dream-orbit{z-index:1;top:56px;right:41%;width:70px;opacity:.65}
.dream-toggle{z-index:4;bottom:27px;font-size:.875rem}
.hero .photo-credit{font-size:.75rem;right:6%;bottom:27px;max-width:45%;opacity:.9}
.hero.is-dreaming .hero-shade{background:linear-gradient(90deg,#071d2bad 0%,#071d2b6e 30%,#071d2b14 58%,transparent 78%),linear-gradient(0deg,#071d2b66,transparent 38%)}
.gallery-new{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 24px}
.gallery-new button{min-width:0}.gallery-new img{height:280px}
.gallery-new button:first-child img{object-position:45% 53%}
.gallery-new span{font-size:1.2rem;line-height:1.4;margin-top:15px}
.destination-image img{aspect-ratio:.88;object-position:39% center}
.dali-section+.history-section{border-top:1px solid #d5c3a4}
#dali .dali-art-button img{height:auto;aspect-ratio:.92;object-position:45% center}
@media(min-width:1500px){.hero-content{padding-left:calc((100vw - 1280px)/2 + 64px);width:60%;max-width:none}.hero-portrait{right:max(6%,calc((100vw - 1280px)/2 + 24px));width:34%;max-width:450px}.hero h1{font-size:7.2rem}}
@media(max-width:1150px) and (min-width:801px){.hero-content{width:59%;padding-top:63px}.hero h1{font-size:6.2rem}.hero-portrait{right:5%;width:33%;top:50px}.hero-portrait button{height:505px}.hero-description{max-width:340px}.hero-art-link{max-width:180px}.hero-cta{gap:18px}.dream-orbit{right:40%;width:58px}.hero-portrait:before{bottom:100px}.gallery-new img{height:235px}}
@media(max-width:800px){
 .hero{height:auto;min-height:0;max-height:none;padding-bottom:82px;display:grid;grid-template-columns:1fr}
 .hero-photo{object-position:42% center}
 .hero-shade{background:linear-gradient(180deg,#071d2b80 0%,#071d2b26 42%,#071d2b80 100%)}
 .hero-content{width:100%;max-width:none;padding:45px 7% 30px}
 .hero h1{font-size:clamp(4rem,10.8vw,6.3rem)}
 .hero .eyebrow{margin-bottom:23px;font-size:.8125rem;max-width:none}
 .hero-description{max-width:480px;font-size:1rem;margin:24px 0}
 .hero-cta{gap:20px}.hero-art-link{max-width:180px;font-size:.9375rem}
 .hero-portrait{position:relative;right:auto;top:auto;width:68%;max-width:420px;margin:5px auto 25px}
 .hero-portrait button{height:430px;border-radius:210px 210px 3px 3px}
 .hero-portrait:before{bottom:84px;inset-inline:12px -12px}
 .hero-portrait figcaption{padding-top:19px}
 .portrait-caption{font-size:1.25rem}.portrait-caption-small{font-size:.8125rem}
 .dream-orbit{width:62px;top:69px;right:8%;opacity:.55}
 .dream-toggle{bottom:40px;left:7%;padding:8px 16px;min-height:43px}
 .hero .photo-credit{bottom:12px;left:7%;right:auto;max-width:86%;font-size:.75rem;text-align:left}
 .gallery-new{grid-template-columns:1fr 1fr;gap:28px 18px}
 .gallery-new button:first-child{grid-column:auto}
 .gallery-new img,.gallery-new button:first-child img{height:245px}
 .gallery-new span{font-size:1.0625rem}
 .destination-image img{aspect-ratio:1.15;object-position:45% center}
}
@media(max-width:480px){
 .hero h1{font-size:clamp(3.8rem,13.5vw,4.8rem)}
 .hero-content{padding-top:40px;padding-bottom:22px}
 .hero-description{max-width:310px;font-size:1rem}
 .hero-cta{gap:15px;align-items:center}.hero-cta .button{font-size:.9375rem;padding:15px 18px}.hero-art-link{max-width:140px;font-size:.875rem}
 .hero-portrait{width:76%;margin-top:10px}.hero-portrait button{height:360px}
 .dream-orbit{width:43px;right:6%;top:71px}
 .portrait-caption{font-size:1.2rem}
 .gallery-new{grid-template-columns:1fr;gap:30px}
 .gallery-new img,.gallery-new button:first-child img{height:auto;aspect-ratio:1.32;object-fit:cover}
 .gallery-new button:first-child img{aspect-ratio:1.12}
 .gallery-new span{font-size:1.15rem}
}
@media(prefers-reduced-motion:reduce){.hero-portrait img{transition:none}.hero-portrait button:hover img{transform:none}}

.hero-facade img{object-position:45% center}.hero h1{text-shadow:0 2px 20px #071d2b26}.hero-description{text-shadow:0 1px 9px #071d2b66}

/* Preserve the complete photographs and keep the opening controls together. */
.hero-tools{position:absolute;bottom:27px;left:7%;right:6%;z-index:4;display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-right:260px}
.hero-tools .dream-toggle{position:static;margin:0;min-height:43px;max-width:none}
.intro{grid-template-columns:.85fr 1.4fr;gap:55px}
.intro-images{display:grid;gap:20px;margin:0;padding:0;width:100%;max-width:none}
.wide-lounge{position:relative;display:block;border:0;background:transparent;padding:0;width:100%;text-align:left}
.wide-lounge img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
.intro-images .small-image{position:static;right:auto;bottom:auto;width:60%;justify-self:end;padding:8px 8px 0}
.intro-images .small-image img{height:auto;aspect-ratio:auto;object-fit:contain}
#historia .history-facade img{height:auto;aspect-ratio:auto;object-fit:contain}
@media(max-width:800px){.intro{grid-template-columns:1fr;gap:35px}.intro-images{width:100%;max-width:none;margin:0;padding:0}.hero-tools{bottom:42px;padding-right:0;gap:10px}.hero-tools .dream-toggle{font-size:.8125rem;min-height:40px;padding:7px 13px}}

/* A clear view of the bay, with the building alongside its history. */
.sea-motion{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}.sea-motion[hidden]{display:none}.hero-shade{z-index:1}.hero-content{z-index:2}.hero .photo-credit{z-index:2}.hero-tools{padding-right:260px}.water-control{position:static;display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:9px 16px;border-radius:30px;border:1px solid #f6e4bd80;color:#fff3d4;background:#153d5066;backdrop-filter:blur(10px);font-size:.8125rem;line-height:1.4}.water-control:hover{background:#153d50dd}.water-control[hidden]{display:none}
.history-date{border-right:0;padding-right:0;display:flex;flex-direction:column;align-items:center}.history-facade{margin:0 0 28px;width:100%;text-align:left}.history-facade button{position:relative;display:block;border:0;padding:0;width:100%;background:transparent;overflow:hidden}.history-facade img{width:100%;height:auto;aspect-ratio:1.12;object-fit:cover;object-position:43% center}.history-facade figcaption{padding-top:14px}.history-facade .portrait-caption{font-size:1.3rem;color:var(--ink)}.history-facade .portrait-caption-small{color:var(--muted);font-size:.875rem}.history-date .history-year{font-size:6rem}.history-date>p{font-size:1.15rem;margin-top:8px}.history-date>.eyebrow{margin-bottom:10px}.history-layout{gap:65px}.destination-image img{height:auto;aspect-ratio:1280/643;object-fit:contain}.destination-image .image-label{bottom:15px}
@media(max-width:800px){.hero{padding-bottom:145px}.hero-tools{padding-right:0}.water-control{min-height:40px;padding:8px 13px}.history-facade{max-width:540px}.history-date{padding-bottom:30px}.history-layout{gap:35px}.destination-image img{aspect-ratio:1280/643}.destination-image .image-label{position:static;display:inline-block;font-size:.8125rem}.sea-motion{z-index:0}}

@media (max-width: 800px) {
  html {
    scroll-padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
  .header .hotel-logo {
    width: min(184px, 47vw);
  }
  .header select,
  .header .menu {
    min-height: 44px;
  }
  .header .menu {
    min-width: 44px;
  }
  .header nav {
    max-height: calc(100dvh - 150px - env(safe-area-inset-bottom));
    overflow-y: auto;
    gap: 0;
  }
  .header nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
  }
  .mobile-booking {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 12px;
    padding: 8px max(4%, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(4%, env(safe-area-inset-left));
  }
  .mobile-booking > a {
    display: grid;
    min-height: 44px;
    place-items: center;
    font-size: .875rem;
  }
  .mobile-booking > a:first-child {
    border-bottom: 0;
  }
  .mobile-booking > a:not(.button) {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 4px;
  }
  .mobile-booking .button {
    min-width: 0;
    padding: 10px;
  }
  .filters button,
  .room-card .text-link,
  .alternate-contact a {
    min-height: 44px;
  }
  .alternate-contact a {
    display: inline-flex;
    align-items: center;
  }
  .footer {
    padding-bottom: calc(95px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 540px) {
  .hero h1 {
    font-size: clamp(2.875rem, 14vw, 4.8rem);
  }
  .hero-tools {
    gap: 8px;
  }
  .hero-tools .dream-toggle,
  .water-control {
    min-height: 44px;
  }
  .room-grid {
    grid-template-columns: 1fr;
  }
  .room-dialog img {
    max-height: 45svh;
  }
  .gallery-new img,
  .gallery-new button:first-child img {
    aspect-ratio: auto;
    height: auto;
  }
}

@media (max-width: 360px) {
  .header .hotel-logo {
    width: 39vw;
  }
  .header select {
    font-size: .8125rem;
  }
}

.room-dialog .dialog-close {
  position: sticky;
  top: 0;
  display: block;
  margin: 4px 10px 4px auto;
  width: 44px;
  height: 44px;
}

.hero-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-layer-night,
.hero-layer-dream {
  opacity: 0;
  transition: opacity 1.7s ease-in-out;
}
.hero[data-scene="night"] .hero-layer-night,
.hero[data-scene="dream"] .hero-layer-dream {
  opacity: 1;
}
.hero-layer-night .hero-photo {
  object-position: 50% 66%;
}
.hero.is-paused .dream-orbit {
  animation-play-state: paused;
}
.gallery-uncropped {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 28px 20px;
}
.gallery-uncropped img,
.gallery-uncropped button:first-child img {
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 800px) {
  .hero {
    padding-bottom: 0;
  }
  .hero-tools,
  .hero .photo-credit {
    position: relative;
    inset: auto;
    margin-inline: 7%;
  }
  .hero-tools {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    justify-items: start;
    padding: 0;
  }
  .hero-tools .dream-toggle {
    grid-column: 1 / -1;
  }
  .hero-shade {
    background: linear-gradient(90deg, #071d2b85, #071d2b40), linear-gradient(0deg, #071d2b88, transparent 65%);
  }
  .hero .photo-credit {
    margin-block: 14px 18px;
  }
  .gallery-uncropped {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gallery-uncropped button:first-child {
    grid-column: auto;
  }
}

@media (max-width: 540px) {
  .hero-layer-night .hero-photo {
    object-position: 43% 66%;
  }
  .gallery-uncropped {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-layer-night,
  .hero-layer-dream {
    transition: none;
  }
}

.intro-gallery {
  grid-column: 1 / -1;
  margin-top: 0;
}

.button.direct-booking-link,
.hero-cta .button.direct-booking-link {
  background: #267457;
  border-color: #267457;
  color: #fff;
}
.button.direct-booking-link:hover,
.hero-cta .button.direct-booking-link:hover {
  background: #1d634a;
  border-color: #1d634a;
  color: #fff;
}
.text-link.direct-booking-link {
  color: #267457;
  border-color: currentColor;
}
.text-link.direct-booking-link:hover {
  color: #1d634a;
}
.booking-strip {
  background: #e4ece2;
  border-bottom-color: #b2c4b5;
}
.booking-strip .booking-highlight {
  flex-shrink: 1;
  max-width: 100%;
  color: #165841;
  transform-origin: left center;
  animation: booking-heartbeat 2.6s ease-in-out infinite;
}
.booking-highlight .eyebrow {
  color: inherit;
}
.booking-highlight h2 {
  font-size: clamp(1.85rem, 3.25vw, 2.65rem);
}
.hero.is-paused ~ .booking-strip .booking-highlight,
.booking-strip:focus-within .booking-highlight {
  animation: none;
}
@keyframes booking-heartbeat {
  0%, 28%, 52%, 100% { transform: scale(1); }
  14% { transform: scale(1.045); }
  40% { transform: scale(1.028); }
}
@media (max-width: 800px) {
  .booking-strip .booking-highlight {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .booking-strip .booking-highlight {
    animation: none;
  }
}

.room-title-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
}
.room-title-button:hover {
  text-decoration: underline;
  text-underline-offset: .15em;
}
.room-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(4px, 1.5vw, 12px);
  padding: 10px clamp(8px, 2vw, 20px);
}
.room-gallery button {
  min-height: 44px;
  padding: 2px;
  border: 2px solid transparent;
  background: none;
}
.room-gallery button[aria-pressed="true"] {
  border-color: var(--ink);
}
.room-gallery img {
  max-height: none;
}

.room-gallery:has(button:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.room-gallery:has(button:nth-child(4):last-child) {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.room-gallery:has(button:nth-child(8)) {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
@media (max-width: 640px) {
  .room-gallery:has(button:nth-child(8)) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.dali-artworks-link {
  color: #e3c792;
  text-decoration: underline;
  text-underline-offset: .2em;
}

#obras-del-hotel {
  scroll-margin-top: 6rem;
}
