:root {
  --bg: #070707;
  --panel: #111112;
  --panel-soft: #191919;
  --text: #f4f1ea;
  --muted: #b9b2a6;
  --red: #b30f19;
  --red-bright: #e01825;
  --gold: #c7a341;
  --gold-soft: #f0d37a;
  --line: rgba(244, 241, 234, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

body::selection {
  background: var(--red);
  color: white;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(7, 7, 7, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--gold-soft);
}

.header-action,
.share-catalog,
.primary-button,
.secondary-button,
.plan-button,
.share-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.header-action,
.primary-button,
.plan-button {
  padding: 0 20px;
  background: linear-gradient(135deg, var(--red), #720a10);
  color: white;
  box-shadow: 0 12px 26px rgba(179, 15, 25, 0.32);
}

.secondary-button,
.share-catalog,
.share-button {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text);
}

.header-action:hover,
.share-catalog:hover,
.primary-button:hover,
.secondary-button:hover,
.plan-button:hover,
.share-button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  overflow: hidden;
  padding: 120px clamp(20px, 6vw, 76px) 64px;
  align-items: end;
}

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

.hero-media {
  background-image: url("https://vzlvawdmrtuqgkjialue.supabase.co/storage/v1/object/public/imagenes%20maxpowergym/IMG-20260618-WA0041.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  animation: heroBreath 12s ease-in-out infinite;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.95) 0%, rgba(7, 7, 7, 0.72) 42%, rgba(7, 7, 7, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 7, 7, 1) 0%, rgba(7, 7, 7, 0) 36%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.hero-logo {
  width: clamp(120px, 16vw, 190px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55));
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(5rem, 13vw, 10.5rem);
  line-height: 0.86;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

h2 {
  max-width: 860px;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.02;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #eee9de;
  font-size: clamp(1.04rem, 2vw, 1.35rem);
  line-height: 1.62;
}

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

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-section,
.plans-section,
.motivation-section,
.schedule-section,
.location-section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.intro-grid,
.section-heading,
.schedule-layout,
.location-layout,
.motivation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro-grid p:not(.section-kicker),
.motivation-copy p,
.location-copy p,
.location-copy address {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.plans-section {
  background:
    linear-gradient(180deg, rgba(179, 15, 25, 0.1), rgba(179, 15, 25, 0)),
    var(--panel);
}

.section-heading {
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .share-catalog {
  justify-self: end;
  width: fit-content;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #181818, #0d0d0d);
  box-shadow: var(--shadow);
}

.plan-number {
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-card h3 {
  min-height: 58px;
  margin-top: 12px;
}

.price {
  margin: 14px 0 0;
  color: var(--gold-soft);
  font-size: 1.15rem;
  font-weight: 900;
}

.plan-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  padding: 0;
  color: var(--muted);
  line-height: 1.45;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 18px;
}

.plan-card li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red-bright);
  content: "";
}

.plan-actions {
  display: grid;
  grid-template-columns: 1fr 48px;
  gap: 10px;
  margin-top: auto;
}

.share-button {
  width: 48px;
  padding: 0;
  font-size: 1.2rem;
}

.motivation-section {
  background: var(--bg);
}

.media-board {
  display: grid;
  gap: 14px;
}

.media-board article {
  min-height: 140px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: var(--panel-soft);
}

.media-board span {
  color: var(--red-bright);
  font-weight: 900;
  text-transform: uppercase;
}

.media-board strong {
  display: block;
  margin-top: 28px;
  font-size: 1.35rem;
}

.schedule-section {
  background:
    linear-gradient(135deg, rgba(199, 163, 65, 0.14), transparent 35%),
    #101010;
}

.schedule-list {
  display: grid;
  gap: 14px;
}

.schedule-list div {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.schedule-list span {
  color: var(--gold-soft);
  font-weight: 900;
}

.schedule-list strong {
  font-size: 1.3rem;
}

.location-layout {
  align-items: stretch;
}

.location-copy address {
  margin: 0 0 24px;
  font-style: normal;
}

.map-frame {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  background: #050505;
}

.site-footer img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.site-footer div {
  display: grid;
  gap: 5px;
  margin-right: auto;
}

.site-footer span {
  color: var(--muted);
}

.site-footer a {
  color: var(--gold-soft);
  font-weight: 900;
}

.customer-service-float {
  position: fixed;
  z-index: 18;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: min(286px, calc(100vw - 28px));
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(240, 211, 122, 0.46);
  border-radius: 999px;
  background: linear-gradient(135deg, #151515, #0c3324);
  color: white;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  animation: assistantFloat 3.2s ease-in-out infinite;
}

.customer-service-float::before,
.customer-service-float::after {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(240, 211, 122, 0.34);
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
  animation: assistantWave 2.8s ease-out infinite;
}

.customer-service-float::after {
  animation-delay: 1.4s;
}

.assistant-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red), #7f0910);
  box-shadow: 0 10px 20px rgba(179, 15, 25, 0.35);
  font-size: 1.35rem;
}

.assistant-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.assistant-copy span {
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0.9;
}

.assistant-copy strong {
  font-size: 0.98rem;
  line-height: 1.1;
}

@keyframes assistantFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes assistantWave {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }

  30% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

@keyframes heroBreath {
  0%,
  100% {
    transform: scale(1.02);
  }

  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .customer-service-float,
  .customer-service-float::before,
  .customer-service-float::after,
  .hero-media {
    animation: none;
  }
}

[data-admin-trigger] {
  cursor: pointer;
  user-select: none;
}

.plan-dialog {
  width: min(640px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.admin-dialog {
  width: min(1120px, calc(100% - 24px));
  max-height: min(92vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
}

.admin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
}

.admin-shell {
  position: relative;
  overflow: auto;
  max-height: min(92vh, 900px);
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101010;
  box-shadow: var(--shadow);
}

.admin-login {
  width: min(560px, 100%);
  margin: 0 auto;
}

.admin-help,
.admin-status {
  color: var(--muted);
  line-height: 1.6;
}

.admin-status {
  min-height: 24px;
  margin: 10px 0 0;
  font-weight: 700;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
}

.admin-tab.is-active {
  border-bottom-color: var(--red-bright);
  color: var(--text);
}

.admin-pane {
  display: none;
}

.admin-pane.is-active {
  display: grid;
  gap: 22px;
}

.admin-form {
  display: grid;
  gap: 15px;
}

.content-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
}

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

.admin-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.admin-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-card h3 {
  margin-bottom: 6px;
}

.admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-fields {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 10px;
}

.motivation-preview {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.motivation-preview img {
  width: min(260px, 100%);
  border-radius: 8px;
  border: 1px solid var(--line);
}

.media-board article img {
  width: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 6px;
  margin-top: 14px;
  background: #050505;
}

.media-board article p {
  color: var(--muted);
  line-height: 1.6;
}

.media-board article a {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  color: var(--gold-soft);
  font-weight: 900;
}

.plan-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 15px;
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
}

.dialog-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 13px 14px;
  outline: none;
}

select option {
  color: #111;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
}

.submit-button {
  width: 100%;
  margin-top: 4px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100% - 36px));
  padding: 14px 16px;
  border: 1px solid rgba(240, 211, 122, 0.45);
  border-radius: 8px;
  background: #111;
  color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand span {
    font-size: 0.88rem;
  }

  .header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: 91vh;
    padding: 104px 20px 48px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 7, 7, 0.94), rgba(7, 7, 7, 0.68)),
      linear-gradient(0deg, rgba(7, 7, 7, 1) 0%, rgba(7, 7, 7, 0.12) 44%);
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .intro-grid,
  .section-heading,
  .schedule-layout,
  .location-layout,
  .motivation-layout {
    grid-template-columns: 1fr;
  }

  .section-heading .share-catalog {
    justify-self: start;
  }

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

  .plan-card {
    min-height: auto;
  }

  .plan-card h3 {
    min-height: auto;
  }

  .map-frame {
    min-height: 360px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-service-float {
    right: 14px;
    bottom: 14px;
    padding: 10px;
  }

  .assistant-copy {
    display: none;
  }

  .admin-topbar,
  .admin-card-header {
    flex-direction: column;
  }

  .admin-fields {
    grid-template-columns: 1fr;
  }
}
