﻿:root {
  --red: #ed4f45;
  --red-dark: #b81f20;
  --ink: #171a1f;
  --muted: #59616f;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --line: #dbe1e8;
  --teal: #006f78;
  --yellow: #e1cf00;
  --shadow: 0 18px 45px rgba(12, 18, 26, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

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

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 6.4vw, 5.15rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.55rem);
  font-weight: 900;
}

h3 {
  font-size: clamp(1.18rem, 2.1vw, 1.55rem);
  font-weight: 900;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 8px clamp(18px, 4vw, 64px);
  color: #fff;
  background: rgba(237, 79, 69, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.brand img {
  width: 142px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.header-call {
  min-width: 136px;
  padding: 10px 14px;
  border: 2px solid #fff;
  border-radius: 4px;
  text-align: center;
  font-weight: 900;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  min-height: calc(92vh - 78px);
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 76px);
  color: #fff;
  overflow: hidden;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 16, 21, 0.92) 0%, rgba(13, 16, 21, 0.76) 48%, rgba(13, 16, 21, 0.48) 100%),
    linear-gradient(0deg, rgba(0, 111, 120, 0.38), rgba(0, 0, 0, 0.12));
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.form-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero-lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 1.9vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  transition: transform 160ms ease, filter 160ms ease;
}

.button::after {
  content: ">";
  margin-left: 10px;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button-primary {
  background: var(--red);
  color: #fff;
  box-shadow: var(--shadow);
}

.button-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.call-button {
  background: #17e274;
  color: #07160d;
  overflow: visible;
  box-shadow: 0 16px 32px rgba(23, 226, 116, 0.3);
}

.phone-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  margin-right: 9px;
  border-radius: 999px;
  background: #07160d;
  color: #17e274;
  font-size: 0.96em;
  line-height: 1;
  animation: phone-vibrate 1.15s ease-in-out infinite;
  transform-origin: center;
}

.phone-icon::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(23, 226, 116, 0.52);
  border-radius: inherit;
  animation: phone-ring-pulse 1.15s ease-out infinite;
}

@keyframes phone-vibrate {
  0%,
  42%,
  100% {
    transform: rotate(0deg);
  }
  6%,
  18%,
  30% {
    transform: rotate(-12deg);
  }
  12%,
  24%,
  36% {
    transform: rotate(12deg);
  }
}

@keyframes phone-ring-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.72);
  }
  58%,
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

.button-outline {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: min(620px, 100%);
  margin: 24px 0 0;
}

.hero-proof div {
  min-width: 150px;
  padding: 15px 16px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(5px);
}

.hero-proof dt {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 900;
}

.hero-proof dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.hero-form-card {
  align-self: center;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-form-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.hero-form-card p {
  margin: 12px 0 18px;
  color: var(--muted);
}

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

.lead-form-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: start;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.lead-form span {
  font-size: 0.9rem;
}

.lead-form input,
.lead-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #bfc8d2;
  border-radius: 4px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: 3px solid rgba(0, 111, 120, 0.18);
  border-color: var(--teal);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--teal);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--red-dark);
}

.span-full {
  grid-column: 1 / -1;
}

.intent-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px clamp(18px, 4vw, 64px);
  background: var(--teal);
  color: #fff;
}

.intent-strip span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.section {
  scroll-margin-top: 104px;
  padding: clamp(62px, 8vw, 104px) clamp(18px, 4vw, 64px);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto clamp(28px, 5vw, 48px);
  text-align: center;
}

.section-heading p,
.conversion-copy p,
.form-intro p,
.location-copy p,
.local-proof p,
.benefit-grid p,
.review-grid p,
.faq-grid p,
.offer-box li,
.check-list li {
  color: var(--muted);
  font-size: 1.06rem;
}

.location-section,
.reviews-section {
  background: var(--soft);
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.location-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.location-panel img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.location-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: clamp(22px, 4vw, 38px);
}

.location-copy ul,
.offer-box ul,
.check-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.local-proof {
  display: grid;
  gap: 14px;
}

.local-proof article,
.offer-box,
.review-card,
.faq-grid details {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.local-proof article {
  display: grid;
  gap: 10px;
}

.proof-icon {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(237, 79, 69, 0.1);
}

.proof-icon::before,
.proof-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.proof-icon-location::before {
  width: 18px;
  height: 18px;
  border: 4px solid var(--red);
  border-radius: 50% 50% 50% 0;
  background: #fff;
  transform: rotate(-45deg);
}

.proof-icon-location::after {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--red);
}

.proof-icon-training::before {
  width: 26px;
  height: 5px;
  border-radius: 999px;
  background: var(--red);
  transform: rotate(-14deg);
}

.proof-icon-training::after {
  width: 32px;
  height: 16px;
  border-right: 5px solid var(--red);
  border-left: 5px solid var(--red);
  border-radius: 3px;
  transform: rotate(-14deg);
}

.proof-icon-pass::before {
  width: 26px;
  height: 18px;
  border: 3px solid var(--red);
  border-radius: 5px;
  background: #fff;
  transform: rotate(-8deg);
}

.proof-icon-pass::after {
  width: 0;
  height: 13px;
  border-left: 2px dashed var(--red);
  transform: rotate(-8deg);
}

.local-proof strong,
.offer-box strong,
.review-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

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

.benefit-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.benefit-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.benefit-grid h3,
.benefit-grid p {
  padding-inline: 20px;
}

.benefit-grid h3 {
  margin-top: 20px;
}

.benefit-grid p {
  margin-bottom: 22px;
}

.conversion-section,
.final-form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.offer-box {
  border-top: 6px solid var(--yellow);
}

.offer-box strong {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.offer-box .button {
  margin-top: 22px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.review-carousel {
  display: grid;
  width: min(100%, 1040px);
  gap: 18px;
  margin: 0 auto;
}

.review-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-carousel-header span {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 900;
}

.review-controls {
  display: flex;
  gap: 8px;
}

.review-control {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.review-control:hover {
  border-color: var(--red);
  color: var(--red);
}

.review-track {
  display: grid;
  grid-auto-columns: calc((100% - 20px) / 2);
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.review-card {
  display: grid;
  min-height: 214px;
  gap: 12px;
  align-content: start;
  scroll-snap-align: start;
}

.review-stars {
  color: var(--yellow);
  letter-spacing: 0;
}

.review-card p {
  font-size: 1.06rem;
}

.review-card span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

.faq-grid summary {
  cursor: pointer;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  content: "+";
  float: right;
  margin-left: 16px;
  color: var(--red);
}

.faq-grid details[open] summary::after {
  content: "-";
}

.form-intro {
  max-width: 620px;
}

.site-footer {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 34px 18px;
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.site-footer img {
  width: 128px;
}

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

.site-credit {
  font-size: 0.88rem;
}

.site-credit a {
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.site-credit a:hover {
  color: var(--yellow);
}

.confirmation-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(23, 26, 31, 0.92), rgba(0, 111, 120, 0.84)),
    url("assets/gimnasio-en-san-juan-westside-fitness-club.jpg") center / cover fixed;
}

.confirmation-header {
  position: static;
}

.confirmation-main {
  display: grid;
  min-height: calc(100vh - 78px);
  place-items: center;
  padding: clamp(28px, 6vw, 74px) 18px;
}

.confirmation-card {
  width: min(880px, 100%);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow);
}

.confirmation-card[hidden] {
  display: none;
}

.confirmation-card h1 {
  max-width: 740px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.confirmation-lead,
.confirmation-note {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.confirmation-note {
  margin: 18px 0 0;
  font-size: 0.94rem;
  font-weight: 800;
}

.lead-review {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.lead-review div {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.lead-review span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-review strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.08rem;
  overflow-wrap: anywhere;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.confirmation-actions .button {
  min-width: 220px;
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    display: none;
  }

  .header-call {
    justify-self: end;
  }

  .hero,
  .location-layout,
  .location-panel,
  .conversion-section,
  .final-form-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-form-card {
    max-width: 560px;
  }

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

@media (max-width: 640px) {
  body {
    padding-bottom: 78px;
  }

  .site-header {
    min-height: 68px;
    padding: 8px 16px;
  }

  .brand img {
    width: 116px;
  }

  .header-call {
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.86rem;
  }

  .hero {
    padding: 34px 16px;
  }

  .hero-actions .button,
  .location-actions .button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .button-primary {
    order: -1;
  }

  .intent-strip,
  .benefit-grid,
  .faq-grid,
  .lead-form-large {
    grid-template-columns: 1fr;
  }

  .review-carousel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-track {
    grid-auto-columns: minmax(260px, 88%);
  }

  .hero-proof {
    display: none;
  }

  .lead-review,
  .confirmation-actions {
    grid-template-columns: 1fr;
  }

  .confirmation-actions .button {
    width: 100%;
  }

  .section {
    padding: 54px 16px;
  }

  .location-panel img {
    min-height: 260px;
  }

  .benefit-grid {
    display: grid;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: block;
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(23, 26, 31, 0.94);
  }

  .mobile-sticky-cta .button {
    width: 100%;
    min-height: 50px;
  }

  .mobile-sticky-cta .mobile-free-pass {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.24);
    background: linear-gradient(135deg, #ff2d24 0%, #ff4d2d 48%, #ffb000 100%);
    box-shadow: 0 12px 30px rgba(239, 57, 45, 0.36), 0 0 0 0 rgba(255, 176, 0, 0.36);
    font-size: 0.95rem;
    letter-spacing: 0;
    animation: freePassPulse 2.2s ease-in-out infinite;
  }

  .mobile-sticky-cta .mobile-free-pass::after {
    position: absolute;
    top: -55%;
    left: -35%;
    width: 34%;
    height: 210%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
    transform: rotate(22deg);
    animation: freePassShine 3s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-icon,
  .phone-icon::after,
  .mobile-free-pass,
  .mobile-free-pass::after {
    animation: none;
  }
}

@keyframes freePassPulse {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(239, 57, 45, 0.36), 0 0 0 0 rgba(255, 176, 0, 0.34);
    transform: translateY(0);
  }
  50% {
    box-shadow: 0 14px 34px rgba(239, 57, 45, 0.44), 0 0 0 8px rgba(255, 176, 0, 0);
    transform: translateY(-1px);
  }
}

@keyframes freePassShine {
  0%,
  46% {
    left: -45%;
  }
  70%,
  100% {
    left: 116%;
  }
}

