@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Playfair+Display:wght@400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Los tokens ahora se cargan desde theme-tokens.css */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 10% 10%, rgba(234, 191, 204, 0.33), transparent 30%),
    radial-gradient(circle at 90% 0%, rgba(252, 230, 213, 0.45), transparent 34%),
    linear-gradient(180deg, #fffdfc 0%, var(--bg-color) 45%, #fff4f6 100%);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-headings);
  color: var(--secondary-color);
  font-weight: 600;
  letter-spacing: 0.02em;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 252, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214, 180, 192, 0.35);
}

.navbar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-size: var(--fs-logo);
  font-family: var(--font-logo);
  font-weight: 700;
  text-decoration: none;
  color: #000;
  line-height: 1;
  letter-spacing: var(--ls-logo);
}

.logo span {
  color: var(--logo-dot-color); /* Rojo vibrante */
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 1px;
  background: var(--primary-color);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-color);
}

.nav-links a.active::after {
  width: 100%;
}

.filters-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2.4rem;
}

.filters-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--text-light);
}

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  border-radius: 999px;
}

.cart-icon {
  position: relative;
  font-size: 1.2rem;
}

.cart-count {
  position: absolute;
  top: -0.45rem;
  right: -0.65rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #db93a7);
  color: #fff;
  font-size: 0.67rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(192, 106, 127, 0.35);
}

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
  min-height: calc(100vh - 320px);
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 4rem 2rem 3.5rem;
  min-height: clamp(350px, 65vh, 600px);
  background: url('/img/hero-home.svg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  color: var(--hero-text);
  font-size: var(--fs-h1);
  margin-bottom: 0.9rem;
  letter-spacing: 0.03em;
}

.hero p {
  max-width: 730px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--hero-text);
  opacity: 0.95;
}

@media (max-width: 768px) {
  .hero {
    min-height: 400px;
    background-size: contain;
    background-position: top center;
    padding-bottom: 2rem;
  }
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.hero-soft-btn {
  color: var(--hero-soft-text);
  border: 1.5px solid var(--hero-soft-border);
  background: var(--hero-soft-bg);
  box-shadow: none;
}

.hero-soft-btn:hover {
  background: rgba(255, 255, 255, 0.17);
}

.hero-badges {
  margin-top: 1.7rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-badge {
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: rgba(36, 17, 27, 0.35);
  border: 1px solid rgba(255, 234, 240, 0.23);
  color: rgba(255, 247, 250, 0.92);
  font-weight: 600;
}

.section-heading {
  text-align: center;
  margin-top: 4.6rem;
  margin-bottom: 2.2rem;
  display: flex;
  justify-content: center;
  padding: 0 1.5rem;
}

.premium-heading-card {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 28px;
  padding: 2.5rem 3rem;
  max-width: 720px;
  box-shadow: 
    0 20px 40px rgba(120, 78, 98, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: scaleIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards, pulseCard 8s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.premium-heading-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 234, 240, 0.4) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.section-heading h2 {
  font-size: var(--fs-h2);
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-heading p {
  color: var(--text-main);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseCard {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.hero .btn {
  margin-top: 1.8rem;
}

.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.4rem;
}

.filter-btn {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-light);
  border-radius: 999px;
  padding: 0.58rem 1.18rem;
  cursor: pointer;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: rgba(192, 106, 127, 0.45);
  color: var(--primary-color);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary-color), #d98ea1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 14px 24px rgba(192, 106, 127, 0.26);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.product-card {
  background: var(--card-bg);
  border: 1px solid rgba(237, 213, 223, 0.85);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(120, 78, 98, 0.12);
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #f8f8f8;
}

.product-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
  display: block;
}

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

.product-info {
  padding: 1.15rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.3rem;
}

.product-title {
  color: var(--secondary-color);
  font-size: 1.15rem;
  text-decoration: none;
  font-family: var(--font-headings);
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8rem;
  line-height: 1.2;
}

.product-price {
  color: var(--accent-color);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  padding: 0.86rem 1.55rem;
  text-decoration: none;
  cursor: pointer;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #dc8ea3);
  color: #fff;
  box-shadow: 0 10px 20px rgba(192, 106, 127, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 24px rgba(192, 106, 127, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 1.6px solid rgba(192, 106, 127, 0.5);
}

.btn-outline:hover {
  background: rgba(192, 106, 127, 0.1);
}

.btn-block {
  width: 100%;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 410px;
  max-width: 100%;
  height: 100vh;
  background: #fffdfc;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  box-shadow: -18px 0 36px rgba(72, 38, 56, 0.13);
  transition: right 0.35s ease;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.55rem;
}

.close-cart {
  background: transparent;
  border: 0;
  color: var(--text-light);
  font-size: 1.2rem;
  cursor: pointer;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.sidebar-cart-item {
  display: flex;
  gap: 0.85rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-cart-img {
  width: 74px;
  height: 96px;
  border-radius: 10px;
  object-fit: cover;
}

.sidebar-cart-title {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.sidebar-cart-meta {
  color: var(--text-light);
  font-size: 0.82rem;
  margin: 0.2rem 0 0.4rem;
}

.sidebar-cart-price {
  color: var(--accent-color);
  font-weight: 700;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fff;
  cursor: pointer;
}

.remove-item-btn {
  border: 0;
  background: transparent;
  color: #bf5269;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-footer {
  border-top: 1px solid var(--border-color);
  padding: 1.1rem 1.25rem 1.2rem;
  background: #fffbfb;
}

.cart-footer-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.9rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 20, 31, 0.45);
  backdrop-filter: blur(2px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cart-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.toast-container {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  background: #2f1e28;
  color: #fff;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  box-shadow: 0 16px 24px rgba(35, 17, 27, 0.3);
}

.toast.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.page-header {
  text-align: center;
  padding: 3.8rem 1.5rem;
  background: linear-gradient(180deg, #fffdfc, #fff5f7);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.page-subtitle {
  color: var(--text-light);
  max-width: 640px;
  margin: 0.55rem auto 0;
}

.content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.3rem 4rem;
  font-size: 1.03rem;
  color: var(--text-main);
}

.content-wrap p,
.content-wrap li,
.content-wrap ol {
  color: var(--text-main);
}

.content-wrap h3,
.faq-question {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  font-size: var(--fs-h3);
  font-family: var(--font-headings);
}

.img-banner {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.faq-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}

.faq-answer {
  color: var(--text-main);
}

.content-panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 1.4rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 12px 24px rgba(122, 71, 94, 0.08);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  border: 1px solid var(--border-color);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.size-table th,
.size-table td {
  border: 1px solid var(--border-color);
  padding: 0.85rem;
  text-align: center;
}

.size-table th {
  background: #fff2f6;
}

.empty-cart,
#success-message,
.order-summary,
.checkout-form {
  border-radius: var(--border-radius);
}

footer {
  margin-top: 4rem;
  padding: 3.5rem 2rem 1.5rem;
  color: #f6eef1;
  background:
    radial-gradient(circle at 85% -20%, rgba(238, 163, 184, 0.2), transparent 35%),
    linear-gradient(145deg, #2f1e28 0%, #412734 100%);
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h3 {
  color: #ffd6df;
  font-size: var(--fs-h3);
  margin-bottom: 0.8rem;
}

.footer-logo {
  color: #fff;
}

.footer-intro {
  margin-top: 0.8rem;
}

.footer-col a,
.footer-col p {
  color: rgba(246, 238, 241, 0.83);
  text-decoration: none;
  display: block;
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: #fff;
}

.social-icons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
  max-width: 1240px;
  margin: 1.8rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 245, 247, 0.68);
  font-size: 0.84rem;
}

.seasonal-links {
  margin-top: 0.45rem;
  opacity: 0.18;
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.seasonal-links a {
  color: rgba(255, 235, 243, 0.86);
  text-decoration: none;
  margin: 0 0.3rem;
}

.seasonal-links a:hover {
  opacity: 1;
}

.load-error {
  color: #c15468;
  display: none;
  padding: 2rem;
}

.empty-sidebar-copy {
  padding: 3rem 0;
  color: #887280;
}

.checkout-title {
  font-size: var(--fs-h2);
  margin-top: 1.4rem;
}

.text-center { text-align: center; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

.loader {
  width: 46px;
  height: 46px;
  margin: 2.2rem auto;
  border-radius: 50%;
  border: 3px solid #f3dde4;
  border-top-color: var(--primary-color);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 940px) {
  .navbar {
    padding: 0.9rem 1rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 253, 252, 0.98);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.9rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.open {
    display: flex;
  }

  main {
    padding: 1.15rem 1rem;
  }

  .hero {
    min-height: 400px;
    margin-bottom: 2.3rem;
  }

  .hero-badge {
    font-size: 0.66rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image-wrap {
    height: 330px;
  }

  .cart-sidebar {
    width: 100%;
    right: -100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .img-banner {
    height: 290px;
  }

  .section-heading {
    margin-top: 3rem;
  }
}
