:root {
  color-scheme: light;
  --sand: #c6a66b;
  --page-bg: #e9dfc8;
  --sea: #a65e3b;
  --teal: #9a9a76;
  --foam: #f1e7d6;
  --deep: #27332e;
  --whatsapp: #25d366;
  --font-body: "DM Sans", "Trebuchet MS", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--page-bg); }

body { margin: 0; color: var(--deep); background: var(--page-bg); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }

button, a { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--sea); outline-offset: 4px; }
::selection { color: var(--deep); background: var(--sand); }

.site-header { position: sticky; top: 0; z-index: 10; padding: 10px 10px 0; background: #052b2c; }
.cover { position: relative; display: flex; min-height: 158px; align-items: flex-end; overflow: hidden; isolation: isolate; padding: 18px 20px; color: #7dd3c8; background-color: #052b2c; background-image: linear-gradient(90deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, .08)), linear-gradient(0deg, rgba(0, 0, 0, .35), transparent 60%), url("img/Portada.jpg"); background-position: center 48%; background-size: cover; }
.cover::after { position: absolute; z-index: -1; right: -42px; bottom: -108px; width: 210px; aspect-ratio: 1; border: 1px solid rgba(125, 211, 200, .5); border-radius: 50%; content: ""; }
.brand { position: absolute; top: 15px; left: 18px; display: flex; align-items: center; gap: 8px; color: #7dd3c8; text-decoration: none; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #c6a66b; border-radius: 50%; color: #c6a66b; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.brand-name { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.brand-name span, .footer-brand span { color: var(--sand); }
.cover-copy .eyebrow { color: #7dd3c8; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.cover h1 { margin: 4px 0 0; font-family: var(--font-display); font-size: 32px; font-weight: 500; line-height: .98; }
.cover-coordinate { position: absolute; right: 16px; bottom: 18px; color: #7dd3c8; font-size: 8px; letter-spacing: .4px; }

main { min-height: 65vh; background-color: var(--page-bg); }
.page-shell { width: min(100% - 28px, 1100px); margin-inline: auto; padding: 17px 0 66px; }
.excursions-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--deep); font-size: 11px; font-weight: 700; text-decoration: none; }
.excursions-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.primary-nav { display: grid; width: min(100%, 800px); grid-template-columns: 1fr; grid-auto-rows: 1fr; justify-items: stretch; gap: 10px; margin-inline: auto; }
.nav-button { position: relative; display: block; width: 100%; height: auto; min-height: 0; max-height: 200px; aspect-ratio: 2.35 / 1; overflow: hidden; padding: 0; border: 0; border-radius: 30px; color: #fff; background: transparent; font-size: 15px; font-weight: 700; line-height: 1.25; text-align: left; text-decoration: none; cursor: pointer; transition: transform .2s ease; }
.nav-button:hover { transform: translateY(-2px); border-color: var(--deep); }
.nav-button.is-active, .nav-contact { color: var(--foam); background: transparent; }
.nav-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: darken; transition: transform .35s ease; }
.nav-button:hover .nav-image { transform: scale(1.025); }
.nav-motos .nav-image { object-position: center top; mix-blend-mode: normal; }
.nav-excursions .nav-image { transform: scale(1.22); mix-blend-mode: normal; }
.nav-excursions:hover .nav-image { transform: scale(1.24); }
.nav-moments .nav-image { object-position: center top; mix-blend-mode: normal; }
.nav-contact .nav-image { object-position: center top; mix-blend-mode: normal; }
.section-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 20px 0 16px; border-bottom: 1px solid rgba(5, 43, 44, .2); }
.section-intro[hidden] { display: none; }
.section-kicker { flex: 0 0 auto; color: var(--deep); }
.section-note { max-width: 245px; margin: 0; color: var(--deep); font-size: 10px; line-height: 1.55; text-align: right; }
.content-panel { padding-top: 25px; }
.content-panel[hidden] { display: none; }
.content-panel.is-entering { opacity: 0; transform: translateY(10px); }
.content-panel.is-visible { opacity: 1; transform: translateY(0); transition: opacity .36s ease, transform .36s ease; }
.content-panel.is-exiting { opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 19px; }
.section-heading h2, .routes-heading h3 { margin: 0; font-family: var(--font-display); font-size: clamp(31px, 9vw, 45px); font-weight: 500; line-height: 1.04; }
.section-heading h2 em, .routes-heading h3 em { color: var(--sea); font-weight: 500; }
.heading-ornament { color: var(--sand); font-size: 25px; }
.excursion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; align-items: start; }
.excursion-card { min-width: 0; }
.excursion-card-wide { grid-column: 1 / -1; }
.photo-button { position: relative; display: block; width: 100%; aspect-ratio: 1.16; overflow: hidden; padding: 0; border: 0; border-radius: 2px; background: var(--teal); cursor: zoom-in; }
.excursion-card-wide .photo-button { aspect-ratio: 1.7; }
.photo-button img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .65, .3, 1); }
.photo-button:hover img { transform: scale(1.045); }
.photo-open { display: none; }
.card-caption { display: flex; align-items: end; justify-content: space-between; gap: 8px; padding: 9px 0 3px; }
.card-type { color: var(--deep); font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.card-caption h3 { margin: 3px 0 0; font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.card-number { padding-bottom: 3px; color: var(--deep); font-size: 9px; }
.excursion-aside { display: flex; grid-column: 1 / -1; align-items: center; gap: 12px; margin-top: 1px; padding: 13px 14px; border-left: 2px solid var(--sand); background: rgba(181, 139, 87, .16); }
.excursion-aside > span { color: var(--sand); font-size: 20px; }
.excursion-aside p { flex: 1; margin: 0; font-family: var(--font-display); font-size: 13px; line-height: 1.4; }
.excursion-aside a, .moment-personal > a { flex: 0 0 auto; font-size: 9px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.moto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.moto-card { position: relative; min-width: 0; aspect-ratio: 1 / 1.12; overflow: hidden; border-radius: 2px; background: var(--deep); }
.moto-card-feature { grid-column: 1 / -1; aspect-ratio: 1.72; }
.moto-photo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.moto-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.moto-photo:hover img { transform: scale(1.035); }
.moto-photo .photo-open { top: 9px; right: 9px; bottom: auto; }
.moto-caption { position: absolute; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 20px 12px 11px; color: var(--foam); background: linear-gradient(0deg, rgba(5, 43, 44, .92), rgba(5, 43, 44, 0)); }
.moto-caption > span { grid-column: 1; color: var(--sand); font-size: 7px; font-weight: 700; letter-spacing: .5px; }
.moto-caption h3 { grid-column: 1; margin: 3px 0 0; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.moto-caption > a { grid-column: 2; grid-row: 1 / span 2; display: flex; min-height: 29px; align-items: center; justify-content: center; padding-inline: 8px; color: var(--foam); font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.routes-heading { padding: 42px 0 15px; }
.routes-heading > .eyebrow { display: block; margin-bottom: 11px; }
.routes-heading h3 { font-size: clamp(29px, 8vw, 39px); }
.route-mosaic { display: grid; height: 330px; grid-template-columns: 1.15fr .85fr 1fr; grid-template-rows: 1fr .78fr; gap: 5px; overflow: hidden; }
.route-photo { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; padding: 0; border: 0; background: var(--deep); cursor: zoom-in; }
.route-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.route-photo:hover img { transform: scale(1.04); }
.route-photo .photo-open { right: 7px; bottom: 7px; width: 25px; height: 25px; }
.route-photo:first-child { grid-row: 1 / 3; }
.route-photo:nth-child(2) { grid-column: 2 / 4; }

.moments-intro { max-width: 410px; margin: -4px 0 19px; font-size: 12px; line-height: 1.7; }
.moments-grid { display: grid; grid-template-columns: 1fr; gap: 9px; }
.moment-tile { position: relative; display: flex; min-height: 175px; flex-direction: column; align-items: flex-start; justify-content: flex-end; overflow: hidden; padding: 17px; border: 1px solid rgba(5, 43, 44, .2); background-color: var(--teal); }
.moment-main { grid-row: span 2; min-height: 360px; color: var(--foam); background-color: var(--deep); background-image: radial-gradient(ellipse at 50% 35%, rgba(166, 94, 59, .35), transparent 56%); }
.moment-mark { position: absolute; top: 16px; right: 15px; color: var(--sand); font-size: 26px; }
.moment-tile h3 { margin: 10px 0 0; font-family: var(--font-display); font-size: 23px; font-weight: 500; line-height: 1.12; }
.moment-id { margin-top: 13px; color: var(--sand); font-size: 8px; font-weight: 700; letter-spacing: .7px; }
.moment-birthday { min-height: 220px; background-color: var(--sea); }
.moment-birthday .moment-spark { margin: 18px 0 4px; color: var(--foam); font-size: 27px; }
.moment-personal { min-height: 131px; background-color: var(--sand); }
.moment-personal h3 { margin: 7px 0 14px; font-size: 20px; }

.site-footer { padding: 24px 18px 22px; color: #7dd3c8; background: #052b2c; }
.footer-inner { display: grid; max-width: 1100px; grid-template-columns: 1fr auto; align-items: center; gap: 15px 10px; margin-inline: auto; }
.footer-brand { align-self: center; font-family: var(--font-display); font-size: 18px; font-weight: 600; text-decoration: none; }
.footer-inner > p { grid-column: 1; grid-row: 2; margin: 0; color: #7dd3c8; font-size: 9px; line-height: 1.65; }
.social-links { display: flex; align-items: center; gap: 13px; }
.social-links a { display: grid; width: 29px; height: 29px; place-items: center; color: var(--foam); }
.social-links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.social-links a:first-child svg { fill: currentColor; stroke: none; }
.social-links svg .icon-fill { fill: currentColor; stroke: none; }
.footer-note { grid-column: 2; grid-row: 2; align-self: end; color: #7dd3c8; font-size: 8px; }
.whatsapp-fab { position: fixed; z-index: 12; right: 17px; bottom: max(18px, env(safe-area-inset-bottom)); display: grid; width: 53px; height: 53px; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; background: var(--whatsapp); box-shadow: 0 0 0 0 rgba(37, 211, 102, .48); animation: fab-pulse 2.7s ease-out infinite; }
.whatsapp-fab svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; }
@keyframes fab-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .48); } 70% { box-shadow: 0 0 0 11px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.lightbox[hidden] { display: none; }
.lightbox { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 12px; }
.lightbox-backdrop { position: absolute; inset: 0; border: 0; background: rgba(5, 43, 44, .94); }
.lightbox-content { position: relative; width: min(100%, 820px); color: var(--foam); }
.lightbox-top, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lightbox-top { padding-bottom: 10px; }
.lightbox-top p { margin: 0; font-family: var(--font-display); font-size: 19px; }
.lightbox-close { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(125, 211, 200, .5); border-radius: 50%; color: var(--foam); background: transparent; font-size: 25px; cursor: pointer; }
.lightbox-gallery { display: flex; height: min(70vh, 760px); flex-direction: column; gap: 12px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 8px; background: rgba(241, 231, 214, .08); scrollbar-gutter: stable; }
.lightbox-gallery:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
.lightbox-image { display: block; width: 100%; height: auto; border-radius: 2px; }
.lightbox-bottom { padding-top: 11px; }
.lightbox-count { font-size: 11px; }

@media (min-width: 650px) {
  .site-header { padding-inline: 18px; }
  .cover { min-height: 225px; padding-inline: 35px; }
  .brand { left: 35px; }
  .cover h1 { font-size: 47px; }
  .cover-coordinate { right: 32px; bottom: 23px; }
  .page-shell { width: min(100% - 44px, 1000px); padding-top: 22px; }
  .primary-nav { grid-template-columns: 1fr; gap: 11px; }
  .nav-button { font-size: 17px; }
  .section-intro { padding-block: 23px 18px; }
  .section-note { max-width: 330px; font-size: 11px; }
  .content-panel { padding-top: 33px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2 { font-size: 54px; }
  .excursion-grid { grid-template-columns: 1.2fr .8fr; gap: 23px; align-items: center; }
  .excursion-card-wide { grid-column: auto; }
  .excursion-card-wide .photo-button { aspect-ratio: .96; }
  .excursion-card:not(.excursion-card-wide) .photo-button { aspect-ratio: .96; }
  .excursion-aside { grid-column: 1 / -1; padding: 17px 19px; }
  .excursion-aside p { font-size: 16px; }
  .excursion-aside a { font-size: 11px; }
  .card-caption h3 { font-size: 24px; }
  .moto-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .moto-card-feature { grid-column: auto; aspect-ratio: 1 / 1.12; }
  .moto-card { aspect-ratio: 1 / 1.12; }
  .moto-caption { padding-inline: 14px; }
  .route-mosaic { height: 490px; grid-template-columns: 1.2fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
  .route-photo:first-child { grid-row: 1 / 3; }
  .route-photo:nth-child(2) { grid-column: auto; }
  .route-photo:nth-child(4) { grid-row: 2; grid-column: 2 / 4; }
  .moments-intro { font-size: 14px; }
  .moments-grid { grid-template-columns: 1fr; gap: 12px; }
  .moment-main { grid-row: auto; min-height: 300px; }
  .moment-birthday { min-height: 235px; }
  .moment-personal { min-height: 180px; }
  .moment-tile { padding: 24px; }
  .moment-tile h3 { font-size: 29px; }
  .site-footer { padding: 28px 24px; }
  .footer-inner { grid-template-columns: 1fr auto auto; gap: 20px; }
  .footer-inner > p { grid-column: 2; grid-row: 1; }
  .social-links { grid-column: 3; grid-row: 1; }
  .footer-note { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
}

@media (max-width: 400px) and (max-height: 700px) {
  .site-header { padding: 6px 8px 0; }
  .cover { min-height: 130px; padding: 14px 16px; }
  .brand { top: 10px; left: 14px; }
  .cover h1 { font-size: 28px; }
  .cover-coordinate { right: 12px; bottom: 12px; }
  .page-shell { width: min(100% - 20px, 1100px); padding-top: 8px; padding-bottom: 44px; }
  .primary-nav { gap: 6px; }
  .nav-button { aspect-ratio: 2.8 / 1; border-radius: 22px; }
  .nav-excursions .nav-image { transform: scale(1.08); }
  .nav-excursions:hover .nav-image { transform: scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}