/* ══════════════════════════════════════════════════════════════
   KODA STUDIO v4 — MEJORAS ADICIONALES
   ══════════════════════════════════════════════════════════════ */

/* ── Announcement ticker ── */
.announcement-bar {
  width: 100%;
  background: #fff;
  color: #000;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 101;
}

.announcement-bar__track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: tickerScroll 28s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.announcement-bar__track:hover {
  animation-play-state: paused;
}

.announcement-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #000;
  white-space: nowrap;
}

.announcement-bar__item::after {
  content: '✦';
  font-size: 0.5rem;
  opacity: 0.4;
  padding-left: 40px;
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Header activo en página actual ── */
.nav-link.current {
  color: #fff;
}
.nav-link.current::after {
  width: 100%;
}

/* ── Mega mejora tipográfica en hero con fuente display ── */
.hero-slide-title {
  font-family: 'Bebas Neue', 'Montserrat', sans-serif !important;
  letter-spacing: 0.01em !important;
  line-height: 0.9 !important;
}

/* ── Sección "Nuevo Ingreso" ── */
.nuevo-ingreso-section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nuevo-ingreso-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.nuevo-ingreso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .nuevo-ingreso-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .nuevo-ingreso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ── Tarjeta mini de nuevo ingreso ── */
.nuevo-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  display: block;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), border-color 0.4s, box-shadow 0.5s;
}

.nuevo-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 28px 60px rgba(0,0,0,0.4);
}

.nuevo-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  background: #fff;
  color: #000;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.nuevo-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.22,1,0.36,1);
}

.nuevo-card:hover .nuevo-card__img {
  transform: scale(1.04);
}

.nuevo-card__info {
  padding: 14px 16px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), #000 60%);
}

.nuevo-card__name {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nuevo-card__price {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  letter-spacing: -0.01em;
}

/* ── Contador de envío gratis en hero ── */
.hero-free-ship {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}

.hero-free-ship svg {
  opacity: 0.7;
}

/* ── Mejora del footer — agregar logo y tagline ── */
.footer-logo-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.footer-logo-area img {
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.8;
  display: block;
}

.footer-tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ── Stats row ── */
.stats-section {
  padding: 60px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .announcement-bar { height: 32px; }
  .announcement-bar__item { font-size: 0.6rem; padding: 0 24px; }
}

/* ── Perk icons mejorados: números ── */
.perk__number {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin-bottom: -4px;
}

/* ── Hero overlay pattern ── */
.hero-pattern-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.03;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.5) 2px,
    rgba(255,255,255,0.5) 3px
  );
  background-size: 100% 4px;
}

/* ── Outfit section mejorada: precio total animado ── */
.outfit-total-price {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.outfit-total-price.updated {
  transform: scale(1.2);
  color: rgba(255,255,255,0.9);
}

/* ── Mejora del section label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: rgba(255,255,255,0.3);
}

/* ── Instagram section: preview de posts simulados ── */
.insta-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .insta-preview { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .insta-preview { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

.insta-post {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}

.insta-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22,1,0.36,1), filter 0.7s;
}

.insta-post:hover img {
  transform: scale(1.06);
  filter: brightness(0.5);
}

.insta-post__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s;
  background: rgba(0,0,0,0.2);
}

.insta-post:hover .insta-post__overlay {
  opacity: 1;
}

/* ── Mejora de cards de testimonio: avatar placeholder ── */
.testimonio-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.testimonio-autor {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Carrito: vacío state mejorado ── */
.carrito-empty {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.carrito-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
}

.carrito-empty h3 {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.carrito-empty p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.3);
  max-width: 280px;
  line-height: 1.6;
}

/* ── Nav badge de carrito con número ── */
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: #fff;
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0 4px;
  margin-left: 2px;
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.cart-badge.pop {
  transform: scale(1.5);
}

/* ── Smooth border animado en header ── */
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 90%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  pointer-events: none;
}

/* ── Producto page: breadcrumb mejorado ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.breadcrumb__sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
}

.breadcrumb a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color 0.3s;
}

.breadcrumb a:hover { color: rgba(255,255,255,0.8); }

.breadcrumb span:last-child {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ── FAQs: corregir bug referencia a form ── */
#contact-form {
  display: none; /* evita errores si el form no existe */
}

/* ══════════════════════════════════════════════════════════════
   KODA v4.1 — Cart images + extra polish
   ══════════════════════════════════════════════════════════════ */

/* ── Carrito item: ahora con 3 columnas (img | meta | acciones) ── */
.carrito-item {
  grid-template-columns: 80px 1fr auto !important;
  gap: 18px !important;
  align-items: center !important;
}

@media (max-width: 520px) {
  .carrito-item {
    grid-template-columns: 64px 1fr auto !important;
    gap: 12px !important;
    padding: 16px !important;
  }
}

.cart-item-img {
  width: 80px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .cart-item-img { width: 64px; height: 80px; border-radius: 10px; }
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
}

.carrito-item:hover .cart-item-img img {
  transform: scale(1.04);
}

.cart-item-img--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Producto card: discount badge mejor posicionado ── */
.producto .precio-original-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  text-decoration: line-through;
  margin-left: 6px;
}

/* ── Sidebar filtros: botón activo más visible ── */
.sidebar button.activo {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
  font-weight: 700;
}

/* ── Buscador: icono SVG en lugar de emoji ── */
.buscador-wrap {
  position: relative;
}
.buscador-wrap .ico-search {
  pointer-events: none;
}

/* ── Resultado counter en catálogo ── */
.resultados-counter {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 18px;
}

/* ── Carrito: talle en nombre del item ── */
.carrito-item h4 {
  font-size: 0.88rem !important;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ── Carrito summary: total más grande ── */
.carrito-summary .total-amount {
  font-size: clamp(1.6rem, 4vw, 2.4rem) !important;
  letter-spacing: -0.04em !important;
}

/* ── Checkout modal: campos mejorados ── */
.checkout-field {
  position: relative;
}

.checkout-field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.checkout-field input,
.checkout-field textarea {
  transition: border-color 0.3s, background 0.3s !important;
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  border-color: rgba(255,255,255,0.4) !important;
  background: rgba(255,255,255,0.05) !important;
}

.checkout-field.error input,
.checkout-field.error textarea {
  border-color: rgba(255,80,80,0.6) !important;
}

/* ── Toast notifications mejoradas ── */
.toast {
  font-size: 0.82rem !important;
  letter-spacing: 0.02em;
  backdrop-filter: blur(12px) !important;
  border-radius: 999px !important;
  padding: 12px 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* ── Nav: página activa con punto indicador ── */
.nav-link[aria-current="page"]::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.6;
}

/* ── Hero eyebrow mejorado ── */
.hero-slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}

.hero-slide-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.35);
}

/* ── FAQ: mejora de acordeón ── */
.faq-item {
  border-radius: 16px !important;
  overflow: hidden;
}

.faq-question {
  transition: background 0.3s !important;
}

.faq-question:hover {
  background: rgba(255,255,255,0.04) !important;
}

.faq-question.open {
  background: rgba(255,255,255,0.04) !important;
}

/* ── Producto page: breadcrumb ── */
.producto-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.producto-breadcrumb a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s;
  text-decoration: none;
}

.producto-breadcrumb a:hover { color: rgba(255,255,255,0.7); }

.producto-breadcrumb span {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.15);
}

.producto-breadcrumb .current {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── Scroll suave en toda la página ── */
html {
  scroll-behavior: smooth;
}

/* ── Productos: "no results" más elegante ── */
.no-results {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  padding: 60px 0;
  letter-spacing: 0.05em;
  grid-column: 1 / -1;
}

/* ── Announcement bar: fade edges ── */
.announcement-bar::before,
.announcement-bar::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.announcement-bar::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}

.announcement-bar::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}

/* ── Mejorar botón scroll-to-top ── */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.4s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}