:root {
  --accent: #006b69;
  --deep: #103436;
  --brown: #593725;
  --ink: #171634;
  --soft: #f2f8f7;
  --rule: #cec4b4;
  --page: #fefefd;
  --heading: Arial, sans-serif;
  --body: Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.45 var(--body);
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
svg {
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  border: 1px solid transparent;
  border-radius: 0.58em;
  background: var(--accent);
  color: white;
  padding: 0.55em 0.9em;
  cursor: pointer;
  text-decoration: none;
}
button.secondary,
.button.secondary {
  background: white;
  color: var(--accent);
  border-color: var(--accent);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
:focus-visible {
  outline: 3px solid #ab7037;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 8.6vw;
  min-height: 100px;
  padding: 0 4% 0 5.7%;
  display: flex;
  align-items: center;
  gap: 1.8vw;
  position: relative;
  z-index: 2;
}
.brand {
  flex: none;
  width: 13.5vw;
  min-width: 135px;
}
.brand img {
  display: block;
  width: 100%;
  height: clamp(90px, 8.1vw, 200px);
  object-fit: contain;
}
@media (min-width: 901px) {
  .site-header .brand img {
    transform: scale(1.2);
    transform-origin: right top;
  }
  .site-header:has(+ #admin-session:not([hidden])) .brand img {
    transform: translateY(clamp(14px, 1.15vw, 24px)) scale(1.2);
    transform-origin: right center;
  }
}
.brand-icons {
  width: 15.7vw;
  height: 3.8vw;
  object-fit: contain;
  border-left: 2px solid var(--deep);
  padding-left: 1.8vw;
}
.site-header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65vw;
  margin-left: auto;
  width: 55%;
  white-space: nowrap;
  font-size: clamp(13px, 1.08vw, 24px);
  font-weight: 600;
  letter-spacing: -0.045em;
}
.site-header nav a {
  text-decoration: none;
  position: relative;
}
.site-header nav a[aria-current="page"]:not(.book) {
  color: var(--accent);
}
.site-header nav a[aria-current="page"]:not(.book)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.18em;
  border-bottom: 0.18em solid;
}
.book {
  padding: 0.38em 0.78em;
  box-shadow: inset 0 0 0.75em #005754;
}
.menu {
  display: none;
}
.hero {
  position: relative;
  height: 11.75vw;
  min-height: 185px;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0 0 auto auto;
  width: 67.1%;
  height: 97%;
  object-fit: fill;
  mask-image: linear-gradient(to right, transparent, #000 12%);
}
.hero-copy {
  position: relative;
  padding-top: 1.95vw;
  margin-left: 4.33%;
  width: 33%;
  z-index: 1;
}
.hero h1 {
  font: 800 clamp(22px, 1.78vw, 39px)/1.03 var(--heading);
  color: var(--accent);
  letter-spacing: 0.006em;
  margin: 0 0 0.24em;
}
.hero p {
  margin: 0;
  font-size: clamp(14px, 1.03vw, 23px);
  line-height: 1.23;
  font-weight: 500;
}
.hero .hero-place {
  font: 800 clamp(16px, 1.36vw, 29px)/1.15 var(--heading);
  color: var(--brown);
  margin-bottom: 0.19em;
}
.hero-wave,
.footer-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.75vw;
  pointer-events: none;
}
.strip {
  display: grid;
  grid-template-columns: 46.3% 18% 17% 1fr;
  align-items: center;
  padding: 0.55vw 3.3% 0.92vw 4.33%;
  min-height: 4.95vw;
  color: var(--deep);
  background: #fff;
}
.photos {
  display: grid;
  grid-template-columns: 1.12fr 1fr 1fr 1.03fr;
  gap: 0.83vw;
  padding-right: 2vw;
}
.photos img {
  width: 100%;
  height: 3.45vw;
  min-height: 43px;
  object-fit: cover;
  border-radius: 0.57vw;
}
.info {
  display: flex;
  gap: 0.95vw;
  align-items: center;
  border-left: 2px solid var(--rule);
  padding-left: 1.9vw;
  text-decoration: none;
  line-height: 1.15;
  min-height: 3.4vw;
  font-size: clamp(12px, 1vw, 22px);
  letter-spacing: -0.035em;
}
.info small,
.info b,
.info strong {
  display: block;
}
.info small {
  font-size: 0.92em;
  color: #41494a;
  margin: 0.17em 0;
}
.info b {
  font-size: 1.29em;
  margin-top: 0.13em;
}
.info.mail b {
  font-size: 1.02em;
}
.tile {
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, #008483, #005454);
  border-radius: 0.65vw;
  color: white;
  width: 3.13vw;
  height: 2.75vw;
  min-width: 34px;
  min-height: 31px;
}
.tile svg {
  width: 65%;
  height: 68%;
}
.strip-line {
  height: 0.97vw;
  background: var(--accent);
  clip-path: polygon(0 0, 25% 34%, 57% 42%, 100% 9%, 100% 100%, 0 87%);
}
.about {
  display: grid;
  grid-template-columns: 30.1% 1fr;
  gap: 6.1%;
  width: 83.7%;
  margin: 0.86vw auto 0;
  align-items: start;
  padding-bottom: 2.7vw;
  color: #112a38;
}
.about-photo {
  width: 100%;
  height: 13.15vw;
  min-height: 162px;
  object-fit: cover;
  object-position: center 56%;
  border-radius: 1.05vw;
  margin-top: 0.43vw;
}
.about h2 {
  color: var(--deep);
  font: 800 clamp(25px, 1.85vw, 40px)/1.12 var(--heading);
  margin: 0.1em 0 0.28em;
  letter-spacing: -0.035em;
}
.about p {
  font-size: clamp(13px, 0.9vw, 21px);
  line-height: 1.2;
  margin: 0 0 0.63em;
}
.about .eyebrow {
  color: var(--accent);
  font-size: clamp(10px, 0.79vw, 17px);
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 0.46em;
}
.signature {
  width: 26.7vw;
  height: 2.7vw;
  min-height: 31px;
  object-fit: contain;
  object-position: left;
  mix-blend-mode: multiply;
}
.footer {
  color: #fff;
  background: var(--deep);
  position: relative;
  margin-top: 0;
}
.footer-wave {
  height: 4vw;
  bottom: calc(100% - 1px);
}
.footer-inner {
  width: 77%;
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  align-items: center;
  min-height: 7.7vw;
  padding-bottom: 0.56vw;
}
.foot-name,
.foot-legal {
  border-left: 2px solid #eee7d8;
  padding-left: 2.4vw;
}
.foot-name {
  font-size: clamp(13px, 0.98vw, 21px);
  line-height: 1.27;
}
.foot-name strong {
  font-size: 1.42em;
}
.foot-name p {
  margin: 0.22em 0 0.44em;
  letter-spacing: 0.045em;
}
.foot-name a,
.foot-legal a {
  text-decoration: none;
}
.foot-name svg {
  color: #f2e8d4;
  margin-right: 0.3em;
}
.foot-legal {
  display: grid;
  gap: 0.23em;
  font-size: clamp(13px, 0.97vw, 20px);
  line-height: 1.28;
  padding-left: 4vw;
  padding-right: 2.4vw;
}
.foot-legal a,
.foot-legal button {
  display: flex;
  justify-content: space-between;
}
.foot-legal a::after,
.foot-legal button::after {
  content: "›";
}
.foot-legal button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  border-radius: 0;
}
.foot-access {
  justify-self: end;
  text-align: center;
  width: 100%;
  max-width: 16.6vw;
}
.foot-access img {
  width: 100%;
  margin-top: 0.55vw;
  filter: brightness(1.9) saturate(0.55);
  opacity: 0.45;
}
.access {
  border: 2px solid #eee6d6;
  border-radius: 999px;
  text-decoration: none;
  padding: 0.41em 1.1em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: clamp(12px, 0.96vw, 21px);
  white-space: nowrap;
}
.view {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 2rem 0 6rem;
  min-height: 56vh;
}
.view h1 {
  color: var(--deep);
  font-size: clamp(29px, 4vw, 46px);
  line-height: 1.12;
  margin: 0.15em 0 0.55em;
}
.view h2,
.view h3 {
  color: var(--deep);
}
.view p {
  max-width: 80ch;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 1rem;
}
.card {
  border: 1px solid #d7e4e0;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  min-width: 0;
}
.service-notice {
  padding: 0;
  overflow: hidden;
  background: #fcf9f1;
  border-color: #a7c2ad;
  border-radius: 1rem;
}
.service-notice-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.75;
  object-fit: cover;
}
.service-notice-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: -1.175rem auto 0;
  border: 2px solid #fcf9f1;
  border-radius: 50%;
  background: var(--deep);
  color: white;
}
.service-notice-photo[hidden] ~ .service-notice-icon { margin-top: .7rem; }
.service-notice-copy { padding: .45rem 1rem 1rem; }
.service-notice p { margin: 0 0 .75rem; }
.service-notice p:last-child { margin-bottom: 0; }
.service-notice strong { color: var(--deep); }
.card img:not([width]) {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 0.42rem;
}
.card h2,
.card h3 {
  margin: 0.1em 0 0.5em;
}
.card img + h2 {
  margin-top: 0.65em;
}
.card p:last-child {
  margin-bottom: 0;
}
.view iframe {
  width: 100%;
  min-height: 340px;
  border: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55em;
  margin: 0.7em 0;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(195px, 100%), 1fr));
  gap: 0.8rem;
}
.fields label,
label.stack {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}
.fields input,
.fields select,
.fields textarea,
.stack input,
.stack select,
.stack textarea,
#agenda-search {
  width: 100%;
  padding: 0.45em 0.6em;
  border: 1px solid #aabfba;
  border-radius: 0.35em;
  background: white;
  color: var(--ink);
}
input[type="checkbox"] {
  width: auto;
}
.notice {
  background: var(--soft);
  border-inline-start: 3px solid var(--accent);
  padding: 0.65em 0.8em;
}
.error {
  color: #912b2b;
}
.calendar {
  max-width: 38rem;
}
.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5em;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
  text-align: center;
}
.calendar-grid button {
  padding: 0.45em 0.15em;
}
.calendar-grid .closed {
  background: #eee;
  color: #525a5a;
}
.calendar-grid .blocked {
  background: #f9e1e1;
  color: #792f2f;
}
.selected {
  outline: 3px solid #ae783d;
  outline-offset: 2px;
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.agenda details,
.blocks li {
  padding: 0.55em 0.6em;
  border-bottom: 1px solid #d7e4e0;
}
.agenda summary {
  cursor: pointer;
}
.map {
  margin-top: 1rem;
}
.article-body {
  display: flow-root;
}
.article-body :is(ul, ol) {
  padding-inline-start: 1.75em;
  list-style-position: outside;
}
.article-body li > :is(ul, ol) {
  margin-block: .25em;
}
.article-body img,
.article-body video,
.article-body audio {
  max-width: 100%;
}
.article-body img[data-align="left"] {
  float: left;
  margin: 0 1rem 0.6rem 0;
}
.article-body img[data-align="right"] {
  float: right;
  margin: 0 0 0.6rem 1rem;
}
.article-body img[data-align="center"],
.article-body img[data-align="header"] {
  margin: 0.7rem auto;
}
.article-body table,
.editor table {
  border-collapse: collapse;
}
.article-body td,
.article-body th,
.editor td,
.editor th {
  border: 1px solid #aabfba;
  padding: 0.35em;
}
.editor {
  min-height: 15rem;
  padding: 1rem;
  border: 1px solid #aabfba;
  background: white;
  border-radius: 0.4rem;
  overflow: auto;
}
.editor img {
  cursor: pointer;
}
.editor img.is-selected {
  outline: 2px solid var(--accent);
}
.editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28em;
  margin: 0.55em 0;
}
.editor-tools button {
  background: #e7f2ef;
  color: var(--deep);
  padding: 0.3em 0.6em;
}
.editor-tools input[type="color"] {
  height: 2rem;
}
.admin-form {
  margin: 1rem 0;
}
.admin-form legend {
  font-weight: bold;
  color: var(--deep);
}
.admin-tabs {
  margin-bottom: 1rem;
}
.media-list {
  max-height: 240px;
  overflow: auto;
}
dialog {
  max-width: min(54rem, 94vw);
  max-width: none;
  padding: 1.35rem;
  border: 1px solid #cbdcd6;
  border-radius: 0.9rem;
  color: var(--ink);
  box-shadow: 0 12px 40px #102e3650;
}
dialog::backdrop {
  background: #132d29a0;
}
dialog h2 {
  color: var(--deep);
  margin-top: 0;
}
#cookie-dialog {
  --cookie-edge: clamp(0.75rem, 2.5vw, 1.25rem);
  position: fixed;
  inset: auto var(--cookie-edge) var(--cookie-edge) auto;
  width: min(39rem, calc(100% - 2 * var(--cookie-edge)));
  max-height: calc(100dvh - 2 * var(--cookie-edge));
  margin: 0;
  padding: clamp(1rem, 3.5vw, 1.65rem);
  background: var(--page);
}
#cookie-dialog::backdrop {
  background: transparent;
}
#cookie-title {
  margin: 0 0 0.55rem;
}
#cookie-title + p {
  margin: 0;
  color: var(--ink);
}
#cookie-policy {
  color: var(--accent);
  text-underline-offset: 0.16em;
}
.cookie-options {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.05rem;
}
.cookie-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #cbdcd6;
  border-radius: 0.65rem;
  background: var(--soft);
  color: var(--deep);
  cursor: pointer;
}
.cookie-option:has(input:checked) {
  background: #e8f3ef;
  border-color: #a9cbc2;
}
.cookie-option input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.14rem 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.cookie-option small {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.875rem;
}
#cookie-dialog .actions {
  margin: 1.05rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #cbdcd6;
}
@media (max-width: 1100px) {
  .site-header {
    padding-inline: 3%;
    gap: 1vw;
  }
  .site-header nav {
    width: 66%;
  }
  .brand-icons {
    width: 15vw;
    padding-left: 1vw;
  }
  .hero-copy {
    width: 42%;
  }
  .hero-photo {
    width: 65%;
  }
  .strip {
    padding-inline: 3%;
    grid-template-columns: 40% 20% 17% 1fr;
  }
  .info {
    padding-left: 1vw;
  }
  .foot-access {
    max-width: 100%;
  }
  .about {
    width: 88%;
    gap: 4%;
    grid-template-columns: 34% 1fr;
  }
  .footer-inner {
    width: 88%;
    min-height: 120px;
  }
}
@media (max-width: 900px) {
  .site-header {
    height: auto;
    min-height: 99px;
    gap: 12px;
    padding: 0 5%;
  }
  .brand {
    width: clamp(108px, 33vw, 148px);
    min-width: 0;
  }
  .brand img {
    height: 92px;
  }
  .brand-icons {
    width: 125px;
    height: 40px;
    padding-left: 10px;
  }
  .menu {
    display: inline-flex;
    margin-left: auto;
  }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: white;
    box-shadow: 0 6px 12px #15373320;
    padding: 1rem 5%;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 16px;
  }
  .site-header nav.open {
    display: grid;
  }
  .site-header .book {
    justify-self: start;
  }
  .hero {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .hero-copy {
    order: 0;
    padding: 1.05rem 0 0.8rem;
    margin: 0 auto;
    width: 90%;
  }
  .hero-photo {
    order: 1;
    position: static;
    width: 100%;
    height: clamp(115px, 29vw, 205px);
    object-fit: cover;
    mask-image: none;
  }
  .hero-wave {
    height: 16px;
  }
  .strip {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 0.5rem;
    padding: 0.8rem 5%;
  }
  .photos {
    grid-column: 1/-1;
    padding: 0;
    gap: 0.45rem;
  }
  .photos img {
    height: clamp(43px, 11vw, 80px);
    border-radius: 7px;
  }
  .info {
    gap: 0.5rem;
    font-size: 14px;
    padding-left: 0;
    border: 0;
  }
  .info.mail {
    grid-column: 1/-1;
  }
  .tile {
    border-radius: 7px;
  }
  .strip-line {
    height: 8px;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 90%;
    margin: 1rem auto 0;
    padding-bottom: 2.8rem;
  }
  .about-photo {
    height: clamp(140px, 49vw, 300px);
    border-radius: 12px;
  }
  .about p {
    font-size: 15px;
    line-height: 1.4;
  }
  .about .eyebrow {
    font-size: 11px;
  }
  .signature {
    width: min(390px, 90%);
    height: 38px;
  }
  .footer-wave {
    height: 35px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 90%;
    padding: 0.55rem 0 1rem;
  }
  .foot-name,
  .foot-legal {
    padding-left: 0.7rem;
  }
  .foot-legal {
    grid-column: 1/-1;
    padding-right: 0;
    border: 0;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1rem;
  }
  .foot-access {
    grid-column: 1/-1;
    justify-self: center;
  }
  .foot-access img {
    display: none;
  }
  .view {
    padding-top: 1.5rem;
    padding-bottom: 4.5rem;
  }
}
@media print {
  .site-header,
  .footer,
  .admin-tabs,
  .no-print,
  button:not(summary button),
  dialog {
    display: none !important;
  }
  .view {
    padding: 0;
    width: 100%;
  }
  .agenda details {
    break-inside: avoid;
  }
}
.hero h1 {
  white-space: pre-line;
}
.article-cover {
  max-height: 440px;
  object-fit: cover;
  margin-bottom: 1rem;
}
@font-face {
  font-family: DM Sans;
  src: url(/assets/dm-sans-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url(/assets/dm-sans-latin-500-normal.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url(/assets/dm-sans-latin-600-normal.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url(/assets/dm-sans-latin-700-normal.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url(/assets/montserrat-latin-800-normal.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  --body: "DM Sans", Arial, sans-serif;
  --heading: Montserrat, "DM Sans", Arial, sans-serif;
}
@media (min-width: 1101px) {
  .site-header nav {
    width: 59.4%;
  }
  .hero-intro {
    max-width: 30vw;
  }
  .hero h1 {
    font-size: clamp(22px, 1.69vw, 39px);
  }
  .strip {
    min-height: 4.95vw;
    padding-top: 0.45vw;
    padding-bottom: 0.53vw;
    grid-template-columns: 45.65% 17.95% 17% 1fr;
  }
  .about {
    padding-bottom: 2.22vw;
  }
  .about-copy {
    max-width: 51vw;
  }
  .footer-inner {
    padding-bottom: 0.25vw;
  }
}

.design-preview {
  width: min(1280px, 94vw);
  max-width: 94vw;
}
.preview-window { overflow: hidden; border: 1px solid #cbdcd6; }
.preview-stage { background: var(--page); color: var(--ink); }
.design-preview form { margin-top: 1rem; }
@media (min-width: 1101px) {
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > #main { flex: 1; min-width: 0; }
body > .site-header, body > .footer { flex-shrink: 0; }
#view:focus { outline: none; }
@media (min-width: 901px) {
  .home-active > #main { display: flex; flex-direction: column; }
  .home-active #home { flex: 1; display: flex; flex-direction: column; }
  .home-active #home > .hero {
    flex: 4 0 max(13.5vw, 215px);
    height: auto;
    display: flex;
    align-items: center;
  }
  .home-active #home .hero-copy { padding: 1.45rem 0 2.1rem; }
  .home-active #home .hero-photo { object-fit: cover; object-position: center; }
  .home-active #home > .about { flex: 5 0 auto; align-items: center; padding-block: 1.2rem 3.6rem; }
  .home-active #home .about-photo { height: clamp(190px, 17vw, 355px); margin-top: 0; }
  .home-active #home .strip { padding-block: .65vw; }
}
.editorial-intro { color: #455c69; font-size: 1.06rem; margin-block-end: 1.8rem; }
.editorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 315px), 1fr)); gap: 1.3rem; }
.editorial-card { display: flex; flex-direction: column; border: 1px solid #d7e4e0; border-radius: 1rem; overflow: hidden; background: white; box-shadow: 0 12px 34px #10343608; }
.editorial-cover { height: clamp(145px, 14vw, 210px); display: grid; place-items: center; color: var(--accent); background: linear-gradient(140deg, #e4f2ef, #cfe2e7); }
.editorial-cover img { width: 100%; height: 100%; object-fit: cover; }
.editorial-cover svg { width: 3.5rem; height: 3.5rem; }
.editorial-copy { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.editorial-copy time { color: var(--accent); font-size: .85rem; font-weight: 700; }
.editorial-copy h2 { margin: .45rem 0 .6rem; line-height: 1.2; }
.editorial-copy h2 a { text-decoration: none; }
.editorial-copy h2 a:hover { text-decoration: underline; }
.editorial-copy p { margin: 0 0 1rem; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.editorial-actions { margin-top: auto; display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.editorial-actions span { overflow-wrap: anywhere; }
.contact-view { width: min(1440px, 92%); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, .8fr); gap: 1rem; }
.contact-card { padding: clamp(1rem, 2vw, 2rem); box-shadow: 0 12px 34px #10343608; border-radius: 1rem; }
.contact-card h2 { margin-bottom: .9rem; }
.contact-card a, .contact-entry { overflow-wrap: anywhere; }
.contact-card address { font-style: normal; }
.contact-card svg { color: var(--accent); margin-right: .25em; }
.contact-card hr { border: 0; border-top: 1px solid #d7e4e0; margin-block: 1.4rem; }
.contact-card .stack { margin-block: .75rem; font-weight: 600; }
.contact-card .stack input, .contact-card .stack textarea { font-weight: 400; }
.contact-card .form-result:not(:empty) { margin-top: .7rem; }
.contact-mobile img { max-width: 100%; height: auto; margin-block: .75rem; }
.contact-location { margin-top: 2rem; }
.contact-location .map { border-radius: 1rem; overflow: hidden; }
.contact-location iframe { display: block; min-height: clamp(290px, 32vw, 480px); }
.contact-entry { margin-bottom: .65rem; }
.contact-entry summary { cursor: pointer; }
.contact-message { white-space: pre-wrap; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-mobile { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 901px) {
  .home-active #home > .hero { max-height: max(260px, 23vw); }
  .home-active #home .hero-photo { object-position: 82% center; }
  .home-active #home .about-photo { height: clamp(210px, min(30vw, 42dvh), 490px); }
}

/* Panel privado */
body:has(.admin-workspace) { background: #f2f6f4; }
body:has(.admin-workspace) > :is(.site-header, .footer) { display: none; }
.view.admin-workspace {
  width: 100%; min-height: 100dvh; padding: 0;
  display: grid; grid-template-columns: clamp(205px, 19vw, 310px) minmax(0, 1fr);
}
.admin-sidebar {
  background: #103b35; color: #e9f6ee; padding: 1.6rem .8rem; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
}
.admin-brand {
  display: block; margin: .1rem .55rem 1.65rem; color: white; text-decoration: none;
  font-size: clamp(1.22rem, 2vw, 1.8rem); font-weight: 800; letter-spacing: -.045em;
}
.admin-menu-toggle { display: none; }
.admin-menu-panel { display: flex; flex: 1; flex-direction: column; }
.admin-tabs { display: grid; gap: .26rem; }
.admin-tabs :is(button, a), .admin-logout {
  display: flex; align-items: center; justify-content: flex-start; gap: .6rem;
  width: 100%; min-height: 2.75rem; padding: .6rem .65rem; text-align: left;
  color: inherit; background: transparent; border: 1px solid transparent; border-radius: .58rem; text-decoration: none;
}
.admin-tabs svg { flex: 0 0 1.1rem; }
.admin-tabs [aria-current="page"] { background: #087166; border-color: #87c2ad; color: white; font-weight: 700; }
.admin-tabs :is(button, a):hover:not([aria-current]), .admin-logout:hover { background: #ffffff15; }
.admin-logout { margin-top: auto; border-color: #ffffff35; }
.admin-main { padding: clamp(1rem, 3vw, 3.5rem); min-width: 0; }
.admin-header h1 { margin: 0 0 .3rem; }
.admin-header p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem; max-width: none; margin: 0 0 1.5rem; color: #4c665e; }
.admin-account { font-size: .9rem; }
#admin-note:empty { display: none; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.admin-stat, .admin-surface { background: white; border: 1px solid #d6e2de; border-radius: 1rem; padding: clamp(.8rem, 2vw, 1.5rem); }
.admin-stat { display: grid; gap: .15rem; color: var(--deep); }
.admin-stat strong { font-size: clamp(1.45rem, 3vw, 2.65rem); line-height: 1.12; }
.admin-surface { box-shadow: 0 10px 30px #10343608; }
.agenda-title, .agenda-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; align-items: center; }
.agenda-title h2 { margin: 0; font-size: clamp(1.45rem, 2.9vw, 2.35rem); }
.agenda-title-actions {
  display: flex;
  flex: 0 1 23rem;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  max-width: 100%;
}
#agenda-search {
  flex: 1 1 12rem;
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
}
#new-appointment { min-height: 2.75rem; white-space: nowrap; }
.agenda-years {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 8rem));
  gap: .7rem;
  margin-bottom: 1rem;
}
.agenda-years label { min-width: 0; }
.agenda-toolbar { margin: 1rem 0; align-items: end; }
.agenda-toolbar .fields { display: flex; flex-wrap: wrap; }
.agenda-toolbar .actions { margin: 0; }
#agenda-print-toggle, .agenda-fold-actions svg { display: none; }
@media (max-width: 600px) {
  .agenda-title-actions {
    display: grid;
    flex-basis: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .agenda-title-actions input, .agenda-years input { font-size: 1rem; }
  .agenda-toolbar:has(#agenda-date-label[hidden]) { grid-template-columns: minmax(0, 1fr) auto auto; }
  .agenda-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) auto auto;
    gap: .4rem;
  }
  .agenda-toolbar .fields { display: contents; }
  .agenda-toolbar .fields label { min-width: 0; font-size: .85rem; }
  .agenda-toolbar .fields :is(input, select) {
    box-sizing: border-box;
    min-width: 0;
    height: 2.75rem;
    padding-inline: .3rem;
    font-size: 1rem;
  }
  #agenda-date { appearance: none; }
  #agenda-date::-webkit-date-and-time-value { text-align: start; }
  .agenda-toolbar .agenda-fold-actions { flex-wrap: nowrap; gap: .25rem; }
  .agenda-fold-actions span { display: none; }
  .agenda-fold-actions svg { display: block; }
  #agenda-print-toggle, .agenda-fold-actions button {
    display: grid;
    place-items: center;
    width: clamp(2rem, 10vw, 2.75rem);
    height: 2.75rem;
    padding: 0;
  }
  .agenda-print-tools { display: contents; }
  #agenda-print-options { grid-column: 1 / -1; justify-content: end; }
  #agenda-print-toggle[aria-expanded="false"] + #agenda-print-options { display: none; }
}
@media (max-width: 360px) {
  .admin-main:has(.agenda-toolbar), .agenda-surface { padding-inline: .5rem; }
}

.agenda-range { color: #4c665e; }
.agenda-entry { display: flex; gap: .6rem; align-items: flex-start; border-top: 1px solid #d6e2de; }
.agenda-entry details { flex: 1; border: 0; min-width: 0; padding: .8rem 0; }
.agenda-entry summary { display: grid; grid-template-columns: minmax(3.2rem, 15%) 1fr; gap: .6rem; align-items: center; list-style: none; }
.agenda-entry summary::-webkit-details-marker { display: none; }
.agenda-entry summary strong::after { content: ' ▾'; color: #58736a; }
.agenda-entry details[open] summary strong::after { content: ' ▴'; }
.agenda-entry summary time { font-weight: 700; color: var(--deep); }
.agenda-entry summary small { display: block; color: #4c665e; }
.agenda-entry dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .3rem .7rem; margin-bottom: 0; }
.agenda-entry dt { font-weight: 700; }
.agenda-entry dd { margin: 0; overflow-wrap: anywhere; }
.agenda-entry-actions { display: flex; gap: .35rem; align-items: center; margin-top: .8rem; }
.agenda-entry-actions button { padding: .45rem; }
.agenda-badge { background: #e3f4eb; color: #155a45; padding: .22rem .5rem; border-radius: 1rem; font-size: .78rem; }
.agenda-entry-actions .agenda-delete { color: #9a3440; border-color: #ead1d4; }

/* Reserva pública */
body:has(.booking-view), body:has(.offers-view) { background: white; }
.booking-view { width: min(1440px, 92%); }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1rem, 4vw, 4rem); align-items: start; }
.booking-intro { padding-top: .5rem; }
.booking-intro > p:last-child, .calendar-legend { color: #4c665e; }
.booking-card { background: white; border: 1px solid #d6e2de; border-radius: 1rem; padding: clamp(1rem, 2.7vw, 2.2rem); box-shadow: 0 12px 36px #10343608; }
.booking-card > h2 { margin: 0 0 1rem; }
.booking-card .calendar { max-width: none; }
.booking-card .calendar-head { margin: .65rem 0; }
.booking-card .calendar-head h2 { margin: 0; font-size: 1.15rem; text-align: center; }
.booking-card .calendar-grid { gap: .35rem; }
.booking-card .calendar-grid strong { padding-block: .45rem; }
.booking-card .calendar-grid button, .booking-card .slots button { min-height: 2.75rem; background: white; color: var(--deep); border: 1px solid #aebfb9; }
.booking-card .calendar-grid button.closed { color: #5e6966; background: #f1f3f2; border-color: transparent; }
.booking-card .calendar-grid button.blocked { color: #923540; background: #fbe5e7; border-color: #f1c7cc; }
.booking-card :is(.calendar-grid, .slots) button.selected:not(.blocked) { color: white; background: var(--accent); }
.booking-card .calendar-legend { margin: .8rem 0; font-size: .86rem; }
.booking-card .slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.booking-card #slots-title { margin: .95rem 0 .45rem; }
.booking-card #booking-form form { margin-bottom: 0; }
@media (max-width: 790px) {
  .view.admin-workspace { grid-template-columns: minmax(0, 1fr); }
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
}
@media screen and (max-width: 790px) {
  body:has(.view.admin-workspace) > #admin-session { display: none; }
  .admin-sidebar {
    align-self: start;
    z-index: 5;
    height: auto;
    padding: .4rem .9rem;
    overflow: visible;
  }
  .admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
  }
  .admin-brand { margin: 0; }
  .admin-menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
    min-height: 2.75rem;
    padding: .35rem .7rem;
    background: #ffffff12;
    border-color: #ffffff45;
    color: inherit;
  }
  .admin-menu-toggle span {
    width: .48rem;
    height: .48rem;
    margin: -.2rem .15rem 0;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .admin-menu-toggle[aria-expanded="true"] span { transform: translateY(.2rem) rotate(225deg); }
  .admin-sidebar:has(.admin-menu-toggle[aria-expanded="false"]) .admin-menu-panel { display: none; }
  .admin-menu-panel {
    max-height: 65dvh;
    margin-top: .55rem;
    padding: .45rem .2rem .25rem;
    border-top: 1px solid #ffffff35;
    overflow-y: auto;
  }
  .admin-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-logout { margin-top: .7rem; }
}
@media (max-width: 500px) {
  .agenda-badge { display: none; }
  .admin-stat { font-size: .79rem; }
  .booking-card .calendar-grid { gap: .2rem; }
  .booking-card .calendar-grid strong { font-size: .72rem; }
}
.agenda-print-logo { display: none; }
@media print {
  body:has(.agenda-surface) :is(#admin-session, .admin-header, #admin-note) { display: none; }
  .agenda-print-logo {
    display: block;
    width: 42mm;
    height: 24mm;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 4mm;
  }
  .agenda-entry details summary strong::after { content: none; }
  body:has(.admin-workspace) { background: white; }
  .view.admin-workspace { display: block; min-height: 0; }
  .admin-main { padding: 0; }
  .agenda-surface { border: 0; box-shadow: none; padding: 0; }
  .agenda-entry { break-inside: avoid; }
  .agenda-summary-print .agenda-entries {
    column-count: 2;
    column-fill: auto;
    column-gap: 8mm;
    column-rule: 1px solid #d6e2de;
    font-size: 10.5pt;
    line-height: 1.25;
  }
  .agenda-summary-print .agenda-entry details { padding: 1.5mm 0; }
  .agenda-summary-print .agenda-entry dl { display: none; }
  .agenda-summary-print .agenda-entry summary {
    grid-template-columns: 12mm minmax(0, 1fr);
    gap: 1mm;
    overflow-wrap: anywhere;
  }
}

/* Portadas y acciones de publicaciones */
.social-actions { display: flex; flex-wrap: wrap; gap: .38rem; margin-block: .65rem; }
.social-actions :is(a, button) { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; padding: 0; border: 1px solid #bed4ce; border-radius: 50%; background: #f1f8f5; color: var(--accent); }
.social-actions :is(a, button):hover { background: var(--accent); color: white; }
.article-view { width: 100%; }
.article-detail .article-back, .article-reading { width: min(920px, 90%); margin-inline: auto; }
.article-detail .article-cover { width: 100%; max-height: min(62vw, 690px); object-fit: cover; margin: 0 0 2rem; }
.article-reading .article-date { color: #4c665e; }
.article-reading .article-body { font-size: 1.08rem; }
.offer-list { display: grid; gap: 1.35rem; }
.offers-view { width: min(1440px, 92%); }
.view .offers-banner { margin-block: 0 1.5rem; }
.offers-banner img {
  display: block;
  width: 100%;
  height: clamp(150px, 29vw, 420px);
  object-fit: cover;
  border-radius: 1rem;
}
@media (max-width: 600px) {
  .offers-banner img { height: auto; }
}
.offers-grid { margin-block: 1.5rem 2rem; }
.offer-feature { background: white; }

.offer-cover { display: block; width: 100%; height: auto; }
.offer-content { padding: clamp(1.25rem, 4vw, 3rem) clamp(1rem, 5vw, 5rem); }
.offer-content h2 { font-size: clamp(1.55rem, 4vw, 2.8rem); line-height: 1.12; margin: .4rem 0 .7rem; }
.offer-content .offer-validity { margin: 0; font-size: .9rem; font-weight: 700; }
.publication-date { max-width: 15rem; margin-top: .8rem; }

/* Edición directa de Inicio */
.visual-editor { width: min(1640px, 98vw); max-width: none; height: 94dvh; max-height: none; padding: 0; overflow: hidden; }
.visual-editor > header { padding: .55rem 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; border-bottom: 1px solid #d6e2de; }
.visual-editor > header .actions { margin: 0; }
.visual-layout { display:grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 19rem); height: calc(100% - 3.7rem); }
.visual-page, .visual-settings { overflow: auto; min-width: 0; }
.visual-page { background: var(--page); }
.visual-settings { background: #f2f6f4; padding: 1rem; border-left: 1px solid #d6e2de; }
.visual-settings .stack { margin-block: .6rem; }
.visual-colors { display: grid; gap: .4rem; margin-top: 1rem; padding-top: .7rem; border-top: 1px solid #d6e2de; }
.visual-colors label { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
@media (max-width: 740px) {
  .visual-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 44%); }
  .visual-settings { border-left: 0; border-top: 1px solid #d6e2de; }
}
@media (min-width: 901px) {
  .home-active #home .strip { min-height: clamp(168px, 13.3vw, 265px); padding-block: clamp(1.6rem, 2.4vw, 3.2rem); }
  .home-active #home .strip .photos img { height: clamp(76px, 7.1vw, 142px); }
  .home-active #home > .about { align-items: start; padding-block: clamp(2.3rem, 4vw, 4.8rem) clamp(4rem, 6vw, 7rem); }
}
@media print {
  .article-detail .article-cover { max-height: 105mm; }
  .article-reading { width: 100%; }
}
.editorial-card.has-editorial-cover { display: grid; grid-template-rows: 1fr 1fr; min-height: 390px; }
.has-editorial-cover .editorial-cover { position: relative; height: auto; min-height: 0; }
.has-editorial-cover .editorial-cover img { position: absolute; inset: 0; }
.article-reading .article-body img[role="button"], .offer-content img[role="button"] { cursor: zoom-in; }
.image-lightbox { max-width: 96vw; max-height: 94dvh; padding: .65rem; overflow: auto; background: #103436; border: 0; }
.image-lightbox form { display: flex; justify-content: flex-end; margin-bottom: .55rem; }
.image-lightbox img { display: block; width: auto; height: auto; max-width: 100%; max-height: 81dvh; object-fit: contain; margin-inline: auto; }
.image-lightbox::backdrop { background: #071c19e6; }

#offer-dialog[open] {
  display: flex;
  flex-direction: column;
  width: min(54rem, 94vw);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}
#offer-message {
  min-height: 0;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
}
#offer-dialog > h2 { margin: 0 0 .75rem; }
#offer-dialog > form { display: flex; flex-shrink: 0; gap: .75rem; padding-top: .75rem; }
.offer-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.offer-popup-grid[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.offer-popup-grid[data-count="2"], .offer-popup-grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.offer-popup-grid figure { margin: 0; text-align: center; }
.offer-popup-poster {
  display: grid;
  place-items: center;
  height: clamp(8rem, 25dvh, 16rem);
}
.offer-popup-poster img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: .45rem; }
.offer-popup-poster svg { width: 2rem; height: 2rem; }
.offer-popup-grid[data-count="1"] .offer-popup-poster { height: min(48dvh, 24rem); }
.offer-popup-grid[data-count="2"] .offer-popup-poster { height: min(40dvh, 20rem); }
.offer-popup-grid figcaption { margin-top: .4rem; font-weight: 650; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .offer-popup-grid:not([data-count="1"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) { .home-active #home .strip { padding-block: 1.4rem; } .home-active #home > .about { padding-block: 1.4rem 4rem; } }

.media-picker { width: min(880px, 94vw); max-width: none; max-height: 88dvh; overflow: auto; }
.media-picker-body { min-height: 1rem; }
.media-filter { max-width: 15rem; margin-block: .7rem; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 135px), 1fr)); gap: .65rem; }
.media-tile { display: grid; grid-template-rows: auto 1fr; align-items: start; width: 100%; padding: .28rem; color: var(--deep); background: white; border: 1px solid #c8dbd4; gap: .35rem; min-width: 0; }
.media-tile[aria-pressed="true"] { border-color: var(--accent); outline: 2px solid var(--accent); background: #e8f6ef; }
.media-tile :is(img, .media-placeholder) { display: grid; place-items: center; width: 100%; aspect-ratio: 13 / 9; object-fit: cover; border-radius: .3rem; background: #e6f2ed; }
.media-tile span { overflow-wrap: anywhere; font-size: .82rem; }
.media-manager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(215px, 29%); gap: 1rem; margin-top: 1rem; align-items: start; }
.media-details { border: 1px solid #c8dbd4; padding: .8rem; border-radius: .65rem; }
.media-details img { width: 100%; max-height: 190px; object-fit: contain; background: #f3f7f5; }
.media-details dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem .6rem; font-size: .9rem; }
.media-details dd { margin: 0; overflow-wrap: anywhere; }
.media-details .stack, .media-upload-form .stack { margin-bottom: .7rem; }
.cover-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.cover-actions { display: flex; gap: .4rem; }
.cover-actions button { padding: .45rem; }
.cover-selection {
  display: grid;
  place-items: center;
  min-height: 7rem;
  margin-top: .45rem;
  border: 1px solid #d7e4e0;
  border-radius: .5rem;
  background: #f3f7f5;
  color: #4c665e;
}
.card .cover-selection img { width: 100%; height: clamp(10rem, 22vw, 19rem); object-fit: contain; }
.user-permissions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 1rem; }
.user-permissions fieldset { display: grid; gap: .3rem; margin-block: .7rem; }
.visual-editor iframe { width: 100%; height: 100%; border: 0; display: block; }
.visual-frame [data-web-key]:hover, .visual-frame .visual-selected { outline: 2px solid #238e76; outline-offset: -2px; cursor: pointer; }
[data-web-key="footer-tagline"], [data-web-key="contact-address"] { white-space: pre-line; }
@media (max-width: 670px) { .media-manager { grid-template-columns: minmax(0, 1fr); } }

.account-password .stack { margin-bottom: .75rem; }
.recovery-result:not(:empty) { display: grid; gap: .7rem; margin-top: .8rem; }
.recovery-result a { justify-self: start; }
[data-select-appointment] { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); margin: 0 .2rem; }
#bulk-delete { color: #9b2929; }

.editorial-view { width: min(1440px, 92%); }
.editorial-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(190px, 240px); gap: clamp(1rem, 3vw, 2.2rem); align-items: start; }
.editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.editorial-card { display: grid; grid-template-rows: 1fr 1fr; height: 480px; min-width: 0; }
.editorial-cover { height: auto; min-height: 0; position: relative; }
.editorial-cover img { position: absolute; inset: 0; }
.editorial-copy { min-height: 0; padding: 1rem; }
.editorial-copy h2 { font-size: 1.16rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.editorial-copy p { margin-bottom: .65rem; line-height: 1.35; }
.editorial-actions { display: block; }
.editorial-actions .button { font-size: .9rem; padding: .42rem .65rem; }
.editorial-actions .social-actions { margin-bottom: 0; gap: .25rem; }
.editorial-actions .social-actions :is(a, button) { width: 1.72rem; height: 1.72rem; }
.editorial-actions .social-actions svg { width: .95rem; height: .95rem; }
.editorial-pagination { display: grid; grid-template-columns: 3rem max-content 3rem; justify-content: center; gap: .7rem; align-items: center; margin-block: 1.5rem 0; }
.editorial-pagination span { grid-column: 2; }
.editorial-pagination [data-page="-1"] { grid-column: 1; }
.editorial-pagination [data-page="1"] { grid-column: 3; }
.editorial-sidebar { padding: 1rem; border: 1px solid #d7e4e0; border-radius: .85rem; background: white; }
.editorial-archive { margin-top: 1rem; border-top: 1px solid #d7e4e0; padding-top: .8rem; }
.editorial-archive summary { cursor: pointer; font-weight: 700; color: var(--deep); }
.editorial-archive summary span { font-weight: 400; }
.editorial-archive ul { list-style: none; padding: 0; margin-bottom: 0; max-height: 25rem; overflow-y: auto; }
.editorial-archive li { padding: .6rem .15rem; border-top: 1px solid #e3ede9; }
.editorial-archive a { display: block; text-decoration: none; line-height: 1.25; overflow-wrap: anywhere; }
.editorial-archive a:hover { text-decoration: underline; }
.editorial-archive time { font-size: .78rem; color: #4c665e; }
@media (max-width: 1150px) { .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .editorial-layout { grid-template-columns: minmax(0, 1fr); }
  .editorial-sidebar { grid-row: 1; }
}
@media (max-width: 500px) { .editorial-grid { grid-template-columns: minmax(0, 1fr); } }
.editorial-copy p { -webkit-line-clamp: 2; }

.admin-post-month { margin-block: 1rem; }
.admin-post-month h3 { margin: 0 0 .45rem; font-size: 1rem; text-transform: capitalize; }
.admin-post-month ul, .admin-offer-list { list-style: none; padding: 0; margin: 0; border: 1px solid #d7e4e0; border-radius: .75rem; background: white; }
.admin-post-month li, .admin-offer-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .65rem .8rem; }
.admin-post-month li + li, .admin-offer-list li + li { border-top: 1px solid #e1ece8; }
.admin-post-month li p, .admin-offer-list li p { margin: .12rem 0 0; color: #4c665e; font-size: .85rem; }
.admin-post-month input, .admin-offer-list input { accent-color: var(--accent); }
.post-row-actions { display: flex; gap: .35rem; }
.post-row-actions button { padding: .35rem; }
button.post-delete { color: #a32933; border-color: #e9c8cb; }

.editorial-masthead-image {
  display: block;
  width: 100%;
  height: clamp(150px, 29vw, 420px);
  object-fit: cover;
  border-radius: 1rem;
  margin-block-end: clamp(1.25rem, 3vw, 2.5rem);
}
.editorial-masthead--psicologia .editorial-masthead-image {
  object-position: center 30%;
}

.psych-profile {
  margin-block: 0 clamp(2rem, 4vw, 3.5rem);
  padding: clamp(1.25rem, 3.5vw, 3rem);
  background: linear-gradient(130deg, #edf6f3, #fbfdfc 80%);
  border: 1px solid #d7e4e0;
  border-top: 4px solid var(--accent);
  border-radius: 1rem;
}
.psych-profile h2 { margin: 0 0 1.35rem; }
.psych-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}
.psych-profile-grid h3 { margin: 0 0 .55rem; color: var(--deep); font-size: 1.15rem; }
.psych-profile-grid p { margin: 0; line-height: 1.65; }
.psych-profile-topics {
  margin: 1.4rem 0 0;
  padding: .8rem 1rem;
  background: #deeee8;
  border-radius: .55rem;
  color: var(--deep);
  font-weight: 600;
}
.psych-profile-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  border-top: 1px solid #d7e4e0;
  padding-top: 1.2rem;
  margin-top: 1.4rem;
}
.psych-profile-footer img { width: min(100%, 310px); height: auto; mix-blend-mode: multiply; }
.psych-profile-footer dl { display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; margin: 0; }
.psych-profile-footer dt { font-size: .85rem; }
.psych-profile-footer dd { margin: 0; color: var(--accent); font-weight: 750; }
@media (max-width: 700px) {
  .psych-profile-grid { grid-template-columns: minmax(0, 1fr); }
}

.visual-controls .jodit-toolbar-editor-collection { flex-wrap: wrap; }
.visual-media { margin-top: .65rem; }
.psych-profile-topics > :last-child { margin-bottom: 0; }

.contact-inbox-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; }
.contact-inbox-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .8rem; }
.contact-inbox-row > input { margin-top: 1.25rem; accent-color: var(--accent); }

.visual-prose > :first-child { margin-top: 0; }
.visual-prose > :last-child { margin-bottom: 0; }

[data-web-key] .visual-line, .jodit-wysiwyg .visual-line { display: block; }
[data-web-key] img { max-width: 100%; height: auto; vertical-align: middle; }
#admin-session {
  display: block;
  padding: .45rem 1rem;
  background: var(--deep);
  color: white;
  text-align: center;
  font-size: .9rem;
  font-weight: 650;
}
#admin-session[hidden] { display: none; }
.admin-session-status {
  display: inline-block;
  border-radius: 2rem;
  padding: .3rem .75rem;
  background: #deeee8;
  color: var(--deep);
  font-size: .85rem;
  font-weight: 700;
}

.source-editor { width: min(58rem, calc(100% - 2rem)); max-width: none; }
.source-editor textarea { font-family: ui-monospace, monospace; resize: vertical; }

.publication-preview {
  width: min(68rem, 94vw);
  max-width: none;
  max-height: 90dvh;
  overflow: auto;
  background: var(--page);
}
.publication-preview > form {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  margin-bottom: 1rem;
  background: var(--page);
}

.offers-grid .editorial-cover:has(img) { background: transparent; }
.offers-grid .editorial-cover img { object-fit: contain; }
.offer-detail-dialog {
  max-height: calc(100dvh - 1rem);
  padding: clamp(.65rem, 2vw, 1.2rem);
}
.offer-detail-dialog > form { margin-bottom: .5rem; }
.offer-detail-dialog .offer-feature {
  display: grid;
  align-items: center;
  border-radius: .75rem;
}
.offer-detail-dialog .offer-feature.has-cover {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.offer-detail-dialog .offer-cover {
  max-height: 74dvh;
  object-fit: contain;
}
.offer-detail-dialog .offer-content {
  padding: clamp(.75rem, 2.3vw, 1.6rem);
  overflow-wrap: anywhere;
}
.offer-detail-dialog .offer-content h2 { font-size: clamp(1.25rem, 3vw, 2rem); }
@media (max-width: 600px) {
  .offer-detail-dialog .offer-feature.has-cover { grid-template-columns: minmax(0, 1fr); }
  .offer-detail-dialog .offer-cover { max-height: 38dvh; }
}

.offers-grid .offer-card-vertical {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}
.offer-card-vertical .editorial-copy {
  align-self: center;
  padding: clamp(.55rem, 1.2vw, 1rem);
}
.offer-card-vertical .editorial-copy time { display: block; }
.offer-card-vertical .editorial-actions button {
  padding: .4rem .55rem;
  font-size: .9rem;
}
.offer-detail-dialog .offer-feature.has-cover.offer-horizontal {
  grid-template-columns: minmax(0, 1fr);
}
.offer-detail-dialog .offer-horizontal .offer-cover { max-height: 44dvh; }
@media (max-width: 600px) {
  .offer-detail-dialog .offer-horizontal .offer-cover { max-height: 38dvh; }
}

body:not(.visual-frame) .web-text-empty,
body:not(.visual-frame) :is(.offers-banner, .photos > a, .brand):has(> img[hidden]),
body:not(.visual-frame) :is(.info[href^="tel:"], .info[href^="mailto:"]):has(.web-text-empty:is(#phone-value, #email-value)),
body:not(.visual-frame) .contact-card p:has(> .web-text-empty:is([data-phone], [data-email])),
body:not(.visual-frame) .contact-card address:has(> .web-text-empty) {
  display: none;
}
.visual-frame .web-text-empty > * { display: none; }
.visual-frame .web-text-empty::before {
  content: 'Añadir texto';
  display: inline-block;
}
.visual-frame .web-text-empty::before,
.visual-frame .visual-image-placeholder {
  padding: .5rem .75rem;
  border: 1px dashed #238e76;
  border-radius: .35rem;
  background: #effaf7;
  color: #175948;
  font: 500 .875rem/1.3 system-ui, sans-serif;
  cursor: pointer;
}
.visual-frame .visual-image-placeholder { margin: .25rem; }
.visual-frame .hero-photo + .visual-image-placeholder {
  position: absolute;
  inset: .75rem .75rem auto auto;
  z-index: 2;
}

.seo-panel > h2 { margin-top: 0; }
.seo-panel .admin-form { max-width: 45rem; }
.seo-panel .admin-stat { background: #f4f9f7; }
.seo-preview {
  display: grid;
  gap: .35rem;
  padding: 1rem;
  border: 1px solid #d6e2de;
  border-radius: .8rem;
  overflow-wrap: anywhere;
}
.seo-preview p { margin: 0; color: #4c665e; font-size: .85rem; }
.seo-preview strong { color: #174785; font-size: 1.15rem; }
@media (max-width: 520px) {
  .seo-panel .admin-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
}

.seo-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  justify-self: start;
  padding: .2rem .55rem;
  border-radius: 1rem;
  font-size: .83rem;
  font-weight: 700;
  color: #155a45;
  background: #e3f4eb;
}
.seo-badge::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.seo-badge[data-level="1"] { color: #824812; background: #fff0da; }
.seo-badge[data-level="2"] { color: #92283c; background: #fce7eb; }
.seo-report { margin-top: 1rem; }
.seo-report h3, .seo-report li > div { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.seo-report ul { display: grid; gap: .55rem; list-style: none; padding: 0; }
.seo-report li { border: 1px solid #d6e2de; border-radius: .65rem; padding: .65rem .8rem; }
.seo-report li p { margin: .25rem 0 0; font-size: .92rem; }

.seo-crawl { margin-top: 1.5rem; border-top: 1px solid #d6e2de; padding-top: 1rem; }
.seo-crawl summary { cursor: pointer; font-weight: 700; }
.seo-crawl textarea { font-family: ui-monospace, monospace; }
.seo-crawl [role="status"]:empty { display: none; }

.seo-tabs { display: flex; flex-wrap: wrap; gap: .4rem; padding-bottom: .7rem; border-bottom: 1px solid #d6e2de; }
.seo-tabs button[aria-pressed="true"] { background: var(--accent); color: white; }

.renewal-link { font-weight: 700; text-underline-offset: .2em; }
.renewal-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.15rem, 4vw, 3rem);
  margin-bottom: 1.7rem;
}
.renewal-intro h1 { margin: .25em 0 .45em; }
.renewal-intro img { width: 100%; height: auto; border-radius: .8rem; }
.renewal-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; }
@media (max-width: 900px) {
  .renewal-active .site-header { gap: .45rem; padding-inline: 4%; }
  .renewal-active .site-header .brand-icons { display: none; }
  .renewal-active .site-header nav:not(.open) { display: contents; }
  .renewal-active .site-header nav:not(.open) a:not(.book) { display: none; }
  .renewal-active .site-header nav:not(.open) .book { font-size: .8rem; white-space: nowrap; }
}
@media (max-width: 660px) {
  .renewal-intro { grid-template-columns: 1fr; }
}

.renewal-page > section > h2 { margin: 0 0 .9rem; }
.renewal-details img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: .45rem;
  margin-bottom: .85rem;
}
.renewal-details ul { padding-inline-start: 1.2rem; }
.renewal-details li + li { margin-top: .4rem; }

.renewal-document-models { margin: 0 0 .85rem; }
.renewal-document-models img { aspect-ratio: auto; object-fit: contain; margin-bottom: .4rem; }
.renewal-document-models .renewal-permit-front { aspect-ratio: 722 / 410; object-fit: cover; object-position: top; }
.renewal-document-models figcaption { color: var(--ink-muted, #526762); font-size: .78rem; }
