:root {
  --bg: #f6f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --border: rgba(17, 17, 17, 0.08);
  --text: #171717;
  --muted: #6b7280;
  --primary: #25d366;
  --primary-dark: #1db954;
  --dark: #111111;
  --dark-2: #1f2937;
  --blue-soft: #eef4ff;
  --blue-text: #2952cc;
  --danger-soft: #fff1f1;
  --danger-text: #d93025;
  --success-soft: #eafbf0;
  --success-text: #15803d;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
  --max: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 211, 102, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(41, 82, 204, 0.06), transparent 22%),
    linear-gradient(180deg, #f8fafc 0%, #f4f6f8 100%);
}

.auth-screen {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(circle at top left, rgba(37, 211, 102, 0.2), transparent 28%),
    linear-gradient(135deg, #0f172a, #111827 45%, #111111);
  padding: 24px;
}

.auth-box {
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.auth-box h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 52px;
  letter-spacing: -1px;
}

.auth-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: #f2f4f7;
  padding: 6px;
  border-radius: 16px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: #374151;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.25s ease;
}

.tab-btn.active {
  background: var(--dark);
  color: white;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.18);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.auth-box input,
textarea,
select,
.search-box input,
.cupon-row input,
#newPassword {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d9dee7;
  border-radius: 14px;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  transition: 0.2s ease;
  outline: none;
}

.auth-box input:focus,
textarea:focus,
select:focus,
.search-box input:focus,
.cupon-row input:focus,
#newPassword:focus {
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.12);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.main-btn {
  width: 100%;
  padding: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.24);
  transition: 0.25s ease;
  margin-top: 10px;
}

.main-btn:hover {
  transform: translateY(-1px);
}

.volver-link {
  color: var(--dark);
  text-decoration: none;
  font-weight: bold;
}

header {
  position: sticky;
  top: 0;
  z-index: 60;
  background:
    linear-gradient(135deg, rgba(17,17,17,0.92), rgba(31,41,55,0.92));
  backdrop-filter: blur(16px);
  color: white;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
  transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

header.header-scrolled {
  padding: 10px 22px;
  background:
    linear-gradient(135deg, rgba(10,10,10,0.94), rgba(17,24,39,0.94));
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

.brand h1 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand p {
  color: #9ca3af;
  font-size: 12px;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.brand h2 {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 900;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header.header-scrolled .brand h2 {
  font-size: 26px;
}

header.header-scrolled .brand p {
  font-size: 11px;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.icon-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
  transition: all 0.25s ease;
}

.icon-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 16px 34px rgba(0,0,0,0.3);
}

.top-categories {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.cat-wrap {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}

.cat-btn {
  border: 1px solid rgba(17, 17, 17, 0.06);
  background: white;
  color: #374151;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: var(--shadow-sm);
  transition: 0.22s ease;
}

.cat-btn:hover {
  transform: translateY(-1px);
}

.cat-btn.active {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
  box-shadow: 0 14px 26px rgba(17, 24, 39, 0.22);
  transform: translateY(-1px);
  position: relative;
}

.cat-btn.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.22);
}

.cerditos {
  display: flex;
  align-items: center;
  min-width: 56px;
  justify-content: flex-end;
}

.cerdito {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #ff9ac2, #ff7fb3);
  border-radius: 50%;
  margin-left: 6px;
  box-shadow: 0 4px 10px rgba(255, 127, 179, 0.3);
  animation: salto 2s infinite;
}

.cerdito:nth-child(2) {
  animation-delay: 0.2s;
}

.cerdito:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes salto {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.36);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 70;
}

.overlay.activo {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.user-menu {
  position: fixed;
  top: 0;
  right: -360px;
  width: 320px;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: -8px 0 30px rgba(15, 23, 42, 0.14);
  z-index: 80;
  padding: 22px;
  transition: right 0.3s ease;
}

.user-menu.abierto {
  right: 0;
}

.user-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.menu-mini {
  font-size: 12px;
  font-weight: bold;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

#menuUserName {
  font-size: 24px;
  margin-bottom: 6px;
}

#menuUserEmail {
  color: var(--muted);
  font-size: 14px;
}

.user-menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-menu-links button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: #f4f6f8;
  color: var(--text);
  cursor: pointer;
  font-weight: bold;
  transition: 0.22s ease;
}

#btnLoginMenu {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.18);
}

#btnLoginMenu:hover {
  transform: translateY(-1px);
}

.user-menu-links button:hover {
  background: #eceff4;
}

.menu-logout {
  background: linear-gradient(135deg, #111827, #111111) !important;
  color: white !important;
}

.home-hero {
  padding: 30px 30px 0;
}

.hero-box {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.24), transparent 25%),
    radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.18), transparent 30%),
    linear-gradient(135deg, #0b1220, #111827 55%, #151515);
  color: white;
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #b9f5cc;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-box h2 {
  font-size: 48px;
  line-height: 0.98;
  margin-bottom: 16px;
  max-width: 680px;
  letter-spacing: -1.4px;
}

.hero-box p {
  color: #d7dce5;
  max-width: 640px;
  line-height: 1.7;
  font-size: 16px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-points span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f3f4f6;
  font-size: 13px;
  font-weight: bold;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-side {
  display: flex;
  align-items: end;
  justify-content: end;
}

.hero-mini-card {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.hero-mini-top {
  color: #9ae6b4;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 10px;
}

.hero-mini-card h3 {
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-mini-card p {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.5;
}

.search-section {
  padding: 10px 30px 0;
}

.search-box {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.search-box input {
  width: 100%;
  height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.95);
  padding: 0 18px 0 52px;
  font-size: 15px;
  color: #111827;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

.search-box input::placeholder {
  color: #9ca3af;
}

.search-box input:focus {
  outline: none;
  border-color: rgba(17, 24, 39, 0.18);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #6b7280;
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.18);
  transition: all 0.22s ease;
}

.search-clear:hover {
  transform: translateY(-50%) scale(1.06);
}

.search-clear.visible {
  display: inline-flex;
}

.home-section {
  padding: 26px 30px 0;
}

.section-head {
  max-width: var(--max);
  margin: 0 auto 16px;
}

.section-head h3 {
  font-size: 28px;
  margin-bottom: 4px;
  letter-spacing: -0.4px;
}

.section-head p {
  color: var(--muted);
}

.carousel-shell {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
  padding: 20px 0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scrollCarrusel 34s linear infinite;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scrollCarrusel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.carousel-item {
  position: relative;
  min-width: 210px;
  max-width: 210px;
  background: white;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.carousel-info {
  padding: 14px;
}

.carousel-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  display: block;
  background: #f8fafc;
  padding: 10px;
}

.carousel-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
}

.carousel-info h4 {
  font-size: 15px;
  margin: 8px 0 5px;
  line-height: 1.35;
}

.carousel-info p {
  font-weight: bold;
  font-size: 18px;
}

.productos-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 280px));
  justify-content: center;
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  transition: 0.25s ease;
  width: 100%;
  border: 1px solid rgba(17, 17, 17, 0.05);
  backdrop-filter: blur(8px);
}

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

.producto-card button {
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: none;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.25s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.16);
}

.producto-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.22);
}

.producto-card {
  text-align: left;
  position: relative;
}

.card-media {
  position: relative;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.badge-top {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.badge-new {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.badge-sale {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.badge-stock {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.producto-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  margin-bottom: 12px;
  background: #f8fafc;
  padding: 10px;
}

.producto-categoria {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.carousel-info .producto-categoria,
.producto-card .producto-categoria,
.product-detail-info .producto-categoria {
  backdrop-filter: blur(8px);
}

.producto-card h2 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.producto-desc {
  color: #6b7280;
  margin: 8px 0 10px;
  min-height: 66px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.precio-original {
  color: #9ca3af;
  text-decoration: line-through;
  margin-top: 8px;
  font-size: 15px;
}

.precio-final {
  font-size: 26px;
  font-weight: bold;
  color: #111;
  margin-top: 6px;
  letter-spacing: -0.4px;
}

.descuento-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff1f1, #ffe4e6);
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 8px 18px rgba(185, 28, 28, 0.08);
}

.stock-badge {
  display: inline-block;
  margin-bottom: 10px;
  margin-left: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.stock-ok {
  background: #eafbf0;
  color: #15803d;
}

.stock-pocas {
  background: #fff8e8;
  color: #b7791f;
}

.stock-agotado {
  background: #fff1f1;
  color: #d93025;
}

.carrito {
  position: fixed;
  right: -340px;
  top: 0;
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 252, 0.96));
  width: 340px;
  height: 100%;
  padding: 22px;
  box-shadow: -14px 0 40px rgba(15, 23, 42, 0.16);
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 80;
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(17, 17, 17, 0.06);
}

.carrito.abierto {
  right: 0;
}

.carrito-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.carrito-top h3 {
  font-size: 24px;
}

.cerrar-carrito {
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.carrito-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.carrito-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(17, 17, 17, 0.06);
  align-items: center;
}

.carrito-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.carrito-item-info {
  flex: 1;
  min-width: 0;
}

.carrito-item-info h4 {
  font-size: 15px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.carrito-item-info p {
  color: #6b7280;
  margin-bottom: 4px;
  font-size: 13px;
}

.carrito-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.carrito-item-actions button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: #111827;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.carrito-item-actions span {
  min-width: 20px;
  text-align: center;
  font-weight: bold;
}

.carrito-cupon {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.08);
}

.cupon-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.cupon-row input {
  flex: 1;
}

.cupon-row button {
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.discount-message {
  margin-top: 8px;
  font-size: 13px;
  font-weight: bold;
}

.shipping-message {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
}

.carrito-resumen {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: var(--shadow-sm);
}

.carrito-resumen p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #374151;
}

.total-final {
  font-size: 20px;
  color: #111827;
  padding-top: 10px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
  margin-top: 8px;
}

.btn-pagar {
  width: 100%;
  margin-top: 16px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
  transition: all 0.25s ease;
}

.btn-pagar:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.22);
}

.carrito-vacio {
  padding: 24px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #6b7280;
  text-align: center;
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: var(--shadow-sm);
}

.perfil-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.perfil-card-premium {
  max-width: var(--max);
  margin: 0 auto;
}

.perfil-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.perfil-sub {
  color: var(--muted);
  margin-top: 8px;
}

.perfil-card h2 {
  margin-bottom: 8px;
  font-size: 30px;
  letter-spacing: -0.5px;
}

.perfil-bloque {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fafafa);
}

.perfil-destacado {
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff, #f9fafb);
}

.perfil-bloque h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.pedido-card,
.admin-pedido-card {
  background: white;
  padding: 18px;
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.pedido-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.pedido-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.pedido-estado {
  background: var(--success-soft);
  color: var(--success-text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.pedido-info p {
  margin-bottom: 8px;
}

.pedido-productos {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.pedido-productos ul {
  margin-top: 8px;
  padding-left: 18px;
}

.pedido-productos li {
  margin-bottom: 6px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
}

.admin-sidebar {
  background: linear-gradient(180deg, #111827, #111111);
  color: white;
  padding: 22px;
  border-radius: 24px;
  height: fit-content;
  box-shadow: var(--shadow-md);
}

.admin-sidebar h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.admin-nav-btn {
  width: 100%;
  text-align: left;
  margin-bottom: 10px;
  padding: 13px 15px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.22s ease;
}

.admin-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.admin-nav-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.2);
}

.admin-content {
  min-width: 0;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
}

.admin-form-card {
  background: linear-gradient(180deg, #ffffff, #fafafa);
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 22px;
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.admin-form-header {
  margin-bottom: 18px;
}

.form-mini {
  color: var(--primary-dark);
  font-weight: bold;
  margin-bottom: 5px;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-full {
  grid-column: 1 / -1;
}

.form-help {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

.tallas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.tallas-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f5f8;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: normal;
  border: 1px solid transparent;
}

.tallas-grid label:hover {
  border-color: rgba(37, 211, 102, 0.35);
}

.check-publicado {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 16px;
  font-weight: bold;
}

.check-publicado input {
  width: auto;
  margin: 0;
}

.admin-form-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-form-buttons button {
  padding: 12px 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: bold;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.18);
}

.btn-secundario {
  background: linear-gradient(135deg, #111827, #111111) !important;
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.14) !important;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.15) !important;
}

.admin-acciones {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.admin-acciones select {
  margin-top: 8px;
}

.admin-producto-card {
  display: flex;
  gap: 18px;
  background: white;
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.admin-producto-img {
  width: 170px;
  height: 130px;
  object-fit: cover;
  border-radius: 14px;
}

.admin-producto-info {
  flex: 1;
}

.admin-producto-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-producto-botones {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-producto-botones button {
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: bold;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 211, 102, 0.08), transparent 26%),
    linear-gradient(180deg, #f8fafc 0%, #f4f6f8 100%);
  padding: 30px;
}

.product-detail-card {
  max-width: var(--max);
  margin: 0 auto;
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 252, 0.96));
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.product-detail-img {
  width: 100%;
  border-radius: 24px;
  object-fit: contain;
  max-height: 580px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.product-detail-info h1 {
  margin: 12px 0 10px;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #111827;
}

.product-detail-desc {
  color: #6b7280;
  line-height: 1.75;
  margin-bottom: 22px;
  font-size: 15px;
}

.selector-box {
  margin-top: 22px;
}

.selector-box h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

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

.opcion-radio {
  position: relative;
}

.opcion-radio input {
  position: absolute;
  opacity: 0;
}

.opcion-radio span {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 14px;
  background: #eef1f5;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
}

.opcion-radio span:hover {
  border-color: rgba(37, 211, 102, 0.4);
}

.opcion-radio input:checked + span {
  background: linear-gradient(135deg, #111827, #111111);
  color: white;
}

.product-detail-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.product-detail-actions button {
  padding: 16px 22px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: white;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
  transition: all 0.25s ease;
}

.product-detail-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.22);
}

@media (max-width: 1000px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .hero-box {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 26px;
  }

  .hero-box h2 {
    font-size: 34px;
  }

  .hero-side {
    justify-content: start;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PERFIL MÁS BONITO ===== */

.perfil-card {
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,250,252,0.96));
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(17, 17, 17, 0.05);
  position: relative;
  overflow: hidden;
}

.perfil-card-premium {
  max-width: 1080px;
  margin: 0 auto;
}

.perfil-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.perfil-head h2 {
  margin: 6px 0 0;
  font-size: 36px;
  letter-spacing: -1px;
  line-height: 1.05;
}

.perfil-sub {
  color: var(--muted);
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 620px;
}

.perfil-bloque {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 22px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: 0.25s ease;
}

.perfil-bloque:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.perfil-destacado {
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fbf9);
  border: 1px solid rgba(37, 211, 102, 0.14);
}

.perfil-bloque h3 {
  margin-bottom: 16px;
  font-size: 22px;
  letter-spacing: -0.4px;
  color: #111827;
}

.perfil-bloque p {
  margin-bottom: 10px;
  color: #374151;
  line-height: 1.6;
}

.perfil-bloque p strong {
  color: #111827;
}

#vistaPerfil .product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#vistaPerfil .form-group {
  display: flex;
  flex-direction: column;
}

#vistaPerfil .form-full {
  grid-column: 1 / -1;
}

#vistaPerfil .form-group label {
  margin-bottom: 8px;
  font-weight: 700;
  color: #1f2937;
  font-size: 14px;
}

#vistaPerfil input,
#vistaPerfil textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dbe2ea;
  border-radius: 16px;
  font-size: 15px;
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  transition: 0.22s ease;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

#vistaPerfil input:focus,
#vistaPerfil textarea:focus {
  border-color: rgba(37, 211, 102, 0.6);
  box-shadow:
    0 0 0 4px rgba(37, 211, 102, 0.12),
    inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

#vistaPerfil textarea {
  min-height: 120px;
  resize: vertical;
}

#vistaPerfil .main-btn {
  width: auto;
  min-width: 220px;
  padding: 14px 20px;
  margin-top: 16px;
  border-radius: 16px;
  font-size: 15px;
}

#vistaPerfil #newPassword {
  margin-top: 4px;
}

#vistaPerfil .perfil-bloque:last-child {
  margin-bottom: 0;
}

#perfilRoleWrap {
  margin-top: 8px;
}

#perfilRole {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef4ff;
  color: #2952cc;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 13px;
}

.admin-dashboard-head {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 18px;
}

.admin-metric-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.admin-metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: bold;
}

.admin-metric-card strong {
  font-size: 28px;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.admin-filtros-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-filtros-bar input,
.admin-filtros-bar select {
  flex: 1;
  min-width: 220px;
}

@media (max-width: 900px) {
  .admin-dashboard-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .admin-dashboard-head {
    grid-template-columns: 1fr;
  }
}

.loading-state {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(17, 17, 17, 0.06);
  color: #6b7280;
  text-align: center;
  font-weight: bold;
  box-shadow: var(--shadow-sm);
}

.empty-state {
  padding: 28px 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(17, 17, 17, 0.06);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.empty-state h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #111827;
}

.empty-state p {
  color: #6b7280;
  line-height: 1.6;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.producto-card,
.carousel-item {
  transition: all 0.25s ease;
}

.producto-card:hover,
.carousel-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.producto-img,
.carousel-img {
  transition: transform 0.35s ease;
}

.producto-card:hover .producto-img,
.carousel-item:hover .carousel-img {
  transform: scale(1.05);
}

#toast-tprint {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  min-width: 280px;
  max-width: 360px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: all 0.3s ease;
  overflow: hidden;
}

#toast-tprint.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.toast-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.toast-icon.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.28);
}

.toast-icon.error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.toast-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toast-content strong {
  font-size: 14px;
  color: #fff;
}

.toast-content span {
  font-size: 13px;
  line-height: 1.45;
  color: #d1d5db;
}

.skeleton-card {
  background: white;
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.skeleton-img {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-text {
  height: 12px;
  margin-top: 10px;
  border-radius: 8px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton-text.short {
  width: 60%;
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

#carritoPanel {
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

#carritoPanel.abierto {
  transform: translateX(0);
  opacity: 1;
}

/* Fondo oscuro más suave */
#overlay {
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.carrito-item {
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.precio-final {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin-top: 8px;
  letter-spacing: -0.6px;
}

.precio-original {
  color: #9ca3af;
  text-decoration: line-through;
  margin-top: 10px;
  font-size: 14px;
}

.producto-card h2,
.carousel-info h4 {
  color: #111827;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25);
  transform: scale(1);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cart-count.hidden {
  opacity: 0;
  transform: scale(0.7);
}

.cart-count.bump {
  animation: cartBadgePop 0.28s ease;
}

@keyframes cartBadgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.fly-cart-clone {
  position: fixed;
  z-index: 99999;
  pointer-events: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transition:
    left 0.7s cubic-bezier(.2,.8,.2,1),
    top 0.7s cubic-bezier(.2,.8,.2,1),
    width 0.7s ease,
    height 0.7s ease,
    opacity 0.7s ease,
    transform 0.7s ease;
}

.cart-btn.bump-cart {
  animation: cartShake 0.45s ease;
}

@keyframes cartShake {
  0% { transform: scale(1) rotate(0deg); }
  20% { transform: scale(1.08) rotate(-8deg); }
  40% { transform: scale(1.08) rotate(8deg); }
  60% { transform: scale(1.05) rotate(-5deg); }
  80% { transform: scale(1.05) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.empty-state-pro {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 24px;
  padding: 32px 20px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.empty-state-pro h3 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #111827;
}

.empty-state-pro p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
}

.empty-state-icon {
  font-size: 42px;
  margin-bottom: 14px;
  display: block;
}

.product-detail-info .precio-final {
  font-size: 36px;
  font-weight: 900;
  color: #111827;
  letter-spacing: -1px;
  margin-top: 8px;
}

.product-detail-info .precio-original {
  font-size: 16px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-top: 10px;
}

.product-detail-info .descuento-badge {
  margin-top: 12px;
}

.selector-box {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(17, 17, 17, 0.05);
  border-radius: 20px;
  padding: 18px;
}

.selector-box h2,
.selector-box h3 {
  margin-bottom: 12px;
  font-size: 17px;
  color: #111827;
}

.opcion-radio span {
  background: #f3f4f6;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 14px;
  padding: 10px 16px;
}

.opcion-radio input:checked + span {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.16);
}

.carrito-top h3 {
  font-size: 26px;
  letter-spacing: -0.5px;
  color: #111827;
}

.carrito-cupon {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.cupon-row button {
  min-width: 96px;
  border-radius: 14px;
}

.carrito-resumen strong {
  color: #111827;
}

.total-final strong {
  font-size: 24px;
  letter-spacing: -0.6px;
}

header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.site-footer {
  margin-top: 40px;
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.08), transparent 22%),
    linear-gradient(135deg, #0f172a, #111827 55%, #111111);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 30px 28px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.footer-brand h3 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.footer-brand p {
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-links h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-links a,
.footer-links p {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 10px;
  line-height: 1.6;
  transition: 0.22s ease;
}

.footer-links a {
  width: fit-content;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 30px 22px;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 900px) {
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-bottom {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.promo-bar {
  background: linear-gradient(135deg, #111827, #0f172a);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 30px;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  color: #dbeafe;
}

.trust-strip {
  padding: 22px 30px 0;
}

.trust-strip-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
}

.trust-item strong {
  display: block;
  color: #111827;
  font-size: 15px;
  margin-bottom: 6px;
}

.trust-item p {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .trust-strip-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .trust-strip-shell {
    grid-template-columns: 1fr;
  }
}

.carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.46));
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.carousel-item::before {
  content: "Ver producto";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transition: all 0.28s ease;
  z-index: 2;
  pointer-events: none;
}

.carousel-item:hover::after {
  opacity: 1;
}

.carousel-item:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.carousel-item .carousel-img,
.carousel-item .carousel-info {
  position: relative;
  z-index: 1;
}

.carousel-shell::before,
.carousel-shell::after {
  content: "";
  position: absolute;
  top: 0;
  width: 70px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.carousel-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.carousel-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0));
}

.carousel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.footer-links h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: #ffffff;
}

.footer-links a[href*="instagram"],
.footer-links a[href*="wa.me"],
.footer-links a[href*="tiktok"] {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 780px) {
  header {
    gap: 15px;
  }

  .promo-bar-inner {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 12px;
    gap: 10px;
  }

  .product-form-grid {
    grid-template-columns: 1fr;
  }

  .tallas-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-producto-card {
    flex-direction: column;
  }

  .admin-producto-img {
    width: 100%;
    height: 220px;
  }

  .productos-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 18px;
  }

  .home-section,
  .home-hero,
  .search-section,
  .product-page,
  #vistaPerfil,
  #vistaAdmin,
  #vistaPedidos {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .top-categories {
    padding-left: 16px;
    padding-right: 16px;
    flex-direction: column;
    align-items: center;
  }

  .auth-box {
    padding: 26px 22px;
  }

  .auth-box h1 {
    font-size: 42px;
  }

    .user-menu,
  .carrito {
    width: min(88vw, 340px);
    right: -340px;
  }

  .perfil-card {
    padding: 22px;
    border-radius: 24px;
  }

  .perfil-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  .perfil-head h2 {
    font-size: 30px;
  }

  .perfil-bloque {
    padding: 18px;
    border-radius: 18px;
  }

  .perfil-bloque h3 {
    font-size: 20px;
  }

  #vistaPerfil .product-form-grid {
    grid-template-columns: 1fr;
  }

  #vistaPerfil .main-btn {
    width: 100%;
    min-width: 0;
  }

  .carousel-shell {
    padding: 14px 0;
    border-radius: 22px;
  }

  .carousel-track {
    gap: 14px;
    animation-duration: 42s;
  }

  .carousel-item {
    min-width: 180px;
    max-width: 180px;
  }

  .carousel-img {
    height: 150px;
  }

  .producto-img {
    height: 140px;
    object-fit: contain;
    padding: 8px;
  }

  .card {
    padding: 14px;
    border-radius: 18px;
  }

  .producto-card h2 {
    font-size: 18px;
  }

  
.producto-desc {
  min-height: auto;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

  .precio-final {
    font-size: 22px;
  }

  .producto-card button {
    padding: 11px;
    border-radius: 12px;
  }

  .trust-strip {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
}

.checkout-modal.active {
  display: flex;
}

.checkout-modal-box {
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.checkout-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.checkout-modal-top h3 {
  font-size: 28px;
  line-height: 1.05;
  color: #111827;
}

.checkout-modal-text {
  color: #6b7280;
  margin-bottom: 18px;
  line-height: 1.6;
}

.checkout-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

.checkout-modal-actions .main-btn {
  width: auto;
  min-width: 220px;
  margin-top: 0;
}

.checkout-modal-actions .btn-secundario {
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
}

@media (max-width: 780px) {
  .checkout-modal {
    padding: 14px;
  }

  .checkout-modal-box {
    padding: 18px;
    border-radius: 22px;
  }

  .checkout-modal-top h3 {
    font-size: 24px;
  }

  .checkout-modal-actions {
    flex-direction: column;
  }

  .checkout-modal-actions .main-btn,
  .checkout-modal-actions .btn-secundario {
    width: 100%;
    min-width: 0;
  }
}

.checkout-summary-box {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: var(--shadow-sm);
}

.checkout-summary-box p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: #374151;
}

.checkout-summary-box p:last-child {
  margin-bottom: 0;
}

.checkout-summary-total {
  padding-top: 10px;
  border-top: 1px solid rgba(17, 17, 17, 0.06);
  font-size: 18px;
  color: #111827;
}

/* Inputs del checkout */
.checkout-modal input,
.checkout-modal textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 14px;
  color: #111827;
  transition: all 0.2s ease;
  outline: none;
}

/* Hover */
.checkout-modal input:hover,
.checkout-modal textarea:hover {
  border-color: #d1d5db;
}

/* Focus (LO IMPORTANTE) */
.checkout-modal input:focus,
.checkout-modal textarea:focus {
  border-color: #111827;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

/* Labels más limpios */
.checkout-modal label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
  display: block;
}

/* Separación entre campos */
.checkout-modal .form-group {
  margin-bottom: 14px;
}

.main-btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 220px;
  padding: 14px 20px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: 14px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.24);
  text-decoration: none;
  transition: 0.25s ease;
}

.main-btn-link:hover {
  transform: translateY(-1px);
}

.legal-page {
  min-height: 100vh;
  padding: 34px 20px;
  background:
    radial-gradient(circle at top left, rgba(37, 211, 102, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(41, 82, 204, 0.06), transparent 22%),
    linear-gradient(180deg, #f8fafc 0%, #f4f6f8 100%);
}

.legal-card {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 30px;
  padding: 34px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.legal-top {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.legal-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2952cc;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
}

.legal-top h1 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #111827;
  margin-bottom: 12px;
}

.legal-top p {
  color: #6b7280;
  line-height: 1.7;
  max-width: 760px;
}

.legal-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-content section {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #111827;
  letter-spacing: -0.3px;
}

.legal-content p,
.legal-content li {
  color: #4b5563;
  line-height: 1.75;
  font-size: 15px;
}

.legal-content ul {
  padding-left: 20px;
  margin-top: 10px;
}

.legal-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 780px) {
  .legal-page {
    padding: 18px 14px;
  }

  .legal-card {
    padding: 22px;
    border-radius: 24px;
  }

  .legal-top h1 {
    font-size: 30px;
  }

  .legal-content section {
    padding: 16px;
    border-radius: 16px;
  }

  .legal-content h2 {
    font-size: 20px;
  }

  .main-btn-link {
    width: 100%;
    min-width: 0;
  }
}

.checkout-legal-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.checkout-legal-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.checkout-legal-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #111827;
  flex-shrink: 0;
}

.checkout-legal-check a {
  color: #2952cc;
  font-weight: 700;
  text-decoration: none;
}

.checkout-legal-check a:hover {
  text-decoration: underline;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-gallery-main {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.product-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}

.product-gallery-thumb {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  border: 2px solid transparent;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: 0.2s ease;
}

.product-gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.18);
}

#mainProductImage {
  touch-action: pan-y;
}

@media (max-width: 780px) {
  .product-gallery-thumb {
    width: 64px;
    height: 64px;
  }
}

.admin-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 8px;
}

.admin-preview-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(17, 17, 17, 0.08);
  aspect-ratio: 1 / 1;
}

.admin-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-preview-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(17, 24, 39, 0.86);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 999px;
}

.admin-preview-actions {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: flex;
  gap: 6px;
}

.admin-preview-actions button {
  border: none;
  background: rgba(17, 24, 39, 0.88);
  color: #fff;
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.pedido-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}

.pedido-step {
  position: relative;
  text-align: center;
  padding-top: 10px;
}

.pedido-step::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}

.pedido-step:first-child::before {
  display: none;
}

.pedido-step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d1d5db;
  margin: 0 auto 8px;
  position: relative;
  z-index: 1;
}

.pedido-step span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

.pedido-step.active::before {
  background: #22c55e;
}

.pedido-step.active .pedido-step-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.pedido-step.active span {
  color: #111827;
  font-weight: 700;
}

.pedido-productos-lista {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pedido-producto-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 14px;
  padding: 10px;
}

.pedido-producto-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
}

.pedido-producto-texto {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #374151;
  font-size: 14px;
}

.pedido-producto-texto strong {
  color: #111827;
}

@media (max-width: 640px) {
  .pedido-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .pedido-step::before {
    display: none;
  }
}

#recommendedProducts {
  margin-top: 14px;
}

.recommended-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
}

.recommended-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #111827;
}

.recommended-grid {
  display: grid;
  gap: 10px;
}

.recommended-item {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px;
}

.recommended-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.recommended-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.recommended-info strong {
  font-size: 14px;
  color: #111827;
}

.recommended-info span {
  font-size: 13px;
  color: #374151;
}

.recommended-info button {
  width: fit-content;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.catalog-layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: start;
}

.subcategorias-lateral {
  position: sticky;
  top: 110px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.subcategorias-lateral h3 {
  font-size: 18px;
  margin-bottom: 14px;
  color: #111827;
  letter-spacing: -0.3px;
}

.subcategorias-lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subcategorias-lista .cat-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: none;
}

.subcategorias-lista .cat-btn:hover {
  background: #eef2f7;
  transform: translateX(2px);
}

.subcategorias-lista .cat-btn.active {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.subcategorias-lista .cat-btn.active::after {
  display: none;
}

@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .subcategorias-lateral {
    position: static;
    top: auto;
  }

  .subcategorias-lista {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .subcategorias-lista .cat-btn {
    width: auto;
  }
}

/* ===== ADMIN LIMPIO Y MÁS BONITO ===== */

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 20px;
}

.admin-sidebar h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #111827;
}

.admin-nav-btn {
  width: 100%;
  text-align: left;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #334155;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.admin-nav-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.admin-nav-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.22);
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
}

.admin-panel-card,
#adminTabProductos .perfil-card,
#adminTabNuevo .perfil-card,
#adminTabPedidos .perfil-card,
#adminTabDescuentos .perfil-card,
#adminTabSubcategorias .perfil-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

#adminTabProductos h2,
#adminTabNuevo h2,
#adminTabPedidos h2,
#adminTabDescuentos h2,
#adminTabSubcategorias h2 {
  margin: 0 0 18px;
  font-size: 28px;
  color: #111827;
}

.admin-form-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #dbe2ea;
  background: #ffffff;
  color: #111827;
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-help {
  color: #64748b;
  font-size: 12px;
}

.admin-form-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.admin-form-buttons button,
.admin-producto-botones button {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-form-buttons button:hover,
.admin-producto-botones button:hover {
  transform: translateY(-1px);
}

.admin-form-buttons button:first-child {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
}

.btn-secundario {
  background: #e2e8f0;
  color: #334155;
  border: none;
}

.btn-secundario:hover {
  background: #cbd5e1;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.admin-producto-card,
.admin-pedido-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.admin-producto-img {
  border-radius: 16px;
  object-fit: cover;
  width: 220px;
  height: 160px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.admin-producto-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-producto-info h4 {
  color: #111827;
  margin: 0;
  font-size: 20px;
}

.admin-producto-info p,
.admin-pedido-card p {
  color: #475569;
}

.admin-subcats-list {
  margin-top: 18px;
}

.subcategoria-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.subcategoria-check-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subcategoria-check-grid label:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

.subcategoria-check-grid input[type="checkbox"] {
  accent-color: #6366f1;
  width: 16px;
  height: 16px;
}

.admin-metric-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.admin-metric-card span {
  display: block;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 6px;
}

.admin-metric-card strong {
  font-size: 24px;
  color: #111827;
}

@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .product-form-grid,
  .subcategoria-check-grid {
    grid-template-columns: 1fr;
  }
}

.hero-logo-shine {
  position: relative;
  display: inline-block;
  width: fit-content;
  line-height: 0;
  margin-bottom: 18px;
  overflow: hidden;
}

.hero-logo {
  display: block;
  width: 140px;
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22));
}

.hero-logo-shine::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -60%;
  width: 40%;
  height: 120%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.12) 35%,
    rgba(255,255,255,0.9) 50%,
    rgba(255,255,255,0.12) 65%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
  animation: brilloLogo 2.4s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes brilloLogo {
  0% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

.stock-urgencia {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff8e8, #fff3cd);
  border: 1px solid rgba(217, 119, 6, 0.18);
  color: #92400e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.10);
}

.stock-urgencia.critico {
  background: linear-gradient(135deg, #fff1f1, #ffe4e6);
  border: 1px solid rgba(220, 38, 38, 0.18);
  color: #b91c1c;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.10);
}

.product-detail-actions button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
}

.cookie-banner-content {
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.cookie-banner-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.cookie-banner-text p {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner-text a {
  color: #86efac;
  font-weight: 700;
  text-decoration: none;
}

.cookie-banner-text a:hover {
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  min-width: 120px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.cookie-btn-primary {
  width: auto;
  min-width: 120px;
  margin-top: 0;
}

@media (max-width: 780px) {
  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn,
  .cookie-btn-primary {
    width: 100%;
  }
}

.product-urgency {
  margin: 14px 0 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid rgba(249, 115, 22, 0.18);
  color: #c2410c;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.08);
}

.product-trust-box {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.product-trust-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(17, 24, 39, 0.06);
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
}

.mini-urgency {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(249, 115, 22, 0.16);
}

/* ===== FAQ VISUAL ===== */
.faq-section {
  padding-bottom: 10px;
}

.faq-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(17, 17, 17, 0.06);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.faq-question {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.faq-question span {
  font-size: 17px;
  font-weight: 800;
  color: #111827;
  line-height: 1.5;
}

.faq-question strong {
  font-size: 24px;
  color: #111827;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question strong {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 22px 20px;
}

.faq-answer p {
  color: #4b5563;
  line-height: 1.75;
  font-size: 15px;
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: linear-gradient(135deg, #25d366, #1db954);
  color: #fff;
  padding: 14px 16px;
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.32);
  font-weight: 800;
  font-size: 14px;
  transition: all 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-float-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.whatsapp-float-text {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .faq-question {
    padding: 18px;
  }

  .faq-question span {
    font-size: 15px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 18px;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 12px 14px;
  }

  .whatsapp-float-text {
    display: none;
  }
}

.guia-talla-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.guia-talla-btn {
  border: none;
  background: #eef4ff;
  color: #2952cc;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guia-talla-btn:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.guia-talla-tip {
  margin-top: 12px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.guia-talla-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.guia-talla-modal.active {
  display: flex;
}

.guia-talla-modal-box {
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.guia-talla-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.guia-talla-modal-top h2 {
  font-size: 30px;
  color: #111827;
  line-height: 1.05;
}

.guia-talla-tabla-wrap h3 {
  font-size: 22px;
  color: #111827;
  margin-bottom: 10px;
}

.guia-talla-intro {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 16px;
}

.guia-medicion-box {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-sm);
}

.guia-medicion-box h4 {
  font-size: 18px;
  color: #111827;
  margin-bottom: 10px;
}

.guia-medicion-lista {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
}

.guia-medicion-lista li {
  margin-bottom: 8px;
  line-height: 1.7;
  font-size: 14px;
}

.guia-medicion-lista li:last-child {
  margin-bottom: 0;
}

.guia-talla-table-scroll {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.guia-talla-tabla {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.guia-talla-tabla thead {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.guia-talla-tabla thead th {
  color: #fff;
  font-size: 14px;
  text-align: left;
  padding: 14px 16px;
}

.guia-talla-tabla tbody td {
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
  color: #374151;
  font-size: 14px;
}

.guia-talla-tabla tbody tr:nth-child(even) {
  background: #f8fafc;
}

.guia-talla-nota {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eefbf3;
  border: 1px solid #ccebd8;
  color: #166534;
  line-height: 1.6;
  font-size: 14px;
}

.producto-slider {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.producto-slider .slider-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.45s ease;
  margin-bottom: 0;
}

.producto-slider .slider-img.active {
  opacity: 1;
  z-index: 2;
}


@media (max-width: 780px) {
  .guia-talla-modal {
    padding: 14px;
  }

  .guia-talla-modal-box {
    padding: 18px;
    border-radius: 20px;
  }

  .guia-talla-modal-top h2 {
    font-size: 24px;
  }

  .guia-talla-tabla {
    min-width: 460px;
  }

  .producto-slider {
    height: 140px;
  }

  .producto-slider .slider-img {
    padding: 8px;
  }
}