
html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #000;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: #111;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

.logo img {
  width: 60px;
  height: auto;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  position: relative;
}

nav a:hover {
  color: #09e562;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background-color: #09e562;
  border-radius: 5px;
  transition: width 0.3s ease-out;
}

nav a:hover::after {
  width: 100%;
}

.btn {
  background-color: #09e562;
  color: black;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn:hover {
  background-color: #07c750;
  transform: translateY(-2px);
}

.container {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.text h2 {
  color: #09e562;
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-family: 'TSPPUMAPORTUGAL2025', sans-serif; 
  letter-spacing: 3px; 
}

.text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-family: 'TSPPUMAPORTUGAL2025', sans-serif; 
  letter-spacing: 1px; 

  background: linear-gradient(
    to right,
    #09e562 0%,         /* Verde inicial */
    #c7ffda 25%,        /* Azul principal */
    #00ff73 50%,        /* Tono claro (casi blanco verdoso) para el brillo */
    #c7ffde 75%,        /* Regreso al azul principal */
    #09e562 100%        /* Regreso al verde inicial para un ciclo suave */
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  background-size: 400% auto;
  animation: shine-color-sweep 8s linear infinite;
}

@keyframes shine-color-sweep {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: -200% center;
  }
}

/* --- Flecha de Desplazamiento --- */
.scroll-down-arrow {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

.scroll-down-arrow a {
  font-size: 2.5rem;
  color: #09e562;
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-down-arrow a:hover {
  color: #07c750;
  transform: translateY(5px);
  animation: none;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* --- Sección de Tarjetas de Jugadores --- */
.player-cards-section {
  padding: 60px 40px;
  background-color: #111;
  text-align: center;
}

.player-cards-section .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  position: relative;
  min-height: 280px; 
  align-items: flex-start; 
  transition: all 0.5s ease-out;
}


.player-cards-section.has-expanded-card .player-card:not(.is-expanded) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s ease-out;
}

.player-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  width: 300px;
  min-height: 200px; 
  display: flex; 
  flex-direction: column;
  justify-content: space-between; /* Para empujar el botón de cerrar hacia abajo */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  /* Transiciones para todos los cambios de estilo */
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, 
              width 0.5s ease, min-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease, z-index 0s;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative; /* Necesario para el z-index y para la expansión */
  z-index: 1; /* Valor por defecto */
}

.player-card h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #09e562;
}

.player-card p {
  font-size: 1rem;
  color: #ccc;
}


.player-card .card-summary {
    transition: opacity 0.3s ease, height 0.3s ease;
    height: auto; /* Altura automática por defecto */
    overflow: hidden;
    pointer-events: auto;
}


.player-card .card-details {
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.5s ease;
    pointer-events: none; /* No clickeable cuando está oculto */
}


.player-card:not(.is-expanded):hover {
  background-color: #09e562;
  color: #000;
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(9, 229, 98, 0.5);
}

.player-card:not(.is-expanded):hover h3,
.player-card:not(.is-expanded):hover p {
  color: #000;
}


.player-card.is-expanded {
  position: absolute; 
  top: 0;
  left: 50%; /* Centrar horizontalmente */
  transform: translateX(-50%) scale(1); /* Desplaza para centrar y asegura escala 1 */
  width: 90%; /* Toma un gran ancho del contenedor */
  max-width: 800px; /* Limita el ancho máximo en pantallas grandes */
  min-height: 400px; /* Altura mínima mayor al expandir */
  height: auto; /* Permite que la altura se ajuste al contenido si es más largo */
  z-index: 20; /* Se coloca por encima de todo lo demás */
  background-color: #222; /* Fondo ligeramente más oscuro */
  padding: 40px; /* Más padding para el contenido expandido */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); /* Sombra fuerte */
  display: flex; /* Mantiene el flexbox */
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start; /* Alinea el contenido a la izquierda */
  overflow-y: auto; /* Permite desplazamiento si el contenido es muy largo */
  transition: transform 0.5s ease, background-color 0.5s ease, width 0.5s ease, min-height 0.5s ease, padding 0.5s ease, z-index 0s 0.5s; /* z-index cambia al final */
}

/* Ocultar el resumen y mostrar los detalles cuando la tarjeta está expandida */
.player-card.is-expanded .card-summary {
    opacity: 0;
    height: 0;
    pointer-events: none;
}

.player-card.is-expanded .card-details {
    opacity: 1;
    height: auto; 
    pointer-events: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.player-card.is-expanded h3 {
    color: #09e562;
    font-size: 2rem; 
    width: 100%;
    text-align: left;
    margin-bottom: 15px;
}
.player-card.is-expanded h4 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
    text-align: left;
}
.player-card.is-expanded p {
    color: #eee;
    line-height: 1.8;
    text-align: left;
}


.close-card-btn {
  background-color: #09e562;
  color: black;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-end; 
  margin-top: 20px;
}

.close-card-btn:hover {
  background-color: #07c750;
  transform: translateY(-2px);
}

/* Ajustes para el contenedor de las tarjetas cuando una está expandida */
.player-cards-section.has-expanded-card .container {
    justify-content: center; 
    min-height: 400px; 
    align-items: center; 
}



@media (max-width: 768px) {

  .player-cards-section .container {
    flex-direction: column;
    align-items: center;
  }

  .player-card {
    width: 90%;
    max-width: 350px;
  }

  .player-card.is-expanded {
      width: 95%; 
      min-height: 70vh; 
      padding: 20px;
  }

  .player-card.is-expanded h3 {
      font-size: 1.8rem;
  }
  .player-card.is-expanded h4 {
      font-size: 1.3rem;
  }
}

.table-container {
  margin-top: 40px;
  width: 100%;
  overflow-x: auto;
}

.table-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: #09e562;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background-color: #111;
  border-radius: 10px;
  overflow: hidden;
}

thead {
  background-color: #1a1a1a;
}

th {
  padding: 15px 10px;
  text-align: center;
  font-weight: bold;
  border-bottom: 2px solid #09e562;
  color: #09e562;
  transition: all 0.2s;
}

td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #333;
  transition: all 0.2s;
}

tr {
  transition: all 0.2s;
}

tr:hover {
  background-color: #09e562;
  color: #000;
  font-weight: bold;
  transform: scale(1.01);
}

tr:hover td {
  color: #000;
}

thead:hover th {
  color: #000;
}

/* --- Logo de fondo apagado --- */
.text {
  position: relative; 
}

.background-logo {
  position: absolute;
  right: 0; 
  top: 14%; 
  transform: translateY(-50%); 
  opacity: 0.05; 
  z-index: 0; 
  pointer-events: none; 
}

.background-logo img {
  width: 250px; 
  height: auto;
}

/* --- Media query para ajustar el logo en móviles --- */
@media (max-width: 768px) {
  .background-logo {
    display: none; 
  }
  /* ... tus estilos de media query existentes ... */
}

.ecommerce-container .text h1 {
}

.ecommerce-container .intro-paragraph {
    font-size: 1.1rem;
    color: #eee;
    max-width: 700px;
    margin: 0 auto 50px auto;
    line-height: 1.6;
}

.jersey-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  padding: 30px;
  width: 300px;
  min-height: 280px; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, 
              width 0.5s ease, min-height 0.5s ease, padding 0.5s ease, opacity 0.5s ease, z-index 0s;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  z-index: 1;
  text-align: center;
}

.jersey-card:not(.is-expanded):hover {
  background-color: #09e562; /* Verde */
  color: #000; /* Texto oscuro */
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(9, 229, 98, 0.5);
}

.jersey-card:not(.is-expanded):hover h3,
.jersey-card:not(.is-expanded):hover p,
.jersey-card:not(.is-expanded):hover .price,
.jersey-card:not(.is-expanded):hover .availability {
  color: #000;
}


.jersey-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #09e562;
}

.jersey-img {
  max-width: 100%;
  height: 120px; 
  object-fit: contain; 
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.jersey-card:not(.is-expanded):hover .jersey-img {
    transform: scale(1.1); 
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 5px;
}

.availability {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 5px;
}

.jersey-card.is-expanded {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(1);
  width: 90%;
  max-width: 800px;
  min-height: 500px; 
  height: auto;
  z-index: 20;
  background-color: #222;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow-y: auto;
  transition: transform 0.5s ease, background-color 0.5s ease, width 0.5s ease, min-height 0.5s ease, padding 0.5s ease, z-index 0s 0.5s;
  text-align: left; 
}

.jersey-card.is-expanded .card-summary {
    opacity: 0;
    height: 0;
    pointer-events: none;
}

.jersey-card.is-expanded .card-details {
    opacity: 1;
    height: auto;
    pointer-events: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.jersey-card.is-expanded h4 {
    font-size: 1.8rem;
    color: #09e562;
    margin-bottom: 15px;
    width: 100%;
    text-align: center;
}

.jersey-img-large {
  max-width: 80%; 
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px auto; 
  display: block;
}

.jersey-card.is-expanded p {
    color: #eee;
    line-height: 1.7;
    margin-bottom: 10px;
}

.jersey-card.is-expanded .price-expanded {
    font-size: 1.5rem;
    font-weight: bold;
    color: #09e562;
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: center; 
    width: 100%;
}

.features-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
  color: #ccc;
  width: 100%;
}

.features-list li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.features-list li::before {
  content: '✔';
  color: #09e562;
  position: absolute;
  left: 0;
}


.add-to-cart-btn {
  background-color: #00aaff; 
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  align-self: center; 
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-to-cart-btn:hover {
  background-color: #0088cc;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}


.player-cards-section.has-expanded-card .container {
    justify-content: center;
    min-height: 500px;
    align-items: center;
}

@media (max-width: 768px) {
  .jersey-card {
    width: 95%;
    max-width: 350px;
  }

  .jersey-card.is-expanded {
    min-height: 70vh; 
    padding: 20px;
  }
  .jersey-card.is-expanded h4 {
    font-size: 1.5rem;
  }
  .jersey-img-large {
    max-width: 90%;
  }
}


.expandable-row {
  background-color: #222; 

  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
}


.expandable-row.hidden {
  display: none; 
}

.expandable-content {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px;
  justify-content: center; 
  color: #fff; 
  font-weight: bold;
}

.expandable-content p { 
  margin: 0;
  padding: 0;
}

.expandable-content .fa-trophy { 
  color: #ffd700; 
  margin-right: 5px;
}

.expandable-content .new-gen-team-text { 
  color: #fffb00; 
}


.store-main {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
}

.store-hero {
    text-align: center;
    margin-bottom: 50px;
}

.store-hero h1 {
    font-size: 2.8rem;
    color: #09e562;
    margin-bottom: 15px;
}

.store-hero p {
    font-size: 1.1rem;
    color: #ccc;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    background-color: #2a2a2a;
}

.card-image-container {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.card-info h2 {
    font-size: 1.6rem;
    color: #09e562;
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 15px;
    min-height: 50px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
}

.add-to-cart-btn {
    background-color: #00aaff; 
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background-color: #0088cc;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

/* Cart Section */
.cart-section {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-bottom: 50px;
}

.cart-section h2 {
    font-size: 2rem;
    color: #09e562;
    margin-bottom: 25px;
    text-align: center;
}

#cart-items {
    min-height: 100px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 1.1rem;
    color: #ccc;
    border-top: 1px solid #333;
}

.cart-item:first-child {
    border-top: none;
}

.remove-from-cart-btn {
    background: none;
    border: none;
    color: #ff4d4d; 
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.remove-from-cart-btn:hover {
    color: #ff0000;
    transform: scale(1.1);
}

.cart-total {
    text-align: right;
    margin-top: 20px;
}

.cart-total h3 {
    font-size: 1.8rem;
    color: #fff;
}

.checkout-btn {
    display: block;
    width: fit-content;
    margin: 30px auto 0 auto;
    background-color: #09e562;
    color: black;
    font-size: 1.1rem;
    padding: 12px 30px;
}

.checkout-btn:hover {
    background-color: #07c750;
    box-shadow: 0 5px 15px rgba(9, 229, 98, 0.4);
}

/* Modal for Purchase Success */
.modal {
    display: none; 
    position: fixed; 
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    margin: auto;
    padding: 40px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    position: relative;
    text-align: center;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content h2 {
    color: #09e562;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.modal-content p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr; 
    }

    .store-hero h1 {
        font-size: 2rem;
    }
}

@font-face {
  font-family: 'TSPPUMAPORTUGAL2025';
  src: url('TSPPUMAPORTUGAL2025.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.font-tsp {
  font-family: 'TSPPUMAPORTUGAL2025', sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
}
