@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --paper: #fff;
  --ink: #20291d;
  --muted: #4b5547;
  --accent: #364b2e;
  --wash: #ebf2e5;
  --line: #d9dfd5;
  --display: "Instrument Serif", Georgia, system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}
* {box-sizing: border-box}
body, figure {margin: 0}
a {color: inherit}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {outline: 3px solid #54794b;outline-offset: 4px}
img {display: block;width: 100%;height: 100%;object-fit: cover}
p {line-height: 1.55}
h1, h2 {font-family: var(--display);font-weight: 400;letter-spacing: -.028em;margin: 0;line-height: .98}
h1 {font-size: clamp(3.6rem, 8.4vw, 8.4rem)}
h2 {font-size: clamp(2.5rem, 5.9vw, 5.9rem)}
.wrap {width: min(100% - clamp(2rem, 8vw, 12rem), 1360px);margin-inline: auto}
.header {border-bottom: 1px solid var(--line)}
.bar {min-height: 95px;display: flex;align-items: center;justify-content: space-between;gap: 1rem}
.brand {display: inline-block;flex-shrink: 0}
.brand-logo {width: 118px;height: auto}
.bar nav {display: flex;flex-wrap: wrap;gap: .5rem clamp(.85rem, 3vw, 2.25rem)}
.bar nav a {font-weight: 650;font-size: .94rem;text-decoration: none}
.bar a:hover:not(.btn), .text-link:hover {text-decoration: underline;text-underline-offset: .25rem}
.btn {display: inline-flex;align-items: center;justify-content: center;gap: .85rem;min-height: 44px;padding: .69rem 1.1rem;border-radius: .25rem;border: 1px solid var(--accent);font: 700 .94rem var(--sans);background: var(--accent);color: #fff;text-decoration: none;cursor: pointer}
.btn:hover {filter: brightness(.91)}
.btn:disabled {opacity: .55;cursor: default}
.outline {color: var(--accent);background: transparent}
.text-link {font-weight: 700;text-underline-offset: .25rem}
.actions, .footer-links {display: flex;gap: .9rem;flex-wrap: wrap;align-items: center}
footer {padding-block: .45rem}
footer .brand-logo {width: 96px}
.footer-links {font-size: .86rem}

.hero-home {display: grid;grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);background: #33412b url("fotos/fondo-oliva.webp") center;color: #fff}
.hero-intro {display: flex;align-items: center;padding: clamp(2rem, 8vw, 7rem) clamp(1.1rem, 4vw, 4rem) clamp(2rem, 8vw, 7rem) max(calc((100vw - 1360px) / 2), 4vw, 1rem)}
.hero-copy h1 {font-size: clamp(4.2rem, 8vw, 8rem);line-height: .89}
.cover {display: block;min-width: 0;min-height: clamp(27rem, 42vw, 42rem)}
.cover img {object-position: 53% 60%}
.hero-menu {margin-top: 1.65rem;background: #fff;color: #25351e;border-color: #fff}
.hero-menu:focus-visible {outline-color: #fff}

.place-intro {display: grid;grid-template-columns: 1.18fr .82fr;gap: clamp(1.5rem, 6vw, 8rem);align-items: center;padding-block: clamp(3.4rem, 9vw, 8rem)}
.place-intro h2 {font-size: clamp(4rem, 8vw, 8rem);line-height: .9}
.place-intro h2 em {color: #526447}
.place-intro p {font-size: clamp(1.1rem, 1.85vw, 1.4rem);margin: 0 0 1.15rem;max-width: 34ch;color: var(--muted)}
.photo-section {border-top: 1px solid var(--line);padding-block: clamp(1.75rem, 4vw, 3.6rem) clamp(3rem, 7vw, 6.5rem)}
.celebration-intro {display: flex;align-items: end;justify-content: space-between;gap: .8rem 2rem;flex-wrap: wrap;margin-bottom: clamp(1.15rem, 2.5vw, 2rem)}
.celebration-intro h2 {font-size: clamp(2.8rem, 6.2vw, 6rem)}
.celebration-intro h2 em {color: #526447}
.celebration-intro p {max-width: 61ch;margin: .85rem 0 0;color: var(--muted);font-size: clamp(1rem, 1.45vw, 1.16rem)}
.celebration-photos {scroll-margin-top: 1rem}
.gallery-nav {display: flex;justify-content: end;gap: .4rem;margin-top: .65rem}
.gallery-arrow {border: 1px solid #526447;background: white;color: var(--accent);width: 46px;height: 46px;border-radius: 50%;font: 500 1.33rem var(--sans);cursor: pointer}
.gallery-arrow:hover {color: #fff;background: var(--accent)}
.gallery-arrow:disabled {opacity: .42;cursor: default}
.photo-track {display: flex;gap: clamp(.65rem, 1.5vw, 1.25rem);overflow-x: auto;scroll-snap-type: x mandatory;padding-bottom: .5rem;scrollbar-color: #687d5c #edf2e9}
.photo-track figure {flex: 0 0 88%;min-width: 0;scroll-snap-align: start}
.gallery-photo {display: block;position: relative;overflow: hidden;background: var(--wash);aspect-ratio: 2.13}
.gallery-photo img {transition: transform .22s ease}
.gallery-photo:hover img {transform: scale(1.025)}
.photo-open {position: absolute;bottom: .65rem;right: .65rem;border-radius: 50%;display: grid;place-items: center;width: 2.4rem;height: 2.4rem;font-weight: 700;background: #fff}
.photo-track figcaption {font-weight: 600;font-size: .93rem;margin-top: .55rem}

.visit-band {background: var(--wash)}
.visit {display: grid;grid-template-columns: 1.25fr 1fr auto;gap: 1.25rem;align-items: center;padding-block: clamp(1.8rem, 5vw, 4rem)}
.visit h2 {font-size: clamp(2.2rem, 4vw, 4rem)}
.visit p {margin: .55rem 0 0;max-width: 27ch;color: var(--muted)}
.visit address {font-style: normal;line-height: 1.55}
dialog.lightbox {width: min(100% - 1.4rem, 940px);max-height: calc(100% - 1.2rem);padding: .85rem}
.lightbox img {width: 100%;height: auto;max-height: 62svh;object-fit: contain;background: var(--wash);margin-block: .7rem}
.lightbox figcaption {font-weight: 700;text-align: center;margin-bottom: .65rem}
.lightbox-toolbar {display: flex;justify-content: flex-end}
.lightbox-controls {display: flex;gap: .6rem;justify-content: center}

@media (max-width: 760px) {
  .bar {min-height: 76px}
  .brand-logo {width: 96px}
  .hero-home {grid-template-columns: 1fr}
  .hero-intro {padding: 2.6rem max(4vw, 1rem)}
  .hero-copy h1 {font-size: clamp(4.2rem, 13vw, 6.4rem)}
  .cover {min-height: 0;aspect-ratio: 1.62}
  .place-intro {grid-template-columns: 1fr;gap: 1rem}
  .photo-track figure {flex-basis: 94%}
  .gallery-photo {aspect-ratio: 1.4}
  .visit {grid-template-columns: 1fr 1fr}
  .visit .actions {grid-column: 1 / -1}
  .editor-filters {flex-wrap: wrap}
  .editor-filters input, .editor-line .item {flex-basis: 100%}
  .menu-row {flex-wrap: wrap;gap: .3rem}
  .prices {justify-content: flex-start}
}
@media (max-width: 440px) {
  .header .bar {gap: .55rem}
  .home .header .bar {flex-wrap: wrap;padding-block: .45rem .65rem;justify-content: space-between}
  .home .header .bar nav {order: 3;flex-basis: 100%;padding-top: .2rem}
  .hero-copy h1 {font-size: clamp(3.65rem, 14vw, 4.4rem)}
  footer .bar {align-items: flex-start;flex-direction: column;padding-block: .75rem}
  .visit {grid-template-columns: 1fr}
}
@media (prefers-reduced-motion: reduce) {.gallery-photo img {transition: none}}
.page-heading{padding-block:2.5rem 1.5rem}.page-heading h1{font-size:clamp(3.7rem,9vw,7rem)}.page-heading p:last-child{color:var(--muted)}.menu{max-width:1000px}.categories{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:2rem}.categories a{border:1px solid var(--line);border-radius:.22rem;text-decoration:none;padding:.54rem .8rem;font-size:.92rem;font-weight:700}.categories a:hover{background:var(--wash)}.menu-section{margin-bottom:1.5rem;padding:1.21rem clamp(1rem,3vw,2rem) .65rem;border:1px solid var(--line);border-radius:.35rem;background:#ffffff}.menu-section:first-child{background:var(--wash)}.menu-section h2{font-size:clamp(2.25rem,5vw,4rem);padding-bottom:.5rem}.menu-row{display:flex;justify-content:space-between;gap:1rem;padding:.77rem 0;border-top:1px solid var(--line);font-weight:700}.prices{display:flex;flex-wrap:wrap;gap:.45rem .9rem;justify-content:flex-end;font-variant-numeric:tabular-nums}.price{white-space:nowrap}.price small{font-size:.69rem;font-weight:500;color:var(--muted);margin-right:.25rem}.note{color:var(--muted);font-size:.9rem;margin:1.2rem 0 2.6rem}
.editor{max-width:1100px;padding-bottom:3rem}.editor h1{font-size:clamp(3.2rem,7vw,5.5rem)}.editor-tools,.editor-line,.dialog-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem}.editor-tools{justify-content:space-between;margin:1rem 0}.editor-tools>div{display:flex;gap:.5rem;flex-wrap:wrap}.editor-filters{display:flex;gap:.6rem;margin:1rem 0}.editor-filters input{flex:1;min-width:0}input,select{width:100%;padding:.6rem .7rem;border:1px solid #8e9688;border-radius:.4rem;background:white;font:inherit;color:inherit;min-height:44px}.editor-filters select{width:auto}.editor-list{background:white;border:1px solid var(--line);border-radius:.7rem;overflow:hidden}.editor-line{padding:.72rem 1rem;border-bottom:1px solid var(--line)}.editor-line:last-child{border:0}.editor-line .item{flex:1 1 14rem}.editor-line .item span{display:block;font-size:.83rem;color:var(--muted);margin-top:.12rem}.editor-line button{min-width:6.5rem}.section-switch[aria-pressed=true]{background:var(--accent);color:white}.editor-info{background:var(--wash);padding:.7rem .9rem;border-radius:.5rem}.editor-list>p{padding:0 1rem}.editor-status{min-height:1.6rem;color:var(--accent);font-weight:700}dialog{width:min(100% - 1.5rem,36rem);border:1px solid var(--line);border-radius:.35rem;background:var(--paper);color:var(--ink);padding:1.4rem}dialog::backdrop{background:#161f19aa}dialog h2{font-size:2.9rem}dialog label{display:block;font-size:.9rem;font-weight:700;margin-bottom:.7rem}dialog input,dialog select{margin-top:.25rem}.price-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:.45rem}.dialog-actions{margin-top:1rem;justify-content:flex-end}[hidden]{display:none!important}

.allergen-notice {padding: 1rem 1.25rem;background: var(--wash);border-radius: .35rem;margin-bottom: 1.55rem}
.allergen-notice h2 {font-size: clamp(1.8rem, 4vw, 2.4rem)}
.allergen-notice p {margin: .48rem 0}
.allergen-notice summary {font-weight: 700;color: var(--accent);cursor: pointer}
.allergen-notice .allergen-law {font-size: .82rem;color: var(--muted)}
.allergen-legend, .dish-allergens {list-style: none;padding: 0;display: flex;flex-wrap: wrap;gap: .5rem 1rem}
.allergen-legend li, .dish-allergens li {display: flex;gap: .35rem;align-items: center}
.allergen-icon {width: 24px;height: 24px;object-fit: contain;flex: none}
.dish-allergens {margin: .35rem 0 0;font-size: .87rem;font-weight: 500}
.dish-description {min-width: 0}
.dish-allergen-note {margin: .25rem 0 0;font-size: .84rem;color: var(--muted);font-weight: 500}

.editor-jump {display: flex;gap: 1rem;margin-bottom: 1.5rem;font-weight: 700}
.editor section > h2 {font-size: clamp(2.3rem, 5vw, 3.5rem)}
dialog#dialog {max-height: calc(100% - 1.5rem)}
.allergen-picker {margin: 1rem 0 0;padding: .65rem .75rem;border: 1px solid var(--line)}
.allergen-picker legend {font-weight: 700}
.allergen-picker p {font-size: .84rem;margin: .15rem 0 .7rem}
.allergen-options {display: grid;grid-template-columns: repeat(2,minmax(0,1fr));gap: .3rem}
.allergen-picker label {display: flex;align-items: center;gap: .4rem;min-height: 35px;margin: 0;font-weight: 500;font-size: .87rem;cursor: pointer}
.allergen-picker input {width: 1.1rem;height: 1.1rem;min-height: 0;margin: 0;accent-color: var(--accent);flex: none}
.allergen-picker .allergen-none {border-top: 1px solid var(--line);margin-top: .6rem;padding: .6rem 0 .1rem}
.photo-manager {border-top: 1px solid var(--line);margin-top: 2.5rem;padding-top: 1.5rem}
.photo-form {display: grid;grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;align-items: end;gap: .65rem;margin-top: .8rem}
.photo-form label {font-weight: 650}
.photo-form input {margin-top: .25rem}
.photo-help {font-size: .86rem;color: var(--muted);margin: .6rem 0}
#photo-status {font-weight: 700}
.uploaded-photos {padding: 0;list-style: none;display: grid;gap: .5rem}
.uploaded-photos li {display: grid;grid-template-columns: 64px minmax(0, 1fr) auto;align-items: center;gap: .7rem;padding: .5rem;border: 1px solid var(--line)}
.uploaded-photos img {width: 64px;height: 48px}
@media (max-width: 720px) {.photo-form {grid-template-columns: 1fr}.photo-form .btn {justify-self: start}}
@media (max-width: 400px) {.allergen-options {grid-template-columns: 1fr}}
