/* ==========================================================================
   Bloque 1 — Header global (todoexiste.com live)
   Logo 40px · Nav x4 · búsqueda · cuenta · carrito · móvil
   ========================================================================== */

body.te-fmt-bloques {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Home — #masthead (Tailwind live) */
body.te-fmt-bloques #masthead.te-bloque-1 {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 22, 24, 0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.te-fmt-bloques #masthead.te-bloque-1 .max-w-7xl {
  max-width: 80rem;
  height: 4rem;
}

body.te-fmt-bloques #masthead.te-bloque-1 .site-branding img {
  height: 40px;
  width: auto;
}

body.te-fmt-bloques #site-navigation a,
body.te-fmt-bloques .header-actions a,
body.te-fmt-bloques .header-actions button {
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

body.te-fmt-bloques #site-navigation a.te-nav-active,
body.te-fmt-bloques .te-mobile-nav a.te-nav-active {
  color: #60a5fa !important;
}

body.te-fmt-bloques #masthead form[role="search"] {
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

body.te-fmt-bloques #masthead form[role="search"]:focus-within {
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35);
}

body.te-fmt-bloques .cart-count-dynamic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  margin-left: 0.125rem;
}

body.te-fmt-bloques .te-mobile-nav {
  background: rgba(22, 22, 24, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.te-fmt-bloques .te-mobile-nav a {
  transition: color 0.2s ease;
}

/* Tienda / PDP — .te-header (layout.css + Bloque 1) */
body.te-bloque-1-header .te-header,
body.has-te-header.te-bloque-1-header .te-header {
  background: rgba(22, 22, 24, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.te-bloque-1-header .te-nav .nav-link.te-nav-active {
  color: #fff;
}

body.te-bloque-1-header .te-nav .nav-link.te-nav-active::after {
  width: 100%;
  background: #60a5fa;
}

body.te-bloque-1-header .te-search-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  transition: border-color 0.2s, background 0.2s;
}

body.te-bloque-1-header .te-search-form:focus-within {
  background: rgba(37, 37, 39, 0.9);
  border-color: rgba(96, 165, 250, 0.35);
}

body.te-bloque-1-header .te-search-form svg {
  flex-shrink: 0;
  opacity: 0.6;
}

body.te-bloque-1-header .te-search-form .te-search {
  background: transparent;
  padding: 0;
  width: min(140px, 22vw);
}

body.te-bloque-1-header .te-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

body.te-bloque-1-header .te-account-btn:hover {
  color: #60a5fa;
}

body.te-bloque-1-header .te-cart-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem;
  text-decoration: none;
  transition: color 0.2s;
}

body.te-bloque-1-header .te-cart-text-btn:hover {
  color: #fff;
}

body.te-bloque-1-header .te-cart-text-btn .te-cart-count {
  position: static;
  min-width: 1.125rem;
  height: 1.125rem;
  border: none;
  background: #2563eb;
  font-size: 0.6875rem;
}

@media (max-width: 768px) {
  body.te-fmt-bloques #masthead.te-bloque-1 .header-actions form[role="search"] {
    display: none;
  }

  body.te-fmt-bloques #masthead.te-bloque-1 .header-actions button.te-account-label span.te-account-text {
    display: none;
  }
}

/* —— Bloque 2: Hero —— */
body.te-fmt-bloques .te-hero-panel {
  box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
  border: 1px solid #f3f4f6;
}

body.te-fmt-bloques .te-hero-eyebrow {
  letter-spacing: 0.12em;
}

body.te-fmt-bloques .te-hero-panel h1 {
  letter-spacing: -0.03em;
}

body.te-fmt-bloques .te-hero-desc {
  line-height: 1.65;
}

body.te-fmt-bloques .te-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 13px 30px;
  border-radius: 9999px;
  background-color: #2563eb !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.te-fmt-bloques .te-hero-cta::after {
  content: '→';
  font-size: 1.05em;
  line-height: 1;
  transition: transform 0.2s ease;
}

body.te-fmt-bloques .te-hero-cta:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

body.te-fmt-bloques .te-hero-cta:hover::after {
  transform: translateX(3px);
}

body.te-fmt-bloques .te-hero-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.45), 0 4px 14px rgba(37, 99, 235, 0.35);
}

body.te-fmt-bloques #hero-bg {
  transition: opacity 1s ease-in-out, transform 8s ease;
}

/* —— Bloque 3: Chips categoría —— */
body.te-fmt-bloques #catalogo .flex.flex-wrap.gap-2 a {
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

body.te-fmt-bloques #catalogo .flex.flex-wrap.gap-2 a:hover {
  transform: translateY(-1px);
}

body.te-fmt-bloques #catalogo > .max-w-7xl > .flex.flex-col h2 {
  letter-spacing: -0.025em;
}

/* —— Bloque 4: Productos (Swiper) —— */
body.te-fmt-bloques .te-home-product-card {
  border-radius: 1rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

body.te-fmt-bloques .te-home-product-card:hover {
  border-color: #dbeafe;
}

body.te-fmt-bloques .te-home-product-image {
  background: linear-gradient(180deg, #fafafa 0%, #f3f4f6 100%);
}

body.te-fmt-bloques .te-home-product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

body.te-fmt-bloques .mySwiper .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

body.te-fmt-bloques .mySwiper .swiper-pagination-bullet-active {
  background: #2563eb;
  transform: scale(1.15);
}

body.te-fmt-bloques #catalogo .text-center.mt-12 a {
  letter-spacing: 0.02em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

/* —— Bloque 5: Logística & envíos —— */
body.te-fmt-bloques #envios {
  background: #fff !important;
  border-top: 1px solid #e5e7eb !important;
  padding: 5rem 0 !important;
  position: relative;
  overflow: hidden;
}

body.te-fmt-bloques #envios::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #2563eb 30%, #1d4ed8 50%, #2563eb 70%, transparent);
  opacity: 0.7;
}

body.te-fmt-bloques #envios .te-envios-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

body.te-fmt-bloques #envios .te-envios-head {
  text-align: center;
  margin-bottom: 52px;
}

body.te-fmt-bloques #envios .te-envios-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  display: block;
  margin-bottom: 10px;
}

body.te-fmt-bloques #envios .te-envios-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

body.te-fmt-bloques #envios .te-envios-head p {
  color: #6b7280;
  font-size: 0.93rem;
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.65;
}

body.te-fmt-bloques #envios .te-envios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

body.te-fmt-bloques #envios .te-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

body.te-fmt-bloques #envios .te-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px;
}

body.te-fmt-bloques #envios .te-card > p {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.75;
  margin: 0;
}

body.te-fmt-bloques #envios .te-card:nth-child(2) { animation-delay: 0.1s; }
body.te-fmt-bloques #envios .te-card:nth-child(3) { animation-delay: 0.2s; }

body.te-fmt-bloques #envios .te-progress {
  margin-top: 16px;
  height: 4px;
  background: #f3f4f6;
  border-radius: 4px;
  overflow: hidden;
}

body.te-fmt-bloques #envios .te-progress-bar {
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #93c5fd);
  border-radius: 4px;
}

body.te-fmt-bloques #envios .te-progress-label {
  font-size: 11px;
  color: #9ca3af;
  margin: 6px 0 0;
}

body.te-fmt-bloques #envios .te-status-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

body.te-fmt-bloques #envios .te-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
}

body.te-fmt-bloques #envios .te-copec-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

body.te-fmt-bloques #envios .te-promo-inner {
  position: relative;
  z-index: 1;
}

body.te-fmt-bloques #envios .te-promo-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.3);
  margin-bottom: 10px;
}

body.te-fmt-bloques #envios .te-promo h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

body.te-fmt-bloques #envios .te-promo p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

body.te-fmt-bloques #envios .te-card {
  animation: te-fmt-fade-up 0.5s ease both;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

body.te-fmt-bloques #envios .te-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #2563eb;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

body.te-fmt-bloques #envios .te-card:hover {
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.09);
  transform: translateY(-5px);
  border-color: #dbeafe;
}

body.te-fmt-bloques #envios .te-card:hover::before {
  transform: scaleX(1);
}

body.te-fmt-bloques #envios .te-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  transition: transform 0.3s ease;
}

body.te-fmt-bloques #envios .te-card:hover .te-icon {
  transform: scale(1.08) rotate(-3deg);
}

body.te-fmt-bloques #envios .te-promo {
  margin-top: 2.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #0f172a 100%);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

body.te-fmt-bloques #envios .te-promo::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

body.te-fmt-bloques #envios .te-promo-btn {
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 30px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

body.te-fmt-bloques #envios .te-promo-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

@keyframes te-fmt-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Bloque 6: Modal auth (formato home con Tailwind) —— */
body.te-fmt-bloques #loginModal > .relative {
  border-radius: 2rem;
}

/* —— Pill local —— */
body.te-fmt-bloques .localhost-pill {
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 7px 12px;
}

@media (max-width: 768px) {
  body.te-fmt-bloques .te-hero-panel {
    height: min(480px, 72vh) !important;
  }

  body.te-fmt-bloques #envios .te-promo {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.25rem;
  }

  body.te-fmt-bloques #envios .te-promo::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.te-fmt-bloques #envios .te-card,
  body.te-fmt-bloques .te-hero-cta,
  body.te-fmt-bloques .te-home-product-card {
    animation: none;
    transition: none;
  }
}

/* —— Bloque 6: CTAs cuenta / comunidad —— */
body.te-fmt-bloques .te-cta-dual {
  padding: 0 1.5rem 4rem;
}

body.te-fmt-bloques .te-cta-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

body.te-fmt-bloques .te-cta-card {
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

body.te-fmt-bloques .te-cta-card--account {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

body.te-fmt-bloques .te-cta-card--community {
  background: linear-gradient(135deg, #18181b 0%, #312e81 100%);
}

body.te-fmt-bloques .te-cta-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

body.te-fmt-bloques .te-cta-card p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.5rem;
  max-width: 28rem;
}

body.te-fmt-bloques .te-cta-btn {
  display: inline-block;
  background: #fff;
  color: #111;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.te-fmt-bloques .te-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

body.te-fmt-bloques .te-cta-btn--light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

body.te-fmt-bloques .te-chip-active {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #eff6ff !important;
}

/* —— Bloque 7: Footer —— */
.te-footer {
  background: #111114;
  color: #a1a1aa;
  margin-top: auto;
}

.te-footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.te-footer-brand img {
  margin-bottom: 1rem;
}

.te-footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 22rem;
}

.te-footer-col h4 {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.te-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.te-footer-col li + li {
  margin-top: 0.5rem;
}

.te-footer-col a {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.te-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}

/* —— Bloque 8: Modal auth —— */
body.te-fmt-bloques #loginModal > .relative,
.te-auth-modal > .relative {
  border-radius: 2rem;
}

.te-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.te-auth-modal.hidden {
  display: none !important;
}

.te-auth-modal .te-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.te-auth-modal > .relative {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  border-radius: 2rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

@media (min-width: 768px) {
  .te-auth-modal > .relative {
    flex-direction: row;
  }
}

.te-auth-modal .te-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 20;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 999px;
  padding: 0.5rem;
  cursor: pointer;
  color: #9ca3af;
}

@media (min-width: 768px) {
  .te-auth-modal .te-modal-close {
    background: transparent;
  }
}

.te-auth-modal .hidden {
  display: none !important;
}

.te-auth-modal .te-auth-side {
  display: none;
  width: 50%;
  position: relative;
  background: #f3f4f6;
  overflow: hidden;
}

@media (min-width: 768px) {
  .te-auth-modal .te-auth-side {
    display: block;
  }
}

.te-auth-modal .te-auth-form-wrap {
  width: 100%;
  padding: 2rem;
  overflow-y: auto;
  max-height: 90vh;
}

@media (min-width: 768px) {
  .te-auth-modal .te-auth-form-wrap {
    width: 50%;
    padding: 3rem;
  }
}

.te-auth-modal h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #000;
}

.te-auth-modal .te-auth-sub {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

.te-auth-modal input {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}

.te-auth-modal input:focus {
  outline: none;
  border-color: #3b82f6;
}

.te-auth-modal button[type="submit"] {
  width: 100%;
  background: #000;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
}

.te-auth-modal .te-auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1.5rem;
}

.te-auth-modal .te-auth-switch a {
  color: #000;
  font-weight: 700;
}

.te-auth-modal .te-auth-panel-img {
  position: absolute;
  inset: 0;
  transition: opacity 0.5s;
}

.te-auth-modal .te-auth-panel-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.te-auth-modal .te-auth-panel-text {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  right: 2.5rem;
  color: #fff;
  z-index: 10;
}

.te-auth-modal .te-auth-panel-text h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.te-auth-modal .te-auth-panel-text p {
  font-size: 0.875rem;
  color: #e5e7eb;
  margin: 0;
}

.te-auth-modal .te-auth-panel-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
}

/* —— Bloque 9: Tienda alineación —— */
body[data-page="tienda"] .pa-shop-hero {
  border-bottom: 1px solid var(--te-border, #e5e7eb);
}

body[data-page="tienda"] .pa-shop-main {
  padding-top: 0.5rem;
}

body[data-page="tienda"] .pa-shop-wrap {
  padding-top: 0.5rem;
}

body[data-page="tienda"] .pa-card--elite {
  border-radius: 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

body[data-page="tienda"] .pa-card--elite:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

/* —— Bloque 10: PDP —— */
.te-pdp-wrap {
  padding: 1.5rem 0 4rem;
}

.te-pdp-crumb {
  margin-bottom: 1.5rem;
}

.te-pdp-crumb span {
  color: var(--te-muted, #64748b);
}

.te-pdp-desc {
  margin: 1rem 0;
  color: var(--te-muted, #64748b);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.te-pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.te-pdp-actions .btn {
  width: 100%;
  text-align: center;
}

.te-pdp-meta {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--te-muted, #64748b);
}

.te-pdp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}

.te-pdp-sticky-inner {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.te-pdp-sticky-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.te-pdp-sticky-info strong {
  font-size: 0.8125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.te-pdp-sticky-price {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #2563eb;
}

@media (max-width: 768px) {
  body.te-fmt-bloques .te-cta-inner {
    grid-template-columns: 1fr;
  }

  .te-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .te-footer-bottom {
    flex-direction: column;
  }

  .te-pdp-sticky {
    display: block;
  }
}

@media (min-width: 769px) {
  .te-pdp-sticky {
    display: none !important;
  }
}
