/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  min-height: 100vh;
  padding-bottom: 100px;
  will-change: auto;
}

/* Optimización de imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
  content-visibility: auto;
}

/* Optimización de animaciones */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Optimización de rendimiento */
* {
  contain: layout;
}

.card {
  contain: layout style paint;
}

/* Critical CSS para above-the-fold */
.portada {
  contain: layout style paint;
}

/* Optimización adicional para 90+ score */
.reseñas-grid {
  contain: layout style paint;
}

.formulario-pedido {
  contain: layout style paint;
}

/* Reduce repaints */
.live-cart, .alerta-stock, .notificacion, .boton-fijo, .whatsapp-float {
  will-change: transform, opacity;
}

/* Optimización de fuentes */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/inter/v12/UcCO3FwrK3iLTeHuS_fvQtMwCp50KnMw2boKoduKmMEVuLyfAZ9hiJ-Ek-_EeA.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Live Cart Animation */
.live-cart {
  position: fixed !important;
  top: 20px;
  right: 20px;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
  z-index: 1000;
  animation: pulse 2s infinite;
  font-weight: bold;
  font-size: 14px;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#cart-icon {
  font-size: 18px;
  margin-right: 8px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  60% { transform: translateY(-2px); }
}

/* Sections */
section {
  padding: 60px 20px;
  margin: 20px auto;
  max-width: 1200px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
}

/* Portada Section */
.portada {
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: #ffd700;
  margin-top: 0;
}

.portada h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.portada p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.portada img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
  margin-bottom: 30px;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.badges span {
  background: rgba(255,255,255,0.2);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: bold;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.badge-clickeable {
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  user-select: none !important;
}

.badge-clickeable:hover {
  background: rgba(255,255,255,0.4) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  border: 1px solid rgba(255,255,255,0.5) !important;
}

.badge-clickeable:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Proof Section */
.proof-dark {
  background: #2c3e50;
  color: white;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 0;
  border-radius: 0;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
}

.proof-item .icon {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

.proof-item strong {
  font-size: 1.3rem;
  display: block;
}

.proof-item small {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Ofertas Section */
.ofertas {
  text-align: center;
}

.ofertas h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

.plan {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #1a1a1a;
  padding: 20px;
  margin: 15px 0;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease;
}

.plan:hover {
  transform: translateY(-5px);
}

.plan p {
  margin: 5px 0;
  font-size: 1.1rem;
}

.plan strong {
  font-size: 1.3rem;
}

.ofertas img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Reseñas Section */
.reseñas {
  text-align: center;
  overflow: hidden;
}

.reseñas h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.reseñas > p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #666;
}

.reseñas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

@media (max-width: 768px) {
  .reseñas-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  min-width: 300px;
  max-width: 350px;
  width: 100%;
  text-align: left;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

@media (min-width: 1200px) {
  .card {
    width: calc(33.333% - 15px);
    min-width: 300px;
    max-width: 350px;
  }
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

@media (min-width: 1200px) {
  .card img {
    height: 450px;
  }
}

.card p {
  margin: 10px 0;
  color: #555;
}

.card strong {
  color: #2c3e50;
}

#dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: #667eea;
}

/* Problema Section */
.problema {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  text-align: center;
}

.problema h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

.problema ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto 30px;
}

.problema li {
  background: rgba(255,255,255,0.8);
  margin: 15px 0;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.problema img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Ingredientes Section */
.ingredientes {
  text-align: center;
}

.ingredientes h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

.ingredientes ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto 30px;
}

.ingredientes li {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  margin: 15px 0;
  padding: 20px;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.ingredientes li:hover {
  transform: translateX(10px);
}

.ingredientes img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Beneficios Section */
.beneficios {
  background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
  text-align: center;
}

.beneficios h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

.beneficios ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto 30px;
}

.beneficios li {
  background: rgba(255,255,255,0.9);
  margin: 15px 0;
  padding: 20px;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.beneficios li:hover {
  transform: scale(1.02);
}

.beneficios img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Beneficios Clave Section */
.beneficios-clave {
  text-align: center;
}

.beneficios-clave h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

.beneficios-clave ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto 30px;
}

.beneficios-clave li {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffd700;
  margin: 15px 0;
  padding: 20px;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
}

.beneficios-clave li:hover {
  transform: translateY(-5px);
}

.beneficios-clave img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Consumo Section */
.consumo {
  background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
  text-align: center;
}

.consumo h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

.consumo ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto 30px;
}

.consumo li {
  background: rgba(255,255,255,0.9);
  margin: 15px 0;
  padding: 20px;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.consumo li:hover {
  transform: translateX(-10px);
}

.consumo img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Planes Section */
.planes {
  text-align: center;
}

.planes h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.planes > p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #666;
}

.planes .plan {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #2c3e50;
  padding: 25px;
  margin: 20px 0;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  position: relative;
}

.planes .plan:hover {
  transform: translateY(-5px);
}

.planes .plan:last-child {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffd700;
  transform: scale(1.05);
  border: 2px solid #ffd700;
}

.planes .plan:last-child:hover {
  transform: scale(1.05) translateY(-5px);
}

.planes .plan p {
  margin: 10px 0;
  font-size: 1.2rem;
}

.planes .plan strong {
  font-size: 1.4rem;
}

.planes img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin-top: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* FAQ Section */
.faq {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  text-align: center;
}

.faq h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: #2c3e50;
}

.faq ul {
  list-style: none;
  max-width: 800px;
  margin: 0 auto 30px;
}

.faq li {
  background: rgba(255,255,255,0.9);
  margin: 15px 0;
  padding: 20px;
  border-radius: 15px;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.faq li:hover {
  transform: translateX(10px);
}

.faq img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Envío Section */
.envio {
  text-align: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: #ffd700;
  margin-bottom: 0;
}

.envio h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.envio p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.envio img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .live-cart {
    position: relative;
    top: 0;
    right: 0;
    margin: 10px;
    text-align: center;
  }

  section {
    padding: 40px 15px;
    margin: 10px;
  }

  .portada h1 {
    font-size: 2rem;
  }

  .portada p {
    font-size: 1rem;
  }

  .proof-dark {
    flex-direction: column;
    text-align: center;
  }

  .proof-item {
    justify-content: center;
  }

  .carousel {
    flex-direction: column;
    align-items: center;
  }

  .card {
    min-width: 280px;
    max-width: 320px;
    width: 280px;
  }
  
  .card img {
    height: 280px;
  }

  .badges {
    flex-direction: column;
    align-items: center;
  }

  .badges span {
    width: 100%;
    text-align: center;
  }
  
  .badge-clickeable {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
  }
  
  .badge-clickeable:hover {
    background: rgba(255,255,255,0.4) !important;
    transform: scale(1.02) !important;
  }
  
  .badge-clickeable:active {
    transform: scale(0.98) !important;
  }

  h2 {
    font-size: 1.8rem !important;
  }

  .planes .plan:last-child {
    transform: none;
  }

  .planes .plan:last-child:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 480px) {
  .portada h1 {
    font-size: 1.6rem;
  }

  .portada p {
    font-size: 0.9rem;
  }

  section {
    padding: 30px 10px;
  }

  .card {
    min-width: 250px;
    padding: 20px;
  }

  .plan {
    padding: 15px;
  }

  .plan p {
    font-size: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for images */
img {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Hover effects for interactive elements */
.plan, .card, .faq li, .beneficios li, .ingredientes li, .consumo li {
  cursor: pointer;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

/* Notificación de Compra */
.notificacion {
  position: fixed !important;
  bottom: 100px;
  left: 20px;
  background: #2d2d2d;
  color: white;
  padding: 12px 18px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  font-family: sans-serif;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 10001;
  border: 1px solid #ffd700;
  max-width: 350px;
}

.notificacion.visible { 
  opacity: 1; 
}

.notificacion img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #00e676;
  background: white;
}

.texto span { 
  font-weight: bold; 
  color: #ffd700;
}

.verificado {
  font-size: 12px;
  color: #c5f5c5;
  display: flex;
  align-items: center;
  margin-top: 3px;
}

.verificado::before {
  content: "✔️";
  color: #00e676;
  margin-right: 5px;
}

/* Botón Verde Estático */
.boton-fijo {
  position: fixed !important;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 15px 20px;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.btn-pedido {
  width: 100%;
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
  border: none;
  padding: 18px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-pedido:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.6);
  background: linear-gradient(45deg, #45a049, #4CAF50);
}

.btn-pedido:active {
  transform: scale(0.98);
}

/* Formulario de Pedido */
.formulario-pedido {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: #ffd700;
  text-align: center;
  margin-bottom: 0;
}

.formulario-contenido {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.formulario-pedido h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.formulario-subtitulo {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #ffed4e;
  opacity: 0.9;
}

.beneficios-formulario {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 40px;
}

.beneficio-item {
  background: rgba(255, 215, 0, 0.1);
  padding: 15px 20px;
  border-radius: 10px;
  border: 1px solid #ffd700;
  font-weight: 500;
  font-size: 1.1rem;
}

.form-pedido {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid #ffd700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.form-group {
  margin-bottom: 25px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #ffd700;
  font-size: 1.1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #ffd700;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #1a1a1a;
  font-size: 16px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ffed4e;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  background: white;
}

.form-group input[readonly] {
  background: rgba(255, 255, 255, 0.7);
  color: #666;
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.btn-enviar-pedido {
  width: 100%;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  border: none;
  padding: 20px 30px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 15px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
}

.btn-enviar-pedido:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
  background: linear-gradient(45deg, #ffed4e, #ffd700);
}

.btn-enviar-pedido:active {
  transform: scale(0.98);
}

/* Campo de Código de Descuento */
.codigo-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.codigo-container input {
  flex: 1;
  margin-bottom: 0;
}

.btn-aplicar-codigo {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  border: none;
  padding: 15px 20px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-aplicar-codigo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  background: linear-gradient(45deg, #ffed4e, #ffd700);
}

.btn-aplicar-codigo:active {
  transform: scale(0.95);
}

.btn-aplicar-codigo:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.mensaje-descuento {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  display: none;
}

.mensaje-descuento.exito {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid #4CAF50;
  display: block;
}

.mensaje-descuento.error {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid #f44336;
  display: block;
}

/* Resumen de Precio */
.resumen-precio {
  background: rgba(255, 215, 0, 0.1);
  border: 2px solid #ffd700;
  border-radius: 15px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.precio-original,
.descuento-aplicado,
.precio-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  font-size: 1.1rem;
}

.precio-original {
  color: #666;
  text-decoration: line-through;
}

.descuento-aplicado {
  color: #4CAF50;
  font-weight: bold;
}

.precio-final {
  color: #ffd700;
  font-weight: bold;
  font-size: 1.3rem;
  border-top: 2px solid #ffd700;
  padding-top: 10px;
  margin-top: 15px;
}

/* Modal de Agradecimiento */
.modal-gracias {
  display: none;
  position: fixed;
  z-index: 10002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-contenido {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  margin: 5% auto;
  padding: 0;
  border: 3px solid #ffd700;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.5s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  padding: 20px;
  border-radius: 17px 17px 0 0;
  text-align: center;
  position: relative;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: bold;
}

.cerrar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #1a1a1a;
  transition: color 0.3s ease;
}

.cerrar-modal:hover {
  color: #666;
}

.modal-body {
  padding: 30px;
  text-align: center;
  color: #ffd700;
}

.icono-exito {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.modal-body h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #ffd700;
}

.modal-body p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #ffed4e;
}

.detalles-pedido {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid #ffd700;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  text-align: left;
}

.detalles-pedido p {
  margin: 10px 0;
  font-size: 1rem;
  color: #ffd700;
}

.beneficios-confirmacion {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid #4CAF50;
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
}

.beneficios-confirmacion p {
  margin: 8px 0;
  font-size: 0.95rem;
  color: #4CAF50;
}

.modal-footer {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #ffd700;
}

.btn-cerrar-modal {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  border: none;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-cerrar-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  background: linear-gradient(45deg, #ffed4e, #ffd700);
}

.btn-cerrar-modal:active {
  transform: scale(0.95);
}

/* Responsive para modal */
@media (max-width: 768px) {
  .modal-contenido {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .icono-exito {
    font-size: 3rem;
  }
  
  .modal-body h3 {
    font-size: 1.3rem;
  }
  
  .modal-body p {
    font-size: 1rem;
  }
}

/* Responsive para formulario */
@media (max-width: 768px) {
  .formulario-pedido h2 {
    font-size: 2rem;
  }
  
  .formulario-subtitulo {
    font-size: 1.1rem;
  }
  
  .beneficios-formulario {
    grid-template-columns: 1fr;
  }
  
  .form-pedido {
    padding: 25px 20px;
  }
  
  .btn-pedido {
    font-size: 16px;
    padding: 15px 20px;
  }
  
  .btn-enviar-pedido {
    font-size: 18px;
    padding: 18px 25px;
  }

  .codigo-container {
    flex-direction: column;
    gap: 10px;
  }

  .btn-aplicar-codigo {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
  }

  /* Notificación responsive */
  .notificacion {
    bottom: 90px;
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 10px 15px;
  }
  
  .notificacion img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }
  
  .texto {
    font-size: 14px;
  }
  
  .verificado {
    font-size: 11px;
  }
}

/* Responsive para pantallas muy pequeñas */
@media (max-width: 480px) {
  .notificacion {
    bottom: 80px;
    left: 5px;
    right: 5px;
    padding: 8px 12px;
  }
  
  .notificacion img {
    width: 35px;
    height: 35px;
    margin-right: 8px;
  }
  
  .texto {
    font-size: 12px;
  }
  
  .verificado {
    font-size: 10px;
  }
  
  .boton-fijo {
    padding: 10px 15px;
  }
  
  .btn-pedido {
    font-size: 14px;
    padding: 12px 15px;
  }
  
  .formulario-pedido h2 {
    font-size: 1.8rem;
  }
  
  .formulario-subtitulo {
    font-size: 1rem;
  }
  
  .form-pedido {
    padding: 20px 15px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 14px;
  }
  
  .btn-enviar-pedido {
    font-size: 16px;
    padding: 15px 20px;
  }
  
  body {
    padding-bottom: 80px;
  }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed !important;
  bottom: 120px;
  right: 20px;
  z-index: 10001;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #4CAF50, #45a049);
  border-radius: 50%;
  box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 4px solid #fff;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.whatsapp-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 30px rgba(76, 175, 80, 0.7);
}

.whatsapp-icon {
  font-size: 32px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  font-weight: bold;
  line-height: 1;
  display: block;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
  }
  50% {
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5), 0 0 0 15px rgba(76, 175, 80, 0.2);
  }
  100% {
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5);
  }
}

/* Responsive para WhatsApp */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 110px;
    right: 15px;
  }
  
  .whatsapp-btn {
    width: 60px;
    height: 60px;
  }
  
  .whatsapp-icon {
    font-size: 28px;
  }
}

/* Asegurar consistencia entre servidores */
.whatsapp-float {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.whatsapp-btn {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Forzar elementos fijos */
.live-cart,
.notificacion,
.boton-fijo,
.whatsapp-float {
  position: fixed !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

/* Asegurar visibilidad */
.live-cart {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.boton-fijo {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.whatsapp-float {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Restaurar colores originales */
.live-cart {
  background: linear-gradient(45deg, #ffd700, #ffed4e) !important;
  border: none !important;
}

.boton-fijo {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
  border: none !important;
}

.whatsapp-float {
  background: transparent !important;
  border: none !important;
}

/* Asegurar que no haya interferencia */
body {
  position: static !important;
}

html {
  position: static !important;
}

/* Forzar elementos fijos en toda la página */
.live-cart {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.boton-fijo {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9998 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.whatsapp-float {
  position: fixed !important;
  bottom: 120px !important;
  right: 20px !important;
  z-index: 9999 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.notificacion {
  position: fixed !important;
  bottom: 100px !important;
  left: 20px !important;
  z-index: 9999 !important;
  display: flex !important;
  visibility: visible !important;
  opacity: 0 !important;
}
