/* ========================================
   MODAL DE VENTA DE PRODUCTOS
   Fotos, Descripción, Precio + 3 canales
   Diseño profesional en tono marca
   ======================================== */

/* Backdrop oscuro del modal */
.venta-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  animation: fadeIn 0.3s ease;
}

.venta-modal-backdrop.venta-modal-hidden {
  display: none;
}

/* Contenedor principal del modal */
.venta-modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.venta-modal-container.venta-modal-hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Caja principal del modal */
.venta-modal-box {
  background: linear-gradient(180deg, #1a3a47 0%, #172f3e 100%);
  border: 2px solid rgba(227, 208, 67, 0.3);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 
              0 0 40px rgba(227, 208, 67, 0.2);
  max-width: 520px;
  width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

/* Botón cerrar */
.venta-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.venta-modal-close:hover {
  background: rgba(227, 208, 67, 0.15);
  color: #e3d043;
  transform: rotate(90deg);
}

/* Encabezado */
.venta-modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.venta-modal-header h2 {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.venta-modal-header p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* Formulario */
.venta-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.venta-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.venta-form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #e3d043;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.venta-form-group input,
.venta-form-group textarea {
  padding: 12px 14px;
  background: rgba(227, 208, 67, 0.05);
  border: 1px solid rgba(227, 208, 67, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

.venta-form-group input::placeholder,
.venta-form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.venta-form-group input:focus,
.venta-form-group textarea:focus {
  outline: none;
  background: rgba(227, 208, 67, 0.1);
  border-color: #e3d043;
  box-shadow: 0 0 12px rgba(227, 208, 67, 0.2);
}

.venta-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Zona de carga de fotos */
.venta-photo-upload {
  border: 2px dashed rgba(227, 208, 67, 0.4);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(227, 208, 67, 0.02);
}

.venta-photo-upload:hover {
  border-color: #e3d043;
  background: rgba(227, 208, 67, 0.08);
}

.venta-photo-upload input[type="file"] {
  display: none;
}

.venta-photo-upload-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.6;
}

.venta-photo-upload-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}

/* Vista previa de fotos */
.venta-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.venta-photo-preview img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(227, 208, 67, 0.2);
}

/* Botones de contacto */
/* ===== OPCIONES DE CONTACTO: estilo unido a Contact Direct ===== */
.venta-contact-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

/* Reusar estética del contact-option-btn para mantener colores y efectos */
.venta-contact-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 2px solid rgba(227, 208, 67, 0.15);
  border-radius: 14px;
  padding: 18px 14px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.venta-contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(227, 208, 67, 0.08);
  transition: left 0.3s ease;
  z-index: 0;
}

.venta-contact-btn > * { position: relative; z-index: 1; }

.venta-contact-btn:hover {
  border-color: rgba(227, 208, 67, 0.9);
  box-shadow: 0 8px 24px rgba(227, 208, 67, 0.2), inset 0 0 20px rgba(227, 208, 67, 0.04);
  transform: translateY(-4px);
}

.venta-contact-btn:hover::before { left: 0; }

.venta-contact-btn.active {
  background: linear-gradient(180deg, rgba(227,208,67,0.15), rgba(227,208,67,0.08));
  border-color: rgba(227,208,67,0.9);
  box-shadow: 0 12px 32px rgba(227,208,67,0.25), inset 0 0 20px rgba(227,208,67,0.1);
}

.venta-contact-btn-icon { font-size: 36px; line-height: 1; display: block; }

/* Labels (texto) — mantener h3/p visual si existen */
.venta-contact-btn h3,
.venta-contact-btn .label {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: #e3d043;
  letter-spacing: 0.3px;
  font-family: 'Cinzel', Georgia, serif;
}

.venta-contact-btn p,
.venta-contact-btn .desc { color: #ffffff; font-size: 12px; margin: 0; }

/* Footer del modal */
.venta-modal-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(227, 208, 67, 0.2);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
  .venta-modal-box {
    padding: 28px 20px;
  }

  .venta-modal-header h2 {
    font-size: 22px;
  }

  .venta-contact-options {
    grid-template-columns: 1fr;
  }

  .venta-contact-btn {
    padding: 12px 14px;
    font-size: 12px;
  }
}
