:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --text: #121212;
  --muted: #6f7480;
  --border: #e5e7eb;
  --primary: #f7b500;
  --primary-dark: #d99a00;
  --black: #090909;
  --danger: #ff3b30;
  --success: #1f9d55;
  --shadow: 0 18px 45px rgba(0, 0, 0, .08);
  --radius: 22px;
  --font: "Segoe UI", Arial, Helvetica, sans-serif;
}

body.dark {
  --bg: #08090b;
  --surface: #111318;
  --surface-2: #191c22;
  --text: #f5f5f5;
  --muted: #b7bbc4;
  --border: #292d35;
  --shadow: 0 18px 45px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button,
a {
  cursor: pointer;
}

.oculto {
  display: none !important;
}

.top-bar {
  background: var(--black);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

body.dark .navbar {
  background: rgba(8, 9, 11, .86);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  color: #111;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: 19px;
  line-height: 1;
}

.brand small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 2px;
}

#menu-principal {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
}

.nav-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

.nav-link:hover,
.nav-link.activo {
  color: var(--text);
}

.nav-link.activo::after {
  content: "";
  height: 3px;
  width: 100%;
  border-radius: 10px;
  background: var(--primary);
  position: absolute;
  left: 0;
  bottom: -10px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 235px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid transparent;
}

.search-box:focus-within {
  border-color: var(--primary);
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-size: 14px;
}

.icon-btn,
.cart-btn,
.login-pill,
.menu-btn {
  border: 0;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 15px;
  font-weight: 800;
}

.cart-btn {
  background: var(--black);
  color: #fff;
}

.login-pill {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-btn {
  display: none;
  margin-left: auto;
}

.page {
  min-height: 68vh;
}

.page-title {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px 18px;
}

.page-title h2,
.home-section h2,
.about-layout h2,
.auth-info h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 8px 0 8px;
  letter-spacing: -1.5px;
}

.page-title p,
.hero p,
.newsletter p,
.about-layout p,
.auth-info p {
  color: var(--muted);
  line-height: 1.65;
}

.eyebrow {
  color: var(--primary-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 900;
}

.btn-primary,
.btn-secondary,
.btn-light,
.btn-outline,
.btn-cart,
.btn-danger {
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 900;
  transition: .2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #111;
  box-shadow: 0 10px 24px rgba(247, 181, 0, .24);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-light:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-light {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-cart {
  width: 50px;
  min-width: 50px;
  padding: 0;
  background: var(--black);
  color: #fff;
}

.btn-danger {
  background: rgba(255, 59, 48, .12);
  color: var(--danger);
}

.full {
  width: 100%;
}

.hero {
  max-width: 1250px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 44px;
  align-items: center;
}

.hero-content h1 {
  margin: 12px 0 18px;
  font-size: clamp(48px, 7vw, 88px);
  line-height: .92;
  letter-spacing: -4px;
  text-transform: uppercase;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  max-width: 520px;
  font-size: 18px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-card {
  position: relative;
  min-height: 430px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
  filter: contrast(1.05);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.38), transparent 45%);
}

.floating-card {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  color: #111;
}

.floating-card span {
  color: #5f6570;
  font-size: 13px;
}

.benefits {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefits article,
.mini-card,
.summary-card,
.checkout-form,
.auth-card,
.profile-card,
.mission-card,
.contact-form,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.benefits article {
  padding: 24px;
}

.benefits span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(247, 181, 0, .16);
  margin-bottom: 10px;
}

.benefits h3 {
  margin: 8px 0;
  font-size: 17px;
}

.benefits p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.home-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 56px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 6px 0 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.mini-card {
  overflow: hidden;
  transition: .2s;
}

.mini-card:hover,
.product-card:hover {
  transform: translateY(-4px);
}

.mini-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--surface-2);
}

.mini-card div {
  padding: 16px;
}

.mini-card span,
.brand {
  color: var(--muted);
  font-size: 13px;
}

.mini-card h4 {
  margin: 5px 0 10px;
}

.newsletter {
  max-width: 1180px;
  margin: 0 auto 48px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  border-radius: 30px;
  background: var(--black);
  color: #fff;
}

.newsletter p {
  color: #d0d3da;
}

.newsletter form {
  display: flex;
  gap: 12px;
}

.newsletter input {
  flex: 1;
  min-height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 0 18px;
  outline: none;
}

.products-page {
  padding-bottom: 60px;
}

.toolbar {
  max-width: 1180px;
  margin: 0 auto 24px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.chip.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.toolbar select,
.checkout-form select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.product-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: .2s;
}

.product-image {
  position: relative;
  background: var(--surface-2);
}

.product-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--primary);
  color: #111;
  font-size: 12px;
  font-weight: 900;
}

.favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 20px;
}

.favorite.active {
  color: #ff2d55;
}

.product-info {
  padding: 18px;
}

.product-info .brand {
  color: var(--primary-dark);
  margin: 0 0 4px;
  font-weight: 900;
}

.product-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.gender {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 13px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.price-row strong {
  font-size: 18px;
}

.price-row span {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.product-actions .btn-outline {
  flex: 1;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.detail-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 70px;
}

.back-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 44px;
  align-items: start;
}

.detail-image {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--surface-2);
}

.detail-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 34px;
}

.detail-info h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 8px 0;
  letter-spacing: -1.5px;
}

.muted,
.description,
.stock {
  color: var(--muted);
  line-height: 1.65;
}

.detail-price {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 18px 0;
}

.detail-price strong {
  font-size: 28px;
}

.detail-price span {
  color: var(--muted);
  text-decoration: line-through;
}

.sizes h3 {
  font-size: 16px;
  margin-top: 26px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.size-btn {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 900;
}

.size-btn.selected {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.quantity-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--black);
  color: #fff;
  font-size: 18px;
}

.checkout-layout,
.auth-layout,
.about-layout,
.contact-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 70px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.summary-card,
.checkout-form,
.auth-card,
.contact-form,
.contact-card,
.mission-card {
  padding: 28px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.summary-row span {
  display: grid;
  gap: 4px;
}

.summary-row small {
  color: var(--muted);
}

.summary-total,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-size: 18px;
}

.checkout-form,
.auth-form,
.contact-form {
  display: grid;
  gap: 12px;
}

.checkout-form input,
.checkout-form textarea,
.auth-form input,
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 15px;
}

.auth-page {
  padding-top: 46px;
}

.auth-layout {
  grid-template-columns: 1fr .9fr;
}

.auth-info {
  padding: 30px 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface-2);
}

.auth-tab {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.auth-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.profile-card {
  padding: 22px;
  margin-top: 22px;
}

.about-layout {
  grid-template-columns: 1.1fr .9fr;
  padding-top: 52px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.about-stats article {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.about-stats strong {
  display: block;
  font-size: 28px;
}

.about-stats span {
  color: var(--muted);
  font-size: 13px;
}

.mission-card h3 {
  margin-bottom: 6px;
}

.contact-layout {
  grid-template-columns: 1fr .8fr;
}

.contact-card p {
  color: var(--muted);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: .2s;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -430px;
  z-index: 100;
  width: min(430px, 100%);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  transition: .25s ease;
}

.cart-panel.show {
  right: 0;
}

.cart-head {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

.cart-head h3,
.cart-head p {
  margin: 0;
}

.cart-head p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.cart-head button {
  border: 0;
  background: var(--surface-2);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
}

.cart-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--surface-2);
}

.cart-data {
  display: grid;
  gap: 5px;
}

.cart-data small {
  color: var(--muted);
}

.cart-price {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.cart-price button {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 22px;
}

.cart-empty {
  text-align: center;
  padding: 44px 0;
  color: var(--muted);
}

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: grid;
  gap: 10px;
}

.toast-item {
  min-width: 260px;
  max-width: 360px;
  transform: translateY(10px);
  opacity: 0;
  transition: .25s;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  border-left: 5px solid var(--primary);
  box-shadow: var(--shadow);
}

.toast-item.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-item.success {
  border-left-color: var(--success);
}

.toast-item.error {
  border-left-color: var(--danger);
}

footer {
  background: var(--black);
  color: #fff;
  padding: 48px 48px 18px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr .7fr .9fr 1fr;
  gap: 34px;
}

footer p,
footer a {
  display: block;
  color: #c7cad1;
  line-height: 1.7;
  font-size: 14px;
  text-decoration: none;
  margin: 5px 0;
}

.footer-brand {
  margin-bottom: 12px;
}

.copy {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #c7cad1;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .navbar {
    padding: 0 24px;
  }

  .search-box {
    width: 190px;
  }

  .product-grid,
  .mini-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .navbar {
    flex-wrap: wrap;
    min-height: auto;
    padding: 14px 18px;
  }

  .menu-btn {
    display: block;
  }

  #menu-principal {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0 4px;
  }

  #menu-principal.show {
    display: flex;
  }

  .nav-actions {
    width: 100%;
    order: 3;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
  }

  .search-box {
    width: 100%;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-card,
  .hero-card img {
    min-height: 310px;
  }

  .product-grid,
  .mini-grid,
  .benefits,
  .checkout-layout,
  .auth-layout,
  .about-layout,
  .contact-layout,
  .detail-layout,
  .newsletter,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter form {
    flex-direction: column;
  }

  footer {
    padding: 40px 24px 18px;
  }
}

@media (max-width: 520px) {
  .brand small,
  .login-pill span {
    display: none;
  }

  .nav-actions {
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
  }

  .icon-btn,
  .cart-btn,
  .login-pill {
    padding: 0 12px;
  }

  .hero-content h1 {
    letter-spacing: -2px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .detail-info,
  .summary-card,
  .checkout-form,
  .auth-card,
  .contact-form,
  .contact-card,
  .mission-card {
    padding: 22px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .toast {
    left: 14px;
    right: 14px;
  }

  .toast-item {
    min-width: auto;
    max-width: none;
  }
}