/* VARIABLES Y RESET */
:root {
  --primary-color: #ccff00; /* Verde Pádel */
  --bg-dark: #0a0a0a;
  --bg-card: #1a1a1a;
  --text-light: #ffffff;
  --text-gray: #a0a0a0;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --max-width: 1366px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
}

.section__title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section__title--center {
  text-align: center;
}

.highlight {
  color: var(--primary-color);
}

/* BOTONES */
.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
  transition: var(--transition);
}

.btn--primary {
  background-color: var(--primary-color);
  color: black;
}

.btn--primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.4);
}

footer {
  padding: 3rem 2rem;
  text-align: center;
  background-color: var(--bg-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  opacity: 0.4;
}
footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer__logo img {
  height: 50px;
}

/* NAVEGACIÓN (Burger Always) */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  /* display: flex;
  justify-content: space-between;
  align-items: center; */
  z-index: 1000;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
  margin: auto;
  transition: opacity 0.5s ease;
}

.nav-container {
  max-width: var(--max-width);
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto;
  transition: opacity 0.5s ease;
}

.nav__logo img {
  height: 50px;
  transition: opacity 0.5s ease;
}

.nav__logo2 img {
  width: 315px;
  display: none;
  transition: opacity 0.5s ease;
}

.nav__burger {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav__burger span {
  display: block;
  width: 30px;
  height: 3px;
  background: var(--primary-color);
  transition: var(--transition);
}

/* Estado abierto del burger */
.nav__burger--active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav__burger--active span:nth-child(2) {
  opacity: 0;
}
.nav__burger--active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
  transition: 0.5s ease-in-out;
}

.nav__menu--active {
  right: 0;
}

.nav__link {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  transition: var(--primary-color);
}

.nav__link:hover {
  color: var(--primary-color);
}

/* HERO */
.hero {
  height: 100vh;
  background: url("paddle-tennis-3.webp") left/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6),
    rgba(10, 10, 10, 1)
  );
}

.hero__content {
  position: relative;
  z-index: 10;
}

.hero__title {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1;
}
.hero__subtitle {
  margin-bottom: 1rem;
}

/* SERVICIOS */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services__card {
  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.services__card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
}

.services__icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* ABOUT */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image img {
  width: 100%;
  border-radius: 10px;
  filter: grayscale(0.75);
  transition: var(--transition);
}

.about__image img:hover {
  filter: grayscale(0);
}

.about__list {
  list-style: none;
  margin-top: 2rem;
}

.about__list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about__list i {
  color: var(--primary-color);
}

/* CONTACTO */
.contact__wrapper {
  max-width: calc(var(--max-width) / 2);
  margin: 0 auto;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 10px;
}

.contact__input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: #2a2a2a;
  border: 1px solid #333;
  border-radius: 4px;
  color: white;
}

.contact__input--textarea {
  height: 150px;
  resize: none;
}

.contact__info__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  padding-block: 3em;
  justify-items: center;
}
.contact__info-horario {
  width: 100%;
  text-align: right;
}
.contact__info-horario span {
  font-style: italic;
  opacity: 0.5;
}
.contact__info-phone {
  text-align: left;
  width: 100%;
}

.contact__info__wrapper h3 {
  color: var(--primary-color);
  font-size: 1.17em;
}

/* ANIMACIONES DE SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s ease-out;
}

.reveal-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s ease-out;
}

.active {
  opacity: 1;
  transform: translate(0);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  footer {
    flex-direction: column;
    gap: 1rem;
  }
  .footer__legal {
    order: 0;
  }
  .footer__logo {
    order: 1;
  }
  .footer__copyright {
    order: 2;
  }
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 3rem;
  }
  .about__grid {
    grid-template-columns: 1fr;
  }
  .section__title {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .contact__info__wrapper {
    grid-template-columns: 1fr;
    gap: 2em;
    padding-block: 3em;
    justify-items: center;
  }
  .contact__info-horario {
    text-align: center;
  }
  .contact__info-phone {
    text-align: center;
  }
  .nav{
    padding: 1rem;
  }
  .nav__logo2 img {
  width: 250px;
}
}

/* TESTIMONIALS CAROUSEL */
.testimonials__carousel {
  overflow: hidden;
  padding: 2rem 0;
  position: relative;
  width: 100%;
}

/* El track contendrá los testimonios y se moverá infinitamente */
.testimonials__track {
  display: flex;
  width: calc(
    350px * 8
  ); /* Ancho de tarjeta * número de tarjetas (originales + clones) */
  animation: scroll 50s linear infinite;
}

.testimonials__track:hover {
  animation-play-state: paused; /* Se pausa cuando el usuario pone el ratón encima */
}

.testimonial-card {
  width: 350px;
  background: var(--bg-card);
  padding: 2rem;
  margin: 0 1rem;
  border-radius: 10px;
  border: 1px solid #333;
  flex-shrink: 0;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.testimonial-card__stars {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.testimonial-card__text {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  display: block;
  font-weight: bold;
  color: var(--primary-color);
}

/* Animación de movimiento */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(
      calc(-350px * 4)
    ); /* Se mueve el ancho de las 4 tarjetas originales */
  }
}
