/* ====================================
   ADIDAS RUNNING PRO - CABALLERO
   Diseño premium deportivo
   MANTENIENDO ESTRUCTURA ORIGINAL DE BOTONES
   ==================================== */

/* Variables CSS para personalización */
:root {
  --adidas-primary: #000000;
  --adidas-accent: #2b7a4b;
  --adidas-sport: #ff4d00;
  --adidas-silver: #e8e8e8;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

/* Estilos generales */
body {
  font-family: 'Montserrat', 'Segoe UI', -apple-system, sans-serif;
  margin: 0;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header mejorado */
header {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  text-align: center;
  padding: 18px 20px;
  font-weight: 800;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-bottom: 3px solid #2b7a4b;
  position: relative;
  overflow: hidden;
}

header::before {
  content: '🏃';
  margin-right: 12px;
  font-size: 20px;
  animation: run 2s infinite;
  display: inline-block;
}

header::after {
  content: '🏃';
  margin-left: 12px;
  font-size: 20px;
  animation: run 2s infinite 0.5s;
  display: inline-block;
}

@keyframes run {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Container principal */
.container {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px;
  max-width: 1300px;
  margin: 0 auto;
  gap: 50px;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.images, .details {
  flex: 1 1 450px;
  padding: 20px;
}

/* Galería de imágenes */
.images {
  position: relative;
}

.main-image {
  width: 100%;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 3px solid #f0f0f0;
}

.main-image:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-color: #2b7a4b;
}

/* Badge de nuevo */
.image-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #2b7a4b;
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(43,122,75,0.3);
  z-index: 10;
}

/* Miniaturas */
.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.thumbs img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.thumbs img:hover {
  transform: translateY(-5px);
  border-color: #2b7a4b;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.thumbs img.active {
  border-color: #2b7a4b;
  transform: scale(1.05);
}

/* Título y descripción */
.product-badge {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.badge-item {
  background: #f0f0f0;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

h1 {
  font-size: 42px;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 15px;
  color: #000;
}

h1 span {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: #666;
  text-transform: none;
  margin-top: 5px;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #000, #2b7a4b);
  border-radius: 2px;
}

.description {
  text-align: center;
  color: #555;
  font-size: 15px;
  margin: 20px 0;
  padding: 0 15px;
}

/* Precio y badges */
.price {
  font-size: 36px;
  font-weight: 900;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  text-align: center;
  background: linear-gradient(135deg, #f8f8f8, #f0f0f0);
  padding: 20px;
  border-radius: 20px;
}

.price small {
  font-size: 16px;
  font-weight: 500;
  color: #666;
}

.old-price {
  font-size: 22px;
  color: #999;
  text-decoration: line-through;
  font-weight: 500;
}

.shipping-badge {
  background: linear-gradient(135deg, #2b7a4b, #1e5f38);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(43,122,75,0.3);
}

.shipping-badge::before {
  content: '⚡';
  font-size: 16px;
}

/* ====================================
   BOTONES DE OPCIONES - ESTRUCTURA ORIGINAL
   ==================================== */
.label {
  margin: 20px 0 12px;
  font-weight: 800;
  text-align: center;
  font-size: 16px;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* SOLO PARA COLORES - 2 COLUMNAS */
#color + .options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* TALLAS - SE MANTIENEN EN FILA */
#talla + .options {
  display: flex;
  flex-wrap: wrap;
}

/* ESTILOS COMUNES PARA TODOS LOS BOTONES */
.options button {
  padding: 12px 18px;
  border: 2px solid #e0e0e0;
  background: white;
  cursor: pointer;
  border-radius: 12px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  min-width: 110px;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* HOVER PARA TODOS LOS BOTONES */
.options button:hover {
  border-color: #2b7a4b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(43,122,75,0.2);
}

/* SELECTED PARA TODOS LOS BOTONES */
.options button.selected {
  background: linear-gradient(135deg, #000000, #2b7a4b);
  color: white;
  border-color: #2b7a4b;
  box-shadow: 0 4px 15px rgba(43,122,75,0.3);
}

/* ESTILO ESPECIAL PARA BOTONES DE TALLA */
#talla + .options button {
  min-width: 70px;
  padding: 12px 8px;
  font-weight: 800;
  font-size: 16px;
}

/* COLOR PREVIEW - SE MANTIENE IGUAL */
.color-preview {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-block;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ====================================
   FORMULARIO DE CONTACTO
   ==================================== */
.card {
  background: white;
  backdrop-filter: blur(10px);
  border: 1px solid #f0f0f0 !important;
  border-radius: 25px !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08) !important;
  padding: 30px !important;
  transition: var(--transition);
  margin-top: 20px;
}

.card:hover {
  box-shadow: 0 15px 50px rgba(43,122,75,0.1) !important;
}

.input-group {
  position: relative;
  margin-bottom: 18px !important;
}

.input-group:focus-within {
  transform: translateY(-2px);
}

.input-group-text {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  border: 2px solid #e0e0e0;
  border-right: none;
  border-radius: 12px 0 0 12px;
  min-width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b7a4b;
  font-size: 18px;
  z-index: 1;
}

.form-control {
  width: 100%;
  padding: 14px 18px 14px 58px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  font-size: 15px;
  transition: var(--transition);
  background: white;
  font-weight: 500;
}

.form-control:focus {
  outline: none;
  border-color: #2b7a4b;
  box-shadow: 0 0 0 4px rgba(43,122,75,0.1);
}

/* Botón WhatsApp */
.whatsapp-button {
  width: 100%;
  display: flex;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 18px 25px;
  font-weight: 800;
  text-align: center;
  margin-top: 25px;
  text-decoration: none;
  border-radius: 15px;
  font-size: 17px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}

.whatsapp-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37,211,102,0.4);
}

.whatsapp-button i {
  font-size: 22px;
}

.note {
  background: linear-gradient(135deg, #f0f9f0, #e0f0e0);
  color: #1a5f3a;
  margin-top: 15px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #2b7a4b;
}

/* Beneficios */
.benefits {
  list-style: none;
  padding-left: 0;
  margin-top: 25px;
}

.benefits li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  background: #f8f8f8;
  border-radius: 10px;
  transition: var(--transition);
}

.benefits li:hover {
  transform: translateX(5px);
  background: #f0f0f0;
}

.benefits i {
  color: #2b7a4b;
  min-width: 24px;
  font-size: 16px;
}

/* Modal de confirmación */
#textofinal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
  display: none;
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.confirmation-content {
  background: white;
  padding: 40px;
  border-radius: 25px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 3px solid #2b7a4b;
}

.success-icon {
  font-size: 70px;
  color: #2b7a4b;
  margin-bottom: 20px;
  animation: bounce 0.6s;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-10px); }
  50% { transform: translateY(-5px); }
}

#textofinal h2 {
  margin-bottom: 15px;
  color: #000;
  font-size: 26px;
  font-weight: 800;
}

#textofinal p {
  margin-bottom: 20px;
  color: #666;
  font-size: 16px;
}

#textofinal button {
  padding: 12px 30px;
  background: linear-gradient(135deg, #000, #2b7a4b);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
  font-weight: 700;
}

#textofinal button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(43,122,75,0.4);
}

/* Botón flotante WhatsApp */
.ao {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  transition: var(--transition);
}

.wh {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  transition: var(--transition);
}

.wh:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* ====================================
   FOOTER LEGAL - VERSIÓN COMPACTA
   ==================================== */
.footer-legal {
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  padding: 15px 0;
  margin-top: 30px;
  width: 100%;
  font-size: 12px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.footer-links {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 11px;
  padding: 3px 8px;
  background: transparent;
  border-radius: 3px;
}

.footer-links a:hover {
  color: #000;
  background: #eaeaea;
  text-decoration: none;
  transform: none;
}

.separator {
  color: #ccc;
  font-size: 10px;
  display: inline-block;
}

.footer-copyright {
  color: #777;
  font-size: 10px;
}

/* Responsive para footer compacto */
@media screen and (max-width: 768px) {
  .footer-legal {
    padding: 12px 0;
    margin-top: 25px;
  }
  
  .footer-links {
    gap: 5px;
  }
  
  .footer-links a {
    font-size: 10px;
    padding: 2px 6px;
  }
  
  .separator {
    display: none;
  }
  
  .footer-copyright {
    font-size: 9px;
  }
}

@media screen and (max-width: 480px) {
  .footer-legal {
    padding: 10px 0;
    margin-top: 20px;
  }
  
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .footer-links a {
    font-size: 9px;
    padding: 2px 5px;
    background: #f0f0f0;
  }
  
  .footer-copyright {
    font-size: 8px;
  }
}

/* Modales legales */
.modal-legal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  overflow-y: auto;
}

.modal-legal-content {
  background: white;
  margin: 5% auto;
  width: 90%;
  max-width: 700px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 2px solid #2b7a4b;
}

.modal-legal-header {
  padding: 20px 25px;
  background: linear-gradient(135deg, #000, #2b7a4b);
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.modal-legal-header h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.modal-close {
  font-size: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-legal-body {
  padding: 25px;
  max-height: 60vh;
  overflow-y: auto;
}

/* Flecha de navegación */
#flechaAbajo {
  position: fixed;
  bottom: 30px;
  right: 120px;
  background: linear-gradient(135deg, #2b7a4b, #1e5f38);
  color: white;
  border-radius: 50px;
  padding: 15px 25px;
  box-shadow: 0 5px 20px rgba(43,122,75,0.4);
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  animation: bounce 2s infinite;
  transition: var(--transition);
  border: 2px solid white;
}

#flechaAbajo:hover {
  background: #000;
  transform: scale(1.05);
}

.flecha-contenedor {
  display: flex;
  align-items: center;
  gap: 10px;
}

#flechaAbajo i {
  font-size: 24px;
}

#flechaAbajo span {
  font-size: 14px;
  font-weight: 700;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 25px 15px;
    gap: 30px;
  }

  h1 {
    font-size: 32px;
  }

  h1 span {
    font-size: 18px;
  }

  .price {
    font-size: 30px;
    padding: 15px;
  }

  .old-price {
    font-size: 20px;
  }

  /* MANTENEMOS 2 COLUMNAS EN COLORES */
  #color + .options {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  /* TALLAS SIGUEN EN FILA */
  #talla + .options {
    display: flex;
    flex-wrap: wrap;
  }

  .options button {
    min-width: 90px;
    padding: 10px 14px;
    font-size: 13px;
  }

  #talla + .options button {
    min-width: 65px;
  }

  .whatsapp-button {
    font-size: 16px;
    padding: 15px;
  }

  .ao {
    bottom: 25px;
    right: 25px;
  }

  .wh {
    width: 60px;
    height: 60px;
  }

  #flechaAbajo {
    right: 100px;
    padding: 12px 20px;
  }
}

@media screen and (max-width: 480px) {
  header {
    font-size: 14px;
    padding: 15px;
  }

  header::before, header::after {
    font-size: 18px;
  }

  h1 {
    font-size: 26px;
  }

  h1 span {
    font-size: 16px;
  }

  .price {
    font-size: 26px;
    flex-direction: column;
    gap: 10px;
  }

  /* 2 COLUMNAS TAMBIÉN EN MÓVIL PARA COLORES */
  #color + .options {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  #color + .options button {
    min-width: unset;
    width: 100%;
    padding: 10px 8px;
    font-size: 12px;
  }

  #talla + .options button {
    min-width: 55px;
    font-size: 14px;
    padding: 8px 5px;
  }

  .color-preview {
    width: 20px;
    height: 20px;
  }

  .thumbs img {
    width: 60px;
    height: 60px;
  }

  .card {
    padding: 20px !important;
  }

  .form-control {
    padding: 12px 15px 12px 50px;
    font-size: 14px;
  }

  .input-group-text {
    min-width: 45px;
    font-size: 16px;
  }

  .whatsapp-button {
    font-size: 15px;
    padding: 14px;
  }

  .confirmation-content {
    padding: 25px;
  }

  .success-icon {
    font-size: 60px;
  }

  #textofinal h2 {
    font-size: 22px;
  }

  .ao {
    bottom: 20px;
    right: 20px;
  }

  .wh {
    width: 55px;
    height: 55px;
  }

  #flechaAbajo {
    right: 90px;
    padding: 10px 15px;
  }

  #flechaAbajo span {
    font-size: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links a {
    width: 100%;
    text-align: center;
  }
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}