/* ===========================================================================
   PlastiStock — main.css
   Diseño 1:1 con plastistock-landing.jsx (mercado secundario termoplásticos)
   =========================================================================== */

/* -----------------------------------------------------------------
   0. RESET + TOKENS
   ----------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

:root {
  --c-navy:    #1C3A5E;
  --c-green:   #2D6A4F;
  --c-greenMd: #40916C;
  --c-greenLt: #52B788;
  --c-cream:   #F4F7F2;
  --c-mint:    #E8F4EE;
  --c-mintDk:  #D4EBD9;
  --c-white:   #FFFFFF;
  --c-text:    #1a2e1a;
  --c-muted:   #5a7a5a;
  --c-border:  #C8DCCE;
  --c-amber:   #F4B400;
  --c-danger:  #c0392b;

  --font-serif: 'Lora', 'Georgia', 'Times New Roman', serif;
  --container: 1200px;
  --nav-h: 68px;
  --topbar-h: 36px;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 100px;

  --shadow-sm: 0 2px 8px rgba(28,58,94,0.06);
  --shadow-md: 0 4px 24px rgba(28,58,94,0.08);
  --shadow-lg: 0 8px 32px rgba(28,58,94,0.14);
  --shadow-xl: 0 8px 40px rgba(28,58,94,0.2);
}

html, body {
  font-family: var(--font-serif);
  background: var(--c-cream);
  color: var(--c-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* -----------------------------------------------------------------
   1. UTILIDADES GLOBALES
   ----------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
.section-pad { padding: 96px 0; }
.screen-reader-text, .sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
#page-content { padding-top: var(--nav-h); }
body.home #page-content,
body.front-page #page-content { padding-top: 0; }

/* -----------------------------------------------------------------
   2. TIPOGRAFÍA / TÍTULOS DE SECCIÓN
   ----------------------------------------------------------------- */
.section-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-navy);
  margin: 0 0 24px;
}
.section-title strong { color: var(--c-green); font-weight: 700; }
.section-title--white { color: var(--c-white); }
.section-title--white strong { color: var(--c-greenLt); }

.section-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

.section-header { margin-bottom: 56px; }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin-left: auto; margin-right: auto; }
.section-header--light .section-title { color: var(--c-white); }
.section-header--light .section-subtitle { color: rgba(255,255,255,0.7); }

.section-cta { margin-top: 40px; }
.section-cta--center { text-align: center; }

/* -----------------------------------------------------------------
   3. PILLS / EYEBROWS
   ----------------------------------------------------------------- */
.pill, .pill-small, .pill-eyebrow, .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--c-mint);
  color: var(--c-green);
  border: 1px solid var(--c-border);
  margin-bottom: 18px;
  font-family: var(--font-serif);
  text-transform: uppercase;
}
.pill--outline { background: var(--c-mint); color: var(--c-green); }
.pill--green, .pill-green { background: var(--c-mint); color: var(--c-green); border-color: var(--c-border); }
.pill--navy, .pill-navy {
  background: var(--c-navy); color: var(--c-white);
  border-color: var(--c-navy);
}
.pill--light {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.2);
}
.pill--light-navy {
  background: rgba(28,58,94,0.08);
  color: var(--c-navy);
  border-color: rgba(28,58,94,0.18);
}

/* -----------------------------------------------------------------
   4. BOTONES (.btn--xxx y .btn-xxx por compatibilidad)
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-serif);
  border: 2px solid transparent;
  background: var(--c-green);
  color: var(--c-white);
  text-decoration: none;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s, border-color .18s;
  cursor: pointer;
  line-height: 1.2;
}
.btn:hover { background: var(--c-greenMd); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary, .btn-primary {
  background: var(--c-green); color: var(--c-white); border-color: var(--c-green);
}
.btn--primary:hover, .btn-primary:hover { background: var(--c-greenMd); border-color: var(--c-greenMd); }

.btn--outline, .btn-outline {
  background: transparent; color: var(--c-green); border-color: var(--c-green);
}
.btn--outline:hover, .btn-outline:hover { background: var(--c-green); color: var(--c-white); }

.btn--ghost {
  background: transparent; color: var(--c-navy); border-color: var(--c-border);
}
.btn--ghost:hover { background: var(--c-mint); border-color: var(--c-greenLt); color: var(--c-green); }

.btn--white {
  background: var(--c-white); color: var(--c-green); border-color: var(--c-white);
}
.btn--white:hover { background: var(--c-mint); color: var(--c-green); border-color: var(--c-mint); }

.btn-outline-white {
  background: transparent; color: var(--c-white); border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: var(--c-white); color: var(--c-green); border-color: var(--c-white); }

.btn--sm, .btn-nav { padding: 8px 18px; font-size: 13px; border-radius: 8px; border-width: 1.5px; }
.btn--lg { padding: 14px 32px; font-size: 15px; }
.btn--xl { padding: 16px 48px; font-size: 17px; }
.btn--full { width: 100%; }
.btn-nav-cta { background: var(--c-green); color: var(--c-white); border-color: var(--c-green); }
.btn-nav-cta:hover { background: var(--c-greenMd); border-color: var(--c-greenMd); }

/* -----------------------------------------------------------------
   5. HEADER / NAV
   ----------------------------------------------------------------- */
/* ---------------------------------------------------------------
   BARRA DE USUARIO (solo visible cuando está logueado)
   --------------------------------------------------------------- */
.user-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--topbar-h);
  background: var(--c-navy);
  color: var(--c-white);
  font-size: .78rem;
  letter-spacing: .01em;
}
.user-topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.user-topbar__welcome {
  opacity: .75;
}
.user-topbar__links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.user-topbar__links a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  transition: color .15s;
}
.user-topbar__links a:hover { color: var(--c-greenLt); }
.user-topbar__links .topbar-sep {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.2);
}
.user-topbar__links .topbar-logout { color: rgba(255,255,255,.55); }
.user-topbar__links .topbar-logout:hover { color: #ff8a80; }

/* Cuando hay topbar, el header se desplaza hacia abajo */
body.logged-in .site-header { top: var(--topbar-h); }
body.logged-in #page-content { padding-top: calc(var(--nav-h) + var(--topbar-h)); }
body.logged-in.home #page-content,
body.logged-in.front-page #page-content { padding-top: 0; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244,247,242,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  transition: background .25s, border-color .25s;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(28,58,94,0.04); }

.main-nav, .nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.site-logo, .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-navy);
  flex-shrink: 0;
}
.site-logo__img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 540px) {
  .site-logo__img { height: 42px; }
}
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-wordmark { display: flex; flex-direction: column; line-height: 1; }
.logo-name, .nav-logo-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.12em;
  color: var(--c-navy);
}
.logo-name--accent { color: var(--c-greenMd); }
.logo-tagline, .logo-sub {
  font-size: 7px;
  letter-spacing: 0.18em;
  color: var(--c-muted);
  margin-top: 3px;
  text-transform: uppercase;
}

/* Nav links */
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.nav-menu, .nav-links { display: flex; align-items: center; gap: 28px; }
.nav-item, .nav-links li { display: inline-flex; }
.nav-link {
  font-size: 14px;
  letter-spacing: 0.04em;
  font-family: var(--font-serif);
  color: var(--c-muted);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-link:hover { color: var(--c-green); }
.nav-link.active,
.nav-item.current-menu-item .nav-link {
  color: var(--c-green);
  border-bottom-color: var(--c-green);
}

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  margin-left: auto;
  padding: 0;
  position: relative;
}
.nav-toggle .hamburger-bar {
  display: block;
  width: 18px; height: 2px;
  background: var(--c-navy);
  margin: 4px auto;
  transition: transform .25s, opacity .2s;
}
.nav-open .nav-toggle .hamburger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .hamburger-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle .hamburger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* -----------------------------------------------------------------
   6. HERO (front-page)
   ----------------------------------------------------------------- */
.hero-section {
  background: var(--c-cream);
  position: relative;
  overflow: visible;
  padding-top: var(--nav-h);
  z-index: 1;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, var(--c-mint) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(82,183,136,0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 32px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-left { min-width: 0; }
.hero-title {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--c-navy);
  margin: 0 0 20px;
}
.hero-title .green, .hero-title span { color: var(--c-green); }
.hero-subtitle {
  font-size: 20px;
  color: var(--c-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.hero-desc {
  font-size: 16px;
  color: var(--c-muted);
  line-height: 1.75;
  border-left: 3px solid var(--c-greenLt);
  padding-left: 16px;
  margin: 0;
}

.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  margin-top: 40px;
  border-top: 1px solid var(--c-border);
  padding-top: 28px;
}
.stat-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px;
  border-right: 1px solid var(--c-border);
  margin-right: 24px;
}
.stat-box:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-navy);
  font-family: var(--font-serif);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--c-muted);
  letter-spacing: 0.08em;
}

/* Hero right (floating cards) */
.hero-right { position: relative; height: 380px; }
.hero-cards-stack { position: relative; width: 100%; height: 100%; }

.hero-card {
  position: absolute;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-xl);
  min-width: 220px;
}
.hero-card--1 { top: 20px; left: 30px; right: 0; background: var(--c-white); padding: 24px 26px; }
.hero-card--2 {
  top: auto; bottom: -18px; left: 10px;
  background: var(--c-navy); color: var(--c-white);
  border-color: var(--c-navy);
  box-shadow: 0 8px 32px rgba(28,58,94,0.32);
  padding: 18px 22px;
  z-index: 3;
}
.hero-card--3 {
  top: auto; bottom: 0; right: 30px;
  background: var(--c-mint);
  border-color: var(--c-border);
  padding: 16px 20px;
}
.hero-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  background: var(--c-mint);
  color: var(--c-green);
  margin-bottom: 10px;
}
.hero-card__badge--venta { background: var(--c-mint); color: var(--c-green); }
.hero-card--2 .hero-card__badge { background: rgba(255,255,255,0.18); color: var(--c-greenLt); }
.hero-card__polymer {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 4px 0;
}
.hero-card--2 .hero-card__polymer { color: var(--c-white); }
.hero-card__price {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--c-green);
  margin: 6px 0 4px;
}
.hero-card--2 .hero-card__price { color: var(--c-greenLt); font-size: 18px; }
.hero-card--3 .hero-card__price { font-size: 20px; }
.hero-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--c-muted);
  margin: 4px 0 0;
}
.hero-card--2 .hero-card__location { color: rgba(255,255,255,0.7); }

/* -----------------------------------------------------------------
   7. POLYMER STRIP (ticker)
   ----------------------------------------------------------------- */
.polymer-strip {
  background: var(--c-green);
  padding: 22px 0;
  overflow: hidden;
}
@keyframes polymer-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.polymer-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: polymer-slide 28s linear infinite;
  width: max-content;
}
.polymer-strip:hover .polymer-track { animation-play-state: paused; }
.polymer-item {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}
.polymer-dot {
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  line-height: 1;
}

/* -----------------------------------------------------------------
   8. SECCIÓN ¿QUÉ ES?
   ----------------------------------------------------------------- */
.que-es-section { background: var(--c-white); }
.que-es-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.que-es-illustration {
  background: var(--c-mint);
  border-radius: 24px;
  padding: 32px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.que-es-illustration .granza-svg { width: 100%; height: auto; max-width: 380px; }
.que-es-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-muted);
  margin-bottom: 18px;
}
.que-es-copy p strong { color: var(--c-text); }

.highlight-box {
  background: var(--c-mint);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
}
.highlight-box strong {
  display: block;
  font-weight: 700;
  color: var(--c-green);
  font-size: 15px;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.highlight-box p {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0;
}

/* -----------------------------------------------------------------
   9. SECCIÓN VENDEDORES
   ----------------------------------------------------------------- */
.vendedores-section { background: var(--c-cream); }
.vendedores-section .section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  text-align: left;
  margin-bottom: 56px;
}
.vendedores-section .section-header--center { text-align: left; }
.vendedores-section .section-header .section-title,
.vendedores-section .section-header .section-subtitle { max-width: 540px; }
.vendedores-section .section-header .btn { align-self: center; }

.steps-grid, .step-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-number {
  position: absolute;
  top: -10px; right: 18px;
  font-size: 72px;
  font-weight: 700;
  color: var(--c-mint);
  font-family: var(--font-serif);
  line-height: 1;
  z-index: 0;
}
.step-icon, .step-card-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--c-mint);
  color: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.step-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 0 0 10px;
  position: relative; z-index: 1;
}
.step-card p {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0;
  position: relative; z-index: 1;
}

/* -----------------------------------------------------------------
   10. SECCIÓN COMPRADORES
   ----------------------------------------------------------------- */
.compradores-section { background: var(--c-white); }

.filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-pill {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-serif);
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s;
}
.filter-pill:hover { border-color: var(--c-greenLt); color: var(--c-green); }
.filter-pill--active,
.filter-pill.active {
  background: var(--c-green);
  color: var(--c-white);
  border-color: var(--c-green);
}

.anuncios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.anuncios-grid--3 { grid-template-columns: repeat(3, 1fr); }
.anuncios-grid--4 { grid-template-columns: repeat(4, 1fr); }
.anuncios-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Card anuncio */
.anuncio-card, .card {
  background: var(--c-white);
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.anuncio-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.anuncio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}
.anuncio-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  margin: 4px 0 2px;
  line-height: 1.3;
}
.anuncio-title a { color: var(--c-navy); }
.anuncio-title a:hover { color: var(--c-green); }
.anuncio-polymer {
  font-size: 13px;
  color: var(--c-muted);
  font-weight: 600;
}
.anuncio-grado { color: var(--c-greenMd); font-weight: 500; }
.anuncio-estado {
  font-size: 12px;
  color: var(--c-muted);
}
.anuncio-price {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-green);
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
}
.anuncio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--c-muted);
}
.meta-cantidad, .meta-provincia, .verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.verified-badge { color: var(--c-greenMd); font-weight: 600; }
.badge-especial {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(244,180,0,0.18);
  color: #7C4B00;
  text-transform: uppercase;
}
.btn-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: var(--c-navy);
  color: var(--c-white);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 10px;
  width: 100%;
  border: 1px solid var(--c-navy);
  transition: background .18s;
}
.btn-card-link:hover { background: var(--c-green); border-color: var(--c-green); color: var(--c-white); }

/* -----------------------------------------------------------------
   11. SECCIÓN CONFIANZA
   ----------------------------------------------------------------- */
.confianza-section {
  background: var(--c-navy);
  color: var(--c-white);
}
.confianza-section .section-title { color: var(--c-white); }
.confianza-section .section-title strong { color: var(--c-greenLt); }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.trust-card {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(255,255,255,0.1);
}
.trust-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: rgba(82,183,136,0.18);
  color: var(--c-greenLt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.trust-card h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-white);
  margin: 0 0 12px;
}
.trust-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin: 0;
}
.confianza-cta { text-align: center; margin-top: 16px; }

/* -----------------------------------------------------------------
   12. FOOTER
   ----------------------------------------------------------------- */
.site-footer {
  background: var(--c-text);
  color: rgba(255,255,255,0.6);
  padding: 56px 0 28px;
}
.footer-top { padding: 0 0 40px; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-col { font-size: 14px; }
.footer-col__title, .footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin: 0 0 18px;
}
.footer-col__links li, .footer-col ul li { margin-bottom: 10px; }
.footer-col__links a, .footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: color .18s;
}
.footer-col__links a:hover, .footer-col a:hover { color: var(--c-greenLt); }

.footer-col--brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: var(--c-white);
}
.footer-logo__accent { color: var(--c-greenLt); }
.footer-brand-desc {
  max-width: 320px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-copy { font-size: 12px; opacity: 0.5; }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 32px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.45;
}
.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.5;
  padding: 0;
  width: 100%;
}
.footer-bottom__copy, .footer-bottom__tagline { margin: 0; }

.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background .18s, color .18s;
}
.footer-social a:hover { background: var(--c-greenLt); color: var(--c-white); }

/* -----------------------------------------------------------------
   13. PAGE HERO (mercado, blog, empresas, etc.)
   ----------------------------------------------------------------- */
.page-hero, .page-header,
.archive-hero, .mercado-hero, .blog-archive-hero, .search-hero {
  background: var(--c-navy);
  color: var(--c-white);
  padding: 80px 0 64px;
}
.page-hero .container,
.archive-hero .container,
.mercado-hero .container,
.blog-archive-hero .container,
.search-hero .container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.page-header__title, .archive-hero__title, .mercado-hero__title,
.blog-archive-hero__title, .search-hero__title, .page-title {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--c-white);
  margin: 12px 0 16px;
  line-height: 1.15;
}
.page-header__excerpt, .archive-hero__desc, .mercado-hero__sub,
.blog-archive-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.7;
}
.page-hero--como-funciona { padding-top: 100px; }
.page-hero--newsletter { padding-top: 100px; padding-bottom: 80px; }

/* ===== Newsletter — formulario de suscripción ===== */
.newsletter-subscribe {
  background: var(--c-cream);
  padding: 0 0 80px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.newsletter-subscribe__card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(28,58,94,0.10);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.newsletter-subscribe__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c-green), var(--c-greenLt), var(--c-greenMd));
}
.newsletter-subscribe__copy h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--c-navy);
  margin: 0 0 14px;
  font-weight: 700;
  line-height: 1.2;
}
.newsletter-subscribe__copy > p {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0 0 24px;
}
.newsletter-subscribe__benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--c-text);
  margin: 0;
  padding: 0;
}
.newsletter-subscribe__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}
.newsletter-subscribe__benefits svg { color: var(--c-green); flex-shrink: 0; margin-top: 1px; }

.newsletter-subscribe__form-wrap {
  background: var(--c-mint);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--c-border);
}
.newsletter-subscribe__form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.newsletter-subscribe__label {
  font-size: 12px;
  color: var(--c-navy);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 10px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.newsletter-subscribe__label:first-child { margin-top: 0; }
.newsletter-subscribe__optional { font-weight: 400; color: var(--c-muted); font-size: 11px; }
.newsletter-subscribe__required { color: var(--c-green); font-weight: 700; }
.newsletter-subscribe__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-serif);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  color: var(--c-text);
  transition: border-color .18s, box-shadow .18s;
}
.newsletter-subscribe__input:focus {
  outline: none;
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.newsletter-subscribe__select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a7a5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}
.newsletter-subscribe__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.5;
  margin: 14px 0 4px;
}
.newsletter-subscribe__consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--c-green); }
.newsletter-subscribe__consent a { color: var(--c-green); text-decoration: underline; }
.newsletter-subscribe__submit {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.newsletter-subscribe__legal {
  font-size: 11px;
  color: var(--c-muted);
  text-align: center;
  margin: 10px 0 0;
}
.newsletter-subscribe__feedback {
  margin-top: 12px;
  font-size: 13px;
  padding: 0;
  text-align: center;
}
.newsletter-subscribe__feedback.success {
  color: var(--c-green);
  background: var(--c-mintDk);
  padding: 10px;
  border-radius: var(--radius-sm);
}
.newsletter-subscribe__feedback.error {
  color: var(--c-danger);
  background: #fdecea;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.newsletter-benefits { background: var(--c-white); }

@media (max-width: 880px) {
  .newsletter-subscribe__card { grid-template-columns: 1fr; padding: 32px; gap: 32px; }
}
@media (max-width: 540px) {
  .newsletter-subscribe__card { padding: 24px; }
  .newsletter-subscribe__form-wrap { padding: 22px; }
  .newsletter-subscribe__copy h2 { font-size: 24px; }
}

/* Estilo explícito para h1 y párrafo dentro de page-hero sin clase específica
   (garantiza consistencia visual entre empresas, blog y demás páginas) */
.page-hero h1,
.page-hero .page-hero__title {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--c-white);
  margin: 12px 0 16px;
  line-height: 1.15;
}
.page-hero > .container > p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: 1.7;
  margin: 0 0 8px;
}
@media (max-width: 768px) {
  .page-hero h1 { font-size: 32px; }
}

/* breadcrumb */
.breadcrumb {
  font-size: 12px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.7);
}
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb__list li { display: inline-flex; align-items: center; }
.breadcrumb__sep { opacity: 0.5; }
.breadcrumb a { color: var(--c-greenLt); }
.breadcrumb a:hover { color: var(--c-white); }

/* -----------------------------------------------------------------
   14. MERCADO (archive-anuncio + page-mercado)
   ----------------------------------------------------------------- */
.archive-anuncio-wrap,
.no-results-wrap { padding: 0 0 80px; background: var(--c-cream); }

.mercado-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: flex-start;
}
.mercado-sidebar {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.mercado-main { min-width: 0; }

.mercado-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.mercado-count { font-size: 14px; color: var(--c-muted); }

.mercado-search,
.mercado-search__wrap {
  display: flex;
  width: 100%;
  max-width: 360px;
}
.mercado-search__input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--c-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  outline: none;
  background: var(--c-white);
  font-size: 13px;
}
.mercado-search__btn {
  padding: 9px 14px;
  border: 1px solid var(--c-green);
  background: var(--c-green);
  color: var(--c-white);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-weight: 600;
}
.mercado-sort__select,
select.mercado-sort__select {
  padding: 8px 32px 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  font-size: 13px;
  cursor: pointer;
  font-family: var(--font-serif);
}

/* sidebar filters */
.filter-form > * + * { margin-top: 24px; }
.filter-section {
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 20px;
}
.filter-section:last-child { border-bottom: none; }
.filter-title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-navy);
  margin: 0 0 14px;
}
.filter-checklist, .radio-group { display: flex; flex-direction: column; gap: 8px; }
.filter-checkbox, .filter-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-muted);
  cursor: pointer;
}
.filter-checkbox--solo { padding: 4px 0; }
.filter-count { color: var(--c-muted); opacity: 0.6; font-size: 11px; margin-left: auto; }
.filter-input, .filter-input--full {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}
.filter-range-wrap { display: flex; align-items: center; gap: 8px; }
.filter-range-sep { color: var(--c-muted); }
.filter-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.filter-empty {
  text-align: center;
  padding: 48px 24px;
  font-size: 14px;
  color: var(--c-muted);
}

/* -----------------------------------------------------------------
   15. SINGLE ANUNCIO
   ----------------------------------------------------------------- */
.single-anuncio {
  background: var(--c-cream);
  padding: 32px 0 80px;
}
.single-anuncio .container,
.single-anuncio__layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.single-anuncio__layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-top: 32px;
}
.single-anuncio__header {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.single-anuncio__badges {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.single-anuncio__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 0 0 14px;
  line-height: 1.2;
}
.single-anuncio__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--c-muted);
}
.meta-item { display: inline-flex; align-items: center; gap: 6px; }

.single-anuncio__left,
.single-anuncio__right {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  padding: 28px 32px;
  min-width: 0;
}
.single-anuncio__right { position: sticky; top: calc(var(--nav-h) + 20px); }

/* Gallery */
.anuncio-gallery { margin-bottom: 24px; }
.gallery-main {
  background: var(--c-mint);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main__img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 64px; height: 64px;
  border-radius: 8px;
  background: var(--c-mint);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb--active { border-color: var(--c-green); }
.anuncio-gallery--placeholder {
  background: var(--c-mint);
  border-radius: 12px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-size: 14px;
}

/* Description */
.anuncio-description__content {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-text);
}
.anuncio-description__content p { margin-bottom: 12px; }

/* Specs table */
.specs-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
}
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.specs-table th, .specs-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
}
.specs-table th {
  background: var(--c-mint);
  color: var(--c-navy);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Price box (sidebar) */
.price-box, .sidebar-cta-box {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.price-box__main {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.price-box__amount {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--c-green);
  line-height: 1;
}
.price-box__unit { font-size: 14px; color: var(--c-muted); }
.price-box__stock {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 16px;
}
.price-box__stock-label { font-size: 13px; color: var(--c-muted); }
.price-box__stock-value { font-size: 13px; font-weight: 700; color: var(--c-navy); }
.price-box__actions { display: flex; flex-direction: column; gap: 8px; }

.price-calculator { margin-top: 18px; }
.price-calculator__row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.price-calculator__label { font-size: 13px; color: var(--c-muted); }
.price-calculator__input {
  width: 100px;
  padding: 8px 10px;
  border: 1px solid var(--c-border);
  border-radius: 6px;
}
.price-calculator__unit { font-size: 13px; color: var(--c-muted); }
.price-calculator__result {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  font-family: var(--font-serif);
}

/* Vendor box */
.vendor-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--c-mint);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}
.vendor-box__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-greenLt);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-serif);
}
.vendor-box__info { flex: 1; min-width: 0; }
.vendor-box__name { font-weight: 700; color: var(--c-navy); font-size: 14px; }
.vendor-box__title { font-size: 12px; color: var(--c-muted); }
.vendor-box__location { font-size: 12px; color: var(--c-muted); }
.vendor-box__verified { font-size: 11px; color: var(--c-greenMd); font-weight: 700; }
.vendor-box__profile { font-size: 12px; color: var(--c-green); margin-top: 4px; display: inline-block; }

/* Related */
.related-anuncios, .related-posts { padding: 48px 0 0; }
.related-anuncios__title,
.related-posts__title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--c-navy);
  margin-bottom: 20px;
}

/* -----------------------------------------------------------------
   16. BLOG (archive + single)
   ----------------------------------------------------------------- */
.blog-archive-wrap { background: var(--c-cream); padding-bottom: 80px; }
.blog-archive-hero { padding-bottom: 48px; }

.blog-cat-nav, .archive-tax-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.blog-cat-nav a,
.archive-tax-nav a {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-serif);
  transition: background .18s, color .18s;
}
.blog-cat-nav a:hover { background: rgba(255,255,255,0.18); color: var(--c-white); }
.blog-cat-nav a.active,
.blog-cat-nav .current,
.archive-tax-nav a.active { background: var(--c-greenLt); color: var(--c-white); border-color: var(--c-greenLt); }

/* Blog grid */
.blog-grid, .posts-loop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 48px auto 0;
  padding: 0 32px;
}

.card-post {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-green);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.card-post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-thumb, .post-thumbnail { display: none; }
.post-thumb-placeholder { display: none; }
.post-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-cat-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--c-mint);
  color: var(--c-green);
  text-transform: uppercase;
  width: fit-content;
}
.post-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 0;
  line-height: 1.35;
}
.post-title a { color: inherit; }
.post-title a:hover { color: var(--c-green); }
.post-excerpt {
  font-size: 13px;
  color: var(--c-muted);
  line-height: 1.6;
  margin: 0;
}
.post-excerpt--paragraphs {
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-excerpt--paragraphs p { margin: 0; }
.post-read-more {
  align-self: flex-start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-meta {
  font-size: 11px;
  color: var(--c-muted);
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.post-meta__sep { opacity: 0.5; }
.post-date, .post-reading-time { font-size: 11px; color: var(--c-muted); }

/* Featured post — full-width dark card, no image */
.featured-post {
  display: block;
  background: linear-gradient(135deg, var(--c-navy) 0%, #1a4a6b 60%, #0f3347 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(28,58,94,.28);
  max-width: var(--container);
  margin: 48px auto 0;
  position: relative;
}
.featured-post::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-green), var(--c-greenLt));
}
.featured-post__img,
.featured-post__img--placeholder,
.featured-post__img-link { display: none; }
.featured-post__content {
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 780px;
}
.featured-post__content .post-cat-badge {
  background: rgba(64,145,108,.25);
  color: #7ed4a4;
  border: 1px solid rgba(64,145,108,.4);
}
.featured-post__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}
.featured-post__title a { color: inherit; }
.featured-post__title a:hover { color: var(--c-greenLt); }
.featured-post__excerpt {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin: 0;
}
.featured-post__excerpt--paragraphs {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.featured-post__excerpt--paragraphs p { margin: 0; }
.featured-post .post-meta { color: rgba(255,255,255,.5); padding-top: 4px; }
.featured-post .post-meta__author { color: rgba(255,255,255,.65); }
.featured-post .post-meta__avatar { border-radius: 50%; }

/* Single post */
.single-post__layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}
.single-post__featured-img {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  max-height: 420px;
}
.single-post__featured-img img { width: 100%; height: 100%; object-fit: cover; }
.single-post__title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.2;
  margin: 16px 0 24px;
}
.single-post__cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.single-post__body, .entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-text);
}
.single-post__body p, .entry-content p { margin-bottom: 18px; }
.single-post__body h2, .entry-content h2 {
  font-family: var(--font-serif);
  font-size: 26px;
  color: var(--c-navy);
  margin: 36px 0 14px;
}
.single-post__body h3, .entry-content h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--c-navy);
  margin: 28px 0 12px;
}
.single-post__body a, .entry-content a { color: var(--c-green); border-bottom: 1px dashed currentColor; }
.single-post__body blockquote, .entry-content blockquote {
  border-left: 4px solid var(--c-greenLt);
  padding: 8px 0 8px 18px;
  margin: 18px 0;
  color: var(--c-muted);
  font-style: italic;
}
.single-post__body code, .entry-content code {
  background: var(--c-mint);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
}
.single-post__body img, .entry-content img { border-radius: 12px; margin: 20px 0; }
.single-post__img-caption {
  font-size: 12px;
  text-align: center;
  color: var(--c-muted);
  margin-top: -16px;
  margin-bottom: 22px;
}

.entry-header, .single-post__header { margin-bottom: 32px; }
.entry-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 0 0 16px;
  line-height: 1.2;
}
.entry-meta { font-size: 13px; color: var(--c-muted); }
.entry-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--c-border); }

.post-meta--large, .post-meta--compact {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 20px;
}
.post-meta__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-greenLt);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.post-meta__author { font-weight: 700; color: var(--c-navy); }

.single-post__sidebar { display: flex; flex-direction: column; gap: 24px; }
.single-post__share { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.social-share__label { font-size: 12px; color: var(--c-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.social-share { display: flex; flex-wrap: wrap; gap: 8px; }
.social-share__btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-mint);
  color: var(--c-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s, color .18s;
}
.social-share__btn:hover { background: var(--c-green); color: var(--c-white); }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  margin-top: 24px;
}
.post-tags__label { color: var(--c-muted); }
.post-tag {
  padding: 4px 10px;
  background: var(--c-mint);
  color: var(--c-green);
  border-radius: var(--radius-pill);
  font-size: 11px;
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}
.post-nav__label { font-size: 11px; color: var(--c-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.post-nav__title { font-size: 14px; color: var(--c-navy); font-family: var(--font-serif); font-weight: 700; }
.post-navigation a {
  display: block;
  padding: 16px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-white);
}
.post-navigation a:hover { border-color: var(--c-greenLt); }

.author-box {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  background: var(--c-mint);
  padding: 20px;
  border-radius: 12px;
  margin-top: 32px;
}
.author-box__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--c-greenLt);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-white); font-family: var(--font-serif); font-weight: 700; font-size: 28px;
  overflow: hidden;
}
.author-box__avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box__label { font-size: 11px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.author-box__name { font-family: var(--font-serif); font-weight: 700; color: var(--c-navy); margin: 4px 0; }
.author-box__bio { font-size: 13px; color: var(--c-muted); line-height: 1.6; }

/* Newsletter box (blog CTA) */
.newsletter-box, .newsletter-section {
  background: var(--c-green);
  color: var(--c-white);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: var(--container);
  margin: 64px auto 0;
}
.newsletter-box__copy h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--c-white);
}
.newsletter-box__copy p { color: rgba(255,255,255,0.8); font-size: 15px; margin: 0; }
.newsletter-form, .newsletter-form__row { display: flex; gap: 0; flex-shrink: 0; }
.newsletter-form__input {
  padding: 12px 18px;
  border: none;
  outline: none;
  font-size: 14px;
  border-radius: 8px 0 0 8px;
  width: 240px;
  font-family: var(--font-serif);
}
.newsletter-form button,
.newsletter-form__row button {
  background: var(--c-navy);
  color: var(--c-white);
  border: none;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-family: var(--font-serif);
}
.newsletter-form__legal { font-size: 11px; opacity: 0.7; margin-top: 8px; width: 100%; }
.newsletter-form__feedback { font-size: 13px; margin-top: 10px; width: 100%; }

/* -----------------------------------------------------------------
   17. CÓMO FUNCIONA
   ----------------------------------------------------------------- */
.como-funciona-wrap { background: var(--c-cream); padding-bottom: 80px; }

.cf-section { padding: 80px 0; }
.cf-section--alt { background: var(--c-white); }
.cf-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.cf-step {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  padding: 32px;
  position: relative;
}
.cf-section--alt .cf-step { background: var(--c-cream); }
.cf-step__num {
  position: absolute;
  top: -14px; left: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
}
.cf-step__content h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--c-navy);
  margin: 4px 0 12px;
}
.cf-step__content p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.65;
  margin: 0;
}

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 32px auto 0; }
.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 18px 22px;
}
.faq-item__question {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-navy);
  cursor: pointer;
  margin: 0;
}
.faq-item__answer {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-top: 10px;
}

/* Pricing tiers — Comisiones y tarifas */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 40px auto 0;
  max-width: 880px;
}
.pricing-tier {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.pricing-tier::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-greenLt), var(--c-greenMd));
  opacity: 0;
  transition: opacity .25s ease;
}
.pricing-tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-greenLt);
}
.pricing-tier:hover::before { opacity: 1; }

.pricing-tier--featured {
  border-color: var(--c-green);
  box-shadow: 0 12px 36px rgba(45,106,79,0.18);
  background: linear-gradient(180deg, var(--c-white) 0%, var(--c-mint) 100%);
}
.pricing-tier--featured::before {
  opacity: 1;
  background: linear-gradient(90deg, var(--c-green), var(--c-greenLt));
}

.pricing-tier__badge {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--c-green);
  color: var(--c-white);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(45,106,79,0.25);
}

.pricing-tier__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border);
}
.pricing-tier__header h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--c-navy);
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}

.pricing-tier__price {
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--c-muted);
  font-weight: 400;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pricing-tier__pct {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 700;
  color: var(--c-green);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pricing-tier--featured .pricing-tier__pct { color: var(--c-green); }
.pricing-tier__label {
  font-size: 13px;
  color: var(--c-muted);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.pricing-tier__features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--c-text);
  margin: 0;
  flex: 1;
}
.pricing-tier__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  padding-left: 0;
}
.pricing-tier__features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  background: var(--c-mintDk);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D6A4F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.pricing-tier .btn {
  margin-top: 8px;
  align-self: stretch;
  text-align: center;
}

@media (max-width: 720px) {
  .pricing-table { grid-template-columns: 1fr; gap: 20px; }
  .pricing-tier { padding: 32px 26px 28px; }
  .pricing-tier__pct { font-size: 46px; }
}

/* Tab nav */
.tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--c-border); margin-bottom: 24px; }
.tab-nav__btn {
  padding: 12px 18px;
  background: transparent;
  border: none;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--c-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-nav__btn:hover { color: var(--c-green); }
.tab-nav__btn--active {
  color: var(--c-green);
  border-bottom-color: var(--c-green);
  font-weight: 700;
}
.tab-panel--hidden { display: none; }

/* Guarantees */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.guarantee-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.guarantee-card__icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--c-mint);
  color: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Payment methods */
.payment-methods {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
  opacity: 0.7;
}
.payment-method {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 700;
}

/* CTA section */
.cta-section, .cta-box {
  background: var(--c-navy);
  color: var(--c-white);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin: 64px auto;
  max-width: var(--container);
}
.cta-box__actions { display: inline-flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }

/* -----------------------------------------------------------------
   18. EMPRESAS
   ----------------------------------------------------------------- */
.empresas-wrap { background: var(--c-cream); padding-bottom: 80px; }
.empresas-filter-form {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}
.empresas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 0 32px;
}
.empresa-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: box-shadow .22s, transform .22s;
}
.empresa-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.empresa-card__inner {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 22px;
  align-items: center;
}
.empresa-card__logo,
.empresa-card__logo--placeholder,
.empresa-card__logo-wrap {
  width: 80px; height: 80px;
  border-radius: 12px;
  background: var(--c-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-greenMd);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 26px;
  overflow: hidden;
}
.empresa-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.empresa-card__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-navy);
  margin: 0 0 4px;
}
.empresa-card__name a:hover { color: var(--c-green); }
.empresa-card__sector { font-size: 12px; color: var(--c-greenMd); text-transform: uppercase; letter-spacing: 0.06em; }
.empresa-card__location { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.empresa-card__anuncios-count { font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.empresa-card__verified-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--c-mint);
  color: var(--c-green);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* -----------------------------------------------------------------
   19. PUBLICAR ANUNCIO
   ----------------------------------------------------------------- */
.publicar-wrap { background: var(--c-cream); padding-bottom: 80px; }
.publicar-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}

.step-progress {
  max-width: 720px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.step-progress__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
}
.step-progress__num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--c-white);
  border: 2px solid var(--c-border);
  color: var(--c-muted);
  font-weight: 700;
  font-family: var(--font-serif);
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-progress__item--active .step-progress__num {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-white);
}
.step-progress__label {
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
}
.step-progress__item--active .step-progress__label { color: var(--c-green); font-weight: 700; }
.step-progress__line {
  flex: 1;
  height: 2px;
  background: var(--c-border);
}

.publicar-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.publicar-step { display: block; }
.publicar-step--hidden { display: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label,
.form-field > span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 10px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: var(--c-white);
  font-family: var(--font-serif);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--c-greenLt); }
.form-field--required label::after { content: " *"; color: var(--c-danger); }
.form-field--checkbox { flex-direction: row; align-items: center; gap: 8px; }
.form-hint { font-size: 12px; color: var(--c-muted); }
.form-errors { color: var(--c-danger); font-size: 13px; margin: 12px 0; }
.form-feedback { font-size: 13px; margin-top: 12px; }
.form-price-preview {
  background: var(--c-mint);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--c-navy);
}

.file-upload-area {
  border: 2px dashed var(--c-border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  background: var(--c-cream);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.file-upload-area:hover { border-color: var(--c-greenLt); background: var(--c-mint); }
.file-upload__input { display: none; }
.file-upload__label { font-size: 14px; color: var(--c-muted); }
.file-hint { font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.file-preview {
  background: var(--c-mint);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-navy);
}

.step-nav { display: flex; gap: 12px; margin-top: 24px; }
.step-nav--between { justify-content: space-between; }
.step-nav--right { justify-content: flex-end; }

.publicar-success {
  max-width: 600px;
  margin: 40px auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
}
.success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  background: var(--c-mint);
  color: var(--c-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.preview-box {
  background: var(--c-mint);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 18px;
}
.preview-box__title { font-family: var(--font-serif); font-weight: 700; color: var(--c-navy); margin-bottom: 6px; }
.preview-box__intro { font-size: 13px; color: var(--c-muted); margin-bottom: 12px; }
.preview-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 14px;
}
.preview-card__header { display: flex; gap: 8px; margin-bottom: 6px; }
.preview-card__title { font-weight: 700; color: var(--c-navy); }
.preview-card__specs, .preview-spec { font-size: 12px; color: var(--c-muted); }

/* -----------------------------------------------------------------
   20. NEWSLETTER GENERATOR (page-newsletter)
   ----------------------------------------------------------------- */
.nl-section-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-serif);
  background: var(--c-cream);
  color: var(--c-muted);
  border: 1.5px solid var(--c-border);
  transition: all .18s;
}
.nl-section-pill.selected {
  background: var(--c-mint);
  color: var(--c-green);
  border-color: var(--c-greenLt);
  font-weight: 700;
}

/* -----------------------------------------------------------------
   21. CHAT WIDGET
   ----------------------------------------------------------------- */
/* Chat tooltip/bocadillo */
.chat-tooltip {
  position: fixed;
  bottom: 42px; right: 96px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--c-text);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 199;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: chat-tooltip-slide 0.4s 3s both;
  font-family: var(--font-serif);
}
.chat-tooltip::after {
  content: '';
  position: absolute;
  right: -8px; top: 50%;
  transform: translateY(-50%);
  border: 7px solid transparent;
  border-left: 7px solid var(--c-white);
  border-right: none;
  filter: drop-shadow(1px 0 0 var(--c-border));
}
.chat-tooltip[hidden] { display: none !important; }
.chat-tooltip__close {
  background: none; border: none;
  font-size: 12px; color: var(--c-muted);
  cursor: pointer; padding: 2px 4px; line-height: 1;
  flex-shrink: 0;
  border-radius: var(--radius-xs);
  transition: background .15s;
}
.chat-tooltip__close:hover { background: var(--c-mint); }
@keyframes chat-tooltip-slide {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Mensajes del chat — estructura correcta */
.msg { display: flex; align-items: flex-end; }
.msg--user { justify-content: flex-end; }
.msg--assistant { justify-content: flex-start; }
.msg--user .chat-bubble {
  background: var(--c-green);
  color: var(--c-white);
  border-radius: 14px 14px 4px 14px;
}

.chat-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--c-green);
  color: var(--c-white);
  border: none;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(28,58,94,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, background .2s;
}
.chat-fab:hover { transform: scale(1.05); }
.chat-fab--open { background: var(--c-navy); }

.chat-window {
  position: fixed;
  bottom: 96px; right: 28px;
  z-index: 200;
  width: 360px;
  height: 500px;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-serif);
}
.chat-window[hidden] { display: none !important; }
.chat-header {
  background: var(--c-green);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-header-info { flex: 1; }
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.chat-name { color: var(--c-white); font-weight: 700; font-size: 14px; }
.chat-status { color: rgba(255,255,255,0.75); font-size: 11px; }
.chat-close {
  background: transparent;
  border: none;
  color: var(--c-white);
  font-size: 18px;
  cursor: pointer;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.msg-assistant, .msg.assistant { justify-content: flex-start; }
.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  border-radius: 14px 14px 14px 4px;
  background: var(--c-mint);
  color: var(--c-text);
}
.msg.user .chat-bubble {
  background: var(--c-green);
  color: var(--c-white);
  border-radius: 14px 14px 4px 14px;
}
.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  padding: 9px 14px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  outline: none;
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--c-text);
  background: var(--c-cream);
}
.chat-send {
  background: var(--c-green);
  color: var(--c-white);
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 16px;
  transition: background .18s;
}
.chat-send:hover { background: var(--c-greenMd); }
.chat-send:disabled { background: var(--c-border); cursor: not-allowed; }

/* -----------------------------------------------------------------
   22. CONTACTO
   ----------------------------------------------------------------- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* -----------------------------------------------------------------
   23. PAGE genérica
   ----------------------------------------------------------------- */
.page-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
}
.page-sidebar { display: flex; flex-direction: column; gap: 24px; }
.page-sidebar__widgets { display: flex; flex-direction: column; gap: 18px; }
.page-featured-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.page-content { line-height: 1.75; font-size: 16px; color: var(--c-text); }

/* -----------------------------------------------------------------
   24. SEARCH / 404
   ----------------------------------------------------------------- */
.search-results-wrap { background: var(--c-cream); padding: 48px 0 80px; }
.search-results {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.search-result {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  transition: box-shadow .22s;
}
.search-result:hover { box-shadow: var(--shadow-md); }
.search-result__thumb {
  width: 120px; height: 90px;
  background: var(--c-mint);
  border-radius: 8px;
  overflow: hidden;
}
.search-result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result__type {
  font-size: 11px;
  color: var(--c-greenMd);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.search-result__title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 6px 0;
}
.search-result__excerpt, .search-result__text { font-size: 13px; color: var(--c-muted); line-height: 1.6; }
.search-type-filter { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }

.error-404-wrap,
.no-results-wrap,
.not-found {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 32px;
  text-align: center;
}
.error-404__illustration { margin: 0 auto 24px; max-width: 220px; opacity: 0.7; }
.error-svg { max-width: 240px; margin: 0 auto; }
.error-404__title, .no-results h1 {
  font-family: var(--font-serif);
  font-size: 64px;
  color: var(--c-navy);
  margin: 0 0 8px;
}
.error-404__desc { font-size: 16px; color: var(--c-muted); margin-bottom: 28px; }
.error-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-404__suggestions { margin: 32px 0; }
.error-404__suggestions-title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); margin-bottom: 12px; }
.error-404__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.error-404__search { max-width: 360px; margin: 24px auto 0; display: flex; gap: 8px; }
.error-404__search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}

.no-results { padding: 48px 0; text-align: center; color: var(--c-muted); }
.no-results__cta { margin-top: 18px; }
.no-results__suggestions { font-size: 13px; color: var(--c-muted); margin-top: 8px; }

/* Pagination */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 48px;
}
.pagination-wrap a,
.pagination-wrap span {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--c-white);
  color: var(--c-navy);
  font-weight: 700;
  border: 1px solid var(--c-border);
  font-family: var(--font-serif);
}
.pagination-wrap .current,
.pagination-wrap a:hover {
  background: var(--c-green);
  color: var(--c-white);
  border-color: var(--c-green);
}

/* Modal */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28,58,94,0.45);
  cursor: pointer;
}
.modal__box {
  position: relative;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  z-index: 1;
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--c-muted);
  cursor: pointer;
}
.modal__title { font-family: var(--font-serif); font-size: 22px; color: var(--c-navy); margin-bottom: 8px; }
.modal__subtitle { font-size: 14px; color: var(--c-muted); margin-bottom: 18px; }

/* -----------------------------------------------------------------
   25. UTILIDADES TEXTO Y COLOR
   ----------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--c-muted); }
.text-navy { color: var(--c-navy); }
.text-green, .green { color: var(--c-green); }
.text-white { color: var(--c-white); }
.text-large { font-size: 18px; }
.text-small { font-size: 13px; }
.text-xs { font-size: 11px; }

/* -----------------------------------------------------------------
   26. RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .hero-title { font-size: 44px; }
  .section-title { font-size: 32px; }

  .mercado-layout { grid-template-columns: 240px 1fr; gap: 24px; }
  .single-anuncio__layout { grid-template-columns: 1fr; }
  .single-anuncio__right { position: static; }
  .single-post__layout,
  .page-layout { grid-template-columns: 1fr; gap: 32px; }
  .single-post__sidebar,
  .page-sidebar { order: 2; }

  .blog-grid, .posts-loop,
  .empresas-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-right {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-border);
    padding: 24px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    display: none;
  }
  .nav-open .nav-right { display: flex; }
  .nav-menu, .nav-links { flex-direction: column; gap: 16px; align-items: flex-start; }
  .nav-cta { flex-direction: column; align-items: stretch; gap: 8px; }

  .hero-inner { grid-template-columns: 1fr; padding-bottom: 80px; }
  .hero-right { height: 340px; margin-top: 24px; }
  .hero-card--2 { bottom: -10px; left: 6px; }
  .hero-title { font-size: 38px; }
  .hero-subtitle { font-size: 17px; }

  .que-es-grid { grid-template-columns: 1fr; gap: 40px; }
  .que-es-illustration { aspect-ratio: 16/10; }

  .vendedores-section .section-header { flex-direction: column; align-items: stretch; text-align: center; }
  .vendedores-section .section-header .btn { align-self: center; }

  .steps-grid, .step-cards,
  .trust-grid,
  .cf-steps,
  .pricing-table,
  .guarantees-grid,
  .anuncios-grid, .anuncios-grid--3, .anuncios-grid--4,
  .blog-grid, .posts-loop,
  .empresas-grid { grid-template-columns: 1fr; }

  .featured-post { margin: 32px auto 0; }
  .featured-post__content { padding: 32px 24px; }

  .footer-inner, .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col--brand { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 8px; }

  .mercado-layout { grid-template-columns: 1fr; }
  .mercado-sidebar { position: static; }

  .newsletter-box, .newsletter-section { flex-direction: column; align-items: stretch; text-align: center; padding: 32px; }
  .newsletter-form, .newsletter-form__row { width: 100%; flex-direction: column; }
  .newsletter-form__input { width: 100%; border-radius: 8px 8px 0 0; }
  .newsletter-form button, .newsletter-form__row button { border-radius: 0 0 8px 8px; }

  .section-pad { padding: 64px 0; }

  .chat-window { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
  .chat-tooltip { right: auto; left: 16px; bottom: 96px; white-space: normal; max-width: calc(100vw - 100px); }
  .chat-tooltip::after { display: none; }
}

@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .main-nav, .nav-container { padding: 0 20px; }
  .hero-section { padding-top: var(--nav-h); }
  .hero-inner { padding: 40px 20px 70px; gap: 30px; }
  .hero-card--2 { bottom: -8px; left: 4px; }
  .hero-title { font-size: 32px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-box { flex-basis: 45%; border-right: none; padding-right: 0; margin-right: 0; }

  .page-header__title, .page-title,
  .archive-hero__title, .mercado-hero__title,
  .blog-archive-hero__title { font-size: 32px; }

  .section-title { font-size: 26px; }
  .footer-inner, .footer-grid { grid-template-columns: 1fr; }
  .footer-col--brand { grid-column: span 1; }

  .single-anuncio__title { font-size: 24px; }
  .single-post__title, .entry-title { font-size: 28px; }

  .form-row { grid-template-columns: 1fr; }
  .step-progress { gap: 4px; }
  .step-progress__label { font-size: 10px; }
}

/* -----------------------------------------------------------------
   27. ANIMACIONES Y FADES
   ----------------------------------------------------------------- */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   28. SISTEMA DE AUTENTICACIÓN — Modal, página /acceso/, formularios
   ========================================================================== */

/* ----------------------------------------------------------
   Botón Google
---------------------------------------------------------- */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 20px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-md);
  background: var(--c-white);
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-serif);
  cursor: pointer;
  transition: background .18s, border-color .18s, box-shadow .18s;
  text-decoration: none;
}
.btn-google:hover {
  background: var(--c-cream);
  border-color: #aaa;
  box-shadow: var(--shadow-sm);
  color: var(--c-text);
}

/* ----------------------------------------------------------
   Divisor "o"
---------------------------------------------------------- */
.acceso-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--c-muted);
  font-size: 12px;
}
.acceso-divider::before,
.acceso-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

/* ----------------------------------------------------------
   Input con toggle contraseña
---------------------------------------------------------- */
.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-password-wrap input {
  flex: 1;
  padding-right: 42px;
}
.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 4px;
  color: var(--c-muted);
  cursor: pointer;
  line-height: 0;
  transition: color .18s;
}
.toggle-password:hover { color: var(--c-navy); }

/* ----------------------------------------------------------
   Feedback de formulario
---------------------------------------------------------- */
.auth-feedback {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.auth-feedback--loading { background: var(--c-mint); color: var(--c-green); }
.auth-feedback--success { background: #d4edda; color: #155724; }
.auth-feedback--error   { background: #f8d7da; color: #721c24; }

/* ----------------------------------------------------------
   Opciones de formulario (recordarme / olvidé contraseña)
---------------------------------------------------------- */
.acceso-form__options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--c-greenMd);
  font-size: 13px;
  font-family: var(--font-serif);
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--c-green); }

.acceso-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

/* ----------------------------------------------------------
   Alerta de error en página /acceso/
---------------------------------------------------------- */
.acceso-alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
}
.acceso-alert--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ----------------------------------------------------------
   Formulario oculto (forgot password toggle)
---------------------------------------------------------- */
.acceso-form--hidden { display: none; }

/* Etiqueta de sección dentro del formulario de registro */
.acceso-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

/* ----------------------------------------------------------
   Panel oculto (tabs)
---------------------------------------------------------- */
.acceso-panel--hidden,
.auth-panel--hidden { display: none; }

/* ==========================================================================
   29. PÁGINA /acceso/
   ========================================================================== */
.acceso-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--c-cream);
}

.acceso-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
}

.acceso-card__logo {
  text-align: center;
  margin-bottom: 28px;
}
.acceso-card__logo img {
  display: inline-block;
  height: 48px;
  width: auto;
}

/* Tabs de la página acceso */
.acceso-tabs {
  display: flex;
  background: var(--c-mint);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}
.acceso-tab {
  flex: 1;
  padding: 9px 16px;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-serif);
  color: var(--c-muted);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.acceso-tab.active {
  background: var(--c-white);
  color: var(--c-navy);
  box-shadow: var(--shadow-sm);
}
.acceso-tab:hover:not(.active) { color: var(--c-navy); }

/* ==========================================================================
   30. MODAL DE AUTENTICACIÓN
   ========================================================================== */

/* Overlay — oculto por defecto con display:none (sin backdrop-filter estático) */
.auth-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,58,94,0.45);
  z-index: 1000;
}
body.modal-open .auth-modal-overlay { display: block; }

/* Modal — SIEMPRE oculto hasta que JS quite [hidden] */
.auth-modal {
  display: none;   /* por defecto oculto */
  position: fixed;
  inset: 0;
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
/* display:flex solo cuando está activo (sin [hidden]) */
body.modal-open .auth-modal:not([hidden]) { display: flex; }
/* Doble seguro: [hidden] siempre oculta aunque haya otra regla */
.auth-modal[hidden] { display: none !important; }

.auth-modal__inner {
  background: var(--c-white);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn .22s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.auth-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  padding: 6px;
  color: var(--c-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  line-height: 0;
  transition: color .18s, background .18s;
}
.auth-modal__close:hover { color: var(--c-navy); background: var(--c-mint); }

.auth-modal__logo {
  text-align: center;
  margin-bottom: 22px;
}
.auth-modal__logo img {
  display: inline-block;
  height: 40px;
  width: auto;
}

/* Mensaje contextual del modal (ej. "debes iniciar sesión para publicar") */
.auth-modal__message {
  background: #fffbe6;
  border: 1px solid #f6d860;
  border-radius: var(--radius-sm);
  color: #7a5c00;
  font-size: .875rem;
  padding: 10px 14px;
  margin-bottom: 16px;
  text-align: center;
}
.auth-modal__message[hidden] { display: none; }

/* Tabs del modal */
.auth-tabs {
  display: flex;
  background: var(--c-mint);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 8px 14px;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius-md) - 2px);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-serif);
  color: var(--c-muted);
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.auth-tab.active {
  background: var(--c-white);
  color: var(--c-navy);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   31. NAVEGACIÓN — usuario autenticado
   ========================================================================== */
.nav-link--dashboard {
  color: var(--c-greenMd);
  font-weight: 600;
}
.nav-link--dashboard:hover { color: var(--c-green); }

/* Menú de usuario (avatar + desplegable) */
.nav-user-menu {
  position: relative;
}

.nav-user-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-pill);
  padding: 5px 12px 5px 6px;
  cursor: pointer;
  color: var(--c-navy);
  font-size: 13px;
  font-family: var(--font-serif);
  font-weight: 600;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.nav-user-trigger:hover {
  border-color: var(--c-greenMd);
  background: var(--c-mint);
  box-shadow: var(--shadow-sm);
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-user-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 190px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.nav-user-menu.open .nav-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--c-text);
  font-family: var(--font-serif);
  transition: background .15s, color .15s;
  text-decoration: none;
}
.nav-user-dropdown__item:hover {
  background: var(--c-mint);
  color: var(--c-navy);
}
.nav-user-dropdown__item--logout { color: var(--c-danger); }
.nav-user-dropdown__item--logout:hover { background: #fdf0f0; color: var(--c-danger); }

.nav-user-dropdown__sep {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 4px 6px;
}

/* ==========================================================================
   32. DASHBOARD
   ========================================================================== */
.dashboard-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--nav-h));
  gap: 0;
}

/* Sidebar */
.dashboard-sidebar {
  background: var(--c-white);
  border-right: 1px solid var(--c-border);
  padding: 28px 20px;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}

.dashboard-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 20px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 20px;
}
.dashboard-user-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--c-border);
}
.dashboard-user-card__info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dashboard-user-card__info strong {
  font-size: 14px;
  color: var(--c-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-user-card__info span {
  font-size: 12px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav del dashboard */
.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dashboard-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--c-text);
  font-family: var(--font-serif);
  font-weight: 600;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.dashboard-nav__link:hover { background: var(--c-mint); color: var(--c-navy); }
.dashboard-nav__link.active {
  background: var(--c-mint);
  color: var(--c-green);
}
.dashboard-nav__link.active svg { color: var(--c-green); }
.dashboard-nav__link--logout { color: var(--c-danger); margin-top: 12px; }
.dashboard-nav__link--logout:hover { background: #fdf0f0; color: var(--c-danger); }

/* Badge contador */
.badge-count {
  margin-left: auto;
  background: var(--c-greenMd);
  color: var(--c-white);
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  min-width: 20px;
  text-align: center;
}
.badge-count--amber { background: var(--c-amber); color: #333; }

/* Contenido principal */
.dashboard-main {
  padding: 32px 40px;
  background: var(--c-cream);
  min-height: 0;
}

/* Header del dashboard */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.dashboard-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-navy);
  margin: 0;
}

/* Grid de estadísticas */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.dash-stat-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dash-stat-card__number {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-navy);
  font-family: var(--font-serif);
  line-height: 1;
}
.dash-stat-card__label {
  font-size: 12px;
  color: var(--c-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Lista de anuncios */
.dashboard-section { margin-top: 28px; }
.dashboard-section h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 14px;
}

.dashboard-list {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dashboard-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-mint);
  transition: background .15s;
}
.dashboard-list__item:last-child { border-bottom: none; }
.dashboard-list__item:hover { background: var(--c-cream); }
.dashboard-list__item--pending { flex-direction: column; align-items: flex-start; }

.dashboard-list__item-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dashboard-list__item-info strong {
  font-size: 14px;
  color: var(--c-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-list__item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--c-muted);
  flex-shrink: 0;
}

.dashboard-more-link {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: var(--c-greenMd);
  font-weight: 600;
  text-decoration: none;
  border-top: 1px solid var(--c-mint);
  transition: color .15s;
}
.dashboard-more-link:hover { color: var(--c-green); }

/* Tabla de anuncios */
.dashboard-table-wrap {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dashboard-table th {
  background: var(--c-mint);
  color: var(--c-navy);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.dashboard-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--c-mint);
  color: var(--c-text);
  vertical-align: middle;
}
.dashboard-table tr:last-child td { border-bottom: none; }
.dashboard-table tr:hover td { background: var(--c-cream); }

.dashboard-table__actions {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

/* Botón danger */
.btn--danger {
  background: var(--c-danger);
  color: var(--c-white);
  border-color: var(--c-danger);
}
.btn--danger:hover { background: #a93226; border-color: #a93226; }

/* Badges de estado */
.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; }
.badge--success { background: #d4edda; color: #155724; }
.badge--warning { background: #fff3cd; color: #856404; }
.badge--muted   { background: var(--c-mint); color: var(--c-muted); }

/* Notices */
.dashboard-notice {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 600;
}
.dashboard-notice--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.dashboard-notice--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Empty state */
.dashboard-empty {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  color: var(--c-muted);
}
.dashboard-empty p { margin-bottom: 20px; font-size: 15px; }

/* Perfil */
.dashboard-profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.dashboard-profile-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-border);
  flex-shrink: 0;
}
.dashboard-profile-card > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dashboard-profile-card strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-navy);
}
.dashboard-profile-card span { font-size: 13px; color: var(--c-muted); }

.dashboard-form { max-width: 640px; }

.dashboard-divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 28px 0;
}

.dashboard-form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.dashboard-danger-zone {
  padding: 20px 0 0;
}
.dashboard-danger-zone h3 {
  font-size: 16px;
  color: var(--c-danger);
  margin-bottom: 12px;
}

/* Texto muted helper */
.text-muted { color: var(--c-muted); font-size: 13px; }

/* ==========================================================================
   33. RESPONSIVE — auth y dashboard
   ========================================================================== */
@media (max-width: 1024px) {
  .dashboard-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

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

  .dashboard-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding: 20px;
  }

  .dashboard-nav { flex-direction: row; flex-wrap: wrap; }
  .dashboard-nav__link { font-size: 13px; padding: 8px 10px; }

  .dashboard-main { padding: 24px 20px; }
}

@media (max-width: 640px) {
  .acceso-card { padding: 28px 20px; }
  .auth-modal__inner { padding: 28px 22px; }
  .dashboard-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dashboard-table-wrap { font-size: 13px; }
  .nav-user-name { display: none; }
  .user-topbar__welcome { display: none; }
  .user-topbar__inner { justify-content: flex-end; }
  .user-topbar__links { gap: 14px; }
}

/* ===========================================================================
   FASE 2 — PANEL DE CONTROL AMPLIADO
   Sub-secciones A.1–A.9
   =========================================================================== */

/* -----------------------------------------------------------------
   DASHBOARD LAYOUT (refinements)
   ----------------------------------------------------------------- */
.dashboard-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-h));
  align-items: start;
}
.dashboard-sidebar {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  background: var(--c-white);
  border-right: 1px solid var(--c-border);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dashboard-main {
  padding: 36px 40px;
  min-width: 0;
}

/* Role badge en sidebar */
.dash-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-green);
  background: var(--c-mint);
  border: 1px solid var(--c-mintDk);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-top: 6px;
}

/* Separador de grupo en el nav */
.dashboard-nav__sep {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 16px 8px 4px;
  opacity: .7;
}

/* -----------------------------------------------------------------
   A.1 — KPI CARDS (resumen ampliado)
   ----------------------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.kpi-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kpi-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--c-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-green);
  margin-bottom: 4px;
}
.kpi-card__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1;
}
.kpi-card__label {
  font-size: 12px;
  color: var(--c-muted);
}

/* -----------------------------------------------------------------
   A.2 — MIS LOTES
   ----------------------------------------------------------------- */
.lotes-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.lotes-filter-tabs {
  display: flex;
  gap: 4px;
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.lotes-filter-tab {
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--c-muted);
  cursor: pointer;
  transition: all .15s;
}
.lotes-filter-tab.active,
.lotes-filter-tab:hover {
  background: var(--c-white);
  color: var(--c-navy);
  box-shadow: var(--shadow-sm);
}
.lotes-filter-tab.active { color: var(--c-green); }

.lotes-actions { display: flex; gap: 6px; }
.lotes-action-btn {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text);
  cursor: pointer;
  transition: all .15s;
}
.lotes-action-btn:hover { border-color: var(--c-green); color: var(--c-green); }
.lotes-action-btn--danger:hover { border-color: var(--c-danger); color: var(--c-danger); }

/* -----------------------------------------------------------------
   A.4 — MERCADO (grid de lotes)
   ----------------------------------------------------------------- */
.mercado-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
.mercado-filters {
  position: sticky;
  top: calc(var(--nav-h) + 36px);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.mercado-filters h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
  margin-bottom: 16px;
}
.mercado-filter-group { margin-bottom: 20px; }
.mercado-filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 8px;
}
.mercado-filter-group input[type="number"],
.mercado-filter-group select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--c-cream);
}
.mercado-filter-group .filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.mercado-main {}
.mercado-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.mercado-search-bar input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.mercado-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  min-height: 24px;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--c-mint);
  border: 1px solid var(--c-mintDk);
  border-radius: var(--radius-pill);
  color: var(--c-green);
  cursor: pointer;
}
.filter-chip svg { opacity: .6; }

.mkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.mkt-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.mkt-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.mkt-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-size: 13px;
  position: relative;
}
.mkt-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mkt-card__save-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s;
  color: var(--c-muted);
}
.mkt-card__save-btn.saved { color: var(--c-danger); border-color: var(--c-danger); }
.mkt-card__save-btn:hover { transform: scale(1.1); }
.mkt-card__body { padding: 14px 16px; flex: 1; }
.mkt-card__polymer {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 4px;
}
.mkt-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mkt-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}
.mkt-card__spec {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--c-cream);
  border-radius: var(--radius-pill);
  color: var(--c-muted);
}
.mkt-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
}
.mkt-card__price span { font-size: 13px; font-weight: 500; color: var(--c-muted); }
.mkt-card__foot {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mkt-card__location {
  font-size: 12px;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.mkt-card__verified {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-green);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--c-cream) 25%, var(--c-mintDk) 50%, var(--c-cream) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.mkt-card--skeleton .mkt-card__img { background: var(--c-cream); }
.skeleton-line { height: 12px; margin-bottom: 8px; }
.skeleton-line--short { width: 60%; }
.skeleton-line--mid { width: 80%; }

/* Mercado empty state */
.mercado-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--c-muted);
}
.mercado-empty svg { margin: 0 auto 16px; opacity: .4; }
.mercado-pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}
.mercado-page-btn {
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: var(--c-white);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}
.mercado-page-btn.active { background: var(--c-green); color: #fff; border-color: var(--c-green); }
.mercado-page-btn:hover:not(.active) { border-color: var(--c-green); color: var(--c-green); }

/* -----------------------------------------------------------------
   A.6 — ALERTAS
   ----------------------------------------------------------------- */
.alert-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.alert-item {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.alert-item.inactive { opacity: .55; }
.alert-item__info { flex: 1; min-width: 0; }
.alert-item__polymers {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.alert-item__meta { font-size: 12px; color: var(--c-muted); }
.alert-item__actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

/* Toggle switch */
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--c-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--c-green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* Alert create form */
.alert-create-panel {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 8px;
}
.alert-create-panel h3 { font-size: 15px; margin-bottom: 16px; color: var(--c-navy); }
.polimero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.polimero-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .15s;
  background: var(--c-white);
  color: var(--c-muted);
  user-select: none;
}
.polimero-chip.selected {
  background: var(--c-mint);
  border-color: var(--c-green);
  color: var(--c-green);
}

/* -----------------------------------------------------------------
   A.7 — MENSAJES
   ----------------------------------------------------------------- */
.chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: calc(100vh - var(--nav-h) - 130px);
  min-height: 500px;
}
.chat-sidebar {
  border-right: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-sidebar__header {
  padding: 16px;
  border-bottom: 1px solid var(--c-border);
  font-size: 14px;
  font-weight: 700;
  color: var(--c-navy);
}
.chat-sidebar__list {
  flex: 1;
  overflow-y: auto;
}
.chat-conv-item {
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--c-cream);
  transition: background .15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chat-conv-item:hover { background: var(--c-cream); }
.chat-conv-item.active { background: var(--c-mint); }
.chat-conv-item__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-conv-item__anuncio {
  font-size: 11px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-conv-item__preview {
  font-size: 12px;
  color: var(--c-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-unread-badge {
  background: var(--c-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 100px;
  padding: 1px 6px;
  flex-shrink: 0;
}

.chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.chat-main__header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-main__lot-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-navy);
}
.chat-main__lot-sub {
  font-size: 11px;
  color: var(--c-muted);
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}
.chat-msg--mine { align-self: flex-end; align-items: flex-end; }
.chat-msg--other { align-self: flex-start; }
.chat-msg__sender {
  font-size: 11px;
  color: var(--c-muted);
  margin-bottom: 3px;
}
.chat-msg__bubble {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-msg--mine .chat-msg__bubble {
  background: var(--c-green);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg--other .chat-msg__bubble {
  background: var(--c-cream);
  color: var(--c-text);
  border-bottom-left-radius: 4px;
}
.chat-msg__time {
  font-size: 10px;
  color: var(--c-muted);
  margin-top: 3px;
  opacity: .7;
}
.chat-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--c-border);
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.chat-input-area textarea {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  font-family: var(--font-serif);
  line-height: 1.5;
}
.chat-input-area textarea:focus { outline: none; border-color: var(--c-green); }
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  gap: 12px;
  padding: 40px;
  text-align: center;
}
.chat-empty svg { opacity: .3; }

/* -----------------------------------------------------------------
   A.8 — GUARDADOS
   ----------------------------------------------------------------- */
.guardados-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* -----------------------------------------------------------------
   A.9 — CUENTA
   ----------------------------------------------------------------- */
.cuenta-sections { display: flex; flex-direction: column; gap: 32px; }
.cuenta-section {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.cuenta-section h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-cream);
}
.verification-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.verification-badge--pending {
  background: #FFF8E1;
  color: #B8860B;
  border: 1px solid var(--c-amber);
}
.verification-badge--verified {
  background: var(--c-mint);
  color: var(--c-green);
  border: 1px solid var(--c-mintDk);
}

/* -----------------------------------------------------------------
   COMPLEMENTOS FASE 2
   ----------------------------------------------------------------- */
/* Sección con encabezado + enlace ver-todos */
.dashboard-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dashboard-section__head h2 { margin-bottom: 0; }

/* Badge de mensajes no leídos (rojo) */
.badge-count--red { background: #e74c3c; color: #fff; }

/* Dropdown de cambio de estado en mis-lotes */
.lotes-status-dropdown { position: relative; display: inline-block; }
.lotes-status-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 200;
  min-width: 160px;
  padding: 4px 0;
}
.lotes-status-menu__item {
  display: block;
  width: 100%;
  padding: 8px 14px;
  font-size: 13px;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-text);
  transition: background .12s;
}
.lotes-status-menu__item:hover { background: var(--c-cream); }

/* alert-item inactive state */
.alert-item.inactive { opacity: .55; }

/* Toggle switch slider (alias) */
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ccc;
  border-radius: 34px;
  transition: .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--c-green); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* Chat placeholder centrado */
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  gap: 12px;
  padding: 40px;
  text-align: center;
  font-size: 13px;
}

/* Mercado — recuento de resultados */
.mercado-results { display: flex; flex-direction: column; min-width: 0; }

/* -----------------------------------------------------------------
   RESPONSIVE
   ----------------------------------------------------------------- */
@media (max-width: 1024px) {
  .dashboard-wrap { grid-template-columns: 200px 1fr; }
  .mercado-layout { grid-template-columns: 1fr; }
  .mercado-filters { position: static; }
  .chat-layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 768px) {
  .dashboard-wrap { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px; border-right: none; border-bottom: 1px solid var(--c-border); }
  .dashboard-main { padding: 20px 16px; }
  .dashboard-user-card { width: 100%; }
  .chat-layout { grid-template-columns: 1fr; height: auto; min-height: 400px; }
  .chat-sidebar { max-height: 220px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================================
   PANEL OPERADOR (usuario "plastistock")
   ============================================================================= */
.dash-role-badge--operator {
  background: linear-gradient(90deg,#7c3aed,#4f46e5);
  color: #fff !important;
}

.kpi-grid--operator { margin-top: 8px; }
.kpi-card--operator { border-top: 3px solid #7c3aed; }

.dashboard-section-head { margin-bottom: 16px; }
.dashboard-section-head h1 { margin: 0 0 4px; font-size: 24px; }
.dashboard-section-head .dashboard-subtitle { color: #6b7280; margin: 0; }

.op-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
}
.op-counter { color: #6b7280; font-size: 14px; font-weight: 600; }

.op-filters { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 12px; }
.op-filters__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}
.op-filters__row input,
.op-filters__row select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
}

.op-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}
.op-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.op-table th,
.op-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.op-table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
}
.op-table tbody tr:hover { background: #fafbfc; }
.op-table .op-actions { white-space: nowrap; }
.op-empty { text-align: center; color: #6b7280; padding: 28px 12px !important; }
.op-muted { color: #9ca3af; font-size: 12px; }
.op-msg { max-width: 340px; color: #374151; }

.op-pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 12px 0 0;
  flex-wrap: wrap;
}
.op-page {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.op-page.is-active {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}

.btn--success {
  background: #10b981;
  color: #fff;
  border: 1px solid #10b981;
}
.btn--success:hover { background: #059669; border-color: #059669; }
.btn--danger {
  background: #ef4444;
  color: #fff;
  border: 1px solid #ef4444;
}
.btn--danger:hover { background: #dc2626; border-color: #dc2626; }

.op-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.op-modal[hidden] { display: none; }
.op-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,0.5);
}
.op-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: min(480px, 92vw);
  box-shadow: 0 18px 50px rgba(15,23,42,0.25);
}
.op-modal__panel h3 { margin: 0 0 6px; font-size: 18px; }
.op-modal__sub { color: #6b7280; margin: 0 0 12px; font-size: 14px; }
.op-modal__panel textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}
.op-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .op-filters__row { grid-template-columns: 1fr; }
  .op-table th, .op-table td { padding: 8px; font-size: 13px; }
}

/* CTA Publicar anuncio visible cuando hay sesión */
.nav-publicar-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  white-space: nowrap;
}
.nav-publicar-cta svg { flex-shrink: 0; }
@media (max-width: 880px) {
  .nav-publicar-cta { display: none; }
}
