@font-face {
  font-family: "Hero";
  src: url("./fonts/Hero-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Hero";
  src: url("./fonts/Hero-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Hero";
  src: url("./fonts/Hero-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* --- Selector global por variable CSS (default: Hero) --- */
:root { --font-sans: "Hero"; }
.use-hero   { --font-sans: "Hero"; }
.use-cabinet{ --font-sans: "Cabinet Grotesk"; }
.use-public { --font-sans: "Public Sans"; }

/* Custom styles for fullpage.js */
#fullpage {
  z-index: 1;
}

.fp-enabled body {
  overflow: hidden;
}

/* Estilos para móvil - scroll normal */
body.mobile-scroll {
  overflow: auto !important;
}

body.mobile-scroll #fullpage {
  height: auto !important;
}

body.mobile-scroll .section {
  height: auto !important;
  min-height: 100vh;
  position: relative !important;
  transform: none !important;
}

/* Tennis ball styling */
.tennis-ball-bg {
  position: fixed;
  top: 45%;
  left: 50%;
  width: 130px;
  height: 130px;
  transform: translate(-50%, -50%);
  z-index: 1;
  /* Debajo del contenido pero encima del fondo gris */
  background-image: url("images/bola.webp");
  /* Aquí va tu imagen */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 220ms ease, transform 220ms ease;
  will-change: opacity, transform;
}

.tennis-ball-bg.is-swapping {
  opacity: 0 !important; /* override inline opacity set by JS */
  transform: translate(-50%, -50%) scale(0.88) rotate(-14deg);
}

/* Variant: Tennis (default image) */
.tennis-ball-bg.ball-tennis {
  background-image: url("images/bola.webp");
}

/* Variant: Pickleball (CSS-drawn) */
.tennis-ball-bg.ball-pickleball {
  border-radius: 9999px;
  background-image: url("images/bola-pickeball3.png");
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center;
}

.tennis-ball-bg.ball-pickleball::before {
  content: none;
}

/* Responsive tennis ball sizes */
@media (min-width: 640px) {
  .tennis-ball-bg {
    width: 190px;
    height: 190px;
  }
}

@media (min-width: 768px) {
  .tennis-ball-bg {
    width: 230px;
    height: 230px;
  }
}

@media (min-width: 1024px) {
  .tennis-ball-bg {
    width: 220px;
    height: 220px;
  }
}

@media (min-width: 1280px) {
  .tennis-ball-bg {
    width: 290px;
    height: 290px;
  }
}

.tennis-ball::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 3px;
  background: white;
  border-radius: 2px;
  transform: translateY(-50%);
}

.tennis-ball::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: white;
  border-radius: 2px;
  transform: translateX(-50%) rotate(45deg);
}

/* Content layer above tennis ball */
.content-layer {
  position: relative;
  z-index: 10;
}

/* Custom navigation dots styling */
#fp-nav ul li a span {
  background: #cbd5e1 !important;
  width: 12px !important;
  height: 12px !important;
  margin: 0 !important;
  border: none !important;
  transition: background-color 0.3s ease !important;
}

#fp-nav ul li a.active span,
#fp-nav ul li:hover a.active span {
  background: #3b82f6 !important;
  width: 12px !important;
  height: 12px !important;
}

#fp-nav ul li:hover a span {
  background: #3b82f6 !important;
  width: 12px !important;
  height: 12px !important;
}

#fp-nav {
  left: 30px !important;
  right: auto !important;
}

#fp-nav ul li {
  margin: 13px 0 !important;
  position: relative !important;
}

#fp-nav ul li a {
  width: 12px !important;
  height: 12px !important;
  display: block !important;
  position: relative !important;
}

/* Header responsive styling */
header {
  transition: all 0.3s ease;
}

/* Navigation link styling */
.nav-link {
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #3b82f6;
}

.nav-link.active {
  color: #3b82f6;
  font-weight: 600;
}

/* Mobile menu button styling */
#mobile-menu-toggle {
  transition: all 0.3s ease;
  border-radius: 4px;
}

#mobile-menu-toggle:hover {
  background-color: #f3f4f6;
  transform: scale(1.05);
}

#mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Responsive navigation spacing for tablets */
@media (min-width: 768px) and (max-width: 910px) {
  .nav-link {
    font-size: 0.8rem;
    padding: 0.125rem 0.125rem;
    letter-spacing: -0.025em;
  }
}

@media (min-width: 911px) and (max-width: 1023px) {
  .nav-link {
    font-size: 0.875rem;
    padding: 0.25rem 0.125rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-link {
    font-size: 0.9rem;
  }
}

/* Demo button styling */
.demo-button,
.how-it-works-button {
  background: linear-gradient(135deg, #a3e635 0%, #65a30d 100%);
  transition: all 0.3s ease;
}

.demo-button:hover,
.how-it-works-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(163, 230, 53, 0.3);
}

/* Fixed footer */
.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  z-index: 30;
  pointer-events: none;
}

.fixed-footer>* {
  pointer-events: auto;
}

.social-icon {
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-2px);
  color: #3b82f6;
}

/* Feature list styling */
.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.6s ease forwards;
}

.feature-item:nth-child(1) {
  animation-delay: 0.2s;
}

.feature-item:nth-child(2) {
  animation-delay: 0.4s;
}

.feature-item:nth-child(3) {
  animation-delay: 0.6s;
}

.feature-item:nth-child(4) {
  animation-delay: 0.8s;
}

.feature-item:nth-child(5) {
  animation-delay: 1s;
}

.feature-item:nth-child(6) {
  animation-delay: 1.2s;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a3e635;
  margin-right: 12px;
  flex-shrink: 0;
}

/* Responsive feature dot sizing */
@media (min-width: 640px) {
  .feature-dot {
    width: 8px;
    height: 8px;
    margin-right: 16px;
  }
}

@media (min-width: 768px) {
  .feature-dot {
    width: 10px;
    height: 10px;
    margin-right: 18px;
  }
}

/* Hide default scrollbar */
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  #fp-nav {
    display: none !important;
  }
}

/* Responsive improvements for section 2 */
@media (max-width: 480px) {
  .content-layer {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .feature-item span {
    font-size: 0.75rem !important;
    line-height: 1.2;
  }
}

@media (min-width: 481px) and (max-width: 640px) {
  .feature-item span {
    font-size: 0.875rem !important;
  }
}

/* Better spacing for medium screens */
@media (min-width: 768px) and (max-width: 1023px) {
  .content-layer {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}

/* Extra large screens optimization */
@media (min-width: 1536px) {
  .content-layer {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
  }
  
  /* Sección de contacto: quitar padding derecho para que el formulario se pegue */
  .contact-section .content-layer {
    padding-right: 0 !important;
  }
}

/* Membrete fijo */
.sports-banner {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  background: transparent;
  color: #cdcfd29d;
  padding: 0px 0;
  z-index: -999999 !important;
  overflow: hidden;
  white-space: nowrap;
}

.sports-banner-content {
  display: inline-block;
  animation: scrollBanner 45s linear infinite;
  font-weight: 600;
  font-size: 75px;
  z-index: -999999 !important;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes scrollBanner {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

/*fin membrete fijo*/

/* Estilos específicos para la sección de contacto - Solo para versión EU (Estados Unidos) */
body.lang-eu.contact-active .nav-link {
  color: white !important;
}

body.lang-eu.contact-active .nav-link:hover {
  color: #a3e635 !important;
}

body.lang-eu.contact-active .nav-link.active {
  color: #a3e635 !important;
}

/* Footer en sección de contacto - Solo para versión EU */
body.lang-eu.contact-active .fixed-footer {
  color: white !important;
}

body.lang-eu.contact-active .fixed-footer .text-gray-600 {
  color: white !important;
}

body.lang-eu.contact-active .fixed-footer .social-icon {
  color: white !important;
}

body.lang-eu.contact-active .fixed-footer .social-icon:hover {
  color: #a3e635 !important;
}

/* Header elements in contact section - Solo para versión EU */
body.lang-eu.contact-active header .text-gray-700 {
  color: white !important;
}

body.lang-eu.contact-active .contact-logo {
  color: white !important;
}

body.lang-eu.contact-active .contact-lang-selector {
  color: white !important;
}

body.lang-eu.contact-active .contact-lang-icon {
  color: white !important;
}

/* User access button in contact section - Solo para versión EU */
body.lang-eu.contact-active .header-user-access {
  color: white !important;
}

body.lang-eu.contact-active .header-user-access:hover {
  color: #a3e635 !important;
}

/* Mobile menu toggle button in contact section - Solo para versión EU */
body.lang-eu.contact-active #mobile-menu-toggle {
  color: white !important;
}

/* Asegurar que el botón del menú móvil en ES mantenga su color */
body.lang-es #mobile-menu-toggle {
  color: #023059 !important;
}

/* Mobile Menu Styles */
#mobile-menu {
  transition: opacity 0.3s ease;
}

#mobile-menu-panel {
  transition: transform 0.3s ease-in-out;
}

.mobile-nav-link {
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 2px 0;
}

@media (min-width: 640px) {
  .mobile-nav-link {
    padding: 12px 16px;
    margin: 4px 0;
  }
}

.mobile-nav-link:hover {
  background-color: #f3f4f6;
  transform: translateX(4px);
}

.mobile-nav-link.active {
  color: #1e3a8a !important;
  background-color: #eff6ff;
  font-weight: 600;
}

/* Prevent body scroll when mobile menu is open */
body.overflow-hidden {
  overflow: hidden !important;
}

/* Mobile menu responsive adjustments */
@media (max-width: 320px) {
  #mobile-menu-panel {
    width: 100vw;
  }
}

@media (min-width: 321px) and (max-width: 480px) {
  #mobile-menu-panel {
    width: 280px;
  }
}

@media (min-width: 481px) and (max-width: 640px) {
  #mobile-menu-panel {
    width: 320px;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  #mobile-menu-panel {
    width: 360px;
  }
}

/* Header responsive adjustments */
@media (max-width: 375px) {
  header .max-w-7xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  header h1 {
    font-size: 1.125rem;
  }
}

@media (min-width: 376px) and (max-width: 640px) {
  header .max-w-7xl {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Very small screens - hide some elements */
@media (max-width: 320px) {
  header .hidden.sm\\:flex {
    display: none !important;
  }
  
  header .space-x-2 {
    gap: 0.25rem;
  }
}