/* ============================================================
   PromoInk — Componentes: Navbar, Hero, Sections
   ============================================================ */

/* ── NAVBAR E-COMMERCE ────────────────────────────────────── */
.navbar-ecommerce {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border);
}

.navbar-top {
  padding: 0;
  /* Eliminado todo el padding vertical */
  border-bottom: 1px solid var(--border);
}

.navbar-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 1.5rem;
  /* Mantener solo padding lateral */
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.navbar-logo img {
  height: 220px;
  /* Tamaño 2x (110 * 2) */
  width: auto;
  object-fit: contain;
  display: block;
  margin-top: -20px;
  /* Reducir borde superior */
  margin-bottom: -50px;
  /* Reducir borde inferior agresivamente */
}

.navbar-logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  /* Aumento también por si se usa texto */
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Buscador */
.navbar-search {
  flex-grow: 1;
  max-width: 600px;
  position: relative;
  display: flex;
  align-items: center;
}

.navbar-search input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 0.8rem 1.2rem;
  padding-right: 3.5rem; /* Clean padding for search button */
  font-size: 0.95rem;
  transition: all var(--duration-fast);
}

.navbar-search input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 188, 255, 0.15);
}

/* Settle z-indexes for header elements so main content sits above background icons */
.navbar-top, .navbar-bottom {
  position: relative;
  z-index: 5;
}

/* Container for scattered floating header background elements */
.header-scattered-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none; /* Let clicks pass through empty spaces */
  z-index: 1;
}

.scattered-wrapper {
  position: absolute;
  top: var(--top-pos, 25px);
  pointer-events: none;
}

.scattered-icon {
  display: block;
  width: 36px;
  height: 36px;
  pointer-events: auto;
  text-decoration: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45)) opacity(0.35);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.scattered-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Hover effects with specific product color glows */
.scattered-icon:hover {
  opacity: 1;
  transform: scale(1.3) translateY(-4px) !important;
}

.scattered-icon.gorra:hover {
  filter: drop-shadow(0 0 15px rgba(232, 62, 140, 0.6)) opacity(1);
}
.scattered-icon.libreta:hover {
  filter: drop-shadow(0 0 15px rgba(0, 188, 255, 0.6)) opacity(1);
}
.scattered-icon.termo:hover {
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.6)) opacity(1);
}
.scattered-icon.etiqueta:hover {
  filter: drop-shadow(0 0 15px rgba(167, 139, 250, 0.6)) opacity(1);
}

/* Floating Animations */
.scattered-wrapper:nth-child(4n+1) {
  animation: float-bob-1 6s ease-in-out infinite alternate;
}
.scattered-wrapper:nth-child(4n+2) {
  animation: float-bob-2 8s ease-in-out infinite alternate;
}
.scattered-wrapper:nth-child(4n+3) {
  animation: float-bob-3 7s ease-in-out infinite alternate;
}
.scattered-wrapper:nth-child(4n+4) {
  animation: float-bob-4 9s ease-in-out infinite alternate;
}

@keyframes float-bob-1 {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(-8px) translateX(2px); }
}
@keyframes float-bob-2 {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(-10px) translateX(-3px); }
}
@keyframes float-bob-3 {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(-6px) translateX(3px); }
}
@keyframes float-bob-4 {
  0% { transform: translateY(0px) translateX(0px); }
  100% { transform: translateY(-9px) translateX(-1px); }
}

/* Helper display utilities */
.desktop-only {
  display: flex !important;
}
.mobile-only {
  display: none !important;
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: flex !important;
  }
  .header-scattered-bg {
    display: block !important; /* Keep background icons on mobile */
  }
  /* Scale down scattered watermark icons on tablet and mobile */
  .scattered-icon {
    width: 26px !important;
    height: 26px !important;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)) opacity(0.22) !important;
  }
  .scattered-icon:hover {
    filter: drop-shadow(0 4px 10px rgba(255,255,255,0.2)) opacity(0.85) !important;
    transform: scale(1.25) translateY(-2px) !important;
  }
  .scattered-wrapper {
    top: calc(var(--top-pos, 25px) * 0.55) !important; /* Mathematically scale vertical offsets for mobile */
  }
}

@media (max-width: 480px) {
  .scattered-icon {
    width: 22px !important;
    height: 22px !important;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.3)) opacity(0.18) !important;
  }
}

/* Mobile search suggestion chips */
.navbar-search-mobile-chips {
  display: none;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 0.25rem;
}

.chips-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.chips-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  width: 100%;
  padding: 2px 0;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

.search-mobile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.search-mobile-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.search-mobile-chip:active,
.search-mobile-chip:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

.navbar-search button {
  position: absolute;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.navbar-search button svg {
  width: 18px;
  height: 18px;
}

/* Acciones Top */
.navbar-actions-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.nav-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--duration-fast);
}

.nav-action-btn:hover {
  color: var(--accent-cyan);
}

.cart-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  transition: all var(--duration-fast);
}

.nav-action-btn:hover .cart-icon {
  background: rgba(0, 188, 255, 0.1);
  border-color: var(--accent-cyan);
}

.cart-icon svg {
  width: 18px;
  height: 18px;
}

/* Menú inferior */
.navbar-bottom {
  background: var(--bg-surface);
}

.nav-categories {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.5rem 0 0.75rem;
}

.nav-categories a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--duration-fast);
}

.nav-categories a svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

.nav-categories a:hover {
  color: var(--accent-cyan);
}

/* Estilos para Subcategorías Desplegables (Navbar Desktop) */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.nav-item-dropdown > a {
  cursor: pointer;
  padding: 0.25rem 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  padding: 0.5rem 1rem !important;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  width: 100%;
  display: block !important;
  text-align: left;
  border-radius: 0;
  transition: all var(--duration-fast);
}

.dropdown-menu a:hover {
  background: var(--bg-elevated);
  color: var(--accent-cyan) !important;
  padding-left: 1.25rem !important;
}

.nav-link-ofertas {
  color: var(--accent-pink) !important;
  font-weight: 600 !important;
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: transparent;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
}

/* ── HERO BENTO GRID ──────────────────────────────────────── */
/* ── HERO MAIN — EDITORIAL 2-COL ──────────────────────────── */
.hero-main {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 260px;
  /* Reducido a un balance óptimo */
  padding-bottom: 0;
}

/* — Background — */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-body);
}

.hero-bg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: conic-gradient(from 200deg at 15% 85%,
      transparent 0deg,
      rgba(232, 62, 140, 0.10) 60deg,
      rgba(0, 188, 255, 0.06) 120deg,
      transparent 180deg);
  bottom: -25%;
  left: -10%;
  filter: blur(60px);
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(-45deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.015) 60px,
      rgba(255, 255, 255, 0.015) 61px);
}

.hero-bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* — 2-column layout — */
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 8rem;
  align-items: center;
  padding-top: 18rem;
  padding-bottom: 5rem;
}

/* — Left: Editorial text — */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2rem;
}

/* — Social proof — */
.hero-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
  font-family: var(--font-ui);
}

.hero-avatars .hero-avatar:first-child {
  margin-left: 0;
}

.hero-proof-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-stars {
  display: flex;
  gap: 1px;
}

.hero-stars svg {
  width: 13px;
  height: 13px;
}

.hero-proof-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-ui);
}

/* — Headline — */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-headline em {
  font-style: normal;
  color: var(--accent-pink);
}

/* — Subtext — */
.hero-sub {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 480px;
  font-weight: 400;
}

/* — CTAs — */
.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  color: #fff !important;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-pink-d));
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(232, 62, 140, 0.4);
  transition: all 0.3s var(--ease-spring);
  letter-spacing: 0.01em;
}

.hero-btn-primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(232, 62, 140, 0.6);
}

.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.875rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.hero-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

/* — Stats — */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 400;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
}

/* — Right: Category tiles (StaplesPromo style) — */
.hero-cats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-cats-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0;
}

.hero-cats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.hero-cat-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.3;
}

.hero-cat-tile svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-pink);
  flex-shrink: 0;
}

.hero-cat-tile:hover {
  background: var(--bg-elevated);
  border-color: rgba(232, 62, 140, 0.25);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.hero-cats-all {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-pink);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s;
}

.hero-cats-all:hover {
  opacity: 0.75;
}

/* — Responsive — */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-cats {
    display: none;
  }

  .hero-main {
    min-height: auto;
    padding-bottom: 3rem;
  }
}

/* ── MOBILE MENU OVERLAY ────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.btn-close-menu {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-close-menu svg {
  width: 20px;
  height: 20px;
}

.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-link:active,
.mobile-nav-link:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--accent-cyan);
}

.mobile-nav-divider {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-left: 0.5rem;
}

.mobile-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-menu-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.w-full {
  width: 100%;
}

@media (max-width: 520px) {
  .hero-img-main img {
    height: 350px;
  }

  .navbar-logo img {
    height: 55px !important;
  }
}

@media (max-width: 640px) {
  .hero-main {
    padding-top: 230px;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .hero-stats {
    gap: 1.25rem;
    flex-wrap: wrap;
  }
}

/* ── HERO WORD-ROTATE ────────────────────────────────────── */
.hero-word-rotate {
  display: inline-block;
  position: relative;
  min-width: 300px;
  text-align: center;
  vertical-align: top;
  height: 1.2em;
}

.hero-word {
  display: inline-block;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  top: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(135deg, #e83e8c, #00bcff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  white-space: nowrap;
}

.hero-word.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO IMAGE GALLERY ──────────────────────────────────── */
.hero-imgs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: stretch;
  justify-content: center;
}

.hero-img-main,
.hero-img-secondary {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-img-main {
  aspect-ratio: 4/3;
}

.hero-img-secondary {
  aspect-ratio: 16/7;
}

.hero-img-main img,
.hero-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-img-main:hover img,
.hero-img-secondary:hover img {
  transform: scale(1.03);
}

.hero-img-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.875rem;
  background: rgba(15, 16, 20, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-img-tag svg {
  stroke: var(--accent-pink);
  flex-shrink: 0;
}

/* — Background: professional, no floating blobs — */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-body);
}

/* Single sharp directional glow — anchored, not floating */
.hero-bg-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: conic-gradient(from 200deg at 15% 85%,
      transparent 0deg,
      rgba(232, 62, 140, 0.12) 60deg,
      rgba(0, 188, 255, 0.08) 120deg,
      transparent 180deg);
  bottom: -30%;
  left: -15%;
  filter: blur(60px);
}

/* Crisp diagonal line grid — like premium SaaS/agency sites */
.hero-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(-45deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.018) 60px,
      rgba(255, 255, 255, 0.018) 61px);
}

/* Subtle noise texture for depth — no blur, no glow */
.hero-bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* — Social proof — */
.hero-social-proof {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-avatars {
  display: flex;
}

.hero-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg-body);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  margin-left: -8px;
  flex-shrink: 0;
}

.hero-avatars .hero-avatar:first-child {
  margin-left: 0;
}

.hero-proof-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.hero-stars {
  display: flex;
  gap: 1px;
}

.hero-stars svg {
  width: 13px;
  height: 13px;
}

.hero-proof-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* — Content — */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}



.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-word-rotate {
  display: inline-block;
  position: relative;
  min-width: 280px;
  text-align: left;
}

.hero-word {
  display: inline-block;
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(135deg, #e83e8c, #00bcff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-word.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hide-mobile {
  display: inline;
}

/* — CTAs — */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #e83e8c 0%, #c0185a 100%);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(232, 62, 140, 0.35);
  transition: all 0.3s ease;
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(232, 62, 140, 0.5);
}

.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* — Stats — */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* — Features bar — */
.hero-features-bar {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 1rem;
}

.hero-features-inner {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.hero-feature svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-cyan);
  flex-shrink: 0;
}

/* — Responsive — */
  .hero-main {
    padding-top: 230px;
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  .hero-word-rotate {
    min-width: 160px;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hide-mobile {
    display: none;
  }

  .hero-stats {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .hero-stat-num {
    font-size: 1.4rem;
  }

  .hero-features-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    padding: 1rem;
  }

  .hero-feature {
    font-size: 0.75rem;
  }
}

/* ── FEATURES ROW ─────────────────────────────────────────── */
.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 1.5rem;
  /* Reducido de 2rem */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  /* Eliminado espacio excesivo */
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem;
}

.feature-item svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.feature-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── SERVICIOS — LAYOUT EDITORIAL ─────────────────────────── */
#especialidades {
  padding-top: 0;
}

.svc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

/* — Featured card (left) — */
.svc-featured {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(232, 62, 140, 0.08) 0%, rgba(0, 188, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.svc-featured-inner {
  padding: 3rem 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.svc-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-pink);
  margin-bottom: 1.25rem;
  display: block;
}

.svc-featured h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.svc-featured p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.svc-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.svc-tags span:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  background: rgba(232, 62, 140, 0.08);
}

.svc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
}

.svc-cta:hover {
  gap: 1rem;
  color: var(--accent-pink);
}

/* — Service list (right) — */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.35s ease;
}

.svc-item:first-child {
  padding-top: 0.5rem;
}

.svc-item:last-child {
  border-bottom: none;
}

.svc-item:hover {
  padding-left: 0.75rem;
}

.svc-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-pink);
  opacity: 0.5;
  flex-shrink: 0;
  min-width: 36px;
  transition: opacity 0.3s ease;
}

.svc-item:hover .svc-num {
  opacity: 1;
}

.svc-item-body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.svc-item-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* — Responsive — */
@media (max-width: 768px) {
  .svc-layout {
    grid-template-columns: 1fr;
  }

  .svc-featured-inner {
    padding: 2rem 1.5rem;
  }

  .svc-featured h3 {
    font-size: 1.4rem;
  }
}

/* ── CLIENT CAROUSEL (LOGO MARQUEE) ─────────────────────── */
.logos-marquee {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.logos-track {
  display: flex;
  width: max-content;
  animation: scroll var(--scroll-speed, 40s) linear infinite;
}

.logo-item {
  width: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
  filter: none;
  opacity: 1;
  transition: all 0.3s ease;
  padding: 0 2rem;
}

.logo-item:hover {
  transform: scale(1.05);
}

.client-logo-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 1.25rem 2rem;
  border-radius: var(--radius-md);
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(var(--scroll-dist, -2800px));
  }
}

@keyframes scroll-reverse {
  0% {
    transform: translateX(var(--scroll-dist, -2800px));
  }

  100% {
    transform: translateX(0);
  }
}

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

@media (max-width: 768px) {
  .specialties-grid {
    grid-template-columns: 1fr;
  }
}

/* ── SOCIAL PROOF ─────────────────────────────────────────── */
.clients-section {
  padding-block: 2rem;
  background: var(--bg-surface);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  align-items: center;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  filter: none;
  transition: all var(--duration-base) var(--ease-smooth);
  background: var(--bg-primary);
  min-height: 80px;
}

.client-logo:hover {
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.client-logo img {
  max-width: 120px;
  max-height: 40px;
  object-fit: contain;
}

/* Placeholder para logos sin imagen */
.client-logo-text {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  text-align: center;
  text-transform: uppercase;
}

/* ── PRODUCTS GRID SECTION ────────────────────────────────── */
.products-section {
  padding-block: var(--section-pad);
}

.products-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #fff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* ── CTA BAND ─────────────────────────────────────────────── */
.cta-band {
  padding-block: var(--section-pad);
  background: linear-gradient(135deg,
      var(--bg-surface) 0%,
      rgba(232, 62, 140, 0.06) 50%,
      var(--bg-surface) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232, 62, 140, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 188, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cta-band-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cta-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: #1a1d20;
  padding-top: 4rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base);
  color: var(--text-muted);
}

.social-btn:hover {
  background: var(--accent-pink);
  border-color: var(--accent-pink);
  color: #fff;
  transform: translateY(-3px);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: all var(--duration-fast);
}

.footer-link:hover {
  color: var(--accent-pink);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  font-size: 0.82rem;
  color: var(--text-subtle);
  transition: color var(--duration-fast);
}

.footer-bottom-link:hover {
  color: var(--accent-pink);
}

/* ── Responsive navbar & secciones ──────────────────────── */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-img-1,
  .bento-img-2,
  .bento-img-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .bento-text {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .bento-promo {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-band-inner {
    grid-template-columns: 1fr;
  }

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

  .specialty-card:nth-child(n) {
    grid-column: span 1;
  }

  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 768px) {
  .navbar-top-inner { 
    flex-wrap: wrap; 
    align-items: center; 
    padding: 0 1rem 0;
    position: relative;
    min-height: auto;
  }
  .navbar-logo { 
    width: auto; 
    display: flex;
    justify-content: flex-start; 
    margin-bottom: -1.75rem; 
    margin-top: -25px;
    margin-left: -5px; /* Movido 5px a la derecha desde el anterior -10px */
    order: 1;
  }
  .navbar-logo img { 
    height: 160px !important; 
    width: auto;
    margin: 0 !important; 
  } 
  .navbar-actions-top { 
    position: absolute;
    right: 1rem;
    top: 1rem; /* Bajado 5px (de 0.5rem a 1rem aprox) */
    gap: 0.75rem; 
    order: 2;
  }
  .navbar-search { 
    width: 100%; 
    max-width: 100%; 
    margin-top: -3.2rem; /* Subido aún más para eliminar todo espacio */
    order: 3;
    padding-bottom: 0.5rem;
  }
  
  .navbar-actions-top .btn, .nav-action-btn span { display: none; }
  .navbar-toggle { display: flex; }
  .nav-categories, .navbar-bottom { display: none !important; }
  
  .hero-main { padding-top: 230px; } 
  .bento-grid { grid-template-columns: 1fr; }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .features-row {
    grid-template-columns: 1fr;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .specialty-card:nth-child(n) {
    grid-column: span 1;
  }

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

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

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

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Divisor Decorativo Premium --- */
.decorative-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 40px 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.decorative-divider::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--bg-body);
  border: 2px solid var(--border);
  transform: rotate(45deg);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* ── Profile Portal Widget ────────────────────────────────────────── */
.profile-portal-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  padding: 6px 16px 6px 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-portal-widget:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 188, 255, 0.15);
}

.profile-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-cyan-linear);
  color: white;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.profile-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 14px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  min-width: 220px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  padding: 10px;
}

.profile-portal-widget:hover .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-info {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 8px;
}

.profile-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.profile-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-cyan);
}


.logout-btn:hover {
  color: #ff4d5e;
  background: rgba(255, 77, 94, 0.08);
}

/* ============================================================
   CHECKOUT MODAL
   ============================================================ */
.co-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.co-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.co-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%) scale(0.97);
  width: min(680px, 96vw);
  max-height: 90vh;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.co-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.co-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 188, 255, 0.07), transparent);
  flex-shrink: 0;
}

.co-header-icon {
  font-size: 2rem;
  line-height: 1;
}

.co-header h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.co-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.co-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}

.co-close:hover {
  color: var(--accent-cyan);
}

.co-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cart summary strip */
.co-cart-summary {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 0.88rem;
}

.co-item-name {
  color: var(--text-primary);
  font-weight: 600;
}

.co-item-detail {
  color: var(--text-muted);
}

.co-item-sub {
  color: var(--accent-cyan);
  font-weight: 700;
}

.co-item-shipping {
  margin-left: 6px;
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 600;
  background: rgba(212, 175, 55, 0.12);
  padding: 1px 6px;
  border-radius: 8px;
}

/* Section labels */
.co-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: -6px;
}

/* Form layout */
.co-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.co-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.co-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.co-field input,
.co-field textarea {
  background: var(--bg-body);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text-primary);
  font-size: 0.93rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  resize: vertical;
}

.co-field input:focus,
.co-field textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 188, 255, 0.12);
}

.co-field input::placeholder,
.co-field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Error */
.co-error {
  background: rgba(255, 77, 94, 0.1);
  border: 1px solid rgba(255, 77, 94, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  color: #ff4d5e;
  font-size: 0.88rem;
}

/* Saved data notice */
.co-saved-notice {
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 10px;
  padding: 11px 16px;
  color: #25d366;
  font-size: 0.85rem;
}

/* Footer */
.co-footer {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.co-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
}

.co-total-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-display);
}

.co-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #25d366, #1da851);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  font-family: var(--font-body);
}

.co-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

.co-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  .co-grid-2 {
    grid-template-columns: 1fr;
  }

  .co-header {
    padding: 18px;
  }

  .co-body {
    padding: 18px;
  }

  .co-item {
    grid-template-columns: 1fr auto;
  }

  .co-item-sub {
    grid-column: 2;
  }
}

/* ── ACORDEÓN DE CATEGORÍAS EN HOVER (SIDEBAR DEL CATÁLOGO) ── */
.filter-group-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.subcategory-list {
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease !important;
  padding-left: 0.8rem !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  border-left: 1.5px solid var(--border) !important;
  margin-left: 0.75rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none !important; /* Desactivar interacción cuando está colapsado */
}

/* Al pasar el puntero (Hover) sobre la categoría principal */
.filter-group-container:hover .subcategory-list {
  max-height: 350px !important;
  opacity: 1 !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
  pointer-events: auto !important; /* Activar interacción al desplegar */
}

.filter-group-container .chevron-icon {
  transition: transform 0.3s ease !important;
}

.filter-group-container:hover .chevron-icon {
  transform: rotate(180deg) !important;
}