* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg: #0f0b0b;
  --bg2: #171313;
  --surface: #211d1d;
  --red: #b5121b;
  --red2: #d21a25;
  --text: #f2f2f2;
  --muted: #b8b8b8;
  --border: #3c3636;
  --max: 1200px;
  --pad: 90px;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 11, 11, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 1px;
}
.navbar .logo {
  display: flex;
  align-items: center;
}
.navbar .logo img {
  display: block;
  width: auto;
  height: 48px;
  object-fit: contain;
}
.logo span {
  color: var(--red);
}
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-menu a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.25s;
}
.nav-menu a:hover {
  color: var(--red);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  padding: 9px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background-color: var(--bg);
  background-image:
    linear-gradient(
      90deg,
      rgba(15, 11, 11, 0.98) 0%,
      rgba(15, 11, 11, 0.86) 45%,
      rgba(15, 11, 11, 0.48) 100%
    ),
    radial-gradient(
      circle at 75% 45%,
      rgba(181, 18, 27, 0.3),
      transparent 45%
    ),
    url("../assets/icons/ICON%20AM%20GYM.png");
  background-position: center, center, right 8% center;
  background-size: cover, cover, auto 88%;
  background-repeat: no-repeat;
}
.hero-content {
  padding-block: 100px;
}
.eyebrow,
.section-label {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.hero h1 {
  max-width: 800px;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  margin-bottom: 25px;
}
.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 35px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: 0.25s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red2);
}
.btn-secondary {
  border-color: var(--border);
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--red);
}
.section {
  padding-block: var(--pad);
  background-color: var(--bg2);
}
.section-primary {
  background-color: var(--bg);
}
.section-heading {
  max-width: 700px;
  margin-bottom: 45px;
}
.section-heading h2,
.two-column h2,
.cta h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.section-heading > p:last-child,
.two-column > div > p,
.cta > div > p {
  color: var(--muted);
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.two-column > div > p + p {
  margin-top: 18px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: 0.25s;
  min-height: 100%;
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-5px);
}
.card-media {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.card-media img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-media img {
  transform: scale(1.05);
}
.card-content {
  padding: 24px 22px 28px;
}
.card-number {
  display: block;
  color: var(--red);
  font-weight: 900;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
.card p {
  color: var(--muted);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.plan-card {
  padding: 35px;
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(18, 14, 14, 0.78), rgba(18, 14, 14, 0.88)),
    url("../assets/images/bkCards.jpeg") center / cover no-repeat;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  min-height: 220px;
}
.plan-card:hover {
  border-color: var(--red);
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(181, 18, 27, 0.12);
}
.plan-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.plan-name {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 2px;
}
.plan-price {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.plan-description {
  color: var(--muted);
  line-height: 1.6;
  min-height: 70px;
}
.plans-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.schedule {
  border-top: 1px solid var(--border);
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.schedule-row span {
  color: var(--muted);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 25px;
  border: 1px solid var(--border);
  transition: 0.25s;
}
.contact-item:hover {
  border-color: var(--red);
}
.contact-item span {
  color: var(--muted);
  font-size: 0.85rem;
}
.map-placeholder {
  position: relative;
  width: 100%;
  min-height: 240px;
  max-height: 360px;
  aspect-ratio: 16/9;
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-placeholder iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.cta {
  padding-block: 100px;
  text-align: center;
  background:
    linear-gradient(rgba(181, 18, 27, 0.12), rgba(181, 18, 27, 0.12)), var(--bg);
}
.cta p {
  max-width: 600px;
  margin: 0 auto 25px;
}
.site-footer {
  background: #090707;
  border-top: 1px solid var(--border);
  padding-top: 45px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.footer-content .logo {
  display: inline-flex;
  align-items: center;
}
.footer-content .logo img {
  display: block;
  width: auto;
  height: 64px;
  object-fit: contain;
}
.footer-content p {
  color: var(--muted);
  margin-top: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--red);
}
.footer-bottom {
  margin-top: 40px;
  padding-block: 20px;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  color: var(--muted);
  font-size: 0.85rem;
}
@media (max-width: 900px) {
  :root {
    --pad: 70px;
  }
  .nav-menu {
    gap: 16px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .two-column {
    gap: 40px;
  }
}
@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 30px), var(--max));
  }
  .menu-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-menu li {
    border-top: 1px solid var(--border);
  }
  .nav-menu a {
    display: block;
    padding: 15px 20px;
  }
  .hero-content {
    padding-block: 80px;
  }
  .hero {
    background-image:
      linear-gradient(
        90deg,
        rgba(15, 11, 11, 0.97),
        rgba(15, 11, 11, 0.78)
      ),
      radial-gradient(
        circle at 75% 45%,
        rgba(181, 18, 27, 0.3),
        transparent 55%
      ),
      url("../assets/icons/ICON%20AM%20GYM.png");
    background-position: center, center, right -18vw center;
    background-size: cover, cover, auto 68%;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .two-column,
  .cards-grid,
  .contact-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .footer-content {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: 10px;
  }
}


/* CONTACTO: DISEÑO CENTRADO */
.contact-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 50% 35%,
      rgba(181, 18, 27, 0.10),
      transparent 60%
    ),
    var(--bg2);
}

.contact-heading {
  max-width: 650px;
  margin: 0 auto 45px;
  text-align: center;
}

.contact-heading .section-label {
  margin-bottom: 16px;
}

.contact-heading h2 {
  margin-bottom: 16px;
}

.contact-heading > p:last-child {
  max-width: 520px;
  margin-inline: auto;
  color: var(--muted);
}

/* TARJETAS DE REDES */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 280px));
  justify-content: center;
  gap: 24px;
  max-width: 650px;
  margin-inline: auto;
}

.social-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 24px;
  min-height: 265px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Línea roja superior */
.social-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.social-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 14px 32px rgba(181, 18, 27, 0.12);
}

.social-card:hover::before {
  transform: scaleX(1);
}

/* Iconos */
.social-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 4px;
  background: #302020;
  border: 1px solid #493030;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.social-icon svg {
  width: 29px;
  height: 29px;
  fill: #fff;
}

.instagram .social-icon svg {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.instagram .social-icon .instagram-dot {
  fill: #fff;
  stroke: none;
}

.social-card:hover .social-icon {
  background: var(--red);
}

.social-name {
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 800;
}

.social-handle {
  color: var(--muted);
  font-size: 0.95rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  transition: background 0.25s ease;
}

.social-card:hover .social-link {
  background: var(--red2);
}

/* TECLADO Y ACCESIBILIDAD */
.social-card:focus-visible {
  outline: 2px solid var(--red2);
  outline-offset: 4px;
}

/* TABLET Y MÓVIL */
@media (max-width: 600px) {
  .contact-heading {
    margin-bottom: 32px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 340px;
    gap: 18px;
  }

  .social-card {
    min-height: 245px;
    padding: 28px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-card,
  .social-card::before,
  .social-icon,
  .social-link {
    transition: none;
  }

  .social-card:hover {
    transform: none;
  }
}


/* ===== SERVICIOS AM GYM ===== */

.services-section {
  padding: 90px 20px 70px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

.services-header {
  max-width: 1200px;
  margin: 0 auto 35px;
  text-align: center;
}

.services-header .section-tag {
  color: var(--red2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 3px;
}

.services-header h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
}

.services-header h2 span {
  color: var(--red2);
}

.services-header p {
  color: var(--muted);
  font-size: 1rem;
}

.services-carousel {
  position: relative;
  width: 100%;
  max-width: 1100px;
  height: 440px;
  margin: 0 auto;
  touch-action: pan-y;
  user-select: none;
}

.services-track {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1000px;
}

.gym-service-card {
  position: absolute;
  top: 15px;
  left: 50%;
  width: min(72%, 350px);
  height: 390px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);

  transform:
    translateX(calc(-50% + var(--offset, 0) * 68%))
    scale(var(--scale, 1));

  opacity: var(--opacity, 1);
  z-index: var(--z, 1);
  transition:
    transform 0.45s ease,
    opacity 0.45s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;

  cursor: grab;
  will-change: transform;
}

.gym-service-card:active {
  cursor: grabbing;
}

.gym-service-card[data-active="true"] {
  border-color: var(--red);
  box-shadow: 0 18px 45px rgba(181, 18, 27, 0.2);
}

.gym-service-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.gym-service-card .service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 8, 0.02) 15%,
    rgba(10, 8, 8, 0.3) 43%,
    rgba(10, 8, 8, 0.96) 100%
  );
}

.gym-service-card .service-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 23px;
}

.service-number {
  display: inline-block;
  margin-bottom: 12px;
  color: #ff414b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.service-content h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.15;
}

.service-content p {
  margin: 0;
  color: #dedada;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Tabletas */
@media (max-width: 800px) {
  .services-section {
    padding: 70px 12px 55px;
  }

  .services-carousel {
    height: 400px;
  }

  .gym-service-card {
    width: min(76%, 320px);
    height: 355px;
    transform:
      translateX(calc(-50% + var(--offset, 0) * 65%))
      scale(var(--scale, 1));
  }
}

/* Celulares */
@media (max-width: 480px) {
  .services-header {
    margin-bottom: 25px;
  }

  .services-header p {
    max-width: 290px;
    margin: 0 auto;
    line-height: 1.6;
  }

  .services-carousel {
    height: 365px;
  }

  .gym-service-card {
    top: 10px;
    width: 78%;
    height: 325px;
    transform:
      translateX(calc(-50% + var(--offset, 0) * 57%))
      scale(var(--scale, 1));
  }

  .gym-service-card .service-content {
    padding: 20px 17px;
  }

  .service-content p {
    font-size: 0.85rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .gym-service-card {
    transition: none;
  }
}


.about-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(
      ellipse at 10% 20%,
      rgba(181, 18, 27, 0.08),
      transparent 45%
    ),
    var(--bg2);
}

.about-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(30px, 5vw, 64px);
  margin-bottom: clamp(45px, 7vw, 72px);
}

.about-image {
  position: relative;
  height: clamp(300px, 38vw, 460px);
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(10, 8, 8, 0.8)
  );
  pointer-events: none;
}

.about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.04);
}

.about-image-label {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 24px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.about-description {
  width: min(100%, 850px);
  margin-inline: auto;
}

.about-kicker {
  margin-bottom: 14px;
  color: var(--red2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.about-description h2 {
  max-width: 14ch;
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  line-height: 1.15;
}

.about-description > p:not(.about-kicker) {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.85;
}

.about-description .btn {
  margin-top: 12px;
}

.about-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 20px;
}

.principle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.principle-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45px;
  height: 3px;
  background: var(--red2);
  transition: width 0.3s ease;
}

.principle-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
  box-shadow: 0 12px 30px rgba(181, 18, 27, 0.1);
}

.principle-card:hover::before {
  width: 100%;
}

.principle-number {
  display: block;
  margin-bottom: 18px;
  color: var(--red2);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.principle-card h3 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.3;
}

.principle-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* Tabletas */

@media (max-width: 900px) {
  .about-feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principle-card {
    padding: 27px;
  }
}

/* Celulares */

@media (max-width: 600px) {
  .about-feature {
    gap: 30px;
    margin-bottom: 40px;
  }

  .about-image {
    height: 280px;
  }

  .about-description h2 {
    font-size: 1.9rem;
  }

  .about-description .btn {
    width: 100%;
  }

  .about-principles {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .principle-card {
    padding: 25px;
  }
}

/* Respeto a la preferencia de movimiento */

@media (prefers-reduced-motion: reduce) {
  .about-image img,
  .principle-card,
  .principle-card::before {
    transition: none;
  }

  .about-image:hover img,
  .principle-card:hover {
    transform: none;
  }
}
