/* index.css - Styles exclusive to the home page */

/* --- HERO wrapper & REDESIGNED HERO GRID (Colombia Landscape Style) --- */
:root {
  --terracota: #C84B11;
  --dorado: #FFD166;
  --verde-andino: #2d6a4f;
  --blanco: #FFFFFF;
  --oscuro: #1a0a00;
}

.hero-wrapper {
  position: relative;
  background-image: url('/img/fondo2.png');
  background-color: rgba(0, 0, 0, 0.4);
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--blanco);
  overflow: hidden;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

/* NAVBAR MODIFICATIONS */
.hero-navbar:not(.scrolled) {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 1rem 2.5rem !important;
  height: auto !important;
}

.hero-navbar-brand {
  color: var(--blanco) !important;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
}

.hero-navbar-brand span {
  color: var(--dorado) !important;
}

.hero-navbar-brand::after {
  color: rgb(255, 255, 255) !important;
}

.hero-navbar-nav a {
  color: rgb(255, 255, 255) !important;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-navbar-nav a:hover {
  color: var(--dorado) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.hero-cart-link {
  color: var(--dorado) !important;
}

.hero-lang-switcher button {
  color: var(--blanco) !important;
}

.hero-lang-switcher button.active {
  color: var(--dorado) !important;
}

.hero-lang-switcher span {
  color: rgb(255, 255, 255) !important;
}

/* Auth Area in Transparent Navbar */
.btn-mi-cuenta {
  color: var(--blanco) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  padding: 8px 18px !important;
  border-radius: 50px !important;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-mi-cuenta:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: var(--blanco) !important;
}

/* HERO GRID LAYOUT */
.hero-new {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  padding: 7rem 2rem 3.5rem 2rem;
  margin-top: 0;
  flex-grow: 1;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-tag-new {
  background: rgba(255, 209, 102, 0.18);
  border: 1px solid rgba(255, 209, 102, 0.5);
  color: var(--dorado);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 50px;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-title-new {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 900;
  color: var(--blanco);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.dorado-highlight {
  color: var(--dorado);
}

.hero-subtitle-new {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions-new {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary-new {
  background-color: var(--terracota);
  color: var(--blanco);
  border-radius: 50px;
  padding: 13px 32px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.28s, transform 0.28s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(200, 75, 17, 0.35);
}

.btn-primary-new:hover {
  background-color: #A33A0A;
  transform: translateY(-2px);
}

.btn-secondary-new {
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--blanco);
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background-color 0.28s, border-color 0.28s, transform 0.28s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary-new:hover {
  border-color: var(--blanco);
  background: rgba(255, 255, 255, 0.08);
}

/* HERO CAROUSEL / SLIDER (3D Positioned - Ampliado Horizontalmente) */
.hero-image-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.hero-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 660px;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-item {
  position: absolute;
  width: 250px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.55s ease, z-index 0.55s;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0) scale(0.5);
  z-index: 0;
}

.slider-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0px 24px 40px rgba(0, 0, 0, 0.4));
  mix-blend-mode: luminosity;
  background: transparent;
  pointer-events: none;
}

/* Carousel 3D Classes - Separación horizontal ampliada */
.slider-item.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1.1);
  z-index: 5;
}

.slider-item.left-1 {
  opacity: 0.6;
  pointer-events: auto;
  transform: translateX(-135px) scale(0.85);
  z-index: 3;
}

.slider-item.right-1 {
  opacity: 0.6;
  pointer-events: auto;
  transform: translateX(135px) scale(0.85);
  z-index: 3;
}

.slider-item.left-2 {
  opacity: 0.25;
  transform: translateX(-245px) scale(0.7);
  z-index: 1;
}

.slider-item.right-2 {
  opacity: 0.25;
  transform: translateX(245px) scale(0.7);
  z-index: 1;
}

/* Carousel Controls & Overlay Card */
.slider-arrow {
  position: absolute;
  top: 110px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--blanco);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.35);
  border-color: var(--blanco);
  transform: scale(1.05);
}

.slider-arrow.prev {
  left: -20px;
}

.slider-arrow.next {
  right: -20px;
}

.slider-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  z-index: 10;
}

#slider-item-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blanco);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.price-pill {
  background: var(--terracota);
  color: var(--blanco);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  z-index: 10;
}

.slider-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
}

.slider-dots .dot.active {
  background: var(--dorado);
  transform: scale(1.25);
}

/* Floating badge for active artisans */
.floating-badge-artisan {
  position: absolute;
  bottom: 80px;
  right: -30px;
  background: var(--blanco);
  border-radius: 16px;
  padding: 0.75rem 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 12;
  border: 1.2px solid #f2ece6;
}

.floating-badge-artisan .badge-icon {
  color: var(--terracota);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-badge-artisan .badge-texts {
  display: flex;
  flex-direction: column;
}

.floating-badge-artisan .badge-number {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--terracota);
  font-size: 1.15rem;
  line-height: 1.1;
}

.floating-badge-artisan .badge-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  font-weight: 600;
}


/* --- SHOP BY CATEGORY CIRCULAR --- */
.categories-section {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 2.2rem 0 !important;
  box-sizing: border-box;
  background-color: var(--color-surface);
  border-top: 1.5px solid rgba(232, 224, 216, 0.4);
  border-bottom: 1.5px solid rgba(232, 224, 216, 0.4);
}

.categories-grid-circular {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
  justify-items: center;
}

.category-card-circular {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.category-card-circular:hover {
  transform: translateY(-6px);
}

.category-img-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
  border: 3.5px solid #ffffff;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 0.75rem;
}

.category-img-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card-circular:hover .category-img-circle {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.category-card-circular:hover .category-img-circle img {
  transform: scale(1.08);
}

.category-name-new {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  transition: color 0.2s;
}

.category-card-circular:hover .category-name-new {
  color: var(--color-primary);
}

/* --- PRODUCTS GRID & SIDEBAR SECTION --- */
#featured-section {
  padding: 2.2rem 0 4rem 0 !important;
}

.products-main-layout {
  display: block;
}

.products-grid-wrapper {
  width: 100%;
}

.featured-products-grid-new {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Sidebar Promo Card */
.products-sidebar-new {
  width: 100%;
}

.sidebar-promo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  height: 480px;
  display: flex;
  align-items: flex-end;
  padding: 1.8rem;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  background: #2E4D3E;
  border: 1.2px solid #233c30;
}

.promo-card-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(46, 77, 62, 0.4) 60%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 2;
}

.promo-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.85;
  filter: saturate(1.1);
  transition: transform 5s ease;
}

.sidebar-promo-card:hover .promo-card-img {
  transform: scale(1.05);
}

.promo-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.promo-badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #FAC775;
  margin-bottom: 0.5rem;
}

.promo-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.promo-btn {
  background: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  align-self: flex-start;
  font-size: 0.82rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.promo-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* --- SECTION TYPOGRAPHY --- */
.section-title-new {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-text);
  line-height: 1.2;
}

.section-subtitle-new {
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 500;
}

.view-all-link-new {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.view-all-link-new:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* --- REDISEÑO DE TARJETAS DE PRODUCTO --- */
.product-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card-image {
  background-color: var(--color-accent-warm) !important;
  border-radius: 20px !important;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f0e9e1 !important;
  transition: box-shadow 0.3s, border-color 0.3s;
  margin-bottom: 0.75rem;
}

.product-card:hover .product-card-image {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border) !important;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 0 !important;
  display: flex;
  flex-direction: column;
}

.product-card-name {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--color-text) !important;
  margin-bottom: 0.25rem;
}

.product-price-new {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.product-card-footer-new .btn-card-cart {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.9rem !important;
  transition: background-color 0.2s, transform 0.2s !important;
}

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, #d35400 0%, #c1440e 50%, #8e2c02 100%);
  padding: 4.5rem 0 !important;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.035'%3E%3Ccircle cx='40' cy='40' r='38'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.9;
  pointer-events: none;
}

.cta-banner>* {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.cta-banner p {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.25rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.cta-banner .btn {
  background: #ffffff;
  color: var(--color-primary);
  border: none;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(193, 68, 14, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-block;
  text-decoration: none;
}

.cta-banner .btn:hover {
  background: var(--color-accent-warm);
  color: var(--color-primary-dark);
  box-shadow: 0 15px 35px rgba(193, 68, 14, 0.4);
  transform: translateY(-3px);
}

@media (max-width: 1024px) {
  .categories-section {
    padding: 2.2rem 5% !important;
  }
  .categories-grid-circular {
    gap: 1.5rem;
  }
  .featured-products-grid-new {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  .hero-new {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    padding: 3rem 1.5rem !important;
  }
  
  .hero-text-col {
    align-items: center !important;
    text-align: center !important;
  }
  
  .hero-title-new {
    font-size: 32px !important;
    text-align: center !important;
  }
  
  .hero-subtitle-new {
    text-align: center !important;
    max-width: 100% !important;
    margin-bottom: 2rem !important;
  }
  
  .hero-actions-new {
    justify-content: center !important;
  }
  
  .hero-slider-wrapper {
    height: 320px !important;
    max-width: 320px !important;
  }
  
  .slider-container {
    height: 200px !important;
  }
  
  .slider-item {
    width: 160px !important;
    height: 160px !important;
  }
  
  .slider-item.left-1 {
    transform: translateX(-60px) scale(0.8) !important;
  }
  
  .slider-item.right-1 {
    transform: translateX(60px) scale(0.8) !important;
  }
  
  .slider-item.left-2,
  .slider-item.right-2 {
    display: none !important;
  }
  
  .slider-arrow {
    top: 80px !important;
    width: 36px !important;
    height: 36px !important;
  }
  
  .slider-arrow.prev {
    left: -15px !important;
  }
  
  .slider-arrow.next {
    right: -15px !important;
  }
  
  .floating-badge-artisan {
    bottom: 50px !important;
    right: -10px !important;
    padding: 0.5rem 0.75rem !important;
  }
}

footer {
  margin: 0 !important;
  margin-top: 0 !important;
  padding: 2.5rem 2rem !important;
}


