/* ===== VARIABLES GLOBALES ===== */
:root {
  --color-primario: #667eea;
  --color-secundario: #764ba2;
  --color-blanco: #ffffff;
  --color-fondo: #f8f9fa;
  --color-texto: #1a202c;
  --color-gris: #6c757d;
  --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.1);
  --sombra-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --transicion: all 0.3s ease;
  --radio-borde: 12px;
}

/* ===================================================================== */
/* ===== ESTILOS PARA PÁGINA DE UPLOAD DE COMPROBANTE ===== */
/* ===================================================================== */

.upload-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.upload-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3), transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15), transparent 50%);
    animation: backgroundFlow 15s infinite linear;
    z-index: 0;
}

@keyframes backgroundFlow {
    0% { transform: translateX(-100px) translateY(-100px) rotate(0deg); }
    50% { transform: translateX(100px) translateY(100px) rotate(180deg); }
    100% { transform: translateX(-100px) translateY(-100px) rotate(360deg); }
}

.upload-container {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: cardEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes cardEntrance {
    0% { 
        opacity: 0; 
        transform: translateY(50px) scale(0.9) rotateX(15deg);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotateX(0deg);
    }
}

.upload-container::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, #667eea, #764ba2, #667eea);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
    0% { opacity: 0.1; transform: scale(1); }
    100% { opacity: 0.3; transform: scale(1.02); }
}

.upload-content {
    text-align: center;
    position: relative;
}

.upload-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    line-height: 1.3;
    animation: titleSlide 0.8s ease-out forwards;
    letter-spacing: -0.025em;
}

@keyframes titleSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.upload-content img {
    width: 80px;
    height: 80px;
    margin: 1rem auto;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: imageFloat 3s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.upload-container ul {
    padding: 0;
    margin: 1.5rem 0;
    list-style: none;
}

.upload-container li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    animation: listSlide 0.6s ease-out forwards;
}

.upload-container li:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@keyframes listSlide {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

.upload-container li strong,
.upload-container li span {
    font-size: 1rem;
    line-height: 1.5;
    color: #2d3748;
}

.upload-container li strong {
    font-weight: 600;
    color: #1a202c;
}

.copy-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.copy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.copy-button:hover::before {
    left: 100%;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4);
}

#uploadButton {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    margin-top: 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-weight: 700;
}

#uploadButton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

#uploadButton:hover::before {
    left: 100%;
}

#uploadButton:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

#uploadButton:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

#verification-message {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
    animation: messageSlide 0.6s ease-out forwards;
}

#verification-message h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

#verification-message h2::before {
    content: '✓';
    font-size: 2rem;
    margin-right: 0.5rem;
    animation: checkBounce 0.6s ease-out;
}

@keyframes messageSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes checkBounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.loading-state {
    opacity: 0.7;
    pointer-events: none;
}

.loading-state #uploadButton {
    background: linear-gradient(135deg, #a0aec0, #718096);
    cursor: not-allowed;
}

.loading-state #uploadButton::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUpUpload {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-container > * {
    animation: fadeInUpUpload 0.6s ease-out forwards;
}

.upload-container > *:nth-child(1) { animation-delay: 0.1s; }
.upload-container > *:nth-child(2) { animation-delay: 0.2s; }
.upload-container > *:nth-child(3) { animation-delay: 0.3s; }
.upload-container > *:nth-child(4) { animation-delay: 0.4s; }
.upload-container > *:nth-child(5) { animation-delay: 0.5s; }

/* Responsive para upload */
@media (max-width: 640px) {
    .upload-page {
        padding: 0.5rem;
    }
    
    .upload-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        max-width: 100%;
    }
    
    .upload-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .upload-content img {
        width: 60px;
        height: 60px;
    }
    
    .upload-container li {
        padding: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .upload-container li strong,
    .upload-container li span {
        font-size: 0.875rem;
    }
    
    .copy-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.75rem;
    }
    
    #uploadButton {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
    
    #verification-message {
        padding: 1.25rem;
        margin-top: 1.25rem;
    }
    
    #verification-message h2 {
        font-size: 1.125rem;
    }
    
    #verification-message h2::before {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .upload-container {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .upload-content h2 {
        font-size: 1.25rem;
    }
    
    .upload-content img {
        width: 50px;
        height: 50px;
    }
    
    .upload-container li {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .upload-container li strong,
    .upload-container li span {
        font-size: 0.8rem;
    }
    
    .copy-button {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
    
    #uploadButton {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        margin-top: 1.25rem;
    }
    
    #verification-message {
        padding: 1rem;
        margin-top: 1rem;
    }
    
    #verification-message h2 {
        font-size: 1rem;
    }
    
    #verification-message h2::before {
        font-size: 1.25rem;
    }
}

/* ===================================================================== */
/* ===== ESTILOS PARA PÁGINA DE PRODUCTOS (DIAMANTES) ===== */
/* ===================================================================== */

.producto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.header-producto {
  text-align: center;
  margin-bottom: 2rem;
}

.titulo-principal {
  font-size: 2.5rem;
  color: var(--color-texto);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitulo {
  font-size: 1.2rem;
  color: var(--color-gris);
  margin-bottom: 2rem;
}

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

.tarjeta-diamante {
  background: var(--color-blanco);
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-suave);
  transition: var(--transicion);
  overflow: hidden;
  position: relative;
}

.tarjeta-diamante::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primario), var(--color-secundario));
}

.tarjeta-diamante:hover {
  transform: translateY(-5px);
  box-shadow: var(--sombra-hover);
}

.contenido-tarjeta {
  padding: 1.5rem;
}

.imagen-diamante {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radio-borde);
  margin-bottom: 1rem;
  transition: var(--transicion);
}

.imagen-diamante:hover {
  transform: scale(1.05);
}

.cantidad-diamante {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-texto);
  margin-bottom: 0.5rem;
}

.precio-diamante {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primario);
  margin: 1rem 0;
}

.descripcion-producto {
  color: var(--color-gris);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.boton-comprar {
  background: linear-gradient(135deg, var(--color-primario), #ee5a24);
  color: var(--color-blanco);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radio-borde);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transicion);
  width: 100%;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.boton-comprar:hover {
  background: linear-gradient(135deg, #ee5a24, var(--color-primario));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(238, 90, 36, 0.3);
}

.boton-comprar:active {
  transform: translateY(0);
}

.instrucciones-container {
  background: var(--color-blanco);
  padding: 2rem;
  border-radius: var(--radio-borde);
  margin: 3rem 0;
  border-left: 4px solid var(--color-secundario);
}

.instrucciones-container h2 {
  color: var(--color-texto);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
}

.pasos-lista {
  list-style: none;
  counter-reset: paso-counter;
}

.paso-instruccion {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--color-fondo);
  border-radius: var(--radio-borde);
  transition: var(--transicion);
  counter-increment: paso-counter;
}

.paso-instruccion:hover {
  background: #e9ecef;
}

.numero-paso {
  background: var(--color-secundario);
  color: var(--color-blanco);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1rem;
  flex-shrink: 0;
}

.numero-paso::before {
  content: counter(paso-counter);
}

.texto-paso {
  font-size: 1rem;
  line-height: 1.5;
}

@keyframes fadeInUpProducto {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.producto-info {
  animation: fadeInUpProducto 0.6s ease-out;
}

.estado-producto {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.disponible {
  background: #d4edda;
  color: #155724;
}

.promocion {
  background: #fff3cd;
  color: #856404;
}

.popular {
  background: #d1ecf1;
  color: #0c5460;
}

.seccion-testimonios {
  background: var(--color-blanco);
  padding: 2rem;
  border-radius: var(--radio-borde);
  margin: 2rem 0;
}

.testimonio {
  background: var(--color-fondo);
  padding: 1.5rem;
  border-radius: var(--radio-borde);
  margin-bottom: 1rem;
  box-shadow: var(--sombra-suave);
}

.estrellas {
  color: #ffc107;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.nombre-usuario {
  font-weight: 600;
  color: var(--color-texto);
  margin-top: 1rem;
}

.footer-producto {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--color-blanco);
  border-radius: var(--radio-borde);
}

.info-contacto {
  color: var(--color-gris);
  font-size: 0.9rem;
}

/* Responsive para productos */
@media (max-width: 768px) {
  .producto-container {
    padding: 0.5rem;
  }
  
  .diamantes-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .titulo-principal {
    font-size: 2rem;
  }
  
  .precio-diamante {
    font-size: 1.5rem;
  }
  
  .instrucciones-container {
    padding: 1rem;
  }
  
  .paso-instruccion {
    flex-direction: column;
    text-align: center;
  }
  
  .numero-paso {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 480px) {
  .titulo-principal {
    font-size: 1.5rem;
  }
  
  .contenido-tarjeta {
    padding: 1rem;
  }
  
  .boton-comprar {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* ===== UTILIDADES GLOBALES ===== */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}
