/* ====================================
   DIESEL RACER - AESTHETIC EDITION
   Diseño moderno y premium
   ==================================== */

/* Variables CSS para fácil personalización */
:root {
  --diesel-primary: #000000;
  --diesel-accent: #FFD700;
  --diesel-secondary: #1a1a1a;
  --diesel-success: #00ff88;
  --diesel-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --diesel-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  --diesel-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.2);
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  color: #1a1a1a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header premium con gradiente */
header {
  background: linear-gradient(90deg, #000000 0%, #434343 100%);
  text-align: center;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: #FFD700;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  text-transform: uppercase;
}

header::before {
  content: '⚡';
  margin-right: 10px;
  animation: pulse-icon 2s ease-in-out infinite;
}

header::after {
  content: '⚡';
  margin-left: 10px;
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

/* Container con animación de entrada */
.container {
  display: flex;
  flex-wrap: wrap;
  padding: 40px 20px;
  max-width: 1300px;
  margin: 0 auto;
  gap: 50px;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  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 mejorada */
.images {
  position: relative;
}

.main-image {
  width: 100%;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: var(--diesel-shadow);
  transition: var(--transition-smooth);
  border: 3px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #667eea, #764ba2) border-box;
  position: relative;
  overflow: hidden;
}

.main-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.main-image:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: var(--diesel-shadow-hover);
}

.main-image:hover::before {
  opacity: 1;
}

/* Miniaturas con efecto glassmorphism */
.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-smooth);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: relative;
}

.thumbs img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
  opacity: 0;
  transition: var(--transition-smooth);
}

.thumbs img:hover {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--diesel-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.thumbs img:hover::after {
  opacity: 1;
}

/* Título premium con gradiente */
h1 {
  font-size: 42px;
  margin-bottom: 15px;
  text-align: center;
  background: linear-gradient(135deg, #000000 0%, #434343 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 15px;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* Precio con diseño premium */
.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;
  color: var(--diesel-primary);
  position: relative;
}

.price::before {
  content: '💎';
  margin-right: 5px;
  font-size: 28px;
}

.shipping-badge {
  background: linear-gradient(135deg, #00ff88 0%, #00cc6f 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: shimmer 3s ease-in-out infinite;
}

.shipping-badge::before {
  content: '🚀';
  font-size: 16px;
}

@keyframes shimmer {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Formulario con diseño glassmorphism */
.card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 25px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  padding: 30px !important;
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px);
}

.label {
  margin: 20px 0 12px;
  font-weight: 700;
  text-align: center;
  font-size: 16px;
  color: var(--diesel-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Botones de opciones modernos - MODIFICADO PARA 2 COLUMNAS EN COLORES */
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ESPECIAL: Botones de color en 2 columnas */
#color + .options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* Botones de talla siguen en fila */
#talla + .options {
  display: flex;
  flex-wrap: wrap;
}

.options button {
  padding: 12px 18px;
  border: 2px solid #e0e0e0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  cursor: pointer;
  border-radius: 12px;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  min-width: 110px;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.options button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.options button:hover::before {
  left: 100%;
}

.options button.selected {
  background: linear-gradient(135deg, #000000 0%, #434343 100%);
  color: #fff;
  border-color: var(--diesel-primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.options button.selected::after {
  content: '✓';
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--diesel-success);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 255, 136, 0.4);
}

.options button:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--diesel-secondary);
  transform: translateY(-2px);
}

/* Paletas de color específicas para cada botón de color */
.color-preview {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Inputs modernos */
.input-group {
  position: relative;
  margin-bottom: 18px !important;
  transition: var(--transition-smooth);
}

.input-group:focus-within {
  transform: translateY(-2px);
}

form .form-control {
  width: 100%;
  padding: 14px 18px 14px 50px;
  border-radius: 12px;
  border: 2px solid #e0e0e0;
  font-size: 15px;
  transition: var(--transition-smooth);
  background: #ffffff;
  font-weight: 500;
}

form .form-control:focus {
  outline: none;
  border-color: var(--diesel-primary);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
  background: #ffffff;
}

.input-group-text {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  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: var(--diesel-secondary);
  font-size: 18px;
  z-index: 1;
}

/* Botón de envío premium */
.whatsapp-button {
  width: 100%;
  display: flex;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  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-smooth);
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.whatsapp-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.whatsapp-button:hover::before {
  width: 300px;
  height: 300px;
}

.whatsapp-button:hover {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.whatsapp-button:active {
  transform: translateY(-1px);
}

.note {
  color: #666;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  text-align: center;
  font-weight: 600;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #86efac;
}

.note i {
  color: var(--diesel-success);
  font-size: 18px;
}

/* Beneficios con íconos animados */
.benefits {
  list-style: none;
  padding-left: 0;
  margin-top: 25px;
}

.benefits li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 10px;
  transition: var(--transition-smooth);
  border-left: 3px solid transparent;
}

.benefits li:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-left-color: var(--diesel-success);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.benefits i {
  color: var(--diesel-success);
  min-width: 24px;
  font-size: 18px;
  transition: var(--transition-smooth);
}

.benefits li:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* Modal de confirmación premium */
#textofinal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.confirmation-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px 35px;
  border-radius: 25px;
  text-align: center;
  max-width: 550px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.success-icon {
  font-size: 70px;
  color: var(--diesel-success);
  margin-bottom: 20px;
  animation: bounce 0.6s ease-out;
  filter: drop-shadow(0 4px 15px rgba(0, 255, 136, 0.4));
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-15px); }
  50% { transform: translateY(-7px); }
  75% { transform: translateY(-10px); }
}

#textofinal h2 {
  margin-bottom: 15px;
  color: var(--diesel-primary);
  font-size: 28px;
  font-weight: 800;
}

#textofinal p {
  margin-bottom: 25px;
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

#textofinal button {
  padding: 14px 35px;
  background: linear-gradient(135deg, #000000 0%, #434343 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

#textofinal button:hover {
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Botón de WhatsApp flotante mejorado */
.ao {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.wh {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  filter: drop-shadow(0 0 15px rgba(37, 211, 102, 0.5));
}

.wh:hover {
  transform: scale(1.15) rotate(5deg);
  box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
  filter: drop-shadow(0 0 25px rgba(37, 211, 102, 0.7));
}

/* Efecto de pulso mejorado */
@keyframes pulse {
  0% { 
    transform: scale(1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  }
  50% { 
    transform: scale(1.15);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
  }
  100% { 
    transform: scale(1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out 3s 3;
}

/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 25px 15px;
    gap: 30px;
  }

  h1 {
    font-size: 32px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  h1::after {
    width: 80px;
    height: 3px;
  }

  .price {
    font-size: 28px;
    flex-direction: row;
    gap: 12px;
    margin: 15px 0;
  }

  .shipping-badge {
    font-size: 13px;
    padding: 6px 12px;
  }

  .options button {
    min-width: 90px;
    padding: 10px 14px;
    font-size: 13px;
  }

  /* Botones de color en 2 columnas también en móvil */
  #color + .options {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  /* Botones de talla en fila horizontal en móvil */
  #talla + .options {
    display: flex;
    flex-wrap: wrap;
  }

  .whatsapp-button {
    font-size: 15px;
    padding: 16px 20px;
  }

  .confirmation-content {
    padding: 30px 20px;
  }

  .success-icon {
    font-size: 60px;
  }

  #textofinal h2 {
    font-size: 24px;
  }

  .ao {
    bottom: 25px;
    right: 25px;
  }
  
  .wh {
    width: 60px;
    height: 60px;
  }

  .thumbs img {
    width: 65px;
    height: 65px;
  }
}

@media screen and (max-width: 480px) {
  header {
    font-size: 13px;
    padding: 14px 15px;
  }

  h1 {
    font-size: 26px;
  }

  h1::after {
    width: 60px;
  }

  .price {
    font-size: 24px;
    flex-direction: column;
    gap: 8px;
  }

  .price::before {
    font-size: 22px;
  }

  .shipping-badge {
    font-size: 12px;
    padding: 6px 10px;
  }

  .options {
    gap: 8px;
  }

  .options button {
    min-width: 75px;
    font-size: 12px;
    padding: 8px 10px;
  }

  /* Botones de color en 2 columnas en móvil pequeño */
  #color + .options {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  
  /* Botones de color más compactos */
  #color + .options button {
    min-height: 55px;
    padding: 10px 8px;
    font-size: 12px;
    gap: 8px;
  }

  .thumbs img {
    width: 55px;
    height: 55px;
  }

  .input-group-text {
    padding: 0.375rem 0.5rem;
    min-width: 45px;
    font-size: 16px;
  }

  .form-control {
    padding: 12px 15px 12px 48px !important;
    font-size: 14px;
  }

  .whatsapp-button {
    font-size: 14px;
    padding: 15px 18px;
  }

  #textofinal h2 {
    font-size: 22px;
  }

  #textofinal p {
    font-size: 14px;
  }

  .success-icon {
    font-size: 55px;
  }

  .confirmation-content {
    padding: 25px 18px;
  }

  .ao {
    bottom: 20px;
    right: 20px;
  }
  
  .wh {
    width: 55px;
    height: 55px;
  }

  .card {
    padding: 20px !important;
  }

  .benefits li {
    padding: 10px 12px;
    font-size: 14px;
  }

  .label {
    font-size: 14px;
  }
  
  /* Paleta de colores más pequeña en móvil */
  .color-preview {
    width: 20px;
    height: 20px;
  }
}

/* Mejoras adicionales de UX */
@media (hover: hover) {
  .options button:hover {
    transform: translateY(-3px);
  }
  
  .benefits li:hover {
    transform: translateX(8px);
  }
}

/* Modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
  /* Puedes descomentar esto para soporte de modo oscuro automático
  body {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #ffffff;
  }
  */
}

/* Animación de carga para la página */
@keyframes pageLoad {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body > * {
  animation: pageLoad 0.6s ease-out;
}
/* ========== ESTILOS PARA LA FLECHA ========== */
#flechaAbajo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border-radius: 50px;
  padding: 15px 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 9998;
  display: flex;
  align-items: center;
  animation: bounce 2s infinite;
  transition: all 0.3s ease;
}

#flechaAbajo:hover {
  transform: scale(1.05);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4);
}

.flecha-contenedor {
  display: flex;
  align-items: center;
  gap: 10px;
}

#flechaAbajo i {
  font-size: 24px;
}

#flechaAbajo span {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}