/* ============================================================================
   ESTILOS ORGANIZADOS - ESTRUCTURA PRINCIPAL
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. IMPORTACIONES Y FUENTES
   ---------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ----------------------------------------------------------------------------
   2. VARIABLES CSS GLOBALES
   ---------------------------------------------------------------------------- */
:root {
  /* Colores principales */
  --bg-color: #fff;
  --main-color: #d1d1d1;
  --text-color: #010101;
  --c2-color: #434343;
  --other-color: #666666;
  --tc-color: #1beff5;
  --accent-green: #fbe5e5;

  /* Colores del footer */
  --footer-bg: #1a1a1a;
  --footer-text: #ffffff;
  --footer-text-secondary: #888888;

  /* Tipografía */
  --h1-font: 5rem;
  --h2-font: 2.3rem;
  --p-font: 1.3rem;
  --hf-font-size: 15px;
  --hf-font-weight: 400;
}

/* ----------------------------------------------------------------------------
   3. RESET Y CONFIGURACIÓN BASE
   ---------------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
  scroll-behavior: smooth;
  font-family: "Poppins", sans-serif;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--bg-color);
}

/* Configuración de listas */
ol, ul {
  padding-left: 0rem;
  margin-top: 0;
  margin-bottom: 0rem;
}

dl, ol, ul {
  margin-top: 0;
  padding-left: 0rem !important;
}

/* Enlaces base */
a {
  color: black;
  text-decoration: none;
}

a:hover {
  color: black;
  text-decoration: none;
}

/* ============================================================================
   4. ESTRUCTURA DEL HEADER
   ============================================================================ */

/* ----------------------------------------------------------------------------
   4.1 SUBHEADER (BANNER SUPERIOR)
   ---------------------------------------------------------------------------- */
.sub-header {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  padding: 8px 0;
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
  background-color: black;
  color: white;
  z-index: 999;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------------------------
   4.2 HEADER PRINCIPAL
   ---------------------------------------------------------------------------- */
header {
  position: fixed;
  width: 100%;
  top: 30px;  /* Deja espacio para el subheader */
  right: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 1px 6px 0 rgb(32 33 36 / 10%);
  display: flex;
  justify-content: space-between;
  padding: 0px 14%;
  transition: top 0.5s ease;
}

/* ----------------------------------------------------------------------------
   4.3 LOGO
   ---------------------------------------------------------------------------- */
.logo img {
  width: 180px;
  height: auto;
}

/* ----------------------------------------------------------------------------
   4.4 NAVEGACIÓN PRINCIPAL
   ---------------------------------------------------------------------------- */
.navbar-f {
  display: flex;
  align-items: center;
}

.navbar-f a {
  display: flex;
  color: var(--text-color);
  font-size: 0.9380rem;
  margin: 20px 22px;
  text-decoration: none;
  width: 100%;
}

.navbar-f li {
  width: 100%;
  white-space: nowrap;
}

/* Efecto hover con subrayado animado */
.navbar-f a.navbar-a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.navbar-f a.navbar-a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  width: 0;
  height: 3px;
  background-color: #fbe5e5;
  transition: width 0.3s ease-in-out;
}

.navbar-f a.navbar-a:hover::after {
  width: 100%;
}

/* ----------------------------------------------------------------------------
   4.5 MENÚ DROPDOWN DE PRODUCTOS
   ---------------------------------------------------------------------------- */
.productos-item {
  position: relative;
}

.productos-hover {
  padding: 0 14%;
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-sizing: border-box;
  z-index: 999;
  box-shadow: 0px 4px 0px rgba(0, 0, 0, 0.2);
}

.productos-item:hover .productos-hover,
.productos-hover:hover {
  display: flex;
}

/* Columnas del dropdown */
.productos-hover .column {
  margin: 0px;
}

.column {
  flex: 0.250;
}

.promo-column {
  flex-shrink: 0;
  margin-left: auto;
}

/* Listas de categorías */
.column li .name-p {
  font-weight: bold;
  position: relative;
  text-decoration: none;
}

.column ul {
  list-style: none;
  margin: 0;
  margin-bottom: 0px;
}

.column ul li a {
  font-size: 0.8rem;
  display: block;
  color: #000000;
  text-decoration: none;
  margin-left: 10px;
  margin-bottom: 0px;
  transition: color 0.3s ease;
}

/* Columna promocional */
.promo-column .promo-link {
  margin-bottom: 50px;
  position: relative;
  display: flex;
  width: 350px;
  height: 250px;
  background-image: url('/imagenes/almohadones.jpg');
  background-size: cover;
  background-position: center;
  text-decoration: none;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.promo-column .promo-content {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.promo-column .promo-content p {
  margin-bottom: 15px;
  font-weight: bold;
  color: #fff;
}

.promo-column .promo-btn {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  font-weight: bold;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.promo-column .promo-btn:hover {
  background: #fff;
  color: #000;
}

/* ----------------------------------------------------------------------------
   4.6 ICONOS DEL HEADER
   ---------------------------------------------------------------------------- */
.h-icons {
  display: flex;
  align-items: center;
  margin-top: 1px;
}

.h-icons i {
  font-size: 25px;
  color: var(--text-color);
  margin-left: 5px;
  margin-right: 20px;
}

.menu-br {
  font-size: 25px;
  color: var(--text-color);
  margin-left: 5px;
  margin-right: 20px;
}

#menu-icon {
  height: 25px;
  width: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  z-index: 10001;
  cursor: pointer;
  display: none;
}

/* ============================================================================
   5. SECCIÓN DE CATEGORÍAS (HERO ALTERNATIVO)
   ============================================================================ */

.main-products {
  margin-top: 80px;
}

.categories-section {
  padding: 2rem 0 20px 0;
  background: linear-gradient(135deg, rgb(241, 176, 179) 0%, rgb(220, 87, 100) 100%);
  display: flex;
  align-items: center;
}

.categories-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  height: 100%;
}

.section-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.section-title {
  font-size: 3.5rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-subtitle {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.7;
}

/* ----------------------------------------------------------------------------
   5.1 BENTO GRID DE CATEGORÍAS
   ---------------------------------------------------------------------------- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 1rem;
  height: 320px;
  width: 600px;
  margin-left: 120px;
}

.category-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: rgba(0, 0, 0, 0.08) 0px 5px 25px;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* Tamaños de tarjetas */
.category-card.large {
  grid-column: span 4;
  grid-row: span 2;
}

.category-card.medium {
  grid-column: span 4;
  grid-row: span 1;
}

.category-card.small {
  grid-column: span 2;
  grid-row: span 1;
}

.category-card.decoracion {
  grid-column: span 4;
  grid-row: span 2;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .category-image {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card:hover .category-overlay {
  opacity: 1;
}

.category-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.category-count {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ============================================================================
   6. SECCIÓN DE PRODUCTOS
   ============================================================================ */

.products-container {
  max-width: 1200px;
  margin: 0px auto 0;
  padding: 0px;
}

/* ----------------------------------------------------------------------------
   6.1 FILTROS Y BÚSQUEDA
   ---------------------------------------------------------------------------- */
.filters-section {
  margin: 40px 10px;
  background: white;
  border-radius: 15px;
  padding: 2rem;

  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.search-bar {
  position: relative;
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  border-color: rgb(220, 87, 100);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 1.2rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  background: white;
  outline: none;
  transition: border-color 0.3s ease;
}

.filter-select:focus {
  border-color: rgb(220, 87, 100);
}

.sort-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.results-count {
  color: #666;
  font-size: 0.9rem;
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  outline: none;
}

.sort-select:focus {
  border-color: rgb(220, 87, 100);
}

/* ----------------------------------------------------------------------------
   6.2 GRID DE PRODUCTOS
   ---------------------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ============================================================================
   7. TARJETAS DE PRODUCTOS
   ============================================================================ */

.container {
  max-width: 350px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
  border-color: rgba(220, 87, 100, 0.2);
}

/* ----------------------------------------------------------------------------
   7.1 IMAGEN DEL PRODUCTO
   ---------------------------------------------------------------------------- */
.product-image {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #f8f9fa;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

/* ----------------------------------------------------------------------------
   7.2 BADGES Y ETIQUETAS
   ---------------------------------------------------------------------------- */
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgb(220, 87, 100);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.product-badge.new {
  background: rgb(241, 176, 179);
  color: rgb(220, 87, 100);
}

.product-badge.sale {
  background: #ffa726;
}

/* ----------------------------------------------------------------------------
   7.3 INFORMACIÓN DEL PRODUCTO
   ---------------------------------------------------------------------------- */
.product-info {
  padding: 1rem;
  position: relative;
}

.product-category {
  font-size: 0.8rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
  line-height: 1.4;
}

.product-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: rgb(220, 87, 100);
  margin-bottom: 1rem;
}

.product-price .old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
  margin-left: 0.5rem;
}

.product-rating {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.stars {
  display: flex;
  color: #ffa726;
}

.rating-text {
  color: #666;
  font-size: 0.9rem;
}

.product-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.product-features {
  display: flex;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.feature-tag {
  margin-left: 5px;
  background: #f0f0f0;
  color: #666;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* ----------------------------------------------------------------------------
   7.4 BOTÓN DE AGREGAR AL CARRITO
   ---------------------------------------------------------------------------- */
.add-to-cart {
  width: 100%;
  background: linear-gradient(135deg, rgb(241, 176, 179) 0%, rgb(220, 87, 100) 100%);
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.add-to-cart:hover::before {
  left: 100%;
}

.add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(220, 87, 100, 0.4);
}

/* ----------------------------------------------------------------------------
   7.5 BOTÓN CARGAR MÁS
   ---------------------------------------------------------------------------- */
.load-more {
  text-align: center;
  margin: 3rem 0;
}

.load-more-btn {
  background: transparent;
  border: 2px solid rgb(220, 87, 100);
  color: rgb(220, 87, 100);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: rgb(220, 87, 100);
  color: white;
  transform: translateY(-2px);
}

/* ============================================================================
   8. SECCIÓN DE CONFIANZA
   ============================================================================ */

.trust-section {
  background: linear-gradient(135deg, rgb(241, 176, 179) 0%, rgb(220, 87, 100) 100%);
  padding: 3rem 0;
  color: white;
  margin-top: 4rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.trust-item {
  text-align: center;
  padding: 1rem;
}

.trust-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.trust-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.trust-description {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ============================================================================
   9. FOOTER MODERNO
   ============================================================================ */

.modern-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: auto;
}

/* ----------------------------------------------------------------------------
   9.1 SECCIÓN DE NEWSLETTER
   ---------------------------------------------------------------------------- */
.newsletter-section {
  background: var(--accent-green);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--accent-green) 0%, #f5d5d5 50%, var(--accent-green) 100%);
  opacity: 0.1;
}

.newsletter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.newsletter-header {
  color: var(--footer-bg);
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
}

.newsletter-description {
  font-size: 1.1rem;
  font-weight: 400;
  opacity: 0.8;
  max-width: 400px;
}

.newsletter-form {
  min-width: 400px;
}

.input-container {
  display: flex;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 500px;
}

#email {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
  color: var(--footer-bg);
  background: transparent;
  outline: none;
}

#email::placeholder {
  color: #666;
  font-weight: 400;
}

.subscribe-btn {
  padding: 1rem 2rem;
  border: none;
  background: var(--footer-bg);
  color: var(--accent-green);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.subscribe-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.privacy-text {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--footer-bg);
  opacity: 0.7;
}

.privacy-link {
  color: var(--footer-bg);
  text-decoration: underline;
  font-weight: 500;
}

/* ----------------------------------------------------------------------------
   9.2 CONTENIDO PRINCIPAL DEL FOOTER
   ---------------------------------------------------------------------------- */
.footer-content {
  padding: 4rem 0 2rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 4rem;
  align-items: start;
}

/* Sección de marca */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.brand-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--footer-text);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.brand-tagline {
  font-size: 1rem;
  color: var(--footer-text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info p {
  color: var(--footer-text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #333;
  color: var(--footer-text);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-icons a:hover {
  background: var(--accent-green);
  color: var(--footer-bg);
}

/* Enlaces del footer */
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.links-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--footer-text);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.links-column ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: left;
}

.links-column ul li a {
  color: var(--footer-text-secondary);
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.links-column ul li a:hover {
  color: var(--accent-green);
}

/* ----------------------------------------------------------------------------
   9.3 LOGO DEL FOOTER
   ---------------------------------------------------------------------------- */
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container {
  position: relative;
  padding: 1rem;
}

.logo-image {
  width: 280px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-image svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.1));
  transition: all 0.3s ease;
}

.logo-image:hover svg {
  filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.2));
  transform: scale(1.05);
}

/* Animación de brillo del logo */
.logo-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: logoShine 4s infinite;
  pointer-events: none;
}

/* ----------------------------------------------------------------------------
   9.4 COPYRIGHT
   ---------------------------------------------------------------------------- */
.copyright {
  border-top: 1px solid #333;
  padding: 1.5rem 0;
  text-align: center;
  background: var(--footer-bg);
}

.copyright p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--footer-text-secondary);
  font-weight: 400;
  letter-spacing: 0.5px;
}

/* ============================================================================
   10. ANIMACIONES Y EFECTOS
   ============================================================================ */

/* Animación del logo */
@keyframes logoShine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(200%) rotate(45deg); }
}

/* Animación de entrada de productos */
.product-card.loading {
  opacity: 0;
  transform: translateY(20px);
}

.product-card.loaded {
  opacity: 1;
  transform: translateY(0);
  animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
}

/* ============================================================================
   11. DISEÑO RESPONSIVO
   ============================================================================ */

/* ----------------------------------------------------------------------------
   11.1 TABLETS Y PANTALLAS MEDIANAS (max-width: 1328px)
   ---------------------------------------------------------------------------- */
@media screen and (max-width: 1328px) {
  .navbar-f {
    display: none;
  }

  #menu-icon {
    display: flex;
    font-size: 30px;
    cursor: pointer;
  }

  .h-icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-f.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    align-items: flex-start;
    transform: translateX(0);
  }

  .productos-hover {
    display: none !important;
  }

  .productos-item:hover .productos-hover {
    display: none !important;
  }
}

@media screen and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
  }

  .footer-logo {
    text-align: center;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .newsletter-form {
    min-width: auto;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 960px) {
  header {
    padding: 0px 0%;
  }
}

/* ----------------------------------------------------------------------------
   11.2 TABLETS (max-width: 768px)
   ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .categories-section {
    height: auto;
    padding: 2rem 0 20px 0;
  }

  .categories-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
  }

  .bento-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(6, 80px);
    gap: 0.8rem;
    height: 500px;
  }

  .category-card.large {
    grid-column: span 4;
    grid-row: span 2;
  }

  .category-card.medium {
    grid-column: span 4;
    grid-row: span 1;
  }

  .category-card.small {
    grid-column: span 2;
    grid-row: span 1;
  }

  .category-card.decoracion {
    grid-column: span 4;
    grid-row: span 2;
  }

  .category-card.large:last-child {
    grid-column: span 4;
    grid-row: span 2;
    min-height: 160px;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .sort-section {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .products-container {
    margin-top: 20px;
  }

  .newsletter-section {
    padding: 2rem 0;
  }

  .newsletter-title {
    font-size: 2rem;
  }

  .footer-content {
    padding: 3rem 0 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: left;
  }

  .social-icons {
    justify-content: center;
  }

  .input-container {
    flex-direction: column;
  }

  .subscribe-btn {
    padding: 1.2rem 2rem;
  }

  .logo-image {
    width: 220px;
  }
}

/* ----------------------------------------------------------------------------
   11.3 MÓVILES (max-width: 480px)
   ---------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  header {
    height: 60px;
  }

  .navbar-f.active {
    top: 58px;
  }

  /* Logo centrado */
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    z-index: 1100;
  }

  .logo img {
    width: 120px;
    transition: width 0.3s ease-in-out;
  }

  body.scrolled .logo img {
    width: 100px;
  }

  /* Distribución de iconos */
  .h-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    top: 10px;
    left: 0;
    padding: 0 10px;
    z-index: 1100;
  }

  .h-icons i {
    margin-top: 10px;
    font-size: 20px;
  }

  #menu-icon {
    margin-right: 5px;
    margin-top: 7px;
    font-size: 24px;
  }

  .navbar-f a.navbar-a {
    font-size: 0.7rem;
  }

  /* Categorías */
  .categories-section {
    padding: 2rem 0 40px 0;
    height: auto;
    min-height: 450px;
  }

  .categories-container {
    padding: 0 1rem;
    min-height: 400px;
  }

  .category-card.small {
    grid-column: span 4;
    grid-row: span 1;
  }

  .bento-grid {
    height: 400px;
    grid-template-rows: repeat(5, 75px);
    margin-bottom: 2rem;
  }


  .filters-section {
    margin-top: 2rem;
  }

  /* Footer */
  .newsletter-container,
  .footer-grid {
    padding: 0px 2rem;
  }

  .newsletter-title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .input-container {
    flex-direction: column;
    width: 100%;
  }

  #email {
    font-size: 0.6rem;
  }

  .subscribe-btn {
    font-size: 0.6rem;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .footer-grid {
    gap: 2rem;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-links {
    text-align: left;
  }
}

/* ============================================================================
   12. UTILIDADES Y ELEMENTOS ADICIONALES
   ============================================================================ */

/* Ejemplo de código */
.code-example {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 2rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
}

/* Nota informativa */
.note {
  background: #e7f3ff;
  border-left: 4px solid #2196F3;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
}

















 .video-section {
            padding: 0;
            width: 100%;
            margin: 0;
        }

        .video-container {
            position: relative;
            width: 100%;
            margin: 0;
            padding: 0;
            max-height: 400px;
            overflow: hidden;
        }

        .video-wrapper {
            position: relative;
            width: 100%;
            height: 400px;
            max-height: 400px;
            overflow: hidden;
            background: #000;
        }

        .video-player {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: none;
        }

        .video-player:hover {
            transform: none;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .video-wrapper {
                height: 300px;
                max-height: 300px;
            }
            
            .video-container {
                max-height: 300px;
            }
        }

        @media (max-width: 480px) {
            .video-wrapper {
                height: 250px;
                max-height: 250px;
            }
            
            .video-container {
                max-height: 250px;
            }
        }

        /* Animaciones */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .video-section {
            animation: fadeInUp 0.8s ease-out;
        }

        .video-container {
            animation: fadeInUp 0.8s ease-out 0.2s both;
        }




 
/* Media query para pantallas pequeñas (480px y menos) */
@media (max-width: 480px) {
    #drawer-right-example {
      width: 100%;
} 
    .contenedor-carrito {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Ajustar padding interno para pantallas pequeñas */
    .contenedor-carrito > div {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Asegurar que el texto no se desborde */
    .contenedor-carrito .truncate {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Botón de WhatsApp más compacto en móviles */
    .contenedor-carrito button {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }


}