:root {
  --header: #1b5cad;
  --header-ink: #f4fbff;
  --sky: #8ed0f0;
  --hill-deep: #1b4f9c;
  --hill-mid: #1f6bb5;
  --water: #3aa0d6;
  --water-light: #62b8e4;
  --foam: #b3dff2;
  --foam-deep: #9fd4ec;
  --ink: #12314a;
  --ink-soft: #3d5d72;
  --paper: #f7fbfd;
  --line: #c5dce8;
  --teal: #00a8a0;
  --navy: #075b83;
  --cyan: #42b6dd;
  --focus: #63c7e8;
  --danger: #a33b32;
  --header-h: 4.5rem;
  --font-display: "Bodoni Moda", "Iowan Old Style", Palatino, serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --shadow: 0 18px 40px rgba(18, 70, 110, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  background: var(--foam);
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: #fff;
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 0.4rem;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: var(--header);
  color: var(--header-ink);
}

.header-inner {
  height: 100%;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  filter: brightness(0) invert(1);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem 1.4rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.88;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

.hero,
.band,
#atencion {
  scroll-margin-top: calc(var(--header-h) + 0.6rem);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  background: var(--foam);
  overflow: hidden;
  display: grid;
  align-items: end;
}

.scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scene picture,
.scene img {
  width: 100%;
  height: 100%;
  display: block;
}

.scene img {
  object-fit: cover;
  object-position: center bottom;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2.6rem;
}

.hero-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
}

.hero-lead {
  max-width: 34rem;
  margin: 0.7rem 0 1.4rem;
  color: var(--ink);
  font-size: 1.08rem;
}

/* En escritorio el titulo cae sobre el agua de la ilustracion (cian y azul),
 * donde la tinta oscura casi no se lee. Debajo de 720px la escena pasa a estar
 * arriba y la bajada queda sobre fondo claro: ahi el texto sigue oscuro. */
@media (min-width: 721px) {
  .hero-kicker {
    color: #fff;
    text-shadow: 0 1px 2px rgba(6, 44, 74, 0.45), 0 4px 14px rgba(6, 44, 74, 0.3);
  }

  .hero h1 {
    color: #fff;
    /* Doble sombra: la corta define el borde donde el titulo baja al celeste
     * palido, la larga le da cuerpo sobre el agua. */
    text-shadow: 0 1px 2px rgba(6, 44, 74, 0.5), 0 8px 26px rgba(6, 44, 74, 0.35);
  }
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.action {
  appearance: none;
  display: grid;
  gap: 0.2rem;
  text-align: left;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.05rem;
  padding: 0.95rem 1rem 1rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  position: relative;
  overflow: hidden;
}

.action::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--header);
}

.action-chat::before {
  background: linear-gradient(#00a8a0 0 33%, #42b6dd 33% 66%, #075b83 66%);
}

.action:hover {
  transform: translateY(-2px);
}

.action-icon {
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.35rem;
  color: var(--header);
}

.action strong {
  font-size: 1.02rem;
}

.action span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.band {
  background: var(--foam);
  padding: 3.2rem 0 4rem;
}

.band-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.band h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.band .lede {
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  padding: 1.3rem 1.35rem 1.4rem;
}

.panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
}

.panel p,
.panel li {
  color: var(--ink-soft);
}

.panel ul {
  margin: 0.4rem 0 0;
  padding: 0 0 0 1.1rem;
}

.panel ul li + li {
  margin-top: 0.35rem;
}

.hours {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.hours dt {
  color: var(--ink-soft);
}

.hours dd {
  margin: 0;
  font-weight: 700;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.6rem;
  padding: 0.45rem 0.95rem;
  border-radius: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: #064a6b;
}

.btn-ghost {
  background: #edf5f8;
  color: var(--navy);
}

.site-footer {
  background: var(--header);
  color: var(--header-ink);
  padding: 1.6rem 0 5.5rem;
}

.footer-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img {
  width: 2.1rem;
  height: 2.1rem;
  filter: brightness(0) invert(1);
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.site-footer p {
  margin: 0;
  opacity: 0.82;
  font-size: 0.92rem;
}

.chat-fallback {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 18px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 34px rgba(4, 48, 73, 0.28);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.chat-fallback:hover {
  transform: translateY(-2px);
  background: #064a6b;
}

.chat-fallback svg {
  width: 27px;
  height: 27px;
}

.chat-fallback-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 39;
  width: min(380px, calc(100vw - 24px));
  background: var(--paper);
  border: 1px solid #cbdde6;
  border-radius: 22px;
  box-shadow: 0 24px 65px rgba(13, 49, 69, 0.24);
  overflow: hidden;
}

.chat-fallback-panel[hidden],
.chat-fallback[hidden] {
  display: none;
}

.fallback-head {
  position: relative;
  background: #fff;
  padding: 17px 48px 15px 22px;
  border-bottom: 1px solid #d8e7ed;
}

.fallback-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(#00a8a0 0 33%, #42b6dd 33% 66%, #075b83 66%);
}

.fallback-eyebrow {
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #478096;
}

.fallback-head strong {
  display: block;
  font-size: 17px;
  letter-spacing: -0.02em;
  margin-top: 3px;
}

.fallback-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #628090;
}

.fallback-close {
  position: absolute;
  right: 13px;
  top: 13px;
  border: 0;
  background: #edf5f8;
  color: #315d70;
  border-radius: 10px;
  width: 31px;
  height: 31px;
  cursor: pointer;
  font-size: 18px;
}

.fallback-body {
  padding: 1.2rem 1.15rem 1.3rem;
}

.fallback-body p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.fallback-body .btn {
  width: 100%;
}

@media (max-width: 860px) {
  .actions,
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: var(--header);
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 1rem 1rem;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
    box-shadow: 0 16px 28px rgba(10, 40, 80, 0.18);
  }

  .site-nav a {
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: 0;
    display: block;
  }

  .scene {
    position: relative;
    height: 72vw;
    min-height: 300px;
    max-height: 460px;
  }

  .scene img {
    object-position: center 38%;
  }

  .hero-copy {
    padding: 1.4rem 0 1.8rem;
  }

  .actions,
  .split,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .chat-fallback {
    right: 12px;
    bottom: 12px;
  }

  .chat-fallback-panel {
    right: 12px;
    bottom: 80px;
  }
}

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

  .action,
  .chat-fallback {
    animation: none;
    transition: none;
  }
}
