/* ======== Fuente y básicos ======== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

html,
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f8fa;
  color: #333;
}

/* ==================================
   NAVBAR
   ================================== */
.navbar {
  background-color: #000; /* Negro puro */
  padding: 10px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo y nombre */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo img {
  width: 40px;
  height: auto;
  border-radius: 4px;
  background-color: transparent;
}

.nombre-equipo {
  font-weight: bold;
  font-size: 1.2rem;
  color: #facc15; /* Amarillo deportivo */
  background-color: transparent;
}

/* Enlaces centrales */
.navbar-links {
  display: flex;
  gap: 20px;
}

.navbar-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar-links a:hover {
  color: #facc15;
}

/* Zona de usuario a la derecha */
.navbar-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bienvenida {
  color: #fff;
  font-size: 0.9rem;
}

.btn-logout {
  background-color: #ef4444;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-logout:hover {
  background-color: #dc2626;
}

/* Responsive para NAVBAR */
@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .navbar-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .navbar-user {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
}

/* ==================================
   ALERTA PEDIDOS CERRADOS
   ================================== */
.alerta-pedidos {
  background-color: #c00000;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 40px;
}

.alerta-texto {
  position: absolute;
  animation: desplazamiento 10s linear infinite;
  font-weight: bold;
  font-size: 1.5rem;
  padding-left: 100%;
}

@keyframes desplazamiento {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.swiper {
  padding-bottom: 25px;
}

/* ==================================
   TARJETA DE PRODUCTO (CARRITO)
   ================================== */
.card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.card img {
  width: 120px;
  border-radius: 8px;
}

.card-info {
  flex: 1;
}

.card-info p {
  margin: 3px 0;
}

/* ==================================
   GRID DE PRODUCTOS (TIENDA)
   ================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  text-align: center;
  transition: transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.product-card h3 {
  margin: 10px 0 5px;
  font-size: 1.1rem;
}

.product-card p {
  margin: 0;
  font-weight: 600;
  color: #1a73e8;
}

/* ==================================
   BOTÓN TOGGLE (ADMIN)
   ================================== */
.btn-toggle {
  background-color: #1e40af;
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.btn-toggle:hover {
  background-color: #1d4ed8;
}

/* ==================================
   SECCIÓN DE PRODUCTOS (TIENDA MODERNA)
   ================================== */
.seccion-productos {
  padding: 2rem 1rem;
}

.titulo-seccion {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: #222;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 0 1rem;
}

.card-producto {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-producto:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.card-producto img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.card-producto h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #111;
}

.card-producto .precio {
  color: #1a73e8;
  font-weight: bold;
  margin-bottom: 1rem;
}

.card-producto .btn-ver {
  margin-top: auto;
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.card-producto .btn-ver:hover {
  background-color: #000;
}

.titulo-seccion {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* ==================================
   RESPONSIVE GENERAL (TIENDA)
   ================================== */
@media (max-width: 600px) {
  body {
    padding: 0 10px;
  }
  .grid-productos {
    grid-template-columns: 1fr;
  }
}

/* ==================================
   DETALLE DE PRODUCTO (LADO A LADO)
   ================================== */

/* Contenedor principal: imagen + tarjeta */
.product-detail-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ========= IZQUIERDA: Imagen del producto ========= */
.product-image-wrapper {
  flex: 1 1 500px; /* Aumentamos ancho */
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image {
  width: 100%;
  max-width: 500px; /* Aumentamos tamaño máximo */
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ========= DERECHA: Tarjeta con información ========= */
.product-info-card {
  flex: 1 1 450px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 30px 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Título grande (monospace) */
.product-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.75rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
}

/* Subtítulo descriptivo */
.product-subtitle {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 12px;
}

/* Línea divisoria gris fina */
.product-divider {
  width: 100%;
  border: none;
  height: 1px;
  background-color: #e0e0e0;
  margin-bottom: 20px;
}

/* ==================================
   BOTONES “Solo camiseta” / “Equipación completa”
   ================================== */

/* Contenedor del botón */
.option-button {
  position: relative;
  display: inline-block;
  margin: 5px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

/* Ocultamos el input */
.option-button input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Estilo del botón visual (span) */
.option-button span {
  user-select: none;  
  display: inline-block;
  padding: 6px 16px;               /* ✅ Altura más natural */
  background-color: none ;
  border-radius: 12px;             /* ✅ Ya no es un óvalo extremo */
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  min-width: 200px;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 1px solid #ccc;        /* ✅ borde gris claro */

}

.option-button:focus,
.option-button input[type="radio"]:focus,
.option-button span:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5); /* Resaltado al enfocar */
}


/* Estilo cuando está seleccionado */
.option-button input[type="radio"]:checked + span {
  background-color: #f1c40f;       /* Amarillo corporativo */
  color: #111;
}



/* Oculta bloques con la clase .d-none */
.d-none {
  display: none !important;
}

/* ==================================
   PRECIO DINÁMICO (EN NARANJA)
   ================================== */
.current-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #e67e22; /* Naranja */
  margin-bottom: 18px;
}

.price-value {
  font-size: 1.3rem;
}

/* ==================================
   FORMULARIO: Talla / Dorsal / Botón
   ================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
}

.form-select,
.form-input {
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid #cccccc;
  border-radius: 5px;
  color: #333;
  transition: border-color 0.2s ease;
}

.form-select:focus,
.form-input:focus {
  border-color: #888;
  outline: none;
}

/* Botón “Añadir al carrito” azul oscuro */
.btn-add-cart {
  background-color: #007bff; /* Azul Bootstrap */
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  height: 44px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-add-cart:hover {
  background-color: #0069d9;
  transform: translateY(-1px);
}

.btn-add-cart:active {
  transform: translateY(0);
}

.btn-add-cart:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}

/* ==================================
   RESPONSIVE: Pantallas pequeñas (< 850px)
   ================================== */
@media (max-width: 850px) {
  .product-detail-container {
    flex-direction: column;
    gap: 30px;
    margin: 20px auto;
    padding: 0 12px;
  }
  .product-image-wrapper,
  .product-info-card {
    flex: 1 1 100%;
  }
}


/* Por defecto: mostrar desktop, ocultar carrusel */
.carrusel-mobile {
  display: none;
}

.carrusel-desktop {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 10px 20px;
}

