/* ============================================
   WIUSTI E-Commerce — Custom Styles
   Migrado de Next.js/Tailwind a HTML5/CSS3/Bootstrap
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700;900&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-dark: #1a1a1a;
  --bg-darker: #111111;
  --bg-secondary: #3a3a3a;
  --fg-white: #ffffff;
  --fg-muted: #b3b3b3;
  --border-color: #3a3a3a;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* ---- Reset & Base ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--fg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---- Typography ---- */
.font-serif {
  font-family: var(--font-serif);
}

.tracking-widest {
  letter-spacing: 0.3em;
}

.text-balance {
  text-wrap: balance;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.navbar-wiusti {
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 0;
  z-index: 1050;
}

.navbar-wiusti .navbar-brand img {
  height: 56px;
  width: auto;
}

.navbar-wiusti .nav-link {
  color: var(--fg-white) !important;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.navbar-wiusti .nav-link:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}

.navbar-wiusti .navbar-toggler {
  border: none;
  color: var(--fg-white);
  padding: 0.5rem;
}

.navbar-wiusti .navbar-toggler:focus {
  box-shadow: none;
}

.navbar-wiusti .navbar-toggler-icon {
  filter: invert(1);
}

.nav-actions .btn-icon {
  background: none;
  border: none;
  color: var(--fg-white);
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.nav-actions .btn-icon:hover {
  color: rgba(255, 255, 255, 0.7);
}

.nav-phone {
  color: var(--fg-muted) !important;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.nav-phone:hover {
  color: var(--fg-white) !important;
}

.btn-cart {
  border: 1px solid var(--fg-white) !important;
  color: var(--fg-white) !important;
  background: transparent !important;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-cart:hover {
  background: var(--fg-white) !important;
  color: var(--bg-dark) !important;
}

.btn-cotizar {
  background: var(--fg-white) !important;
  color: var(--bg-dark) !important;
  border: none !important;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-cotizar:hover {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--bg-dark) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3rem;
  border-left: 4px solid #000;
}

.hero-content .hero-subtitle {
  color: #000;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: #000;
  line-height: 1.1;
}

.hero-content .hero-desc {
  margin-top: 2rem;
  font-size: 1.125rem;
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.7;
  max-width: 600px;
}

.hero-buttons {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-hero-primary {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-hero-primary:hover {
  background: rgba(0, 0, 0, 0.8) !important;
}

.btn-hero-secondary {
  background: transparent !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
  background: #000 !important;
  color: #fff !important;
}

.trust-badges {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.trust-badge-item i {
  font-size: 2rem;
  color: #000;
  margin-bottom: 0.75rem;
  display: block;
}

.trust-badge-item .badge-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000;
}

.trust-badge-item .badge-desc {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 0.25rem;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
  padding: 6rem 0 6rem;
  background-color: var(--bg-dark);
}

.section-label {
  color: var(--fg-white);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--fg-white);
  line-height: 1.15;
}

.section-desc {
  margin-top: 1rem;
  color: var(--fg-muted);
  font-size: 1.125rem;
}

.category-card {
  position: relative;
  height: 320px;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

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

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  transition: background 0.3s ease;
}

.category-card:hover .category-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.category-info {
  position: absolute;
  inset: 0;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-info .cat-count {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.category-info h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.category-info .cat-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.category-info .cat-link {
  color: #fff;
  font-weight: 500;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.category-card:hover .cat-link {
  gap: 0.75rem;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.products-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.btn-catalog {
  border: 1px solid #fff !important;
  color: #fff !important;
  background: transparent !important;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-catalog:hover {
  background: #fff !important;
  color: #000 !important;
}

.product-card {
  background: #fff;
  overflow: hidden;
  border: 2px solid #fff;
  transition: box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-image-wrapper {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.product-badge.badge-dark {
  background: #000;
  color: #fff;
}

.product-badge.badge-light {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.btn-favorite {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 2;
}

.btn-favorite:hover {
  background: #fff;
}

.btn-favorite i {
  font-size: 1.25rem;
  color: #999;
  transition: color 0.3s ease;
}

.btn-favorite.active i {
  color: #000;
}

.product-add-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 2;
}

.product-card:hover .product-add-overlay {
  transform: translateY(0);
}

.btn-add-cart {
  width: 100%;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.btn-add-cart:hover {
  background: rgba(0, 0, 0, 0.9) !important;
}

.product-info {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info .product-category {
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.product-info h3 {
  font-weight: 500;
  color: #000;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.product-rating i {
  color: #000;
  font-size: 1rem;
}

.product-rating .rating-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
}

.product-rating .rating-count {
  font-size: 0.75rem;
  color: #888;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.product-price .current-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
}

.product-price .original-price {
  font-size: 0.875rem;
  color: #aaa;
  text-decoration: line-through;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 6rem 0;
  background-color: var(--bg-dark);
}

.mission-card {
  position: relative;
  padding: 3rem;
  background: #fff;
  color: #000;
  height: 100%;
}

.mission-card .corner-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  border-top: 4px solid rgba(0, 0, 0, 0.1);
  border-right: 4px solid rgba(0, 0, 0, 0.1);
}

.mission-card .icon-box {
  width: 64px;
  height: 64px;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.mission-card .icon-box i {
  font-size: 2rem;
  color: #000;
}

.mission-card h3 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 1.5rem;
}

.mission-card p {
  color: rgba(0, 0, 0, 0.7);
  font-size: 1.125rem;
  line-height: 1.7;
}

.vision-card {
  position: relative;
  padding: 3rem;
  border: 2px solid #fff;
  background: var(--bg-dark);
  color: #fff;
  height: 100%;
}

.vision-card .corner-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 96px;
  height: 96px;
  border-bottom: 4px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid rgba(255, 255, 255, 0.2);
}

.vision-card .icon-box {
  width: 64px;
  height: 64px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.vision-card .icon-box i {
  font-size: 2rem;
  color: #000;
}

.vision-card h3 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.vision-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.125rem;
  line-height: 1.7;
}

.values-title {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
}

.value-card {
  border: 2px solid #fff;
  padding: 1.5rem;
  background: var(--bg-dark);
  height: 100%;
}

.value-card .icon-box {
  width: 64px;
  height: 64px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.value-card .icon-box i {
  font-size: 2rem;
  color: #000;
}

.value-card h4 {
  font-weight: 600;
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

.stats-row {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card {
  border: 2px solid #fff;
  padding: 1.5rem;
  background: var(--bg-dark);
  height: 100%;
}

.stat-card .stat-value {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-card .stat-label {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.75rem;
  font-size: 1.125rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-info .contact-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: #fff;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info .contact-icon i {
  font-size: 1.5rem;
  color: #000;
}

.contact-info h4 {
  font-weight: 600;
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.contact-form-card {
  background: #fff;
  padding: 3rem;
  border: 2px solid #fff;
}

.contact-form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 2rem;
}

.contact-form-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  margin-bottom: 0.5rem;
}

.contact-form-card .form-control {
  background: #f3f4f6;
  border: none;
  height: 48px;
  color: #000;
  font-size: 0.9375rem;
  border-radius: 0;
}

.contact-form-card .form-control:focus {
  box-shadow: 0 0 0 2px #000;
  background: #f3f4f6;
}

.contact-form-card .form-control::placeholder {
  color: #9ca3af;
}

.contact-form-card textarea.form-control {
  height: auto;
  resize: vertical;
}

.btn-send {
  width: 100%;
  background: #000 !important;
  color: #fff !important;
  border: none !important;
  height: 56px;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.btn-send:hover {
  background: rgba(0, 0, 0, 0.9) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-section {
  background: var(--fg-white);
  color: var(--bg-dark);
  padding: 5rem 0 0;
}

.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--bg-dark);
  letter-spacing: -0.025em;
}

.footer-brand .brand-desc {
  margin-top: 1.5rem;
  color: rgba(26, 26, 26, 0.6);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-social {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(26, 26, 26, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--bg-dark);
  color: var(--fg-white);
}

.footer-links h4 {
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 1rem;
}

.footer-links ul li a {
  color: rgba(26, 26, 26, 0.6);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--bg-dark);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(26, 26, 26, 0.6);
  font-size: 0.875rem;
}

.footer-contact-item i {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(26, 26, 26, 0.1);
}

.footer-bottom p {
  color: rgba(26, 26, 26, 0.4);
  font-size: 0.875rem;
  margin: 0;
}

.footer-bottom a {
  color: rgba(26, 26, 26, 0.4);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--bg-dark);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    padding: 2rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .stat-card .stat-value {
    font-size: 2.5rem;
  }

  .navbar-collapse {
    background-color: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-top: 0.5rem;
  }

  .nav-actions-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content {
    padding: 1.5rem;
    margin: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .category-card {
    height: 260px;
  }

  .trust-badges .col-4 {
    text-align: center;
  }

  .stat-card .stat-value {
    font-size: 2rem;
  }

  .contact-form-card {
    padding: 2rem;
  }

  .mission-card,
  .vision-card {
    padding: 2rem;
  }
}

@media (min-width: 1200px) {
  .hero-content h1 {
    font-size: 4.5rem;
  }
}

/* ---- Utility ---- */
.gap-custom-3 {
  gap: 0.75rem;
}

/* Smooth scroll offset for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}
