:root {
  --brand-deep: #063b42;
  --brand-ocean: #087c82;
  --brand-aqua: #18a9a6;
  --brand-sun: #f4b860;
  --brand-coral: #ed6a4c;
  --ink: #132d30;
  --paper: #fffdf8;
  --mist: #eef8f7;
  --line: rgba(6, 59, 66, 0.14);
  --shadow: 0 24px 60px rgba(5, 48, 54, 0.14);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

h1,
h2,
h3,
.navbar-brand {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2.25rem, 4.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.7rem;
  font-weight: 700;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--brand-deep);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--brand-sun);
  outline-offset: 3px;
}

.section-shell {
  padding: clamp(5rem, 9vw, 8rem) 0;
}

.site-header {
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(5, 48, 54, 0.08);
}

.navbar {
  min-height: 76px;
}

.navbar-brand {
  color: var(--brand-deep);
  font-size: 1.15rem;
}

.brand-mark {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(8, 124, 130, 0.12);
}

.nav-link {
  color: var(--ink);
  font-weight: 650;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-ocean);
}

.btn {
  border-radius: 999px;
  font-weight: 750;
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand-coral);
  --bs-btn-border-color: var(--brand-coral);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #d95539;
  --bs-btn-hover-border-color: #d95539;
  padding-inline: 1.35rem;
}

.hero {
  --hero-shift: 0px;
  --hero-bg-shift: 0px;
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 9rem;
  color: #fff;
  background: #032f35;
}

.hero > .container {
  z-index: 2;
}

.hero-background {
  position: absolute;
  z-index: 0;
  inset: -2.5rem 0;
  background-image:
    linear-gradient(90deg, rgba(3, 47, 53, 0.96) 0%, rgba(3, 47, 53, 0.88) 37%, rgba(3, 47, 53, 0.54) 58%, rgba(3, 47, 53, 0.24) 78%, rgba(3, 47, 53, 0.34) 100%),
    linear-gradient(180deg, rgba(3, 47, 53, 0.12) 40%, rgba(3, 47, 53, 0.58) 100%),
    url("../images/personal y lugar/lugar.png");
  background-position: center, center, center 54%;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.92) contrast(1.03);
  transform: translate3d(0, var(--hero-bg-shift), 0) scale(1.035);
  will-change: transform;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero::before {
  width: 28rem;
  height: 28rem;
  right: -9rem;
  top: 9rem;
  transform: translate3d(0, var(--hero-shift), 0);
}

.hero::after {
  width: 16rem;
  height: 16rem;
  right: 10rem;
  bottom: -8rem;
  transform: translate3d(0, var(--hero-shift), 0);
}

.hero-wave {
  position: absolute;
  z-index: 1;
  right: -5%;
  bottom: -1px;
  left: -5%;
  height: clamp(2.5rem, 6vw, 5rem);
  background: var(--brand-coral);
  clip-path: polygon(0 68%, 12% 52%, 28% 72%, 45% 48%, 62% 67%, 80% 43%, 100% 62%, 100% 100%, 0 100%);
  pointer-events: none;
  animation: coastal-wave 9s ease-in-out infinite alternate;
  will-change: clip-path, transform;
}

@keyframes coastal-wave {
  0% {
    clip-path: polygon(0 68%, 12% 52%, 28% 72%, 45% 48%, 62% 67%, 80% 43%, 100% 62%, 100% 100%, 0 100%);
    transform: translate3d(-0.5%, 0, 0) scaleX(1.01);
  }

  50% {
    clip-path: polygon(0 55%, 14% 69%, 31% 48%, 48% 70%, 65% 51%, 83% 66%, 100% 49%, 100% 100%, 0 100%);
    transform: translate3d(0.5%, 0, 0) scaleX(1.015);
  }

  100% {
    clip-path: polygon(0 65%, 16% 47%, 34% 66%, 51% 45%, 69% 70%, 85% 49%, 100% 64%, 100% 100%, 0 100%);
    transform: translate3d(-0.25%, 0, 0) scaleX(1.01);
  }
}

.eyebrow {
  margin-bottom: 1.15rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.text-brand {
  color: var(--brand-ocean);
}

.hero-copy {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  text-shadow: 0 2px 18px rgba(3, 47, 53, 0.46);
}

.hero h1 {
  text-shadow: 0 4px 28px rgba(3, 47, 53, 0.5);
}

.hero-card {
  --hero-card-shift: 0px;
  position: relative;
  max-width: 29rem;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2.25rem 2.25rem 0.75rem 2.25rem;
  box-shadow: var(--shadow);
  transform: translate3d(0, var(--hero-card-shift), 0) rotate(2deg);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.hero-card:hover {
  box-shadow: 0 30px 72px rgba(2, 35, 40, 0.32);
  transform: translate3d(0, calc(var(--hero-card-shift) - 4px), 0) rotate(1deg);
}

.hero-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.hero-card__caption {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 0.15rem;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(3, 47, 53, 0.95));
}

.hero-card__label {
  color: var(--brand-sun);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.values-strip {
  position: relative;
  z-index: 2;
  color: #fff;
  background: var(--brand-coral);
}

.values-strip .col-6 {
  padding: 1rem 0.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.values-strip span {
  font-weight: 800;
}

.about-section .lead,
.contact-section .lead {
  max-width: 50rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.history-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.history-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(8, 124, 130, 0.35), transparent);
  transform: translateY(-50%);
}

.history-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 14px 34px rgba(5, 48, 54, 0.07);
  transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.history-step:hover {
  border-color: rgba(8, 124, 130, 0.34);
  box-shadow: 0 20px 44px rgba(5, 48, 54, 0.11);
  transform: translateY(-3px);
}

.history-step__number {
  min-width: 1.25em;
  color: var(--brand-coral);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.history-step__label {
  margin-bottom: 0.35rem;
  color: var(--brand-ocean);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-step h3 {
  margin-bottom: 0.8rem;
}

.history-step p:last-child {
  margin-bottom: 0;
  color: #4e6668;
}

.story-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  min-height: 27rem;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
  color: #fff;
  background: var(--brand-deep);
  border-radius: 2rem;
  box-shadow: 0 24px 56px rgba(5, 48, 54, 0.18);
}

.story-feature::after {
  content: "";
  position: absolute;
  right: -6rem;
  bottom: -8rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.story-feature__media {
  position: relative;
  min-height: 27rem;
  overflow: hidden;
}

.story-feature__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(6, 59, 66, 0.92) 100%);
  pointer-events: none;
}

.story-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 43% center;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.story-feature:hover .story-feature__media img {
  transform: scale(1.025);
}

.history-closing {
  position: relative;
  z-index: 1;
  display: grid;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem);
  align-content: center;
}

.history-closing::before {
  content: "“";
  position: absolute;
  top: 1rem;
  left: clamp(1.5rem, 4vw, 3rem);
  color: rgba(244, 184, 96, 0.22);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9rem;
  font-weight: 700;
  line-height: 1;
}

.history-closing .eyebrow {
  position: relative;
  margin-bottom: 1rem;
  color: var(--brand-sun);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-style: normal;
}

.history-closing p {
  position: relative;
  max-width: 26rem;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1.28;
}

.purpose-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: -2.25rem clamp(1rem, 4vw, 3rem) 0;
}

.purpose-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--mist);
  border: 1px solid rgba(8, 124, 130, 0.14);
  border-radius: 1.5rem;
  box-shadow: 0 18px 38px rgba(5, 48, 54, 0.13);
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.purpose-card::before {
  content: "01";
  position: absolute;
  top: 1.25rem;
  right: 1.4rem;
  color: rgba(8, 124, 130, 0.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
}

.purpose-card::after {
  content: "";
  position: absolute;
  right: -1rem;
  bottom: 1.6rem;
  width: 5rem;
  height: 0.7rem;
  border-top: 2px solid rgba(244, 184, 96, 0.55);
  border-bottom: 2px solid rgba(244, 184, 96, 0.28);
  border-radius: 50%;
}

.purpose-card > * {
  position: relative;
  z-index: 1;
}

.purpose-card:hover {
  box-shadow: 0 22px 44px rgba(5, 48, 54, 0.1);
  transform: translateY(-4px);
}

.purpose-card p:last-child {
  margin-bottom: 0;
  color: #4e6668;
}

.purpose-card--accent {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), #075d64);
  border-color: rgba(255, 255, 255, 0.16);
}

.purpose-card--accent::before {
  content: "02";
  color: rgba(255, 255, 255, 0.12);
}

.purpose-card--accent .eyebrow {
  color: var(--brand-sun);
}

.purpose-card--accent p:last-child {
  color: rgba(255, 255, 255, 0.8);
}

.values-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 5rem);
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 8% 18%, rgba(24, 169, 166, 0.3), transparent 16rem),
    linear-gradient(135deg, #032f35, var(--brand-deep) 58%, #075d64);
  border-radius: 2rem;
  box-shadow: 0 26px 60px rgba(5, 48, 54, 0.17);
}

.values-section::before,
.values-section::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.values-section::before {
  width: 18rem;
  height: 18rem;
  top: -10rem;
  left: -6rem;
}

.values-section::after {
  width: 24rem;
  height: 24rem;
  right: -12rem;
  bottom: -16rem;
}

.values-section__heading,
.values-grid {
  position: relative;
  z-index: 1;
}

.values-section__heading {
  align-self: start;
  padding-top: 0.4rem;
}

.values-section__heading .eyebrow {
  color: var(--brand-sun) !important;
}

.values-section__heading h3 {
  max-width: 8ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  line-height: 0.98;
}

.values-section__intro {
  max-width: 24rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
}

.values-grid {
  counter-reset: value-card;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.values-grid article {
  counter-increment: value-card;
  position: relative;
  display: grid;
  min-height: 9.5rem;
  gap: 0.55rem;
  padding: 1.45rem 1.45rem 1.35rem;
  align-content: end;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 1.25rem;
  box-shadow: 0 12px 26px rgba(2, 35, 40, 0.13);
  transition: background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.values-grid article::before {
  content: counter(value-card, decimal-leading-zero);
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  place-items: center;
  background: var(--brand-coral);
  border-radius: 50%;
  box-shadow: 0 7px 16px rgba(237, 106, 76, 0.28);
}

.values-grid article::after {
  content: "";
  position: absolute;
  top: 1.55rem;
  right: 1.2rem;
  width: 2.8rem;
  height: 0.45rem;
  border-top: 2px solid rgba(8, 124, 130, 0.24);
  border-bottom: 2px solid rgba(8, 124, 130, 0.12);
  border-radius: 50%;
}

.values-grid article:last-child {
  grid-column: 1 / -1;
  min-height: 8.5rem;
}

.values-grid article:hover {
  background: #fff;
  box-shadow: 0 18px 34px rgba(2, 35, 40, 0.2);
  transform: translateY(-4px);
}

.values-grid strong {
  padding-top: 1.9rem;
  color: var(--brand-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
}

.values-grid span {
  color: #5c7072;
  font-size: 0.94rem;
  line-height: 1.5;
}

.menu-section {
  position: relative;
  overflow: hidden;
  background: var(--mist);
}

.about-section,
.location-section {
  position: relative;
  overflow: hidden;
}

.about-section::after,
.menu-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -5%;
  bottom: -1px;
  left: -5%;
  height: clamp(2rem, 4vw, 3.5rem);
  pointer-events: none;
}

.about-section::after {
  background: var(--mist);
  clip-path: polygon(0 62%, 16% 45%, 34% 67%, 53% 42%, 72% 66%, 87% 48%, 100% 63%, 100% 100%, 0 100%);
}

.menu-section::after {
  background: var(--paper);
  clip-path: polygon(0 58%, 18% 72%, 38% 47%, 58% 68%, 78% 44%, 100% 61%, 100% 100%, 0 100%);
}

.about-section > .container,
.menu-section > .container,
.location-section > .container {
  position: relative;
  z-index: 1;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(5, 48, 54, 0.06);
}

.search-box span {
  color: var(--brand-ocean);
  font-size: 1.7rem;
  line-height: 1;
}

.search-box .form-control {
  min-height: 3rem;
  padding-inline: 0;
  border: 0;
  box-shadow: none;
}

.filter-list {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.filter-button {
  flex: 0 0 auto;
  padding: 0.65rem 1.1rem;
  color: var(--brand-deep);
  background: transparent;
  border: 1px solid rgba(6, 59, 66, 0.24);
  border-radius: 999px;
  font-weight: 750;
}

.filter-button:hover,
.filter-button.active {
  color: #fff;
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.dish-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px rgba(5, 48, 54, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.dish-card:hover {
  box-shadow: 0 20px 38px rgba(5, 48, 54, 0.12);
  transform: translateY(-4px);
}

.dish-card::after {
  content: "";
  position: absolute;
  width: 6rem;
  height: 6rem;
  right: -2.25rem;
  bottom: -2.25rem;
  background: var(--brand-sun);
  border-radius: 50%;
  opacity: 0.38;
  pointer-events: none;
}

.dish-card__image {
  display: block;
  width: 100%;
  height: 13rem;
  object-fit: contain;
  object-position: center;
  background: #f4eee6;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.dish-card:hover .dish-card__image {
  transform: scale(1.035);
}

.dish-card__content {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.4rem 1.35rem;
}

.dish-card__content h3 {
  margin-bottom: 0.4rem;
}

.dish-card__number {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  color: #fff;
  font-weight: 900;
  place-items: center;
  background: rgba(6, 59, 66, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(3, 47, 53, 0.2);
}

.dish-card p {
  margin-bottom: 0;
  color: #4e6668;
  line-height: 1.5;
}

.menu-cover {
  position: relative;
  display: block;
  min-height: 17.5rem;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--brand-deep);
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px rgba(5, 48, 54, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.menu-cover:hover,
.menu-cover:focus-visible {
  color: #fff;
  box-shadow: 0 20px 38px rgba(5, 48, 54, 0.18);
  transform: translateY(-4px);
}

.menu-cover img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: opacity 300ms ease, transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.menu-cover:hover img,
.menu-cover:focus-visible img {
  opacity: 0.72;
  transform: scale(1.035);
}

.menu-cover div {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(3, 47, 53, 0.96));
}

.menu-cover span {
  color: var(--brand-sun);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empty-state {
  margin: 2rem 0 0;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(6, 59, 66, 0.3);
  border-radius: 1rem;
}

.location-panel {
  overflow: hidden;
  color: #fff;
  background: var(--brand-deep);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.location-copy {
  padding: clamp(2.5rem, 6vw, 5rem);
}

.location-copy address {
  max-width: 28rem;
  margin: 1.5rem 0 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
  font-style: normal;
}

.map-wrap iframe {
  width: 100%;
  min-height: 30rem;
  height: 100%;
  border: 0;
}

.contact-section {
  padding-top: 3rem;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.contact-link {
  display: grid;
  gap: 0.25rem;
  min-height: 8rem;
  padding: 1.5rem;
  align-content: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  transition: border-color 180ms ease, transform 180ms ease;
}

.contact-link:hover {
  color: var(--brand-deep);
  border-color: var(--brand-ocean);
  transform: translateY(-3px);
}

.contact-link span {
  color: var(--brand-ocean);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-link strong {
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.72);
  background: #032f35;
}

.site-footer a {
  color: #fff;
  font-weight: 750;
}

.back-to-top {
  display: inline-flex;
  min-height: 2.9rem;
  padding: 0.65rem 0.8rem 0.65rem 1.15rem;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.back-to-top svg {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.42rem;
  fill: var(--brand-deep);
  background: var(--brand-sun);
  border-radius: 50%;
  transition: transform 200ms ease;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-sun);
  transform: translateY(-2px);
}

.back-to-top:hover svg,
.back-to-top:focus-visible svg {
  transform: translateY(-2px);
}

.floating-contact {
  position: fixed;
  z-index: 1040;
  right: clamp(0.8rem, 2vw, 1.5rem);
  bottom: clamp(0.8rem, 2vw, 1.5rem);
  display: grid;
  gap: 0.65rem;
}

.contact-reminder {
  position: absolute;
  right: calc(100% + 0.9rem);
  bottom: 0;
  width: min(18rem, calc(100vw - 6.5rem));
  padding: 1.15rem 2.5rem 1.05rem 1.2rem;
  color: var(--ink);
  text-align: left;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(6, 59, 66, 0.14);
  border-radius: 1.2rem 1.2rem 0.3rem 1.2rem;
  box-shadow: 0 18px 42px rgba(3, 47, 53, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0.75rem, 0.4rem, 0) scale(0.96);
  transform-origin: right bottom;
  transition: opacity 260ms ease, transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.contact-reminder::after {
  content: "";
  position: absolute;
  right: -0.48rem;
  bottom: 1rem;
  width: 1rem;
  height: 1rem;
  background: #fffdf8;
  border-top: 1px solid rgba(6, 59, 66, 0.12);
  border-right: 1px solid rgba(6, 59, 66, 0.12);
  transform: rotate(45deg);
}

.contact-reminder.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.contact-reminder__eyebrow {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--brand-coral);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-reminder strong {
  display: block;
  color: var(--brand-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.2;
}

.contact-reminder p {
  margin: 0.35rem 0 0;
  color: #5c7072;
  font-size: 0.83rem;
  line-height: 1.4;
}

.contact-reminder__close {
  position: absolute;
  z-index: 1;
  top: 0.55rem;
  right: 0.6rem;
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  color: var(--brand-deep);
  font-size: 1.25rem;
  line-height: 1;
  place-items: center;
  background: var(--mist);
  border: 0;
  border-radius: 50%;
}

.contact-reminder__close:hover,
.contact-reminder__close:focus-visible {
  color: #fff;
  background: var(--brand-coral);
}

.floating-contact.has-reminder .floating-contact__link--whatsapp {
  animation: contact-ring 1.15s ease-out 1;
}

@keyframes contact-ring {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(3, 47, 53, 0.22);
  }

  45% {
    box-shadow: 0 0 0 9px rgba(37, 211, 102, 0.18), 0 14px 30px rgba(3, 47, 53, 0.26);
  }
}

.floating-contact__link {
  position: relative;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  color: #fff;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(3, 47, 53, 0.22);
  text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.floating-contact__link:hover,
.floating-contact__link:focus-visible {
  color: #fff;
  box-shadow: 0 14px 30px rgba(3, 47, 53, 0.3);
  transform: translateY(-3px) scale(1.04);
}

.floating-contact__link svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.floating-contact__link--whatsapp {
  background: #25d366;
}

.floating-contact__link--facebook {
  background: #1877f2;
}

.floating-contact__link--email {
  background: var(--brand-coral);
}

.floating-contact__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 0.65rem);
  padding: 0.35rem 0.65rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  background: var(--brand-deep);
  border-radius: 0.45rem;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0.35rem, -50%, 0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-contact__link:hover .floating-contact__label,
.floating-contact__link:focus-visible .floating-contact__label {
  opacity: 1;
  transform: translate3d(0, -50%, 0);
}

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.5rem, 0);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.65, 0.2, 1),
    transform 700ms cubic-bezier(0.2, 0.65, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal="scale"] {
  transform: translate3d(0, 1rem, 0) scale(0.975);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.8rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow);
  }

  .hero {
    min-height: auto;
  }

  .hero-background {
    background-image:
      linear-gradient(180deg, rgba(3, 47, 53, 0.76) 0%, rgba(3, 47, 53, 0.86) 55%, rgba(3, 47, 53, 0.94) 100%),
      url("../images/personal y lugar/lugar.png");
    background-position: center, 53% center;
  }

  .hero-card {
    max-width: 24rem;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }
  .history-timeline,
  .purpose-grid,
  .values-section {
    grid-template-columns: 1fr;
  }

  .story-feature {
    grid-template-columns: 1fr;
  }

  .story-feature__media {
    min-height: clamp(20rem, 58vw, 29rem);
  }

  .story-feature__media::after {
    background: linear-gradient(180deg, transparent 62%, var(--brand-deep) 100%);
  }

  .purpose-grid {
    margin-inline: 1rem;
  }

  .history-timeline::before {
    top: 10%;
    right: auto;
    bottom: 10%;
    left: 2rem;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(8, 124, 130, 0.3), transparent);
    transform: none;
  }
}

@media (max-width: 575.98px) {
  h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 12vw, 3.2rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .hero-copy {
    max-width: 100%;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }
  .history-step {
    grid-template-columns: 1fr;
  }

  .story-feature {
    min-height: auto;
    border-radius: 1.35rem;
  }

  .story-feature__media {
    min-height: 17rem;
  }

  .history-closing {
    padding: 2rem 1.4rem 3.5rem;
  }

  .history-closing::before {
    top: 0.2rem;
    left: 1rem;
    font-size: 6rem;
  }

  .purpose-grid {
    margin: -1.75rem 0.65rem 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .values-grid article:last-child {
    grid-column: auto;
  }

  .values-section {
    padding: 1.35rem;
    border-radius: 1.4rem;
  }

  .section-shell {
    padding-block: 4.5rem;
  }

  .hero {
    padding-top: 8rem;
  }

  .values-strip .col-6:nth-child(2n) {
    border-right: 0;
  }

  .location-panel {
    border-radius: 1.25rem;
  }

  .map-wrap iframe {
    min-height: 22rem;
  }

  .floating-contact {
    gap: 0.5rem;
  }

  .floating-contact__link {
    width: 2.9rem;
    height: 2.9rem;
  }

  .floating-contact__link svg {
    width: 1.3rem;
    height: 1.3rem;
  }

  .floating-contact__label {
    display: none;
  }

  .contact-reminder {
    right: calc(100% + 0.7rem);
    width: min(16rem, calc(100vw - 5.5rem));
    padding: 1rem 2.2rem 0.95rem 1rem;
    border-radius: 1rem 1rem 0.25rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero::before,
  .hero::after,
  .hero-card,
  .hero-wave {
    transform: none !important;
  }

  .hero-background {
    transform: scale(1.035) !important;
    will-change: auto;
  }

  .hero-wave {
    animation: none !important;
    will-change: auto;
  }

  .floating-contact.has-reminder .floating-contact__link--whatsapp {
    animation: none !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
