/* ==========================================
   1. RESET Y BASE BOUTIQUE
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f9f6f0; /* Fondo beige suave */
  color: #1a1a1a;
}

/* ==========================================
   2. HEADER Y TIPOGRAFÍA ORIGINAL DEL LOGO
   ========================================== */
header {
  background-color: #ffffff;
  padding: 1rem 1.5rem 0.8rem;
  border-bottom: 1px solid #eee8de;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.header-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

/* 🖋️ Tipografía Limpia y Profesional Restablecida */
.logo-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
  justify-content: center;
  margin-top: 5px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #8c5a3c; /* Tono marrón cálido */
}

/* ==========================================
   3. HERO SECTION (TEXTURIZADO Y ELEGANTE)
   ========================================== */
.hero-section {
  text-align: center;
  padding: 3.5rem 1rem 3rem;
  background: 
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(249, 246, 240, 0.95) 100%),
    repeating-linear-gradient(45deg, #eee8de 0, #eee8de 1px, transparent 0, transparent 50%),
    repeating-linear-gradient(-45deg, #eee8de 0, #eee8de 1px, transparent 0, transparent 50%);
  background-size: 100% 100%, 8px 8px, 8px 8px;
  border-bottom: 1px solid #e2ded7;
}

.hero-section h1 {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 2.5px;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.hero-section p {
  font-size: 1rem;
  color: #666;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* 🟤 Botón Marrón Cálido */
.btn-hero {
  display: inline-block;
  background-color: #8c5a3c;
  color: #ffffff !important;
  text-decoration: none;
  padding: 0.75rem 2rem;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-hero:hover {
  background-color: #6f432a;
  transform: translateY(-2px);
}

/* ==========================================
   4. TÍTULOS CON LÍNEAS DECORATIVAS
   ========================================== */
.section-title {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2.5rem auto 1.2rem;
  max-width: 1000px;
  padding: 0 1rem;
}

.section-title::before, .section-title::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #d0c8be;
}

.section-title span {
  padding: 0 15px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #333;
  text-transform: uppercase;
  font-weight: bold;
}

/* ==========================================
   5. BANNER DE OFERTAS (MARCA DE AGUA Y ESTILO MARRÓN)
   ========================================== */
.ofertas-section {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  padding: 0 1rem;
}

.ofertas-card {
  background-color: #8d593943;
  border: 1px dashed #8c5a3c;
  border-radius: 6px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.ofertas-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  background-image: url('Galeria-TyH/logo.png');
  background-position: center;
  background-repeat:no-repeat;
  background-size: contain;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

.ofertas-badge {
  display: inline-block;
  background-color: #8c5a3c;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.ofertas-card h3 {
  font-size: 1.15rem;
  color: #1a1a1a;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.ofertas-card p {
  font-size: 0.95rem;
  color: #434343;
  max-width: 500px;
  margin: 0 auto 0.9rem;
  line-height: 1.35;
}

.social-buttons-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 🟤 Botones de Redes en Tonos Marrones Elegantes */
.btn-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  background-color: #f9f6f0;
  border: 1px solid #8c5a3c;
  color: #8c5a3c !important;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-social:hover {
  background-color: #8c5a3c;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(140, 90, 60, 0.25);
}

/* ==========================================
   6. BUSCADOR Y FILTROS EN MULTI-FILA
   ========================================== */
.search-container {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

#searchInput {
  width: 100%;
  max-width: 380px;
  padding: 0.6rem 1.2rem;
  border: 1px solid #d0c8be;
  background-color: #ffffff;
  border-radius: 20px;
  font-size: 0.9rem;
  outline: none;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap; /* Permite acomodar varios botones ordenadamente */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn-filter {
  background-color: #ffffff;
  border: 1px solid #8c5a3c;
  color: #1a1a1a;
  padding: 0.4rem 1rem;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-filter:hover, .btn-filter.active {
  background-color: #8c5a3c;
  border-color: #8c5a3c;
  color: #ffffff;
}

/* ==========================================
   7. GRILLA Y TARJETAS DE PRODUCTO
   ========================================== */
#productGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.product-card {
  background-color: #ffffff;
  border-radius: 6px; 
  padding: 0.8rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #ede9e3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  margin-bottom: 0.8rem;
}

.product-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 4px;
  cursor: zoom-in;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
  color: #1a1a1a;
}

.price {
  font-size: 1.05rem;
  font-weight: bold;
  color: #8c5a3c; /* Precio en Marrón Cálido */
  margin-bottom: 0.4rem;
}

.btn-comprar, .btn-buy, .btn-whatsapp-card {
  display: block;
  width: 100%;
  background-color: #8c5b3cda;
  color: #ffffff !important;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s;
  border: none;
}

.btn-comprar:hover, .btn-buy:hover, .btn-whatsapp-card:hover {
  background-color: #6f432a;
}

/* Ícono de Instagram flotante */
.btn-instagram {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  background-color: #ffffff;
  color: #8c5a3c !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.2s;
  z-index: 5;
}

.btn-instagram:hover {
  background-color: #8c5a3c;
  color: #ffffff !important;
  transform: scale(1.1);
}

/* ==========================================
   8. BARRA DE BENEFICIOS Y FOOTER
   ========================================== */
.trust-banner {
  background-color: #ede7de;
  padding: 2rem 1rem;
  border-top: 1px solid #dcd5ca;
  border-bottom: 1px solid #dcd5ca;
  text-align: center;
}

.trust-title {
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.trust-title::before, .trust-title::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #bcaba2;
}

.trust-title span {
  padding: 0 12px;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  color: #444;
  text-transform: uppercase;
}

.trust-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #333;
}

footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 2.5rem 1rem 1.5rem;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 1.5rem;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-social a { color: #ffffff; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #ccc; text-decoration: none; font-size: 0.85rem; }
.copyright { text-align: center; font-size: 0.75rem; color: #888; }

.wsp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
}

.image-modal, .modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.image-modal img { max-width: 90%; max-height: 85vh; border-radius: 4px; }
.close-zoom, .close-btn { position: absolute; top: 15px; right: 25px; color: #fff; font-size: 2rem; cursor: pointer; }

.size-table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
}

.size-table th, .size-table td {
  border: 1px solid #ddd;
  padding: 8px;
  font-size: 0.9rem;
}

.size-table th { background-color: #f9f6f0; color: #1a1a1a; }

.modal-content {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 480px;
  width: 90%;
  position: relative;
  text-align: center;
}