:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f6f7fb;
  --color-text: #0a0a0a;
  --color-text-soft: #5b5f6b;
  --color-royal: #1e3a8a;
  --color-royal-light: #2b4fc4;
  --color-gold: #b3924a;
  --color-border: #e7e8ee;
  --font-display: "Jost", sans-serif;
  --font-body: "Inter", sans-serif;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-royal);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-royal);
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.header-cta {
  background: var(--color-royal);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover { background: var(--color-royal-light); }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  padding: 0;
}

.mobile-nav-toggle svg { width: 22px; height: 22px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid var(--color-border);
}

.mobile-nav.open {
  max-height: 320px;
}

.mobile-nav a {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-nav a:hover { color: var(--color-royal); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(30, 58, 138, 0.06), transparent 60%);
}

.hero-eyebrow {
  color: var(--color-royal);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  margin: 0 0 20px;
  line-height: 1.05;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-royal);
}

.hero p {
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--color-text-soft);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-royal);
  color: #fff;
}
.btn-primary:hover { background: var(--color-royal-light); }

.btn-outline {
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-royal);
  color: var(--color-royal);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1fb958; }

/* ---------- Section headings ---------- */
.section-head {
  text-align: center;
  margin-bottom: 46px;
}

.section-head .eyebrow {
  color: var(--color-royal);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 12px;
  font-weight: 600;
}

.section-head p {
  color: var(--color-text-soft);
  max-width: 480px;
  margin: 0 auto;
}

section { padding: 70px 0; }
.bg-soft { background: var(--color-bg-soft); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-photo {
  aspect-ratio: 3 / 4;
  background: var(--color-bg-soft);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.product-photo img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-text);
  color: #fff;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 3px;
}

.badge.sold-out { background: #b3413a; }
.badge.featured { background: var(--color-royal); }

.product-brand {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-soft);
  margin-bottom: 4px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 8px;
}

.product-price {
  color: var(--color-royal);
  font-weight: 600;
  margin-bottom: 14px;
}

.product-card .btn { align-self: center; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-bar:last-of-type {
  margin-bottom: 46px;
}

.filter-bar a {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.filter-bar a:hover,
.filter-bar a.active {
  border-color: var(--color-royal);
  color: var(--color-royal);
}

/* ---------- Steps (apartado) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  counter-reset: step;
}

.step {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px 26px;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-royal);
  font-weight: 600;
  opacity: 0.85;
  margin-bottom: 14px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.step p {
  color: var(--color-text-soft);
  font-size: 0.92rem;
  margin: 0;
}

.info-note {
  margin-top: 40px;
  border-left: 3px solid var(--color-royal);
  padding: 16px 22px;
  background: var(--color-bg-soft);
  font-size: 0.92rem;
  color: var(--color-text-soft);
  border-radius: 0 6px 6px 0;
}

.payment-methods {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

.payment-methods span {
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: #cfd2dc;
  padding: 56px 0 30px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 16px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-grid p, .footer-grid a {
  color: #a6abba;
  font-size: 0.88rem;
  line-height: 1.9;
  display: block;
}

.footer-grid a:hover { color: var(--color-royal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  font-size: 0.78rem;
  color: #7d8296;
  text-align: center;
}

/* ---------- Floating WhatsApp button ---------- */
.floating-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 60;
  transition: transform 0.2s ease;
}

.floating-whatsapp:hover { transform: scale(1.08); }

.floating-whatsapp svg { width: 28px; height: 28px; }

/* ---------- Detail page ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.detail-photo {
  aspect-ratio: 3/4;
  background: var(--color-bg-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-photo img { width: 100%; height: 100%; object-fit: cover; }

.detail-info .product-brand { font-size: 0.85rem; }
.detail-info h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 6px 0 18px;
}
.detail-info .price { font-size: 1.6rem; color: var(--color-royal); font-weight: 600; margin-bottom: 22px; }
.detail-info .description { color: var(--color-text-soft); margin-bottom: 28px; }

.size-selector { margin-bottom: 26px; }

.size-selector-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
  margin-bottom: 12px;
  font-weight: 600;
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-option {
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--color-text);
}

.size-option:hover:not(.disabled) {
  border-color: var(--color-royal);
  color: var(--color-royal);
}

.size-option.selected {
  border-color: var(--color-royal);
  background: var(--color-royal);
  color: #fff;
}

.size-option.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}

.size-option-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-text-soft);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 6px 22px;
}

.faq-item summary {
  padding: 16px 0;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-royal);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  font-weight: 400;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--color-text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .mobile-nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero { padding: 60px 0 50px; }
  .header-cta { padding: 9px 14px; font-size: 0.7rem; }
}

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  .product-brand { font-size: 0.62rem; }
  .product-name { font-size: 0.88rem; }
  .product-price { font-size: 0.85rem; margin-bottom: 10px; }
  .product-card .btn {
    padding: 10px 8px;
    font-size: 0.65rem;
    width: 100%;
    justify-content: center;
  }
  .badge { font-size: 0.58rem; padding: 3px 7px; }
}
