/* Genova Black - 900 Normal */
@font-face {
  font-family: 'Genova';
  src: url('/fonts/GenovaBlack.woff2') format('woff2'),
       url('/fonts/GenovaBlack.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Genova Regular - 400 Normal */
@font-face {
  font-family: 'Genova';
  src: url('/fonts/GenovaRegular.woff2') format('woff2'),
       url('/fonts/GenovaRegular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Genova Medium - 500 Normal */
@font-face {
  font-family: 'Genova';
  src: url('/fonts/GenovaMedium.woff2') format('woff2'),
       url('/fonts/GenovaMedium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Genova Thin - 100 Normal */
@font-face {
  font-family: 'Genova';
  src: url('/fonts/GenovaThin.woff2') format('woff2'),
       url('/fonts/GenovaThin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

/* Genova Italic - 400 Italic */
@font-face {
  font-family: 'Genova';
  src: url('/fonts/GenovaItalic.woff2') format('woff2'),
       url('/fonts/GenovaItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Gilda Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/GildaDisplay.ttf') format('truetype');
}

/* Base styles */ 
:root {
  --padel-blue: #0488bc;
  --padel-yellow: #e2d717;
  --white: #ffffff;
  --black: #1d1d1b;
  --transparent: transparent;
  --font-primary: 'Genova', sans-serif;
  --font-secondary: 'Gilda Display', serif;

    /* Spacing system */
    --spacing-1: 8px;
    --spacing-2: 16px;
    --spacing-3: 24px;
    --spacing-4: 32px;
    --spacing-5: 48px;
    --spacing-6: 64px;
    --spacing-7: 96px;
    --spacing-8: 128px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Border radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

body {
  font-family: var(--font-primary);
  background-color: var(--padel-blue);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

.label, .quote {
  font-family: var(--font-secondary);
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* Background pattern */ 
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  z-index: 1;
  pointer-events: none;
}

/* Gradient overlay at bottom */
.bg-gradient {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--padel-blue), transparent);
  z-index: 5;
  pointer-events: none;
}

/* Padel Court Styles */
.padel-court {
  width: 80%;
  height: 30vh;
  max-height: 500px;
  margin: 0 auto 30px;
  perspective: 1000px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  position: relative;
  margin-top: 10px;
}

.court-half {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background-color: rgba(8, 47, 73, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
 
}

.left-court {
  left: 0;
  border-right: none;
  transform: translateX(-100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.right-court {
  right: 0;
  border-left: none;
  transform: translateX(100%);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.court-net-container {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-50%);
  z-index: 5;
}

.court-net {
  width: 4px;
  height: 0%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3),
    rgba(255, 255, 255, 0.3) 10px,
    transparent 10px,
    transparent 20px
  );
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
  opacity: 0;
}

.logo-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  z-index: 10;
}

.logo {
  width: 100%;
  opacity: 0;
  transform: scale(0.8) translateY(-20px);
  filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.95));
}

.padel-ball {
  width: 24px;
  height: 24px;
  background-color: var(--padel-yellow);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 40%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px rgba(255, 206, 0, 0.6),
              inset -4px -4px 10px rgba(0, 0, 0, 0.3);
  z-index: 20;
  opacity: 0;
}

/* Content Section Styles */
.content-section {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px;
}

.main-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 15px;
}

.word {
  display: inline-block;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(10px);
}

.highlight-yellow {
  color: var(--padel-yellow);
  position: relative;
  text-decoration:  none;
}

.highlight-yellow::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--padel-yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
}

.highlight-yellow:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* CTA Section Styles */
.cta-section {
  max-width: 600px;
  margin: 40px auto 60px;
  padding: 0 15px;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cta-button {
  background-color: var(--padel-yellow);
  color: var(--padel-blue);
  font-weight: 700;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 200px;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.cta-button:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

.cta-button i {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 206, 0, 0.4);
}

.cta-button:active {
  transform: scale(0.98);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover i {
  transform: scale(1.1);
}

/* Secondary CTA with subtle variation */
.cta-secondary {
  background-color: transparent;
  border: 2px solid var(--padel-yellow);
  color: var(--padel-yellow);
}

.cta-secondary:hover {
  background-color: var(--padel-yellow);
  color: var(--padel-blue);
  box-shadow: 0 6px 20px rgba(255, 206, 0, 0.3);
}

/* Newsletter Form Styles */
.newsletter-section {
  max-width: 550px;
  margin: 0 auto 80px;
  padding: 0 15px;
}

.newsletter-form {
  opacity: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}

.newsletter-input {
  background-color: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  padding: 15px 20px;
  border-radius: 8px;
  outline: none;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
  border-color: var(--padel-yellow);
  box-shadow: 0 0 0 2px rgba(255, 206, 0, 0.3);
}

.pulse-border {
  animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
  0% { box-shadow: 0 0 0 0 rgba(255, 206, 0, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(255, 206, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 206, 0, 0); }
}

.newsletter-button {
  background-color: var(--padel-yellow);
  color: var(--padel-blue);
  font-weight: 700;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.newsletter-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.newsletter-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 206, 0, 0.4);
}

.newsletter-button:active {
  transform: scale(0.98);
}

.newsletter-button:hover::before {
  left: 100%;
}

/* Social Icons Styles */
.social-icons-container {
  position: fixed;
  z-index: 30;
  display: flex;
}

.social-icon {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  margin: 0 15px;
  opacity: 0;
  transform: translateX(20px);
}

.social-icon:hover {
  color: var(--padel-yellow);
  transform: scale(1.3);
  text-shadow: 0 0 20px rgba(255, 206, 0, 0.6);
}

/* Responsive Styles */
@media (min-width: 768px) {
  
  .newsletter-input {
    flex: 1;
    margin-right: 15px;
    margin-bottom: 0;
  }
  
  .social-icons-container {
    top: 33vh;
    right: 40px;
    flex-direction: column;
  }
  
  .social-icon {
    margin: 15px 0;
  }
  
  .logo-container {
    width: 320px;
  }

  .main-title {
    font-size: 3.5rem;
  }
  
  .subtitle {
    font-size: 1.3rem;
  }

  .cta-buttons {
    flex-wrap: nowrap;
  }
}

@media (max-width: 767px) {
  .social-icons-container {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
  }
  
  .padel-court {
    height: 20vh;
	margin-bottom: 10px;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .cta-button {
    min-width: 280px;
    max-width: 100%;
  }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-4);
    position: relative;
    box-shadow: var(--shadow-xl);
	color: #000;
}

.close-modal, .close-btn {
    cursor: pointer;
    transition: color var(--transition-fast);
}

.close-modal {
    position: absolute;
    top: var(--spacing-2);
    right: var(--spacing-2);
    font-size: 1.5rem;
    color: var(--color-gray-600);
}

.close-modal:hover {
    color: var(--color-dark);
}

.success-icon {
    margin: var(--spacing-3) auto;
    color: var(--color-success-500);
    text-align: center;
    animation: popIn 0.5s ease;
}

/* Modal overlay for data treatment */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: var(--spacing-2);
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.modal-overlay .close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--color-gray-600);
}

.modal-overlay .close-btn:hover {
    color: var(--color-dark);
}

.modal-overlay h2 {
    margin-top: 0;
    margin-bottom: var(--spacing-3);
}

.modal-overlay ul {
    margin: 0 0 var(--spacing-2) var(--spacing-3);
    padding-left: var(--spacing-2);
}

.modal-overlay ul li {
    margin-bottom: 8px;
}

.label {
    font-size: 0.8rem;
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    .label {
        font-size: 1rem;
    }
}

.language-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.tab-btn {
    background-color: #eee;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    margin: 0 0.5rem;
    border-radius: 5px;
}

.tab-btn.active {
    background-color: #0488bc;
    color: white;
}

.lang-tab-content {
    display: none;
}

.lang-tab-content.active {
    display: block;
}