.rica-end-scene {
  position: relative;
  isolation: isolate;
  color: var(--rica-panel-ink);
  font-family: Manrope, sans-serif;
  background:
    url("./rica-pricing-waves.webp") center bottom / max(100%, 720px) auto no-repeat,
    url("./rica-redesign-wave-top.webp") right top / min(52%, 870px) auto no-repeat,
    linear-gradient(to bottom, #fff, transparent 120px),
    var(--rica-scene-base);
}
.rica-end-contacts, .rica-end-footer-inner {
  box-sizing: border-box;
  width: min(100%, 1920px);
  margin-inline: auto;
  padding-inline: var(--rica-section-gutter);
}
#allrecords .rica-end-contacts { padding-block: clamp(30px, 3.15vw, 58px) clamp(27px, 3vw, 56px); }
.rica-end-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .43fr) minmax(0, .57fr);
  align-items: end;
  gap: clamp(20px, 1.65vw, 33px);
}
.rica-end-kicker {
  display: flex;
  align-items: center;
  gap: .65em;
  margin: 0 0 .8em;
  font-size: clamp(15px, 1.22vw, 22px);
  font-weight: 800;
  text-transform: uppercase;
}
#allrecords .rica-end-contact-copy :is(.rica-end-kicker, .rica-end-description, .rica-end-facts p) { color: var(--rica-panel-ink) !important; }
.rica-end-scene :where(.rica-end-contacts, .rica-end-footer, #rica-faq) svg:not(.rica-redesign-arrow) {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rica-end-kicker svg { width: 1.85em; height: 1.85em; }
#allrecords #contacts h2#rica-contacts-title {
  margin: 0;
  color: #083442 !important;
  font-size: clamp(34px, 3.7vw, 68px);
  font-weight: 800;
  line-height: 1.015;
  letter-spacing: -.051em;
}
.rica-end-contact-copy h2 em { display: block; color: #167f86; font-style: italic; }
.rica-end-description {
  max-width: 31em;
  margin: .72em 0 .9em;
  font-size: clamp(17px, 1.28vw, 23px);
  line-height: 1.35;
  font-weight: 500;
}
.rica-end-facts { 
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: .58em 1em;
  margin-bottom: .83em;
  font-style: normal;
  font-size: clamp(17px, 1.2vw, 22px);
}
.rica-end-facts :is(a, p) { display: flex; align-items: center; gap: .7em; margin: 0; line-height: 1.3; }
.rica-end-facts svg { width: 1.8em; height: 1.8em; }
.rica-end-address { grid-column: 1 / -1; }
.rica-end-hours { padding-inline-start: .8em; border-inline-start: 1px solid #bfd4cf; }
#allrecords .rica-end-phone { color: #083442 !important; text-decoration: none; font-size: clamp(22px, 2.03vw, 38px); font-weight: 800; white-space: nowrap; gap: .47em; min-height: 44px; }
.rica-end-phone svg { width: 1.08em; height: 1.08em; }
#allrecords .rica-end-book { width: min(100%, 535px); min-height: 2.85em; gap: .75em; padding-inline: .8em; font-size: clamp(17px, 1.48vw, 25px); }
.rica-end-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
  box-sizing: border-box;
  height: clamp(325px, 25vw, 455px);
  border: clamp(4px, .34vw, 6px) solid #fff9;
  border-radius: clamp(24px, 2.75vw, 48px);
  background: #e7e8e1;
  box-shadow: 0 13px 32px #183d441b;
  overflow: hidden;
}
.rica-end-reception { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 90% 50%; }
.rica-end-map {
  position: relative;
  overflow: hidden;
  border-inline-start: 4px solid #fff;
  border-radius: clamp(20px, 2.1vw, 39px) 0 0 clamp(20px, 2.1vw, 39px);
  background: #e7e8e1 url("./rica-map.webp") center / cover no-repeat;
}
.rica-end-map iframe { display: block; width: 100%; height: 100%; border: 0; color-scheme: light; }
#allrecords .rica-end-route {
  position: absolute;
  right: clamp(9px, 1vw, 22px);
  bottom: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .48em;
  min-height: 46px;
  padding: .38em .9em;
  border: 1px solid #fff9;
  border-radius: var(--rica-primary-radius);
  background: #fff;
  box-shadow: 0 4px 12px #183d441a;
  color: var(--rica-panel-ink) !important;
  font-size: clamp(15px, 1.02vw, 18px);
  font-weight: 800;
  text-decoration: none;
}
.rica-end-route svg { width: 1.4em; height: 1.4em; }
#allrecords .rica-end-ratings { margin-top: clamp(22px, 2vw, 36px); }
#allrecords .rica-end-ratings[hidden] { display: none; }

.rica-end-footer {
  --rica-footer-wave: clamp(18px, 1.65vw, 28px);
  --rica-footer-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M0 17Q50 -10 100 17V24H0Z'/%3E%3C/svg%3E");
  --rica-footer-rule: #c9efeb66;
  position: relative;
  isolation: isolate;
  margin-top: calc(var(--rica-footer-wave) * -.55);
  color: #f7fffe;
}
.rica-end-footer[data-edge="soft"] {
  --rica-footer-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M0 8C28 8 39 12 61 12S88 8 100 8V24H0Z'/%3E%3C/svg%3E");
}
.rica-end-footer[data-edge="wave"] {
  --rica-footer-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M0 7C18 7 25 15 48 15S78 6 100 6V24H0Z'/%3E%3C/svg%3E");
}
.rica-end-footer::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    url("./rica-end-footer-light.svg") center bottom / max(100%, 1060px) 75% no-repeat,
    radial-gradient(ellipse at 87% 8%, #34979b59, transparent 55%),
    radial-gradient(ellipse at 10% 100%, #1e888b66, transparent 45%),
    linear-gradient(115deg, #063b49 0%, #07535c 45%, #06343f 100%);
  mask:
    var(--rica-footer-edge) top / 100% var(--rica-footer-wave) no-repeat,
    linear-gradient(#000,#000) bottom / 100% calc(100% - var(--rica-footer-wave) + 1px) no-repeat;
}
.rica-end-footer-inner { padding-block: calc(var(--rica-footer-wave) + 27px) clamp(28px, 2.6vw, 45px); }
.rica-end-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .74fr) minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(12px, 2.6vw, 46px);
  padding-bottom: clamp(20px, 2vw, 33px);
}
.rica-end-footer-top > * + * { padding-inline-start: clamp(12px, 2.2vw, 41px); border-inline-start: 1px solid var(--rica-footer-rule); }
#allrecords .rica-end-footer :is(a, p, h3) { color: #f7fffe !important; }
#allrecords .rica-end-footer h3 { margin: 0 0 10px; font-size: clamp(19px, 1.38vw, 24px); font-weight: 700; line-height: 1.14; }
.rica-end-footer .rica-end-brand {
  --rica-lockup-mark: clamp(42px, 4.35vw, 78px);
  --rica-lockup-title: clamp(26px, 2.3vw, 40px);
  --rica-lockup-rule: var(--rica-footer-rule);
}
.rica-end-footer p { margin: 0; }
.rica-end-footer-clinic p { margin-top: .65em; font-size: clamp(16px, 1.15vw, 20px); line-height: 1.4; }
.rica-end-nav { display: grid; align-content: start; gap: 3px; }
.rica-end-nav a, .rica-end-documents a { font-size: clamp(15px, 1.05vw, 18px); font-weight: 500; text-decoration: none; line-height: 1.43; }
.rica-end-footer-contact address { display: grid; gap: 11px; font-style: normal; font-size: clamp(15px,1.1vw,19px); line-height: 1.35; }
.rica-end-footer-contact :is(address p, address a), .rica-end-documents a { display: flex; gap: .75em; align-items: center; }
.rica-end-footer-contact svg, .rica-end-documents svg { width: clamp(23px, 1.8vw, 33px); height: clamp(23px, 1.8vw, 33px); }
.rica-end-footer-phone { font-size: clamp(16px, 1.37vw, 25px); font-weight: 800; text-decoration: none; white-space: nowrap; }
.rica-end-documents { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; }
#allrecords .rica-end-documents h3 { margin-bottom: 0; }
.rica-end-footer-legal {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: clamp(12px, 2.2vw, 42px);
  padding-top: clamp(16px, 1.45vw, 25px);
  border-top: 1px solid var(--rica-footer-rule);
  font-size: clamp(15px, .92vw, 16px);
  line-height: 1.46;
}
.rica-end-footer-legal > * + * { border-inline-start: 1px solid var(--rica-footer-rule); padding-inline-start: clamp(12px, 2vw, 39px); }
#allrecords .rica-end-dorado { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; text-decoration: none; }
#allrecords .rica-end-footer :is(.rica-end-nav a, .rica-end-documents a span, .rica-end-footer-phone span, .rica-end-dorado span) {
  text-decoration: underline transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: .24em;
  transition: text-decoration-color 180ms ease;
}
#allrecords .rica-end-footer .rica-end-nav a:is(:hover, :focus-visible),
#allrecords .rica-end-footer :is(.rica-end-documents a, .rica-end-footer-phone, .rica-end-dorado):is(:hover, :focus-visible) > span {
  text-decoration-color: #e7f8f3b3;
}
@media (prefers-reduced-motion: reduce) {
  #allrecords .rica-end-footer :is(.rica-end-nav a, .rica-end-documents a span, .rica-end-footer-phone span, .rica-end-dorado span) { transition: none; }
}
.rica-end-dorado img { width: clamp(77px, 6vw, 108px); height: auto; filter: brightness(0) invert(1); }
@media (max-width: 1370px) {
  .rica-end-facts { column-gap: .55em; }
  .rica-end-hours { padding-inline-start: .45em; }
}
@media (max-width: 1050px) {
  .rica-end-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .rica-end-footer-top > :nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .rica-end-footer-legal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rica-end-footer-legal .rica-end-dorado { border: 0; padding: 0; grid-column: 1 / -1; }
  .rica-end-facts { grid-template-columns: minmax(0, 1fr); }
  .rica-end-hours { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 850px) {
  .rica-end-contact-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .rica-end-visual { height: clamp(345px, 49vw, 425px); }
}
@media (max-width: 600px) {
  .rica-end-scene { background-size: max(100%, 720px) auto, 65% auto, auto, auto; }
  .rica-end-facts { gap: .78em; }
  .rica-end-address { grid-row: 2; }
  #allrecords .rica-end-book { width: 100%; }
  .rica-end-visual { height: auto; grid-template-columns: minmax(0, 1fr); }
  .rica-end-reception { height: clamp(150px, 48vw, 225px); object-position: 86% 54%; }
  .rica-end-map { height: clamp(272px, 76vw, 350px); border: 0; border-top: 4px solid #fff; border-radius: 0; }
  #allrecords .rica-end-route { bottom: 40px; }
  .rica-end-footer-inner { padding-bottom: max(35px, env(safe-area-inset-bottom)); }
  .rica-end-footer-top { grid-template-columns: minmax(0,.41fr) minmax(0,.59fr); gap: 18px 12px; }
  .rica-end-footer-top > * + * { padding-inline-start: 0; border: 0; }
  .rica-end-footer-clinic { grid-column: 1 / -1; }
  .rica-end-footer-contact { grid-row: 2; grid-column: 1 / -1; padding-block: 12px; border-block: 1px solid var(--rica-footer-rule) !important; }
  .rica-end-footer-contact address { gap: 8px; }
  #allrecords .rica-end-footer-phone { font-size: 22px; min-height: 42px; }
  .rica-end-nav a, .rica-end-documents a { display: flex; align-items: center; min-height: 44px; }
  .rica-end-documents a { align-items: flex-start; gap: 7px; overflow-wrap: break-word; }
  .rica-end-documents a span { min-width: 0; }
  .rica-end-documents svg { width: 19px; height: 19px; margin-top: 2px; }
  .rica-end-footer-legal { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rica-end-footer-legal > * + * { border: 0; padding: 0; }
}


