/* ==========================================
   ESTILOS TIENDA - Diseño Responsive Completo
   ========================================== */

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lexend Deca', sans-serif;
  background: #000;
  color: #39ff14;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================
   CONTAINER PRINCIPAL
   ========================================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* ==========================================
   HEADER DE SECCIÓN
   ========================================== */
.header {
  text-align: center;
  padding: 40px 20px 30px;
  max-width: 900px;
  margin: 0 auto;
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #39ff14;
  text-shadow: 0 0 20px rgba(57, 255, 20, 0.6);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.header p {
  font-size: 1.1rem;
  color: #ccff99;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================
   SECCIONES
   ========================================== */
.section {
  margin: 60px 0;
}

.section-title {
  font-size: 2.2rem;
  color: #39ff14;
  text-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 5px solid #39ff14;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ==========================================
   GALERÍA DE PRODUCTOS
   ========================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

/* Tarjeta de producto */
.artwork-card {
  background: linear-gradient(145deg, rgba(0, 26, 0, 0.8), rgba(0, 51, 0, 0.6));
  border: 2px solid rgba(57, 255, 20, 0.3);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 30px rgba(57, 255, 20, 0.15);
  display: flex;
  flex-direction: column;
}

.artwork-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #39ff14;
  box-shadow: 0 15px 45px rgba(57, 255, 20, 0.35);
}

/* Imagen del producto */
.artwork-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Aspect ratio 1:1 */
  overflow: hidden;
  cursor: pointer;
}

.artwork-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.artwork-card:hover .artwork-image img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.artwork-card:hover .image-overlay {
  opacity: 1;
}

.zoom-icon::before {
  content: '🔍';
  font-size: 2.5rem;
  filter: drop-shadow(0 0 10px rgba(57, 255, 20, 0.8));
}

/* Información del producto */
.artwork-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.artwork-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #39ff14;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
  line-height: 1.3;
}

.artwork-details {
  font-size: 0.9rem;
  color: #ccff99;
  line-height: 1.5;
  min-height: 45px;
}

.artwork-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: #39ff14;
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
  margin: 8px 0;
}

/* Botones */
.artwork-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn-consultar {
  background: transparent;
  border: 2px solid #39ff14;
  color: #39ff14;
}

.btn-consultar:hover {
  background: rgba(57, 255, 20, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(57, 255, 20, 0.3);
}

.btn-comprar {
  background: linear-gradient(135deg, #39ff14, #2ecc40);
  color: #000;
  font-weight: 800;
}

.btn-comprar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(57, 255, 20, 0.5);
  filter: brightness(1.1);
}

/* ==========================================
   OBRAS VENDIDAS - DOS COLUMNAS CENTRADAS
   ========================================== */
.sold-section {
  background: linear-gradient(145deg, rgba(51, 0, 0, 0.3), rgba(26, 0, 0, 0.2));
  border: 2px solid rgba(255, 0, 0, 0.2);
  border-radius: 16px;
  padding: 40px 30px;
  margin: 40px 0;
}

/* Contenedor de dos columnas */
.sold-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;

}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-title {
  font-size: 1.8rem;
  color: #39ff14;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #39ff14;
  background: rgba(0, 26, 0, 0.5);
  border-radius: 8px;
  text-align: center;
  text-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
  font-weight: 700;
}

.sold-artwork {
  background: rgba(0, 26, 0, 0.4);
  border: 2px solid rgba(57, 255, 20, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.sold-artwork:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 255, 20, 0.4);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.2);
}

.sold-artwork img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  max-height: 400px;
  object-fit: cover;
}

.sold-artwork:hover img {
  opacity: 1;
}

.sold-artwork h4 {
  font-size: 1.1rem;
  color: #39ff14;
  margin: 10px 0;
  font-weight: 700;
}

.sold-artwork p {
  font-size: 0.9rem;
  color: #ccff99;
  margin: 5px 0;
  line-height: 1.5;
}

.sold-price {
  font-weight: 700;
  color: #ff6b6b;
  font-size: 1rem;
  margin-top: 10px;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

/* Responsive para obras vendidas */
@media (max-width: 1024px) {
  .sold-categories {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .sold-section {
    padding: 30px 20px;
  }

  .sold-categories {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .category-title {
    font-size: 1.5rem;
    padding: 12px 16px;
  }

  .sold-artwork {
    padding: 16px;
  }

  .sold-artwork h4 {
    font-size: 1rem;
  }

  .sold-artwork img {
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .sold-section {
    padding: 25px 15px;
  }

  .category-title {
    font-size: 1.3rem;
    padding: 10px 14px;
  }

  .sold-artwork {
    padding: 14px;
  }

  .sold-artwork img {
    max-height: 300px;
  }
}


/* ==========================================
   CUADROS PERSONALIZADOS
   ========================================== */
.custom-section {
  background: linear-gradient(145deg, rgba(0, 26, 0, 0.8), rgba(0, 51, 0, 0.6));
  border: 2px solid rgba(57, 255, 20, 0.3);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(57, 255, 20, 0.2);
}

.custom-description {
  font-size: 1.1rem;
  color: #ccff99;
  text-align: center;
  margin-bottom: 35px;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.custom-form {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.95rem;
  color: #39ff14;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: rgba(0, 26, 0, 0.6);
  border: 2px solid rgba(57, 255, 20, 0.3);
  border-radius: 10px;
  color: #ccff99;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #39ff14;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
  background: rgba(0, 26, 0, 0.8);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  padding: 15px 40px;
  background: linear-gradient(135deg, #39ff14, #2ecc40);
  color: #000;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(57, 255, 20, 0.5);
  filter: brightness(1.1);
}

/* ==========================================
   INFORMACIÓN DE COMPRA
   ========================================== */
.info-section {
  padding: 20px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.info-item {
  background: linear-gradient(145deg, rgba(0, 26, 0, 0.7), rgba(0, 51, 0, 0.5));
  border: 2px solid rgba(57, 255, 20, 0.25);
  border-radius: 14px;
  padding: 30px;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateY(-5px);
  border-color: #39ff14;
  box-shadow: 0 12px 35px rgba(57, 255, 20, 0.25);
}

.info-item h3 {
  font-size: 1.3rem;
  color: #39ff14;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item p {
  font-size: 0.95rem;
  color: #ccff99;
  line-height: 1.7;
}

.info-item a {
  color: #39ff14;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #04ff43;
}

/* ==========================================
   MODAL LIBRO DE RECLAMACIONES
   ========================================== */
.modal-libro {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-contenido {
  background: linear-gradient(145deg, rgba(0, 26, 0, 0.98), rgba(0, 51, 0, 0.95));
  border: 2px solid #39ff14;
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 15px 50px rgba(57, 255, 20, 0.4);
}

.cerrar-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2rem;
  color: #39ff14;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.cerrar-modal:hover {
  color: #ff6b6b;
  transform: rotate(90deg);
}

.modal-contenido h2 {
  color: #39ff14;
  margin-bottom: 15px;
  font-size: 1.8rem;
  text-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.libro-info {
  color: #ccff99;
  margin-bottom: 25px;
  font-size: 1rem;
}

.libro-formulario {
  display: grid;
  gap: 18px;
}

.libro-formulario label {
  color: #39ff14;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.libro-formulario input,
.libro-formulario select,
.libro-formulario textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 26, 0, 0.6);
  border: 2px solid rgba(57, 255, 20, 0.3);
  border-radius: 10px;
  color: #ccff99;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  margin-top: 5px;
}

.libro-formulario input:focus,
.libro-formulario select:focus,
.libro-formulario textarea:focus {
  border-color: #39ff14;
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.3);
}

.libro-formulario textarea {
  resize: vertical;
  min-height: 100px;
}

.libro-formulario button {
  padding: 14px 30px;
  background: linear-gradient(135deg, #39ff14, #2ecc40);
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.libro-formulario button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(57, 255, 20, 0.5);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: linear-gradient(180deg, transparent, rgba(0, 26, 0, 0.9));
  border-top: 2px solid rgba(57, 255, 20, 0.2);
  padding: 40px 20px 25px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-redes {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-icon {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(57, 255, 20, 0.3));
}

.footer-icon:hover {
  transform: scale(1.15) translateY(-3px);
  filter: drop-shadow(0 0 15px rgba(57, 255, 20, 0.6));
}

.footer-links {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #39ff14;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #04ff43;
  text-decoration: underline;
}

.footer-separator {
  color: rgba(57, 255, 20, 0.4);
}

.footer-libro {
  margin: 10px 0;
}

.libro-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid #39ff14;
  border-radius: 10px;
  color: #39ff14;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.libro-btn img {
  width: 24px;
  height: 24px;
}

.libro-btn:hover {
  background: rgba(57, 255, 20, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(57, 255, 20, 0.3);
}

.footer-copyright {
  color: #ccff99;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 10px;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
  .header h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .custom-section {
    padding: 30px 25px;
  }
}

/* ==========================================
   RESPONSIVE - MÓVIL
   ========================================== */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  .header {
    padding: 30px 15px 20px;
  }

  .header h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .header p {
    font-size: 1rem;
  }

  .section {
    margin: 40px 0;
  }

  .section-title {
    font-size: 1.5rem;
    padding-left: 15px;
    border-left-width: 4px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .artwork-card {
    border-radius: 14px;
  }

  .artwork-info {
    padding: 16px;
  }

  .artwork-title {
    font-size: 1.1rem;
  }

  .artwork-details {
    font-size: 0.85rem;
    min-height: auto;
  }

  .artwork-price {
    font-size: 1.2rem;
  }

  .artwork-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .btn {
    padding: 12px 16px;
    font-size: 0.85rem;
  }

  /* Formulario personalizado responsive */
  .custom-section {
    padding: 25px 20px;
  }

  .custom-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .submit-btn {
    padding: 14px 30px;
    font-size: 1rem;
  }

  /* Info grid responsive */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .info-item {
    padding: 25px 20px;
  }

  .info-item h3 {
    font-size: 1.2rem;
  }

  .info-item p {
    font-size: 0.9rem;
  }

  /* Modal responsive */
  .modal-contenido {
    padding: 30px 20px;
    max-height: 85vh;
  }

  .modal-contenido h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .cerrar-modal {
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
  }

  /* Footer responsive */
  footer {
    padding: 30px 15px 20px;
    margin-top: 50px;
  }

  .footer-redes {
    gap: 15px;
  }

  .footer-icon {
    width: 35px;
    height: 35px;
  }

  .footer-links {
    font-size: 0.9rem;
    gap: 10px;
  }

  .libro-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .libro-btn img {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================
   RESPONSIVE - MÓVIL PEQUEÑO
   ========================================== */
@media (max-width: 480px) {
  .header h1 {
    font-size: 1.7rem;
  }

  .header p {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .artwork-card {
    border-radius: 12px;
  }

  .artwork-title {
    font-size: 1rem;
  }

  .artwork-price {
    font-size: 1.1rem;
  }

  .custom-section {
    padding: 20px 15px;
  }

  .modal-contenido {
    padding: 25px 18px;
  }

  .libro-formulario input,
  .libro-formulario select,
  .libro-formulario textarea {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

/* ==========================================
   ANIMACIONES Y EFECTOS
   ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Suavizar scroll */
html {
  scroll-behavior: smooth;
}

/* Mejorar rendimiento en animaciones */
.artwork-card,
.btn,
.nav-link,
.footer-icon {
  will-change: transform;
}