:root {
    --navy: #0d1b2a;
    --navy-mid: #162032;
    --navy-light: #1e2d40;
    --steel: #2a3f55;
    --accent: #c8a96e;
    --accent-dark: #a8884e;
    --accent-light: #e2c99a;
    --white: #f5f3ef;
    --gray: #8a9ab0;
    --gray-light: #e8e4dd;

    /* ── Ancho máximo del layout ─────────────────────────────
     * Cambia --max-w para ajustar el ancho estándar (default 1600px).
     * Usa --max-w-xl para secciones que admiten más amplitud (hasta 1800px).
     * Solo edita estas dos variables; ningún otro componente tiene
     * el ancho hardcodeado.
     * ──────────────────────────────────────────────────────── */
    --max-w:    1600px;
    --max-w-xl: 1800px;
  }
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; overflow-x: hidden; }
  body { font-family: "DM Sans", sans-serif; background: var(--white); color: var(--navy); overflow-x: hidden; max-width: 100vw; }
  img, video { max-width: 100%; height: auto; }
  iframe { max-width: 100%; }
  main { overflow-x: hidden; }

  /* TOPBAR */
  .topbar { background: var(--navy); color: var(--gray); font-size: 12px; letter-spacing: 0.05em; padding: 8px 0; }
  .topbar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
  .topbar a { color: var(--gray); text-decoration: none; }
  .topbar-right { display: flex; gap: 24px; }

  /* HEADER — mismo fondo que el body para continuidad visual */
  header { background: var(--white); border-bottom: none; position: sticky; top: 0; z-index: 100; box-shadow: none; }
  .header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }

  .logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; min-width: 0; }
  .logo svg { height: 48px; width: auto; max-width: 100%; }

  nav { display: flex; align-items: center; gap: 4px; }
  nav a { font-family: "Lato", sans-serif; font-size: 16px; font-weight: 600; text-transform: uppercase; color: var(--navy); text-decoration: none; padding: 8px 16px; border-radius: 6px; transition: all 0.2s; letter-spacing: 0.06em; }
  nav a:hover { background: var(--navy); color: var(--white); }
  nav a.active { color: var(--accent-dark); }

  .header-actions { display: flex; align-items: center; gap: 12px; }
  .btn-ghost { font-size: 13px; font-weight: 500; color: var(--navy); text-decoration: none; padding: 8px 16px; border: 1.5px solid var(--navy); border-radius: 6px; transition: all 0.2s; }
  .btn-ghost:hover { background: var(--navy); color: var(--white); }
  .btn-primary { font-size: 13px; font-weight: 700; color: var(--navy); background: var(--accent); text-decoration: none; padding: 9px 20px; border-radius: 6px; transition: all 0.2s; }
  .btn-primary:hover { background: var(--accent-light); }

  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border: none; background: none; }
  .hamburger span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; display: block; }

  /* HERO */
  .hero { background: var(--navy); height: 72vh; max-height: 780px; min-height: 560px; display: grid; grid-template-columns: 1fr 1fr; position: relative; overflow: hidden; }
  .hero::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(200,169,110,0.06) 0%, transparent 70%),
      repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
      repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
    pointer-events: none;
  }
  .hero-content { padding: 100px 80px 100px 120px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; max-width: 700px; }
  .hero-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(200,169,110,0.35); padding: 6px 14px; border-radius: 100px; margin-bottom: 32px; width: fit-content; }
  .hero-badge::before { content: ""; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
  .hero h1 { font-family: "Playfair Display", serif; font-size: clamp(42px,5vw,64px); font-weight: 700; color: var(--white); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 24px; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero p { font-size: 17px; color: var(--gray); line-height: 1.7; margin-bottom: 40px; max-width: 460px; font-weight: 300; }
  .hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
  .btn-hero-primary { background: var(--accent); color: var(--navy); font-size: 14px; font-weight: 700; padding: 14px 28px; border-radius: 8px; text-decoration: none; transition: all 0.2s; }
  .btn-hero-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
  .btn-hero-ghost { color: var(--white); font-size: 14px; font-weight: 500; padding: 14px 28px; border-radius: 8px; text-decoration: none; border: 1.5px solid rgba(255,255,255,0.2); transition: all 0.2s; }
  .btn-hero-ghost:hover { border-color: rgba(255,255,255,0.5); }

  /* HERO visual: 4 fotos de producto en grid */
  .hero-visual { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--navy-light); overflow: hidden; }
  .hero-prod-img { background: #F4F5F7; display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 120px; position: relative; }
  .hero-prod-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; transition: transform 0.4s; position: absolute; inset: 0; }
  .hero-prod-img:hover img { transform: scale(1.04); }

  .hero-stats { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(13,27,42,0.85); backdrop-filter: blur(8px); display: flex; padding: 20px 32px; gap: 40px; z-index: 2; }
  .hero-stat-value { font-family: "Playfair Display", serif; font-size: 28px; font-weight: 700; color: var(--white); line-height: 1; display: block; }
  .hero-stat-label { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; display: block; }

  /* LOGOS */
  .logos-band { background: var(--navy-mid); padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .logos-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 16px; }
  .logos-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); white-space: nowrap; flex-shrink: 0; }
  .logos-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
  .logos-list { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
  .logo-client { font-family: "Playfair Display", serif; font-size: 16px; color: rgba(255,255,255,0.22); font-weight: 600; letter-spacing: -0.02em; transition: color 0.2s; white-space: nowrap; cursor: default; }
  .logo-client:hover { color: rgba(255,255,255,0.45); }

  /* SECTIONS */
  section { padding: 100px 0; }
  .container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
  .section-label { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; margin-bottom: 16px; display: block; }
  .section-title { font-family: "Playfair Display", serif; font-size: clamp(32px,4vw,48px); font-weight: 700; color: var(--navy); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 16px; }
  .section-title.light { color: var(--white); }
  .section-desc { font-size: 16px; color: var(--gray); line-height: 1.7; max-width: 520px; font-weight: 300; }
  .section-header { margin-bottom: 64px; }
  .section-header.centered { text-align: center; }
  .section-header.centered .section-desc { margin: 0 auto; }

  /* SERVICES */
  .services { background: var(--white); }
  .services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--gray-light); border: 1px solid var(--gray-light); border-radius: 16px; overflow: hidden; }
  .service-card { background: var(--white); padding: 48px 40px; transition: all 0.3s; position: relative; }
  .service-card::after { content: ""; position: absolute; bottom: 0; left: 40px; right: 40px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.3s; transform-origin: left; }
  .service-card:hover { background: var(--navy); }
  .service-card:hover::after { transform: scaleX(1); }
  .service-card:hover .service-title { color: var(--white); }
  .service-card:hover .service-desc { color: rgba(255,255,255,0.5); }
  .service-card:hover .service-icon { background: rgba(245,197,24,0.12); border-color: rgba(245,197,24,0.3); }
  .service-card:hover .service-icon svg { stroke: var(--accent); }
  .service-card:hover .service-number { color: rgba(255,255,255,0.08); }
  .service-number { font-family: "Playfair Display", serif; font-size: 64px; font-weight: 700; color: var(--gray-light); line-height: 1; margin-bottom: 24px; transition: color 0.3s; }
  .service-icon { width: 52px; height: 52px; background: rgba(13,27,42,0.06); border: 1px solid rgba(13,27,42,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transition: all 0.3s; }
  .service-icon svg { width: 24px; height: 24px; stroke: var(--navy); fill: none; stroke-width: 1.5; transition: stroke 0.3s; }
  .service-title { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 12px; transition: color 0.3s; }
  .service-desc { font-size: 14px; color: var(--gray); line-height: 1.7; font-weight: 300; transition: color 0.3s; }

  /* PRODUCTS */
  .featured { background: #f0ece5; }
  .products-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; gap: 24px; flex-wrap: wrap; }
  .products-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
  .product-card { background: var(--white); border-radius: 12px; overflow: hidden; transition: all 0.3s; border: 1px solid transparent; }
  .product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 20px 40px rgba(13,27,42,0.1); }
  .product-image { aspect-ratio: 4/3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
  .product-image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform 0.4s, opacity 0.4s; display: block; }
  .product-image img:nth-child(2) { position: absolute; inset: 0; opacity: 0; }
  .product-card:hover .product-image img:nth-child(1) { opacity: 0; transform: scale(1.05); }
  .product-card:hover .product-image img:nth-child(2) { opacity: 1; transform: scale(1.05); }
  .product-badge { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; background: var(--navy); color: var(--white); }
  .product-badge.new { background: var(--accent); color: var(--navy); }
  .product-info { padding: 20px; }
  .product-ref { font-size: 10px; color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
  .product-name { font-family: "Playfair Display", serif; font-size: 16px; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 4px; }
  .product-variant { font-size: 12px; color: var(--gray); margin-bottom: 16px; font-weight: 300; }
  .product-footer { display: flex; align-items: center; justify-content: space-between; }
  .product-price { font-family: "Playfair Display", serif; font-size: 20px; font-weight: 700; color: var(--navy); }
  .product-link { font-size: 12px; font-weight: 600; color: var(--accent-dark); text-decoration: none; letter-spacing: 0.05em; display: flex; align-items: center; gap: 4px; transition: gap 0.2s; }
  .product-link:hover { gap: 8px; }

  /* CTA STRIP */
  .cta-strip { background: var(--navy); padding: 80px 0; }
  .cta-strip-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
  .cta-strip h2 { font-family: "Playfair Display", serif; font-size: clamp(28px,3vw,42px); font-weight: 700; color: var(--white); letter-spacing: -0.03em; line-height: 1.1; }
  .cta-strip h2 em { font-style: normal; color: var(--accent); }
  .cta-strip p { font-size: 15px; color: var(--gray); font-weight: 300; margin-top: 8px; }
  .cta-strip-actions { display: flex; gap: 16px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }

  /* TESTIMONIALS */
  .testimonials { background: var(--white); }
  .testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
  .testimonial-card { background: #f8f6f2; border-radius: 16px; padding: 36px; border: 1px solid var(--gray-light); transition: all 0.3s; position: relative; }
  .testimonial-card::before { content: "\201C"; font-family: "Playfair Display", serif; font-size: 120px; color: var(--accent); opacity: 0.12; position: absolute; top: -20px; left: 28px; line-height: 1; pointer-events: none; }
  .testimonial-card:hover { border-color: var(--accent); box-shadow: 0 16px 40px rgba(13,27,42,0.08); }
  .stars { display: flex; gap: 4px; margin-bottom: 20px; color: var(--accent); font-size: 14px; }
  .testimonial-text { font-size: 15px; color: var(--navy); line-height: 1.7; font-weight: 300; margin-bottom: 28px; position: relative; z-index: 1; }
  .testimonial-author { display: flex; align-items: center; gap: 14px; }
  .author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; font-family: "Playfair Display", serif; font-size: 16px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
  .author-name { font-size: 14px; font-weight: 600; color: var(--navy); }
  .author-role { font-size: 12px; color: var(--gray); margin-top: 2px; }

  /* CATALOG */
  .catalog-header { background: var(--navy); padding: 64px 0 48px; }
  .catalog-header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
  .catalog-header h1 { font-family: "Playfair Display", serif; font-size: 48px; font-weight: 700; color: var(--white); letter-spacing: -0.03em; margin-bottom: 8px; }
  .catalog-header p { font-size: 16px; color: var(--gray); font-weight: 300; }
  .catalog-body { padding: 48px 0 100px; }
  .catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
  .catalog-filters { position: sticky; top: 88px; height: fit-content; }
  .filter-group { margin-bottom: 32px; }
  .filter-title { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); font-weight: 700; margin-bottom: 16px; }
  .filter-option { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--navy); cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: all 0.2s; }
  .filter-option:hover { background: var(--gray-light); }
  .filter-option input { accent-color: var(--navy); }
  .filter-count { margin-left: auto; font-size: 12px; color: var(--gray); }
  .catalog-grid-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-light); }
  .catalog-count { font-size: 14px; color: var(--gray); }
  .catalog-count strong { color: var(--navy); font-weight: 600; }
  .catalog-sort { font-size: 13px; color: var(--navy); border: 1.5px solid var(--gray-light); border-radius: 8px; padding: 8px 14px; background: transparent; cursor: pointer; font-family: "DM Sans", sans-serif; }
  .catalog-products { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

  /* FOOTER */
  footer { background: var(--navy); padding: 80px 0 40px; }
  .footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 40px; }
  .footer-logo svg { height: 52px; width: auto; max-width: 100%; margin-bottom: 20px; display: block; }
  .footer-desc { font-size: 14px; color: var(--gray); line-height: 1.7; font-weight: 300; margin-bottom: 24px; }
  .footer-socials { display: flex; gap: 12px; }
  .footer-social { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; cursor: pointer; }
  .footer-social:hover { border-color: var(--accent); background: rgba(245,197,24,0.1); }
  .footer-social svg { width: 16px; height: 16px; stroke: var(--gray); fill: none; stroke-width: 1.5; }
  .footer-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); font-weight: 700; margin-bottom: 20px; }
  .footer-links { display: flex; flex-direction: column; gap: 10px; }
  .footer-links a { font-size: 14px; color: var(--gray); text-decoration: none; transition: color 0.2s; font-weight: 300; }
  .footer-links a:hover { color: var(--accent); }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-right: 80px; }
  .footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
  .footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }
  .footer-legal a { font-size: 13px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
  .footer-legal a:hover { color: var(--accent); }

  /* MOBILE MENU */
  .mobile-menu { display: none; position: fixed; inset: 0; z-index: 200; flex-direction: column; }
  .mobile-menu.open { display: flex; }
  .mobile-menu-overlay { position: absolute; inset: 0; background: rgba(13,27,42,0.75); backdrop-filter: blur(4px); }
  .mobile-menu-panel { position: relative; z-index: 1; background: var(--white); width: min(360px,90vw); max-width: 100%; height: 100%; padding: 32px 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; overflow-x: hidden; overflow-y: auto; margin-left: auto; }
  .mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border: 1.5px solid var(--gray-light); border-radius: 8px; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; flex-shrink: 0; }
  .mobile-menu-close svg { width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 2; }
  .mobile-nav-link { display: block; width: 100%; box-sizing: border-box; font-size: 17px; font-weight: 500; color: var(--navy); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--gray-light); white-space: normal; word-break: break-word; transition: color 0.2s; }
  .mobile-nav-link:hover { color: var(--accent-dark); }
  .mobile-menu-actions { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; flex-shrink: 0; }
  .mobile-btn-primary { display: block; text-align: center; background: var(--accent); color: var(--navy); font-weight: 700; font-size: 15px; padding: 14px; border-radius: 8px; text-decoration: none; }
  .mobile-btn-ghost { display: block; text-align: center; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 500; font-size: 15px; padding: 13px; border-radius: 8px; text-decoration: none; }

  /* PAGE VISIBILITY */
  /* .page / .page.active eliminados — en Laravel se usan rutas reales, no SPA JS */

  /* ── PÁGINAS INTERNAS (ficha, carrito, checkout, portal) ──────────────────
   * Clases ps-* sin dependencia de Tailwind. Usan las variables de :root.
   * ──────────────────────────────────────────────────────────────────────── */

  /* Layout de página interna */
  .ps-page { max-width: 1100px; margin: 0 auto; padding: 48px 40px; }
  .ps-page-header { margin-bottom: 32px; }
  .ps-page-title { font-family: "Playfair Display", serif; font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1.15; }
  .ps-page-subtitle { font-size: 14px; color: var(--gray); margin-top: 6px; font-weight: 300; }

  /* Cards */
  .ps-card { background: #fff; border: 1.5px solid var(--gray-light); border-radius: 12px; overflow: hidden; }
  .ps-card-header { padding: 18px 24px; border-bottom: 1px solid var(--gray-light); font-weight: 600; color: var(--navy); font-size: 15px; }
  .ps-card-body { padding: 24px; }

  /* Tabla */
  .ps-table { width: 100%; border-collapse: collapse; font-size: 14px; }
  .ps-table thead th { padding: 12px 16px; background: var(--navy); color: rgba(255,255,255,0.6); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; text-align: left; }
  .ps-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--gray-light); color: var(--navy); vertical-align: middle; }
  .ps-table tbody tr:last-child td { border-bottom: none; }
  .ps-table tbody tr:hover td { background: rgba(200,169,110,0.04); }
  .ps-table tfoot td { padding: 14px 16px; font-weight: 600; color: var(--navy); border-top: 2px solid var(--gray-light); font-size: 15px; }

  /* Inputs */
  .ps-input, .ps-select { padding: 10px 14px; border: 1.5px solid var(--gray-light); border-radius: 6px; font-size: 14px; font-family: inherit; color: var(--navy); background: var(--white); transition: border-color 0.2s; }
  .ps-input:focus, .ps-select:focus { outline: none; border-color: var(--accent); }
  .ps-input::placeholder { color: var(--gray); }
  .ps-label { display: block; font-size: 12px; font-weight: 600; color: var(--navy); letter-spacing: 0.04em; margin-bottom: 6px; }

  /* Selector cantidad */
  .ps-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--gray-light); border-radius: 6px; overflow: hidden; background: #fff; }
  .ps-qty-btn { width: 34px; height: 36px; border: none; background: transparent; cursor: pointer; font-size: 17px; color: var(--navy); display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
  .ps-qty-btn:hover { background: var(--gray-light); }
  .ps-qty-input { width: 46px; border: none; border-left: 1.5px solid var(--gray-light); border-right: 1.5px solid var(--gray-light); text-align: center; font-size: 13px; font-family: inherit; background: #fff; color: var(--navy); padding: 6px 0; }

  /* Badges de estado */
  .ps-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
  .ps-badge-green  { background: #ecfdf5; color: #065f46; }
  .ps-badge-red    { background: #fef2f2; color: #991b1b; }
  .ps-badge-amber  { background: #fffbeb; color: #92400e; }
  .ps-badge-blue   { background: #eff6ff; color: #1e40af; }
  .ps-badge-gray   { background: var(--gray-light); color: var(--navy); }
  .ps-badge-accent { background: rgba(200,169,110,0.15); color: var(--accent-dark); }

  /* KPIs dashboard */
  .ps-kpi { background: #fff; border: 1.5px solid var(--gray-light); border-radius: 12px; padding: 24px 28px; }
  .ps-kpi-label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); margin-bottom: 10px; }
  .ps-kpi-value { font-family: "Playfair Display", serif; font-size: 30px; font-weight: 700; line-height: 1; }
  .ps-kpi-navy   { color: var(--navy); }
  .ps-kpi-accent { color: var(--accent-dark); }
  .ps-kpi-danger { color: #dc2626; }
  .ps-kpi-green  { color: #059669; }

  /* Breadcrumb */
  .ps-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray); margin-bottom: 28px; }
  .ps-breadcrumb a { color: var(--gray); text-decoration: none; transition: color 0.2s; }
  .ps-breadcrumb a:hover { color: var(--accent-dark); }
  .ps-breadcrumb span { opacity: 0.5; }

  /* Estado vacío */
  .ps-empty { text-align: center; padding: 64px 20px; }
  .ps-empty-icon { font-size: 40px; margin-bottom: 14px; }
  .ps-empty p { font-size: 15px; color: var(--gray); font-weight: 300; margin-bottom: 20px; }

  /* Grid 2 columnas con barra lateral */
  .ps-layout-split { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
  .ps-sidebar { display: flex; flex-direction: column; gap: 16px; }

  /* Portal nav */
  .portal-nav { background: var(--navy); }
  .portal-nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .portal-nav-brand { font-family: "Playfair Display", serif; font-size: 18px; font-weight: 700; color: var(--accent); text-decoration: none; letter-spacing: -0.02em; }
  .portal-nav-links { display: flex; align-items: center; gap: 4px; }
  .portal-nav-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.7); text-decoration: none; padding: 7px 14px; border-radius: 6px; transition: all 0.2s; }
  .portal-nav-links a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .portal-nav-links a.active { color: var(--accent); }
  .portal-nav-user { display: flex; align-items: center; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.5); }
  .portal-nav-user button { background: none; border: 1.5px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); padding: 5px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; font-family: inherit; transition: all 0.2s; }
  .portal-nav-user button:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

  @media (max-width: 768px) {
    .ps-page { padding: 32px 20px; }
    .ps-layout-split { grid-template-columns: 1fr; }
    .portal-nav-inner { padding: 0 20px; gap: 16px; }
    .portal-nav-links a { padding: 6px 10px; font-size: 12px; }
  }

  /* ANIMATIONS */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  .hero-badge { animation: fadeUp 0.6s ease both; }
  .hero h1 { animation: fadeUp 0.6s ease 0.1s both; }
  .hero p { animation: fadeUp 0.6s ease 0.2s both; }
  .hero-cta { animation: fadeUp 0.6s ease 0.3s both; }

  /* SCROLL TO TOP */
  #scrollTop {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--navy);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(200,169,110,0.35);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease, box-shadow 0.2s ease;
  }
  #scrollTop.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  #scrollTop:hover {
    background: var(--accent-light);
    box-shadow: 0 6px 20px rgba(200,169,110,0.5);
    transform: translateY(-2px);
  }
  #scrollTop:active { transform: translateY(0); }
  #scrollTop svg { width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

  @media (max-width: 768px) {
    #scrollTop { bottom: 20px; right: 16px; width: 40px; height: 40px; border-radius: 8px; }
  }

  /* RESPONSIVE */
  @media (max-width: 1280px) {
    .hamburger { display: flex; }
    nav, .header-actions { display: none; }
    .hero { grid-template-columns: 1fr; min-height: auto; height: auto; }
    .hero-content { padding: 80px 40px 60px; max-width: 100%; }
    .hero-visual { min-height: 320px; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: repeat(2,1fr); }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-filters { position: static; }
    .catalog-products { grid-template-columns: repeat(2,1fr); }
    .topbar { display: none; }
  }
  @media (max-width: 768px) {
    .container, .header-inner { padding: 0 16px; }
    .header-inner { height: 60px; gap: 12px; }
    .logo svg { height: 38px; }
    .hero { height: auto; max-height: none; }
    .hero-content { padding: 48px 16px 40px; }
    .hero h1 { font-size: clamp(28px, 7vw, 42px); }
    .hero p { font-size: 15px; }
    .hero-visual { min-height: 240px; }
    .hero-stats { padding: 14px 16px; gap: 20px; flex-wrap: wrap; }
    .hero-stat-value { font-size: 22px; }
    .hero-stat-label { font-size: 10px; }
    section { padding: 48px 0; }
    .section-header { margin-bottom: 36px; }
    .section-title { font-size: clamp(24px, 6vw, 36px); }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 32px 24px; }
    .service-number { font-size: 48px; }
    .products-grid, .testimonials-grid, .catalog-products { grid-template-columns: 1fr; }
    .products-header { margin-bottom: 28px; }
    .product-info { padding: 16px; }
    .testimonial-card { padding: 28px 20px; }
    .logos-inner { padding: 0 16px; flex-wrap: wrap; gap: 12px; }
    .logos-list { gap: 16px; }
    .logo-client { font-size: 14px; }
    .cta-strip { padding: 48px 0; }
    .cta-strip-inner { flex-direction: column; padding: 0 16px; text-align: center; }
    .cta-strip-actions { justify-content: center; }
    .footer-top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; margin-bottom: 24px; }
    .footer-top > div:first-child { grid-column: auto; }
    footer { padding: 48px 0 32px; }
    footer .container { padding: 0 16px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 0; }
    .footer-copy { font-size: 12px; }
    .footer-legal { flex-wrap: wrap; gap: 8px 16px; }
    .footer-legal a { font-size: 12px; }
    .legal-content { padding: 32px 16px 60px; }
    .legal-header { padding: 48px 0 36px; }
    .legal-header .container { padding: 0 16px; }
    .legal-table { display: block; overflow-x: auto; }
    .catalog-header h1 { font-size: 32px; }
    .catalog-header-inner { padding: 0 16px; }
    /* Tablas responsive — scroll horizontal */
    .ps-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* ZeroBlocks dynamic grids — forzar 1 columna en movil */
    [style*="grid-template-columns:repeat(auto-fill,minmax(260px"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:repeat(auto-fill,minmax(240px"] { grid-template-columns: 1fr !important; }
  }
  @media (max-width: 480px) {
    .container, .header-inner { padding: 0 12px; }
    .header-inner { height: 56px; }
    .logo svg { height: 32px; }
    .hero-content { padding: 36px 12px 32px; }
    .hero h1 { font-size: clamp(24px, 7vw, 32px); margin-bottom: 16px; }
    .hero p { font-size: 14px; margin-bottom: 28px; }
    .hero-cta { gap: 10px; flex-direction: column; align-items: stretch; }
    .btn-hero-primary, .btn-hero-ghost { font-size: 13px; padding: 12px 20px; text-align: center; }
    .hero-visual { min-height: 200px; }
    section { padding: 36px 0; }
    .section-header { margin-bottom: 28px; }
    .service-card { padding: 24px 16px; }
    .service-number { font-size: 36px; margin-bottom: 16px; }
    .service-icon { width: 44px; height: 44px; margin-bottom: 16px; }
    .product-info { padding: 14px 12px; }
    .product-name { font-size: 15px; }
    .product-price { font-size: 18px; }
    .testimonial-card { padding: 24px 16px; }
    .testimonial-card::before { font-size: 80px; top: -12px; left: 16px; }
    .cta-strip { padding: 36px 0; }
    .cta-strip-inner { padding: 0 12px; }
    footer { padding: 36px 0 24px; }
    footer .container { padding: 0 12px; }
    .footer-logo svg { height: 40px; }
    .footer-col h4 { margin-bottom: 12px; }
    .footer-top { gap: 24px; padding-bottom: 24px; margin-bottom: 20px; }
    .logos-inner { padding: 0 12px; }
    /* Producto cards con imagen mas baja en pantallas pequeñas */
    .product-image { aspect-ratio: 3/2; }
    /* Cookie banner mas compacto */
    #cookie-banner { padding: 12px; }
  }

  /* ── SHOWCASE GRID RESPONSIVE ────────────────────────────────────────────── */
  .ps-showcase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
  @media (max-width: 520px) {
    .ps-showcase-grid { grid-template-columns: 1fr !important; }
  }

  /* ── ZEROBLOCKS CONTENT RESPONSIVE ─────────────────────────────────────── */
  /* Forzar que cualquier contenido ZeroBlocks con ancho fijo no desborde */
  main > section,
  main > div { max-width: 100vw; overflow-x: hidden; }
  main img { max-width: 100%; height: auto; }

  /* ── PÁGINAS LEGALES ─────────────────────────────────────────────────────── */
  .legal-page { min-height: 60vh; }
  .legal-header { background: var(--navy); padding: 80px 0 60px; }
  .legal-header .section-title { color: var(--white); margin-bottom: 8px; }
  .legal-header .section-desc { font-size: 14px; color: var(--gray); margin: 0; }
  .legal-content { max-width: 820px; margin: 0 auto; padding: 64px 0 100px; }
  .legal-content h2 { font-family: "Playfair Display", serif; font-size: 22px; font-weight: 700; color: var(--navy); margin: 48px 0 16px; padding-top: 8px; border-top: 1px solid var(--gray-light); }
  .legal-content h2:first-child { margin-top: 0; border-top: none; }
  .legal-content p { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 16px; }
  .legal-content ul, .legal-content ol { font-size: 15px; color: #444; line-height: 1.8; margin: 0 0 16px 24px; }
  .legal-content li { margin-bottom: 6px; }
  .legal-content a { color: var(--accent-dark); text-decoration: underline; }
  .legal-content strong { color: var(--navy); }
  .legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 20px 0 28px; }
  .legal-table th { background: var(--navy); color: var(--white); padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
  .legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-light); color: #444; vertical-align: top; }
  .legal-table tr:last-child td { border-bottom: none; }
  .legal-table code { font-size: 12px; background: var(--bg); padding: 2px 6px; border-radius: 4px; color: var(--navy); }
  .legal-contact { margin-top: 56px; padding: 24px 28px; background: var(--bg); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.8; color: #444; }
  .legal-contact strong { display: block; color: var(--navy); margin-bottom: 4px; }

  /* ── BANNER COOKIES GRANULAR ─────────────────────────────────────────────── */
  #cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy-mid); border-top: 1px solid rgba(200,169,110,0.2); padding: 20px 28px; z-index: 9000; transform: translateY(100%); transition: transform .4s ease; max-height: 90vh; overflow-y: auto; }
  #cookie-banner.visible { transform: translateY(0); }

  /* Vista principal */
  #cookie-main { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
  .cookie-text { flex: 1; min-width: 220px; }
  .cookie-text strong { display: block; font-size: 14px; color: var(--white); margin-bottom: 6px; }
  .cookie-text p { font-size: 13px; color: rgba(255,255,255,0.7); margin: 0 0 6px; line-height: 1.6; }
  .cookie-policy-link { font-size: 12px; color: var(--accent); text-decoration: underline; }
  .cookie-actions-row { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap; align-self: center; }
  .cookie-btn-accept  { background: var(--accent); color: var(--navy); border: none; padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity .2s; white-space: nowrap; }
  .cookie-btn-accept:hover  { opacity: .85; }
  .cookie-btn-reject  { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.25); padding: 10px 18px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s; white-space: nowrap; }
  .cookie-btn-reject:hover  { border-color: var(--accent); color: var(--accent); }
  .cookie-btn-settings { background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.15); padding: 10px 16px; border-radius: 6px; font-size: 12px; cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s; white-space: nowrap; }
  .cookie-btn-settings:hover { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.8); }

  /* Panel de preferencias */
  .cookie-prefs-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .cookie-prefs-header strong { font-size: 14px; color: var(--white); }
  .cookie-prefs-back { background: none; border: none; color: rgba(255,255,255,0.6); font-size: 18px; cursor: pointer; padding: 4px 8px; font-family: inherit; transition: color .2s; }
  .cookie-prefs-back:hover { color: var(--accent); }
  .cookie-prefs-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(255,255,255,0.1); }
  .cookie-pref-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .cookie-pref-info { flex: 1; }
  .cookie-pref-name { display: block; font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
  .cookie-pref-desc { display: block; font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.5; }
  .cookie-toggle.always-on span { font-size: 11px; color: var(--accent); font-weight: 600; white-space: nowrap; }

  /* Toggle switch */
  .cookie-toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
  .cookie-toggle-switch input { opacity: 0; width: 0; height: 0; }
  .cookie-toggle-slider { position: absolute; inset: 0; background: rgba(255,255,255,0.15); border-radius: 24px; cursor: pointer; transition: background .2s; }
  .cookie-toggle-slider::before { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: var(--white); border-radius: 50%; transition: transform .2s; }
  .cookie-toggle-switch input:checked + .cookie-toggle-slider { background: var(--accent); }
  .cookie-toggle-switch input:checked + .cookie-toggle-slider::before { transform: translateX(20px); }

  .cookie-prefs-footer { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; justify-content: flex-end; }

  @media (max-width: 600px) {
    #cookie-banner { padding: 14px 16px; max-height: 80vh; }
    #cookie-main { gap: 12px; }
    .cookie-text strong { font-size: 13px; margin-bottom: 4px; }
    .cookie-text p { font-size: 12px; line-height: 1.5; margin-bottom: 4px; }
    .cookie-actions-row { width: 100%; flex-direction: column; gap: 8px; }
    .cookie-btn-accept, .cookie-btn-reject { width: 100%; padding: 10px 12px; font-size: 13px; }
    .cookie-btn-settings { width: 100%; padding: 8px 12px; font-size: 12px; }
    .cookie-pref-row { padding: 10px 0; gap: 10px; }
    .cookie-pref-desc { font-size: 11px; }
    .cookie-prefs-footer { justify-content: stretch; flex-direction: column; gap: 8px; }
    .cookie-prefs-footer .cookie-btn-reject,
    .cookie-prefs-footer .cookie-btn-accept { width: 100%; text-align: center; }
  }
/* ── Paginación tienda ── */
.ps-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 0;
    font-family: inherit;
}
.ps-pagination a,
.ps-pagination button,
.ps-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    transition: background .15s, color .15s;
    border: 1.5px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}
.ps-pagination .ps-page-active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    cursor: default;
}
.ps-pagination .ps-page-link {
    background: var(--white);
    color: var(--navy);
    border-color: var(--gray-light);
}
.ps-pagination .ps-page-link:hover {
    background: var(--accent);
    color: var(--navy);
    border-color: var(--accent);
}
.ps-pagination .ps-page-nav {
    background: var(--white);
    color: var(--navy);
    border-color: var(--gray-light);
    padding: 0 14px;
}
.ps-pagination .ps-page-nav:hover {
    background: var(--navy);
    color: var(--accent);
    border-color: var(--navy);
}
.ps-pagination span.ps-page-disabled {
    background: var(--gray-light);
    color: var(--gray);
    border-color: var(--gray-light);
    opacity: .5;
    cursor: not-allowed;
}
.ps-pagination span.ps-page-dots {
    background: transparent;
    color: var(--gray);
    border-color: transparent;
    letter-spacing: 2px;
}
.ps-pagination-info {
    text-align: center;
    font-size: 12px;
    color: var(--gray);
    margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════════════════════
   DARK MODE — Web publica ProSpaces
   Se activa automaticamente segun la preferencia del sistema operativo.
   Solo afecta a la web publica (layout prospaces-web), NO al panel admin.
   El dorado (accent) se mantiene intacto en ambos modos.
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {

  /* ── Variables raiz ────────────────────────────────────────────────── */
  :root {
    --white: #0f1724;           /* fondo principal → navy muy oscuro */
    --gray-light: #1a2536;      /* bordes y separadores */
    --navy: #e8e4dd;            /* texto principal → claro */
    --navy-mid: #111a28;        /* fondos intermedios */
    --navy-light: #15202f;      /* fondos ligeramente mas claros */
    --steel: #8a9ab0;           /* texto secundario (sin cambio) */
    --gray: #8a9ab0;            /* texto terciario (sin cambio) */
    /* accent, accent-dark, accent-light → se mantienen igual */
  }

  /* ── Body y estructura ──────────────────────────────────────────── */
  body {
    background: #0f1724;
    color: #e8e4dd;
  }

  /* ── Header ─────────────────────────────────────────────────────── */
  header {
    background: #0f1724;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  nav a { color: #e8e4dd; }
  nav a:hover { background: #1a2536; color: #fff; }
  .btn-ghost { color: #e8e4dd; border-color: rgba(255,255,255,0.2); }
  .btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .hamburger span { background: #e8e4dd; }

  /* ── Hero (ya es oscuro, ajustes menores) ────────────────────────── */
  .hero { background: #0a1420; }
  .hero-prod-img { background: #1a2536; }

  /* ── Logos band ──────────────────────────────────────────────────── */
  .logos-band { background: #0c1525; }

  /* ── Sections generales ─────────────────────────────────────────── */
  .section-title { color: #e8e4dd; }
  .section-label { color: var(--accent); }

  /* ── Services ───────────────────────────────────────────────────── */
  .services { background: #0f1724; }
  .services-grid { background: #1a2536; border-color: #1a2536; }
  .service-card { background: #0f1724; }
  .service-card:hover { background: #0a1420; }
  .service-number { color: #1a2536; }
  .service-card:hover .service-number { color: rgba(255,255,255,0.06); }
  .service-title { color: #e8e4dd; }
  .service-icon { background: rgba(200,169,110,0.08); border-color: rgba(200,169,110,0.2); }
  .service-icon svg { stroke: var(--accent); }

  /* ── Products / Featured ────────────────────────────────────────── */
  .featured { background: #111a28; }
  .product-card { background: #15202f; border-color: transparent; }
  .product-card:hover { border-color: var(--accent); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
  .product-image { background: #1a2536; }
  .product-name { color: #e8e4dd; }
  .product-price { color: #e8e4dd; }

  /* ── CTA strip (ya oscuro, ajuste menor) ────────────────────────── */
  .cta-strip { background: #0a1420; }

  /* ── Testimonials ───────────────────────────────────────────────── */
  .testimonials { background: #0f1724; }
  .testimonial-card { background: #15202f; border-color: #1a2536; }
  .testimonial-card:hover { border-color: var(--accent); box-shadow: 0 16px 40px rgba(0,0,0,0.25); }
  .testimonial-text { color: #e8e4dd; }
  .author-avatar { background: #1a2536; }
  .author-name { color: #e8e4dd; }

  /* ── Catalog ────────────────────────────────────────────────────── */
  .catalog-header { background: #0a1420; }
  .catalog-body { background: #0f1724; }
  .filter-option { color: #e8e4dd; }
  .filter-option:hover { background: #1a2536; }
  .catalog-grid-header { border-bottom-color: #1a2536; }
  .catalog-sort { color: #e8e4dd; border-color: #1a2536; background: #15202f; }

  /* ── Footer (ya oscuro, ajustes menores) ────────────────────────── */
  footer { background: #080f1a; }
  .footer-top { border-bottom-color: rgba(255,255,255,0.06); }

  /* ── Paginas internas (ps-*) ────────────────────────────────────── */
  .ps-page-title { color: #e8e4dd; }
  .ps-card { background: #15202f; border-color: #1a2536; }
  .ps-card-header { border-bottom-color: #1a2536; color: #e8e4dd; }
  .ps-table thead th { background: #0a1420; color: rgba(255,255,255,0.6); }
  .ps-table tbody td { border-bottom-color: #1a2536; color: #e8e4dd; }
  .ps-table tbody tr:hover td { background: rgba(200,169,110,0.04); }
  .ps-table tfoot td { color: #e8e4dd; border-top-color: #1a2536; }
  .ps-input, .ps-select { background: #15202f; border-color: #1a2536; color: #e8e4dd; }
  .ps-input:focus, .ps-select:focus { border-color: var(--accent); }
  .ps-label { color: #e8e4dd; }
  .ps-qty { border-color: #1a2536; background: #15202f; }
  .ps-qty-btn { color: #e8e4dd; }
  .ps-qty-btn:hover { background: #1a2536; }
  .ps-qty-input { border-color: #1a2536; background: #15202f; color: #e8e4dd; }
  .ps-kpi { background: #15202f; border-color: #1a2536; }
  .ps-kpi-navy { color: #e8e4dd; }
  .ps-breadcrumb a { color: #8a9ab0; }
  .ps-breadcrumb a:hover { color: var(--accent); }

  /* ── Badges dark mode ───────────────────────────────────────────── */
  .ps-badge-green  { background: rgba(5,150,105,0.15); color: #6ee7b7; }
  .ps-badge-red    { background: rgba(220,38,38,0.15); color: #fca5a5; }
  .ps-badge-amber  { background: rgba(245,158,11,0.15); color: #fcd34d; }
  .ps-badge-blue   { background: rgba(59,130,246,0.15); color: #93c5fd; }
  .ps-badge-gray   { background: #1a2536; color: #8a9ab0; }

  /* ── Paginacion ─────────────────────────────────────────────────── */
  .ps-pagination .ps-page-active { background: var(--accent); color: #0f1724; border-color: var(--accent); }
  .ps-pagination .ps-page-link { background: #15202f; color: #e8e4dd; border-color: #1a2536; }
  .ps-pagination .ps-page-link:hover { background: var(--accent); color: #0f1724; border-color: var(--accent); }
  .ps-pagination .ps-page-nav { background: #15202f; color: #e8e4dd; border-color: #1a2536; }
  .ps-pagination .ps-page-nav:hover { background: var(--accent); color: #0f1724; border-color: var(--accent); }
  .ps-pagination span.ps-page-disabled { background: #1a2536; color: #4a5568; border-color: #1a2536; }

  /* ── Mobile menu ────────────────────────────────────────────────── */
  .mobile-menu-panel { background: #0f1724; }
  .mobile-menu-close { border-color: #1a2536; }
  .mobile-menu-close svg { stroke: #e8e4dd; }
  .mobile-nav-link { color: #e8e4dd; border-bottom-color: #1a2536; }
  .mobile-btn-ghost { border-color: rgba(255,255,255,0.2); color: #e8e4dd; }

  /* ── Legal pages ────────────────────────────────────────────────── */
  .legal-header { background: #0a1420; }
  .legal-content h2 { color: #e8e4dd; border-top-color: #1a2536; }
  .legal-content p, .legal-content ul, .legal-content ol { color: #a0aec0; }
  .legal-content strong { color: #e8e4dd; }
  .legal-table th { background: #0a1420; }
  .legal-table td { border-bottom-color: #1a2536; color: #a0aec0; }
  .legal-contact { background: #15202f; border-left-color: var(--accent); color: #a0aec0; }
  .legal-contact strong { color: #e8e4dd; }

  /* ── Cookie banner ──────────────────────────────────────────────── */
  #cookie-banner { background: #0a1420; border-top-color: rgba(200,169,110,0.25); }

  /* ── Scroll to top ──────────────────────────────────────────────── */
  #scrollTop { background: var(--accent); color: #0f1724; }
  #scrollTop svg { stroke: #0f1724; }

  /* ── Portal nav (ya oscuro) ─────────────────────────────────────── */
  .portal-nav { background: #080f1a; }

}
