:root {
  --primary: #0ea5a7;
  --primary-dark: #087c8b;
  --accent: #ff8a3d;
  --green: #22c55e;
  --blue: #2563eb;
  --yellow: #fbbf24;
  --ink: #102033;
  --muted: #5d6b7a;
  --line: #dce8ee;
  --surface: #f6fbfd;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(16, 32, 51, 0.12);
  --soft-shadow: 0 10px 24px rgba(16, 32, 51, 0.08);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 104px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-140%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-block: 10px;
  background: transparent;
  pointer-events: none;
}

.nav-shell,
.admin-topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.nav-shell {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(16, 32, 51, 0.13);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--primary);
  font-weight: 800;
  box-shadow: var(--soft-shadow);
}

.brand-mark.has-image {
  padding: 4px;
  color: transparent;
  background: var(--white);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

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

.brand small {
  color: var(--muted);
  margin-top: 2px;
  font-size: 0.78rem;
}

.nav-links {
  position: fixed;
  inset: 88px 16px auto 16px;
  display: none;
  padding: 10px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.nav-links.open {
  display: grid;
}

.nav-links a {
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus {
  background: var(--surface);
}

.icon-button,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 2px 0;
  background: var(--ink);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--accent);
  box-shadow: 0 12px 24px rgba(255, 138, 61, 0.24);
}

.button-whatsapp {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.24);
}

.button-secondary {
  color: var(--primary-dark);
  background: #e8fbfb;
  border: 1px solid #c5eff0;
}

.attention {
  animation: pulse 1.7s ease-in-out infinite;
}

.attention-soft {
  animation: pulseSoft 2.1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.42);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 138, 61, 0);
  }
}

@keyframes pulseSoft {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: var(--white);
  display: grid;
  align-items: end;
  background: #0b4753;
}

.hero-slider,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 700ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(7, 36, 45, 0.22) 16%, rgba(7, 36, 45, 0.56) 52%, rgba(7, 36, 45, 0.84) 100%),
    linear-gradient(90deg, rgba(7, 36, 45, 0.72), rgba(7, 36, 45, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  padding-block: 132px 28px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow {
  color: #dff9fb;
  background: rgba(14, 165, 167, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.section-kicker {
  color: var(--primary-dark);
  background: #e8fbfb;
}

.hero h1 {
  max-width: 780px;
  margin: 14px 0 14px;
  font-size: clamp(2rem, 9vw, 4.35rem);
  line-height: 1.02;
}

.hero p {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 4vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-panel {
  display: grid;
  gap: 10px;
}

.hero-panel div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(14px);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.section {
  padding-block: 58px;
}

.surface-band {
  background: var(--surface);
  border-block: 1px solid #e7f0f4;
}

.intro-band {
  padding-block: 34px;
  background: #fff8eb;
}

.intro-grid,
.split-layout,
.form-layout,
.contact-grid {
  display: grid;
  gap: 28px;
}

.form-layout {
  max-width: 760px;
}

.intro-grid h2,
.section-copy h2,
.section-heading h2 {
  margin: 10px 0 0;
  line-height: 1.12;
  font-size: clamp(1.75rem, 7vw, 3rem);
}

.intro-grid p,
.section-copy p,
.section-heading p {
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.check-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.register-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 14px;
}

label,
.radio-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  outline: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14, 165, 167, 0.14);
}

.radio-field {
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.radio-field legend {
  grid-column: 1 / -1;
  padding: 0 4px;
}

.radio-field label,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-weight: 700;
}

.radio-field input,
.consent input {
  width: auto;
  margin-top: 5px;
}

.link-button {
  padding: 0;
  border: 0;
  color: var(--primary-dark);
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  cursor: pointer;
}

.form-submit {
  width: 100%;
}

.form-message {
  margin: 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.info-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.info-card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--primary-dark);
  background: #e8fbfb;
  font-weight: 900;
}

.info-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-card h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.detail-toggle {
  justify-self: start;
  padding: 0;
  border: 0;
  color: var(--primary-dark);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.detail-text {
  display: none;
  margin-top: -2px !important;
  color: var(--ink) !important;
  font-size: 0.95rem;
}

.info-card.open .detail-text {
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--line);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-caption {
  position: absolute;
  inset: auto 8px 8px 8px;
  padding: 7px 9px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(16, 32, 51, 0.68);
  font-weight: 800;
  font-size: 0.84rem;
}

.notice-list,
.quote-grid {
  display: grid;
  gap: 12px;
}

.notice,
.quote {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.notice.featured {
  border-color: #fed7aa;
  background: #fff7ed;
}

.notice h3,
.quote h3 {
  margin: 0 0 6px;
}

.notice p,
.quote p {
  margin: 0;
  color: var(--muted);
}

.contact-section {
  background: #eefdf7;
}

.address-details {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #bdebd3;
  border-radius: var(--radius);
  background: var(--white);
}

.address-details summary {
  cursor: pointer;
  font-weight: 900;
}

.contact-actions {
  display: grid;
  align-content: center;
  gap: 12px;
}

.site-footer {
  padding-block: 28px;
  color: var(--white);
  background: #102033;
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-links a {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.floating-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--green);
  text-decoration: none;
  font-weight: 900;
}

.top-button {
  position: fixed;
  right: 16px;
  bottom: 76px;
  z-index: 40;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--primary);
  box-shadow: var(--soft-shadow);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.top-button.show {
  opacity: 1;
  pointer-events: auto;
}

dialog {
  width: min(calc(100% - 28px), 760px);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(16, 32, 51, 0.56);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-body {
  padding: 16px;
  color: var(--muted);
}

.image-modal {
  width: min(calc(100% - 24px), 880px);
  background: transparent;
  box-shadow: none;
}

.image-modal img {
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--ink);
}

.image-modal p {
  margin: 8px 0 0;
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

.image-close {
  position: absolute;
  top: 10px;
  right: 10px;
}

[hidden] {
  display: none !important;
}

.admin-body {
  background: #f4f8fb;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.admin-actions {
  display: grid;
  gap: 8px;
  width: 100%;
}

.admin-password {
  font-size: 0.8rem;
}

.admin-password input {
  min-width: 0;
}

.admin-main {
  display: grid;
  gap: 16px;
  padding-block: 18px 48px;
}

.admin-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-tabs button {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.admin-tabs button.active {
  color: var(--white);
  background: var(--primary);
  border-color: var(--primary);
}

.admin-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.admin-status {
  min-height: 24px;
  margin-bottom: 10px;
  color: var(--primary-dark);
  font-weight: 800;
}

.admin-section {
  display: grid;
  gap: 16px;
}

.admin-section h1 {
  margin: 0;
  font-size: clamp(1.4rem, 6vw, 2rem);
}

.admin-grid {
  display: grid;
  gap: 12px;
}

.admin-fieldset {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfe;
}

.admin-fieldset legend,
.admin-card-title {
  font-weight: 900;
}

.switch-list {
  display: grid;
  gap: 8px;
}

.switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.switch input {
  width: 22px;
  height: 22px;
}

.repeat-list {
  display: grid;
  gap: 12px;
}

.admin-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-small-button,
.danger-button {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-weight: 900;
  cursor: pointer;
}

.admin-small-button {
  border: 1px solid #c5eff0;
  color: var(--primary-dark);
  background: #e8fbfb;
}

.danger-button {
  border: 1px solid #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.preview-thumb {
  width: 88px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.preview-wide {
  width: min(100%, 280px);
  aspect-ratio: 16 / 9;
}

.admin-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface);
  font-size: 0.86rem;
}

.code-box {
  overflow: auto;
  max-height: 320px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #dff9fb;
  background: #102033;
  font-size: 0.82rem;
  white-space: pre;
}

@media (min-width: 680px) {
  .form-row,
  .intro-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quote-grid,
  .notice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions {
    width: auto;
    grid-template-columns: minmax(180px, 260px) auto auto;
    align-items: end;
  }

  .admin-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .menu-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .hero-content {
    min-height: 100svh;
    grid-template-columns: minmax(0, 820px);
    align-items: end;
    padding-block: 140px 42px;
  }

  .split-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-main {
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: start;
  }

  .admin-tabs {
    position: sticky;
    top: 90px;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
