/* ═══════════════════════════════════════════════════════
   StreeShoop — Estilos principales
   Paleta inspirada en la bandera de Venezuela: amarillo, azul, rojo
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@300;400;600;700&display=swap');

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --amarillo: #CF8B00;
  --amarillo-claro: #FFC107;
  --amarillo-bg: #FFFBF0;
  --azul: #003893;
  --azul-claro: #1565C0;
  --azul-bg: #EEF3FF;
  --rojo: #CC0001;
  --rojo-suave: #FF5252;

  --gris-oscuro: #1A1A2E;
  --gris-medio: #4A4A6A;
  --gris-claro: #F0F2F8;
  --blanco: #FFFFFF;
  --borde: #E2E8F0;

  --sombra-sm: 0 2px 8px rgba(0,0,0,0.06);
  --sombra-md: 0 4px 20px rgba(0,0,0,0.10);
  --sombra-lg: 0 8px 40px rgba(0,0,0,0.14);

  --radio: 14px;
  --radio-sm: 8px;
  --radio-lg: 20px;

  --font-titulo: 'Sora', sans-serif;
  --font-cuerpo: 'Plus Jakarta Sans', sans-serif;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-cuerpo);
  background: var(--gris-claro);
  color: var(--gris-oscuro);
  min-height: 100vh;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── Navbar ─────────────────────────────────────────────── */
/* ─── Navbar estructura de 2 niveles ──────────────────────── */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,56,147,0.3);
}

.navbar {
  background: linear-gradient(135deg, #003893 0%, #004aad 55%, #002b73 100%);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 140px;     /* altura fija y razonable */
  min-height: 140px;
}

/* Segunda barra de navegación */
.navbar-secondary {
  background: var(--azul-claro);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}

.navbar-secondary::-webkit-scrollbar { display: none; }

.nav-secondary-link {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  white-space: nowrap;
  transition: all 0.15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-secondary-link:hover {
  background: rgba(255,255,255,0.15);
  color: white;
}

.nav-secondary-link.active {
  background: rgba(255,255,255,0.22);
  color: white;
  font-weight: 700;
}

.nav-secondary-sep {
  color: rgba(255,255,255,0.3);
  font-size: 16px;
  padding: 0 2px;
}

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

/* Logo imagen — alta calidad, sin distorsión */
.navbar-logo-img {
  height: 170px;
  width: auto;
  transform: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}

.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Fallback: mantener texto si imagen falla */
.navbar-logo span { color: white; }

.navbar-search {
  flex: 1;
  max-width: 760px;
  position: relative;
}

.navbar-search input {
  width: 100%;
  padding: 8px 14px 8px 38px;
  border-radius: 50px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  font-family: var(--font-cuerpo);
  font-size: 14px;
  outline: none;
  transition: background 0.2s;
}

.navbar-search input::placeholder { color: rgba(255,255,255,0.6); }
.navbar-search input:focus { background: rgba(255,255,255,0.25); }

.navbar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 16px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;   /* empuja los links al extremo derecho SIEMPRE */
}

.nav-link {
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: var(--radio-sm);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover { color: white; background: rgba(255,255,255,0.12); }

.nav-btn {
  background: var(--amarillo-claro);
  color: var(--azul) !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
}

.nav-btn:hover { background: #FFD54F !important; }

/* ─── Hero / Banner principal ────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--azul) 0%, #1565C0 60%, #0D47A1 100%);
  padding: 48px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255,193,7,0.08);
  border-radius: 50%;
  top: -100px;
  right: -80px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(204,0,1,0.06);
  border-radius: 50%;
  bottom: -80px;
  left: -60px;
}

.hero h1 {
  font-family: var(--font-titulo);
  font-size: clamp(28px, 5vw, 48px);
  color: white;
  font-weight: 700;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.hero h1 em {
  color: var(--amarillo-claro);
  font-style: normal;
}

.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.hero-search {
  display: flex;
  max-width: 560px;
  margin: 28px auto 0;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--sombra-lg);
  position: relative;
  z-index: 1;
}

.hero-search input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  outline: none;
  font-family: var(--font-cuerpo);
  font-size: 15px;
  color: var(--gris-oscuro);
}

.hero-search button {
  background: var(--amarillo-claro);
  border: none;
  padding: 14px 24px;
  cursor: pointer;
  font-family: var(--font-cuerpo);
  font-weight: 700;
  color: var(--azul);
  font-size: 14px;
  transition: background 0.2s;
}

.hero-search button:hover { background: #FFD54F; }

/* ─── Layout principal ───────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 28px 20px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ─── Sidebar de filtros ──────────────────────────────────── */
.sidebar {
  position: sticky;
  top: 84px;
  height: fit-content;
}

.filter-box {
  background: white;
  border-radius: var(--radio);
  padding: 20px;
  box-shadow: var(--sombra-sm);
  margin-bottom: 16px;
}

.filter-box h3 {
  font-family: var(--font-titulo);
  font-size: 15px;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--amarillo-claro);
  display: inline-block;
}

.filter-box select,
.filter-box input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio-sm);
  font-family: var(--font-cuerpo);
  font-size: 14px;
  color: var(--gris-oscuro);
  background: var(--gris-claro);
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 10px;
}

.filter-box select:focus,
.filter-box input:focus { border-color: var(--azul-claro); background: white; }

/* Categorías */
.cat-list { list-style: none; }

.cat-item {
  padding: 8px 10px;
  border-radius: var(--radio-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--gris-medio);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}

.cat-item:hover, .cat-item.active {
  background: var(--azul-bg);
  color: var(--azul);
  font-weight: 600;
}

.cat-item .cat-icon { font-size: 16px; }

/* ─── Grid de productos ──────────────────────────────────── */
.products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.products-header h2 {
  font-family: var(--font-titulo);
  font-size: 20px;
  font-weight: 700;
  color: var(--gris-oscuro);
}

.products-count {
  font-size: 13px;
  color: var(--gris-medio);
  background: var(--gris-claro);
  padding: 4px 12px;
  border-radius: 50px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* ─── Tarjeta de producto ────────────────────────────────── */
.product-card {
  background: white;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-md);
}

.product-card .card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--azul);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card .card-badge.used {
  background: var(--gris-medio);
}

.product-card .card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--gris-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gris-medio);
  font-size: 36px;
}

.product-card .card-img img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.card-body { padding: 14px; }

.card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--azul-claro);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gris-oscuro);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  font-family: var(--font-titulo);
  font-size: 20px;
  font-weight: 700;
  color: var(--azul);
}

.card-price span { font-size: 12px; font-weight: 500; color: var(--gris-medio); }

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--borde);
}

.card-location {
  font-size: 12px;
  color: var(--gris-medio);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-stars {
  color: var(--amarillo);
  font-size: 12px;
}

/* ─── Página de detalle ──────────────────────────────────── */
.product-detail {
  max-width: 1000px;
  margin: 28px auto;
  padding: 0 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: white;
  border-radius: var(--radio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-md);
}

.detail-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  background: var(--gris-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--gris-medio);
}

.detail-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.detail-info { padding: 32px; }

.detail-category {
  font-size: 12px;
  font-weight: 700;
  color: var(--azul-claro);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.detail-title {
  font-family: var(--font-titulo);
  font-size: 26px;
  font-weight: 700;
  margin: 8px 0 4px;
  line-height: 1.2;
}

.detail-condition {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  background: var(--azul-bg);
  color: var(--azul);
  margin-bottom: 16px;
}

.detail-price {
  font-family: var(--font-titulo);
  font-size: 36px;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 20px;
}

.detail-desc {
  font-size: 15px;
  color: var(--gris-medio);
  line-height: 1.7;
  margin-bottom: 20px;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--gris-claro);
  border-radius: var(--radio-sm);
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--gris-medio);
}

.detail-meta span { display: flex; align-items: center; gap: 8px; }

.seller-box {
  padding: 16px;
  border: 2px solid var(--borde);
  border-radius: var(--radio);
  margin-bottom: 20px;
}

.seller-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.seller-stars { color: var(--amarillo); font-size: 14px; }

/* ─── Botones ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  font-family: var(--font-cuerpo);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--azul);
  color: white;
}
.btn-primary:hover { background: var(--azul-claro); transform: translateY(-1px); }

.btn-whatsapp {
  background: #25D366;
  color: white;
  width: 100%;
}
.btn-whatsapp:hover { background: #20BF5A; }

.btn-amarillo {
  background: var(--amarillo-claro);
  color: var(--azul);
}
.btn-amarillo:hover { background: #FFD54F; }

.btn-rojo {
  background: var(--rojo);
  color: white;
}
.btn-rojo:hover { background: #B71C1C; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--azul);
  color: var(--azul);
}
.btn-outline:hover { background: var(--azul-bg); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }

/* ─── Formularios ────────────────────────────────────────── */
.form-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
}

.form-card {
  background: white;
  border-radius: var(--radio-lg);
  padding: 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: var(--sombra-md);
}

.form-card.wide { max-width: 720px; }

.form-title {
  font-family: var(--font-titulo);
  font-size: 26px;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 6px;
}

.form-subtitle {
  color: var(--gris-medio);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gris-oscuro);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--borde);
  border-radius: var(--radio-sm);
  font-family: var(--font-cuerpo);
  font-size: 14px;
  color: var(--gris-oscuro);
  background: white;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--azul-claro);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-row { display: flex; gap: 12px; align-items: flex-end; }

textarea.form-control { resize: vertical; min-height: 100px; }

.form-error {
  color: var(--rojo);
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.form-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--gris-medio);
}

.form-link a { color: var(--azul-claro); font-weight: 600; }

/* Upload de imagen */
.upload-area {
  border: 2px dashed var(--borde);
  border-radius: var(--radio);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--azul-claro);
  background: var(--azul-bg);
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon { font-size: 36px; margin-bottom: 8px; }
.upload-text { font-size: 14px; color: var(--gris-medio); }
.upload-preview img { max-height: 200px; margin: 0 auto; border-radius: var(--radio-sm); }

/* ─── Dashboard ──────────────────────────────────────────── */
.dashboard-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.dash-menu {
  background: white;
  border-radius: var(--radio);
  padding: 20px;
  box-shadow: var(--sombra-sm);
  height: fit-content;
  position: sticky;
  top: 84px;
}

.dash-user {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--borde);
}

.dash-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--azul);
  color: white;
  font-family: var(--font-titulo);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.dash-user-name { font-weight: 700; font-size: 15px; }
.dash-user-email { font-size: 12px; color: var(--gris-medio); }

.dash-nav-item {
  padding: 10px 12px;
  border-radius: var(--radio-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--gris-medio);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.15s;
  margin-bottom: 2px;
}

.dash-nav-item:hover, .dash-nav-item.active {
  background: var(--azul-bg);
  color: var(--azul);
  font-weight: 600;
}

.dash-content { }

.dash-panel {
  background: white;
  border-radius: var(--radio);
  padding: 24px;
  box-shadow: var(--sombra-sm);
}

.dash-panel-title {
  font-family: var(--font-titulo);
  font-size: 20px;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gris-claro);
}

/* ─── Tabla ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  text-align: left;
  padding: 10px 14px;
  background: var(--gris-claro);
  color: var(--gris-medio);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--borde);
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gris-claro); }

/* ─── Evaluaciones de estrellas ──────────────────────────── */
.star-rating {
  display: flex;
  gap: 4px;
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 16px;
}

.star-rating .star {
  color: var(--borde);
  transition: color 0.15s;
}

.star-rating .star.active,
.star-rating .star:hover,
.star-rating .star.hover { color: var(--amarillo-claro); }

.stars-display { color: var(--amarillo-claro); }
.stars-gray { color: var(--borde); }

/* ─── Rating card ────────────────────────────────────────── */
.rating-card {
  background: var(--gris-claro);
  border-radius: var(--radio);
  padding: 16px;
  margin-bottom: 12px;
}

.rating-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.rating-reviewer { font-weight: 600; font-size: 14px; }
.rating-date { font-size: 12px; color: var(--gris-medio); }
.rating-comment { font-size: 14px; color: var(--gris-medio); line-height: 1.5; }

/* ─── Toast / Alertas ────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--gris-oscuro);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radio);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--sombra-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  max-width: 320px;
}

.toast.success { background: #1B5E20; border-left: 4px solid #4CAF50; }
.toast.error { background: #B71C1C; border-left: 4px solid var(--rojo-suave); }
.toast.warning { background: #E65100; border-left: 4px solid var(--amarillo-claro); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Estado vacío ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gris-medio);
}

.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--gris-oscuro); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }

/* ─── Loading ────────────────────────────────────────────── */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--gris-medio);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--borde);
  border-top-color: var(--azul);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Status badges ──────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-active { background: #E8F5E9; color: #2E7D32; }
.badge-sold { background: #FFF3E0; color: #E65100; }
.badge-admin { background: var(--azul-bg); color: var(--azul); }

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: white;
  border-radius: var(--radio-lg);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--sombra-lg);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-title {
  font-family: var(--font-titulo);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Modal box — usado por el modal de selección de comprador */
.modal-box {
  background: white;
  border-radius: var(--radio-lg);
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--borde);
}

.modal-body {
  padding: 20px 24px 24px;
}

.modal-close {
  float: right;
  cursor: pointer;
  font-size: 22px;
  color: var(--gris-medio);
  line-height: 1;
  margin-top: -4px;
}

/* ─── Paginación ─────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--borde);
  background: white;
  cursor: pointer;
  font-family: var(--font-cuerpo);
  font-weight: 600;
  font-size: 14px;
  color: var(--gris-medio);
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover, .page-btn.active {
  background: var(--azul);
  color: white;
  border-color: var(--azul);
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--gris-oscuro);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 28px 20px;
  font-size: 13px;
  margin-top: 60px;
}

footer strong { color: var(--amarillo-claro); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-img, .detail-img img { height: 280px; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-menu { position: static; }
}

@media (max-width: 600px) {
  .navbar { padding: 0 12px; gap: 10px; }
  .navbar-search { display: none; }
  .nav-link { padding: 6px 8px; font-size: 13px; }
  .navbar-secondary { padding: 0 12px; }
  .nav-secondary-link { font-size: 12px; padding: 5px 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .hero { padding: 32px 16px; }
  .hero-search { flex-direction: column; border-radius: var(--radio); }
  .hero-search input, .hero-search button { border-radius: 0; }

  .navbar {
    height: 60px;
    min-height: 60px;
    padding: 0 14px;
    gap: 10px;
  }

  .brand-logo {
    min-width: auto;
  }

  .navbar-logo-img {
    height: 40px;
    max-width: 160px;
  }
}


/* ─── Utilidades ─────────────────────────────────────────── */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--gris-medio); font-size: 13px; }
.d-flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.align-center { align-items: center; }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   ETAPA 2 — GALERÍA DE IMÁGENES
   ═══════════════════════════════════════════════════════════ */

/* ─── Galería en detalle del producto ────────────────────── */
.gallery-main {
  position: relative;
  width: 100%;
  height: 280px;
  background: var(--gris-claro);
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-main:hover img { transform: scale(1.03); }

.gallery-badge-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;   /* FIX: 44px mínimo táctil (antes 38px) */
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-sm);
  transition: all 0.2s;
  z-index: 2;
  color: var(--azul);
  -webkit-tap-highlight-color: transparent; /* FIX: quitar flash azul en Android */
}

.gallery-nav:hover { background: white; box-shadow: var(--sombra-md); transform: translateY(-50%) scale(1.1); }
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-nav.hidden { display: none; }

/* Thumbnails strip */
.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: var(--gris-claro);
  overflow-x: auto;
  scrollbar-width: thin;
}

.gallery-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radio-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all 0.15s;
  flex-shrink: 0;
  opacity: 0.75;
}

.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--azul); opacity: 1; box-shadow: 0 0 0 1px var(--azul); }

.gallery-empty {
  width: 100%;
  height: 380px;
  background: var(--gris-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: var(--gris-medio);
}

/* ─── Lightbox ────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.lightbox-overlay.open { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radio-sm);
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}

.lightbox-counter {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-top: 10px;
  font-family: var(--font-cuerpo);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 36px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }

/* ─── Preview múltiples imágenes en formulario ───────────── */
.images-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.preview-item {
  position: relative;
  border-radius: var(--radio-sm);
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: var(--sombra-sm);
  border: 2px solid var(--borde);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .preview-main-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--azul);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.preview-item .preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(204,0,1,0.85);
  border: none;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.preview-item .preview-remove:hover { background: var(--rojo); }

/* ─── Gestión de imágenes en edición ────────────────────── */
.existing-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.existing-img-item {
  position: relative;
  border-radius: var(--radio-sm);
  overflow: hidden;
  aspect-ratio: 1;
  border: 2px solid var(--borde);
}

.existing-img-item img { width: 100%; height: 100%; object-fit: cover; }

.existing-img-item .remove-existing {
  position: absolute;
  inset: 0;
  background: rgba(204,0,1,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  border: none;
  width: 100%;
}

.existing-img-item:hover .remove-existing { display: flex; }

/* ═══════════════════════════════════════════════════════════
   ETAPA 2 — EDITAR PERFIL DE USUARIO
   ═══════════════════════════════════════════════════════════ */

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--azul-bg);
  border-radius: var(--radio);
}

.profile-avatar-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--azul);
  color: white;
  font-family: var(--font-titulo);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: var(--sombra-sm);
}

/* Botón mostrar/ocultar contraseña */
.toggle-pass {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--gris-medio);
  padding: 4px;
  line-height: 1;
}

.toggle-pass:hover { color: var(--azul); }

/* Barra de fortaleza de contraseña */
.password-strength {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.strength-bar {
  flex: 1;
  height: 6px;
  background: var(--borde);
  border-radius: 3px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}

.strength-fill.weak   { background: var(--rojo); width: 33%; }
.strength-fill.medium { background: var(--amarillo-claro); width: 66%; }
.strength-fill.strong { background: #4CAF50; width: 100%; }

.strength-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.strength-label.weak   { color: var(--rojo); }
.strength-label.medium { color: var(--amarillo); }
.strength-label.strong { color: #2E7D32; }

/* Indicador de cambios guardados */
.save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2E7D32;
  opacity: 0;
  transition: opacity 0.3s;
  margin-left: 12px;
}

.save-indicator.show { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   ETAPA 2 — FOTO DE PERFIL OBLIGATORIA
   ═══════════════════════════════════════════════════════════ */

/* Upload section en registro */
.avatar-upload-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--azul-bg);
  border-radius: var(--radio);
  border: 2px dashed var(--borde);
  transition: border-color 0.2s;
}

.avatar-upload-section:has(img[style*="block"]) {
  border-color: var(--azul);
  border-style: solid;
}

.avatar-upload-right { flex: 1; }

/* Círculo preview en registro */
.avatar-preview-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px dashed var(--borde);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
  transition: all 0.3s;
}

.avatar-preview-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Avatar real en navbar */
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
  vertical-align: middle;
}

/* Avatar en sidebar del dashboard */
.dash-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--azul);
  display: block;
  margin: 0 auto 10px;
}

/* Avatar en cards de productos */
.card-seller-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--borde);
  vertical-align: middle;
  margin-right: 4px;
}

/* Avatar grande en detalle de producto */
.seller-avatar-lg {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--borde);
  flex-shrink: 0;
}

/* Avatar en perfil - cambiar foto */
.avatar-change-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.avatar-change-wrap img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--sombra-sm);
}

.avatar-change-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--azul);
  border: 2px solid white;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.avatar-change-btn:hover { background: var(--azul-claro); }

/* Ratings con avatar */
.rating-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--borde);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   ETAPA 2 — PERFIL PÚBLICO DEL VENDEDOR
   ═══════════════════════════════════════════════════════════ */

.seller-profile-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ─── Hero ────────────────────────────────────────────────── */
.seller-hero {
  background: linear-gradient(135deg, var(--azul) 0%, #1565C0 100%);
  border-radius: var(--radio-lg);
  padding: 36px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.seller-hero::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -80px;
  right: -60px;
}

.seller-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.seller-profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.seller-profile-avatar-initial {
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-titulo);
  font-size: 44px;
  font-weight: 700;
  color: white;
}

.seller-hero-name {
  font-family: var(--font-titulo);
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.seller-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.seller-level-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ─── Estadísticas ────────────────────────────────────────── */
.seller-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.seller-stat-box {
  background: white;
  border-radius: var(--radio);
  padding: 20px;
  text-align: center;
  box-shadow: var(--sombra-sm);
  border-top: 3px solid var(--amarillo-claro);
}

.seller-stat-num {
  font-family: var(--font-titulo);
  font-size: 28px;
  font-weight: 800;
  color: var(--azul);
  line-height: 1;
  margin-bottom: 6px;
}

.seller-stat-label {
  font-size: 12px;
  color: var(--gris-medio);
  font-weight: 500;
}

/* ─── Secciones ───────────────────────────────────────────── */
.seller-section {
  background: white;
  border-radius: var(--radio-lg);
  padding: 28px;
  box-shadow: var(--sombra-sm);
  margin-bottom: 20px;
}

.seller-section-title {
  font-family: var(--font-titulo);
  font-size: 20px;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gris-claro);
}

/* ─── Grid de evaluaciones ────────────────────────────────── */
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .seller-hero-inner { flex-direction: column; align-items: center; text-align: center; }
  .seller-hero-meta { justify-content: center; }
  .seller-stats-row { grid-template-columns: repeat(2, 1fr); }
  .seller-profile-avatar { width: 90px; height: 90px; }
  .seller-hero-name { font-size: 22px; }
}

@media (max-width: 480px) {
  .seller-stats-row { grid-template-columns: repeat(2, 1fr); }
  .ratings-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ETAPA 2 — FAVORITOS
   ═══════════════════════════════════════════════════════════ */

/* Botón corazón en tarjetas */
.fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sombra-sm);
  transition: all 0.2s;
  z-index: 3;
  line-height: 1;
}

.fav-btn:hover { transform: scale(1.15); box-shadow: var(--sombra-md); }
.fav-btn.active { background: #FFF0F0; }
.fav-btn.active::after { content: ''; }

/* Botón corazón grande en detalle del producto */
.fav-btn-lg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid var(--borde);
  background: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gris-medio);
  font-family: var(--font-cuerpo);
}

.fav-btn-lg:hover {
  border-color: var(--rojo-suave);
  color: var(--rojo);
  background: #FFF0F0;
}

.fav-btn-lg.active {
  border-color: var(--rojo-suave);
  color: var(--rojo);
  background: #FFF0F0;
}

/* Panel de favoritos en dashboard */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Animación del corazón al hacer clic */
@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.fav-btn.pop { animation: heartPop 0.35s ease; }

/* ═══════════════════════════════════════════════════════════
   ETAPA 2 — COMPARTIR PRODUCTO
   ═══════════════════════════════════════════════════════════ */

.share-section {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--borde);
  flex-wrap: wrap;
}

.share-label {
  font-size: 13px;
  color: var(--gris-medio);
  font-weight: 600;
  white-space: nowrap;
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s;
  color: white;
}

.share-btn:hover { transform: translateY(-2px); box-shadow: var(--sombra-md); }

.share-whatsapp  { background: #25D366; }
.share-twitter   { background: #000000; }
.share-facebook  { background: #1877F2; }
.share-copy      { background: var(--gris-medio); font-size: 15px; }
.share-copy:hover { background: var(--azul); }

/* ═══════════════════════════════════════════════════════════
   TÉRMINOS Y CONDICIONES — CHECKBOX DE REGISTRO
   ═══════════════════════════════════════════════════════════ */

.terms-check-box {
  background: var(--azul-bg);
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  padding: 16px 18px;
  margin-top: 8px;
  transition: border-color 0.2s;
}

.terms-check-box:has(input:checked) {
  border-color: var(--azul-claro);
  background: #EEF6FF;
}

.terms-check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

/* Ocultar checkbox nativo */
.terms-check-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Checkbox personalizado */
.terms-check-custom {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--borde);
  background: white;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.terms-check-label input:checked ~ .terms-check-custom {
  background: var(--azul);
  border-color: var(--azul);
}

.terms-check-label input:checked ~ .terms-check-custom::after {
  content: '✓';
  color: white;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.terms-check-text {
  font-size: 13px;
  color: var(--gris-oscuro);
  line-height: 1.6;
}

.terms-link {
  color: var(--azul-claro);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.15s;
}

.terms-link:hover { color: var(--azul); }

/* ═══════════════════════════════════════════════════════════
   SISTEMA DE REPORTES Y MODERACIÓN
   ═══════════════════════════════════════════════════════════ */

/* Botón pequeño "Reportar anuncio" en detalle del producto */
.report-trigger-btn {
  background: none;
  border: none;
  color: var(--gris-medio);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  font-family: var(--font-cuerpo);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.report-trigger-btn:hover { color: var(--rojo); }

/* Tarjetas de reporte en panel admin */
.report-card {
  background: white;
  border: 1.5px solid var(--borde);
  border-radius: var(--radio);
  padding: 18px;
  border-left: 4px solid var(--rojo);
  transition: box-shadow 0.2s;
}

.report-card:hover { box-shadow: var(--sombra-sm); }

.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.report-reason-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #FFEBEE;
  color: var(--rojo);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
}

.report-product-info {
  font-size: 13px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════
   ETAPA 3 — SISTEMA DE NOTIFICACIONES
   ═══════════════════════════════════════════════════════════ */

/* ─── Campana en navbar ───────────────────────────────────── */
.notif-bell {
  position: relative;
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.notif-bell:hover { background: rgba(255,255,255,0.22); }

.notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rojo);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--azul);
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

/* ─── Panel desplegable de notificaciones ─────────────────── */
.notif-panel {
  position: fixed;
  top: 72px;
  right: 16px;
  width: 360px;
  max-height: 480px;
  background: white;
  border-radius: var(--radio-lg);
  box-shadow: var(--sombra-lg);
  z-index: 500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--borde);
  animation: notifSlideIn 0.2s ease;
}

@keyframes notifSlideIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.notif-panel.hidden { display: none; }

.notif-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--borde);
  background: var(--azul);
  flex-shrink: 0;
}

.notif-panel-title {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 15px;
  color: white;
}

.notif-read-all {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-cuerpo);
  transition: background 0.2s;
}

.notif-read-all:hover { background: rgba(255,255,255,0.35); }

.notif-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
}

/* ─── Item de notificación (panel navbar) ─────────────────── */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--gris-claro);
  position: relative;
}

.notif-item:hover { background: var(--gris-claro); }

.notif-item.unread { background: var(--azul-bg); }
.notif-item.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--azul);
  border-radius: 0 2px 2px 0;
}

.notif-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--gris-claro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-item-body { flex: 1; min-width: 0; }

.notif-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gris-oscuro);
  line-height: 1.3;
}

.notif-item.read .notif-item-title { font-weight: 500; }

.notif-item-msg {
  font-size: 12px;
  color: var(--gris-medio);
  margin-top: 2px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item-time {
  font-size: 11px;
  color: var(--gris-medio);
  margin-top: 4px;
}

.notif-delete {
  background: none;
  border: none;
  color: var(--gris-medio);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
}

.notif-item:hover .notif-delete { opacity: 1; }
.notif-delete:hover { color: var(--rojo); }

.notif-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--gris-medio);
  font-size: 14px;
}

/* ─── Items de notificación en Dashboard ──────────────────── */
.dash-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radio);
  cursor: pointer;
  transition: background 0.15s;
  border: 1.5px solid var(--borde);
}

.dash-notif-item:hover { background: var(--gris-claro); }
.dash-notif-item.unread {
  background: var(--azul-bg);
  border-color: var(--azul-claro);
}

.dash-notif-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--sombra-sm);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .notif-panel {
    right: 8px;
    left: 8px;
    width: auto;
  }
}

/* ═══════════════════════════════════════════════════════════
   ETAPA 3 — CHAT INTERNO
   ═══════════════════════════════════════════════════════════ */

/* ─── Layout general del chat ────────────────────────────── */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: calc(100vh - 64px);
  overflow: hidden;
}

/* ─── Sidebar de conversaciones ──────────────────────────── */
.chat-sidebar {
  border-right: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
  background: white;
  overflow: hidden;
}

.chat-sidebar-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--borde);
  background: var(--azul);
  flex-shrink: 0;
}

.chat-sidebar-title {
  font-family: var(--font-titulo);
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.conv-list {
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
}

.conv-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--gris-medio);
  font-size: 13px;
  line-height: 1.7;
}

/* ─── Item de conversación ────────────────────────────────── */
.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--gris-claro);
  transition: background 0.15s;
  position: relative;
}

.conv-item:hover { background: var(--gris-claro); }
.conv-item.active { background: var(--azul-bg); border-left: 3px solid var(--azul); }
.conv-item.unread { background: var(--azul-bg); }

.conv-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--borde);
}

.conv-avatar-initial {
  background: var(--azul);
  color: white;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conv-item-body { flex: 1; min-width: 0; }

.conv-item-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.conv-item-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--gris-oscuro);
}

.conv-item-time {
  font-size: 11px;
  color: var(--gris-medio);
  white-space: nowrap;
}

.conv-item-product {
  font-size: 11px;
  color: var(--azul-claro);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-item-preview {
  font-size: 12px;
  color: var(--gris-medio);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-unread-badge {
  background: var(--azul);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
}

/* ─── Área principal del chat ────────────────────────────── */
.chat-main {
  display: flex;
  flex-direction: column;
  background: var(--gris-claro);
  overflow: hidden;
}

.chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gris-medio);
  text-align: center;
  padding: 40px;
}

.chat-empty-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gris-oscuro);
  margin-bottom: 8px;
}

/* ─── Header de la conversación abierta ──────────────────── */
.chat-header {
  background: white;
  padding: 12px 20px;
  border-bottom: 1px solid var(--borde);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: var(--sombra-sm);
}

/* ─── Mensajes ───────────────────────────────────────────── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
}

.msg-date-sep {
  text-align: center;
  font-size: 12px;
  color: var(--gris-medio);
  margin: 12px 0;
  background: var(--gris-claro);
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  align-self: center;
}

.msg-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 4px;
}

.msg-row.mine { flex-direction: row-reverse; }

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

.msg-avatar-initial {
  background: var(--azul);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msg-bubble {
  max-width: 65%;
  padding: 10px 14px;
  border-radius: 18px;
  position: relative;
  word-break: break-word;
}

.msg-bubble.theirs {
  background: white;
  border-radius: 4px 18px 18px 18px;
  box-shadow: var(--sombra-sm);
}

.msg-bubble.mine {
  background: var(--azul);
  color: white;
  border-radius: 18px 18px 4px 18px;
}

.msg-content {
  font-size: 14px;
  line-height: 1.5;
}

.msg-time {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.7;
  text-align: right;
}

/* ─── Input de mensaje ────────────────────────────────────── */
.chat-input-area {
  background: white;
  padding: 12px 16px;
  border-top: 1px solid var(--borde);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--borde);
  border-radius: 50px;
  font-family: var(--font-cuerpo);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  background: var(--gris-claro);
}

.chat-input:focus {
  border-color: var(--azul-claro);
  background: white;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--azul);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--azul-claro);
  transform: scale(1.05);
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .chat-sidebar.show { display: flex; position: fixed; inset: 64px 0 0 0; z-index: 100; }
}

/* ═══════════════════════════════════════════════════════════
   ETAPA 3 — PRODUCTOS DESTACADOS
   ═══════════════════════════════════════════════════════════ */

/* Tarjeta destacada */
.featured-card {
  border: 2px solid var(--amarillo-claro) !important;
  box-shadow: 0 4px 20px rgba(255,193,7,0.25) !important;
}

.featured-card-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--amarillo-claro), #FFD54F);
  color: var(--azul);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  padding: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 4;
}

/* Planes de destacado */
.featured-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.featured-plan-card {
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.featured-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sombra-md);
}

.featured-plan-card.selected {
  border-color: var(--amarillo-claro);
  box-shadow: 0 0 0 3px rgba(255,193,7,0.3), var(--sombra-md);
  transform: translateY(-4px);
}

.featured-plan-header {
  padding: 20px 16px;
  text-align: center;
}

.featured-plan-name {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: 16px;
  color: white;
  margin-bottom: 8px;
}

.featured-plan-price {
  font-family: var(--font-titulo);
  font-weight: 800;
  font-size: 32px;
  color: white;
  line-height: 1;
}

.featured-plan-price span {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

.featured-plan-body {
  background: white;
  padding: 16px;
}

.featured-plan-days {
  font-weight: 700;
  font-size: 14px;
  color: var(--gris-oscuro);
  margin-bottom: 4px;
}

.featured-plan-desc {
  font-size: 12px;
  color: var(--gris-medio);
  margin-bottom: 12px;
}

.featured-plan-perks {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--gris-medio);
}

/* ═══════════════════════════════════════════════════════════
   OPTIMIZACIÓN PARA INTERNET LENTO (VENEZUELA 🇻🇪)
   ═══════════════════════════════════════════════════════════ */

/* ─── Skeleton Loading (esqueleto mientras carga) ─────────── */
/* Reemplaza el spinner por algo que parece contenido real */
@keyframes skeleton-wave {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #e8edf2 25%, #f5f7fa 50%, #e8edf2 75%);
  background-size: 800px 100%;
  animation: skeleton-wave 1.4s ease-in-out infinite;
  border-radius: var(--radio-sm);
}

/* Skeleton de tarjeta de producto */
.skeleton-card {
  background: white;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
}

.skeleton-img {
  width: 100%;
  height: 170px;
}

.skeleton-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.skeleton-line.short  { width: 40%; }
.skeleton-line.medium { width: 70%; }
.skeleton-line.full   { width: 100%; }
.skeleton-line.price  { width: 55%; height: 20px; }

/* ─── Imágenes progresivas ────────────────────────────────── */
/* Las fotos aparecen con fade-in cuando terminan de cargar */
.img-lazy {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.img-lazy.loaded { opacity: 1; }

/* ─── Botones con feedback táctil (mejor para celular) ───── */
.btn:active {
  transform: scale(0.97);
  transition: transform 0.1s;
}

/* ─── Áreas táctiles más grandes en móvil ────────────────── */
@media (max-width: 600px) {
  .btn { min-height: 48px; }
  .nav-link { min-height: 44px; display: flex; align-items: center; }
  .form-control { min-height: 48px; font-size: 16px; } /* 16px evita zoom en iOS */
  input, select, textarea { font-size: 16px !important; } /* Evita zoom automático */

  /* Cards más grandes para dedos */
  /* NOTA: card-title y card-body se controlan en el bloque @media ≤640px más abajo */
  /* Galería adaptada */
  .gallery-main { height: 260px; }
  .gallery-thumb { width: 54px; height: 54px; }
}

/* ─── Reducir animaciones si la conexión es lenta ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── Optimización de fuentes ─────────────────────────────── */
/* font-display: swap evita texto invisible mientras carga la fuente */
@font-face {
  font-display: swap;
}

/* ─── Filtros rápidos de condición y ordenamiento ─────────────── */
.quick-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--blanco);
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde);
}

.condition-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 50px;
  border: 2px solid var(--borde);
  background: var(--gris-claro);
  color: var(--gris-oscuro);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.pill:hover {
  border-color: var(--azul);
  color: var(--azul);
  background: var(--azul-bg);
}

.pill.active {
  background: var(--azul);
  border-color: var(--azul);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,56,147,0.25);
}

.pill.active:hover {
  background: var(--azul-oscuro, #002a7a);
  border-color: var(--azul-oscuro, #002a7a);
  color: #fff;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sort-select {
  padding: 5px 10px;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde);
  font-size: 13px;
  color: var(--gris-oscuro);
  background: var(--blanco);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.sort-select:focus {
  border-color: var(--azul);
}

@media (max-width: 600px) {
  .quick-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .sort-control {
    margin-left: 0;
    width: 100%;
  }
  .sort-select {
    flex: 1;
  }
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR INFOCENTER — Estadísticas + Banner
   ═══════════════════════════════════════════════════════════ */

.navbar-infocenter {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  height: 100%;
  padding: 0 4px;
  overflow: hidden;
}

/* ─── Estadísticas en vivo ──────────────────────────────── */
.navbar-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 7px 14px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.navbar-stats:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
}

/* Con banner: mantener border-radius completo en ambos lados */
.navbar-stats.has-banner {
  border-radius: 14px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
}

.stat-number {
  font-size: 17px;
  font-weight: 800;
  color: #FFD700;
  line-height: 1.1;
  letter-spacing: -0.3px;
  font-family: var(--font-titulo);
  text-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.stat-label {
  font-size: 9px;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  margin-top: 1px;
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

/* Sin banner: centrar las estadísticas */
.navbar-infocenter.stats-only {
  justify-content: center;
}

/* ─── Banner del admin ──────────────────────────────────── */
.navbar-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 320px;
  min-width: 0;
  max-width: 320px;
  padding: 7px 14px;
  background: linear-gradient(135deg, rgba(255,215,0,0.15) 0%, rgba(255,165,0,0.12) 100%);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  animation: bannerSlideIn 0.5s ease forwards;
}

@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Cuando el banner está solo (sin stats a la izquierda) */
.navbar-banner.standalone {
  border-radius: 14px;
  border-left: 1px solid rgba(255,215,0,0.3);
}

.banner-emoji {
  font-size: 20px;
  flex-shrink: 0;
  animation: bannerPulse 2.5s ease-in-out infinite;
}

@keyframes bannerPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.banner-text {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
  max-width: 260px;
}

.banner-link {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #FFD700;
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(255,215,0,0.5);
  border-radius: 50px;
  transition: all 0.18s;
  white-space: nowrap;
}

.banner-link:hover {
  background: rgba(255,215,0,0.2);
  border-color: #FFD700;
}

/* ─── Panel admin: banner preview ─────────────────────────── */
.navbar-banner-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #003893, #004aad);
  border-radius: 12px;
  border: 1px solid rgba(255,215,0,0.3);
}

.navbar-banner-preview span:first-child {
  font-size: 18px;
}

.navbar-banner-preview span:nth-child(2) {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  flex: 1;
}

.navbar-banner-preview a {
  font-size: 12px;
  color: #FFD700;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,215,0,0.5);
  padding: 3px 10px;
  border-radius: 50px;
}

/* ─── Admin: toggle switch ──────────────────────────────── */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ccc;
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider:before {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider { background: var(--azul); }
.toggle-switch input:checked + .toggle-slider:before { transform: translateX(22px); }

/* ─── Admin: emoji picker ────────────────────────────────── */
.emoji-opt {
  font-size: 22px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--gris-claro);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1;
}

.emoji-opt:hover  { border-color: var(--azul-claro); background: var(--azul-bg); }
.emoji-opt.active { border-color: var(--azul); background: var(--azul-bg); box-shadow: 0 0 0 3px rgba(0,56,147,0.15); }

/* ─── Responsive navbar infocenter ──────────────────────── */
@media (max-width: 1024px) {
  .stat-number { font-size: 13px; }
  .stat-item   { padding: 0 7px; }
  .banner-text { font-size: 12px; }
}

@media (max-width: 640px) {
  .navbar-infocenter { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   CONTADOR DE VISTAS + TIEMPO — Tarjetas de producto
   ═══════════════════════════════════════════════════════════ */
.card-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--borde);
  font-size: 11px;
  color: var(--gris-medio);
  gap: 8px;
}

.card-time {
  white-space: nowrap;
  color: var(--gris-medio);
}

.card-views {
  white-space: nowrap;
  font-weight: 600;
  color: var(--azul-claro);
  background: var(--azul-bg);
  padding: 2px 7px;
  border-radius: 50px;
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════
   SECCIÓN PRODUCTOS DESTACADOS
   ═══════════════════════════════════════════════════════════ */
.featured-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.featured-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-titulo);
  font-size: 20px;
  font-weight: 800;
  color: var(--gris-oscuro);
}

.featured-star-icon {
  font-size: 22px;
  animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%       { transform: scale(1.2) rotate(8deg); }
}

.featured-section-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--gris-medio);
  background: var(--gris-claro);
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Track de scroll horizontal */
.featured-scroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.featured-scroll-track::-webkit-scrollbar {
  height: 4px;
}
.featured-scroll-track::-webkit-scrollbar-track { background: var(--gris-claro); border-radius: 4px; }
.featured-scroll-track::-webkit-scrollbar-thumb { background: var(--azul-claro); border-radius: 4px; }

/* Tarjeta individual destacada */
.featured-item-card {
  flex-shrink: 0;
  width: 260px;
  background: var(--blanco);
  border-radius: var(--radio-md);
  border: 2px solid rgba(255, 215, 0, 0.4);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s ease;
  scroll-snap-align: start;
  position: relative;
  box-shadow: 0 2px 12px rgba(0,56,147,0.08);
}

.featured-item-card:hover {
  transform: translateY(-4px);
  border-color: #FFD700;
  box-shadow: 0 8px 24px rgba(0,56,147,0.18);
}

.featured-item-img {
  width: 100%;
  height: 182px;
  overflow: hidden;
  background: var(--gris-claro);
}

.featured-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-item-card:hover .featured-item-img img {
  transform: scale(1.06);
}

.featured-card-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.featured-item-body {
  padding: 10px 12px 12px;
}

.featured-item-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--azul-claro);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.featured-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--gris-oscuro);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-item-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--azul);
  font-family: var(--font-titulo);
  margin-bottom: 6px;
}

.featured-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.featured-card-days {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.featured-card-views {
  font-size: 10px;
  color: var(--gris-medio);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FILTRO DE PRECIO CON RANGO (SLIDER DOBLE)
   ═══════════════════════════════════════════════════════════ */
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 10px;
}

.price-slider-track {
  position: relative;
  height: 6px;
  background: var(--gris-claro);
  border-radius: 6px;
  margin: 14px 0 8px;
}

.price-slider-fill {
  position: absolute;
  height: 100%;
  background: linear-gradient(90deg, var(--azul-claro), var(--azul));
  border-radius: 6px;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
}

.price-range-input {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  left: 0;
  margin: 0;
}

.price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--azul);
  border: 2px solid white;
  box-shadow: 0 1px 6px rgba(0,56,147,0.35);
  pointer-events: all;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.price-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 2px 10px rgba(0,56,147,0.5);
}

.price-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--azul);
  border: 2px solid white;
  box-shadow: 0 1px 6px rgba(0,56,147,0.35);
  pointer-events: all;
  cursor: pointer;
}

.price-num-input {
  padding: 6px 8px;
  font-size: 13px;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde);
  width: 100%;
  color: var(--gris-oscuro);
  transition: border-color 0.15s;
}

.price-num-input:focus {
  outline: none;
  border-color: var(--azul);
}


/* ═══════════════════════════════════════════════════════════
   TICKER DE PRODUCTOS — Barra de productos en movimiento
   Posición A: entre navbar principal y barra de categorías
   ═══════════════════════════════════════════════════════════ */

.product-ticker {
  background: linear-gradient(90deg, #002266 0%, #003893 15%, #002a73 85%, #002266 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  height: 83px;
  overflow: hidden;
  position: relative;
  z-index: 90;
}

/* Label izquierdo — oculto */
.ticker-label {
  display: none;
}

/* Zona de scroll */
.ticker-track-wrapper {
  flex: 1;
  overflow: hidden;
  height: 100%;
  position: relative;
  /* Fade en los bordes */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
}

/* Track que se mueve */
.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  will-change: transform;
}

/* Copia duplicada para loop infinito */
.ticker-content {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-loading {
  padding: 0 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* Separador entre productos */
.ticker-sep {
  color: rgba(255,255,255,0.2);
  font-size: 18px;
  padding: 0 14px;
  flex-shrink: 0;
  line-height: 1;
}

/* Tarjeta individual del ticker */
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s ease;
  border: 1px solid transparent;
}

.ticker-item:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}

/* Imagen miniatura */
.ticker-img {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
}

.ticker-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ticker-no-img {
  font-size: 16px;
}

/* Info del producto */
.ticker-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ticker-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.ticker-price {
  font-size: 13px;
  font-weight: 800;
  color: #FFD700;
  white-space: nowrap;
  font-family: var(--font-titulo);
}

.ticker-featured-badge {
  font-size: 9px;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #333;
  padding: 1px 5px;
  border-radius: 50px;
  font-weight: 700;
  margin-bottom: 1px;
  display: inline-block;
}

/* ─── Selector de moneda en formulario ──────────────────── */
.price-currency-wrapper {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.price-currency-wrapper .currency-select {
  flex: 0 0 180px;
  font-size: 13px;
  border-radius: var(--radio-sm);
  border: 1px solid var(--borde);
  padding: 10px 12px;
  background: var(--blanco);
  color: var(--gris-oscuro);
  cursor: pointer;
  transition: border-color 0.15s;
}

.price-currency-wrapper .currency-select:focus {
  border-color: var(--azul);
  outline: none;
}

.price-currency-wrapper input[type="number"] {
  flex: 1;
}

/* ─── Responsive ticker ─────────────────────────────────── */
@media (max-width: 768px) {
  .product-ticker { height: 56px; }
  .ticker-label   { display: none; }
  .ticker-title   { max-width: 120px; font-size: 12px; }
  .ticker-price   { font-size: 12px; }
  .ticker-img     { width: 40px; height: 40px; }
  .price-currency-wrapper { flex-direction: column; gap: 6px; }
  .price-currency-wrapper .currency-select { flex: unset; width: 100%; }
}


/* ─── Productos vendidos en perfil de vendedor ─────────── */
.sold-products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sold-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: var(--radio-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.sold-product-row:hover {
  border-color: var(--azul-claro);
  background: var(--azul-bg);
  box-shadow: var(--sombra-sm);
  transform: translateX(4px);
}

.sold-product-img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gris-claro);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sold-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sold-product-info {
  flex: 1;
  min-width: 0;
}

.sold-product-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--gris-oscuro);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 3px;
}

.sold-product-meta {
  font-size: 12px;
  color: var(--gris-medio);
}

.sold-product-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #2E7D32;
  background: #E8F5E9;
  padding: 3px 10px;
  border-radius: 50px;
}

.sold-product-action {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--azul-claro);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.18s;
}

.sold-product-row:hover .sold-product-action {
  opacity: 1;
}

@media (max-width: 600px) {
  .sold-product-action { display: none; }
  .sold-product-badge  { display: none; }
}

/* ═══════════════════════════════════════════════════════════
   EVALUACIÓN CON 5 CATEGORÍAS
   ═══════════════════════════════════════════════════════════ */

/* Fila de cada categoría en el modal */
.rating-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--borde);
}

.rating-cat-row:last-of-type { border-bottom: none; }

.rating-cat-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 170px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gris-oscuro);
}

.rating-cat-icon { font-size: 16px; }

/* Estrellas de cada categoría */
.rating-cat-stars {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.rstar {
  font-size: 24px;
  color: #ddd;
  cursor: pointer;
  transition: transform 0.1s;  /* Solo animar el tamaño, NO el color */
  line-height: 1;
  user-select: none;
}

/* Hover: mostrar dorado temporalmente */
.rstar:hover,
.rstar.hover {
  color: #FFD700;
  transform: scale(1.15);
}

/* Seleccionada: dorado permanente, nunca vuelve a gris */
.rstar.active {
  color: #FFD700 !important;
  transform: scale(1.05);
}

/* Hover sobre estrella ya seleccionada */
.rstar.active:hover,
.rstar.active.hover {
  color: #FFC107 !important;
  transform: scale(1.2);
}

/* Etiqueta de valor seleccionado */
.rating-cat-value {
  font-size: 11px;
  font-weight: 700;
  min-width: 62px;
  color: var(--gris-medio);
  white-space: nowrap;
}

/* Promedio en vivo */
.rating-avg-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--azul-bg);
  border: 1px solid var(--azul-claro);
  border-radius: var(--radio-sm);
  padding: 10px 16px;
  margin: 14px 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--azul);
}

.rating-avg-stars {
  font-size: 18px;
  color: #FFD700;
  letter-spacing: 2px;
}

.rating-avg-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--azul);
}

/* ─── Vista de evaluación recibida (tarjeta) ─────────────── */
.rating-cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  margin: 8px 0 10px;
  padding: 10px 12px;
  background: var(--gris-claro);
  border-radius: var(--radio-sm);
}

.rating-cat-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gris-oscuro);
  gap: 6px;
}

.rating-cat-mini span:first-child {
  color: var(--gris-medio);
  font-weight: 500;
}

.rating-cat-mini .stars-display {
  font-size: 11px;
  color: #FFD700;
}

.rating-cat-mini .stars-gray {
  font-size: 11px;
  color: #ddd;
}

/* ─── Responsive rating modal ────────────────────────────── */
@media (max-width: 560px) {
  .rating-cat-label { min-width: 130px; font-size: 12px; }
  .rstar            { font-size: 20px; }
  .rating-cats-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   FOOTER PROFESIONAL
   ═══════════════════════════════════════════════════════════ */
footer {
  background: #0a1628;
  color: rgba(255,255,255,0.65);
  padding: 0;
  margin-top: 80px;
  font-size: 13px;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

/* Columna del logo y descripción */
.footer-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 14px;
  text-decoration: none;
 
}

.footer-logo img {
  height: 95px;
  width: auto;
  object-fit: contain;
}

.footer-logo-text {
  font-family: var(--font-titulo);
  font-size: 22px;
  font-weight: 900;
  color: white;
}

.footer-logo-text span { color: #FFD700; }

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 260px;
}

/* Redes sociales */
.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 17px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.social-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  color: white;
  transform: translateY(-2px);
}

.social-btn.instagram:hover { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color:transparent; }
.social-btn.linkedin:hover  { background: #0077B5; border-color:transparent; }
.social-btn.facebook:hover { background: #1877F2; border-color:transparent; }
.social-btn.email:hover     { background: var(--azul); border-color:transparent; }
.social-btn.whatsapp:hover  { background: #25D366; border-color:transparent; }

/* Columnas de links */
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover { color: #FFD700; }

.footer-col ul li a .link-icon {
  font-size: 13px;
  opacity: 0.7;
}

/* Línea divisoria */
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 0;
}

/* Footer bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-copy strong { color: rgba(255,255,255,0.7); }

.footer-bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: #FFD700; }

/* Badge Venezuela */
.footer-vzla-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ─── Responsive footer ─────────────────────────────────── */
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px 20px 28px;
  }
  .footer-brand {
  grid-column: 1 / -1;
  text-align: center;
}
}

@media (max-width: 540px) {
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-bottom-links { gap: 12px; }
}


/* ═══════════════════════════════════════════════════════════
   MÓDULO INMOBILIARIO — Badges y estilos
   ═══════════════════════════════════════════════════════════ */

/* Badges en las tarjetas de producto */
.card-inmueble-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--borde);
}

.prop-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 700;
  background: var(--gris-claro);
  color: var(--gris-oscuro);
  white-space: nowrap;
  border: 1px solid var(--borde);
}

.prop-badge.operacion-venta    { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.prop-badge.operacion-alquiler { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.prop-badge.tipo               { background: #F5F3FF; color: #7C3AED; border-color: #DDD6FE; }
.prop-badge.region             { background: #FFF7ED; color: #C2410C; border-color: #FED7AA; }

/* Amenidades checkboxes en formulario */
.amenidad-opt {
  transition: all 0.15s !important;
}
.amenidad-opt:hover {
  border-color: var(--azul) !important;
  background: var(--azul-bg) !important;
}

/* Panel de filtros inmobiliarios */
#inmueble-filters h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 12px;
}

/* Sección inmueble en el formulario de publicación */
#inmueble-section {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ─── Ficha técnica de inmueble en detalle ──────────────── */
.inmueble-ficha {
  background: #f8faff;
  border: 1px solid #d0dcf5;
  border-radius: var(--radio-md);
  padding: 18px 20px;
  margin: 16px 0;
}

.inmueble-ficha-title {
  font-family: var(--font-titulo);
  font-size: 15px;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d0dcf5;
}

.ficha-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #e8eef8;
  font-size: 14px;
}
.ficha-row:last-of-type { border-bottom: none; }

.ficha-label {
  color: var(--gris-medio);
  font-weight: 500;
  font-size: 13px;
}

.ficha-val {
  font-weight: 700;
  color: var(--gris-oscuro);
  font-size: 13px;
}

.ficha-op-venta    { color: #1D4ED8; }
.ficha-op-alquiler { color: #15803D; }

/* Características numéricas en grid */
.ficha-nums {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 0 6px;
  border-top: 1px solid #e8eef8;
  margin-top: 10px;
}

.ficha-num-item {
  flex: 1;
  min-width: 60px;
  text-align: center;
  background: white;
  border: 1px solid #d0dcf5;
  border-radius: 10px;
  padding: 10px 8px;
}

.ficha-num-val {
  font-family: var(--font-titulo);
  font-size: 22px;
  font-weight: 800;
  color: var(--azul);
  line-height: 1.1;
}

.ficha-num-label {
  font-size: 10px;
  color: var(--gris-medio);
  margin-top: 3px;
  font-weight: 600;
}

/* Amenidades chips */
.amenidades-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.amenidad-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--azul-bg);
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--azul);
  white-space: nowrap;
  }
  .footer-real-logo{
    width: 180px;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 15px;
}



/* ═══════════════════════════════════════════════════════════

/* ═══════════════════════════════════════════════════════════

/* ═══════════════════════════════════════════════════════════
   STREESHOOP MOBILE — v2 FINAL
   Solo afecta < 640px y tablet 641-1024px
   Desktop > 1024px: completamente intacto
   ═══════════════════════════════════════════════════════════ */

/* Prevenir overflow horizontal global */
/* NOTA: overflow-x:hidden solo en html, NO en body.
   Si body tiene overflow:hidden, iOS Safari rompe position:fixed (bottom nav, drawer) */
html { overflow-x: hidden; }
/* body NO tiene overflow-x:hidden — usar max-width en su lugar */
body { max-width: 100vw; }

/* ── TABLET 641px–1024px ─────────────────────────────────── */
@media (min-width: 641px) and (max-width: 1024px) {
  .navbar { height: 100px; min-height: 100px; padding: 0 18px; gap: 10px; }
  .navbar-logo-img { height: 78px; }
  .navbar-search { max-width: 200px; }
  .nav-link { font-size: 12px; padding: 6px 7px; }
  .nav-btn  { padding: 7px 11px !important; font-size: 12px !important; }
  .stat-number { font-size: 13px; }
  .stat-item   { padding: 0 7px; }
  .navbar-banner { flex: 0 1 200px; max-width: 200px; }
  .banner-text   { font-size: 11px; max-width: 130px; }
  .page-body { grid-template-columns: 190px 1fr; padding: 18px 14px; gap: 18px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); }
}
@media (min-width: 641px) and (max-width: 900px) {
  .page-body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .navbar-search { display: none; }
  .navbar-banner { display: none; }
}
@media (min-width: 641px) and (max-width: 768px) {
  .navbar { height: 78px; min-height: 78px; padding: 0 14px; }
  .navbar-logo-img { height: 56px; }
  .navbar-infocenter { display: none; }
}

/* ── MOBILE < 640px ──────────────────────────────────────── */
@media (max-width: 640px) {

  /* Navbar */
  .navbar {
    height: 58px !important; min-height: 58px !important;
    padding: 0 14px !important; gap: 0 !important;
    display: flex !important; align-items: center !important;
    justify-content: space-between !important; position: relative !important;
  }
  .brand-logo, .navbar-logo {
    position: absolute !important; left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important; align-items: center !important;
  }
  .navbar-logo-img { height: 56px !important; width: auto !important; max-width: 130px !important; }
  .navbar-infocenter { display: none !important; }
  .navbar-search     { display: none !important; }
  #nav-links         { display: none !important; }

  /* Ticker */
  .product-ticker { height: 64px !important; overflow: hidden !important; }
  .ticker-item    { min-width: 110px !important; padding: 6px 8px !important; gap: 8px !important; }
  .ticker-img     { width: 46px !important; height: 44px !important; border-radius: 8px !important; }
  .ticker-title   { font-size: 11px !important; max-width: 130px !important; }
  .ticker-price   { font-size: 12px !important; }

  /* Categorías - scroll horizontal sin overflow */
  #navbar-secondary, .navbar-secondary {
    height: 40px !important; padding: 0 8px !important; gap: 4px !important;
    overflow-x: auto !important; overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important; scrollbar-width: none !important;
    display: flex !important; flex-wrap: nowrap !important; align-items: center !important;
  }
  #navbar-secondary::-webkit-scrollbar,
  .navbar-secondary::-webkit-scrollbar { display: none !important; }
  .nav-secondary-sep { display: none !important; }
  .nav-secondary-link {
    font-size: 12px !important; padding: 5px 11px !important; border-radius: 50px !important;
    background: rgba(255,255,255,0.1) !important; white-space: nowrap !important;
    flex-shrink: 0 !important; font-weight: 600 !important;
  }
  .nav-secondary-link.active { background: rgba(255,255,255,0.26) !important; color: #fff !important; }

  /* Hero */
  .hero { padding: 20px 14px 24px !important; }
  .hero h1 { font-size: clamp(20px, 5vw, 26px) !important; line-height: 1.25 !important; }
  .hero p  { font-size: 13px !important; margin-top: 6px !important; }
  .hero-search { margin-top: 14px !important; border-radius: 12px !important; overflow: hidden !important; }
  .hero-search input  { padding: 12px 14px !important; font-size: 14px !important; }
  .hero-search button { padding: 12px 16px !important; font-size: 13px !important; }

  /* Layout principal */
  .page-body {
    grid-template-columns: 1fr !important;
    padding: 10px !important; gap: 10px !important;
  }
  .sidebar { display: none !important; }

  /* ═══ CARDS DE PRODUCTOS — FIX DEFINITIVO ═══ */

  /* Grid: 2 columnas fijas */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  /* Card: contener todo dentro */
  .product-card {
    overflow: hidden !important;
    min-width: 0 !important;
    word-break: break-word !important;
  }

  /* Imagen fija y contenida */
  .product-card .card-img {
    height: 115px !important;
    overflow: hidden !important;
    display: block !important;
  }
  .product-card .card-img img {
    width: 100% !important;
    height: 115px !important;
    object-fit: cover !important;
    display: block !important;
  }

  /* Badge condición */
  .product-card .card-badge {
    font-size: 8px !important; padding: 2px 5px !important;
    top: 5px !important; left: 5px !important;
  }

  /* Botón favorito */
  .fav-btn {
    top: 5px !important; right: 5px !important;
    width: 24px !important; height: 24px !important; font-size: 11px !important;
  }

  /* Body compacto */
  .product-card .card-body { padding: 7px 8px 8px !important; }

  /* Categoría */
  .card-category {
    font-size: 9px !important; margin-bottom: 2px !important;
    white-space: nowrap !important; overflow: hidden !important;
    text-overflow: ellipsis !important; display: block !important;
  }

  /* Título: MÁXIMO 2 líneas — esta es la clave */
  .product-card .card-body .card-title,
  .card-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    max-height: 29px !important;       /* 11px * 1.3 * 2 líneas ≈ 29px */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    word-break: break-word !important;
  }

  /* Precio */
  .card-price {
    font-size: 13px !important; font-weight: 800 !important;
    margin-bottom: 2px !important; line-height: 1.2 !important;
  }

  /* Meta: solo ubicación, ocultar estrellas */
  .card-meta {
    margin-top: 3px !important; padding-top: 3px !important;
    border-top: 1px solid var(--borde) !important;
    justify-content: flex-start !important; gap: 0 !important;
  }
  .card-location {
    font-size: 9px !important; white-space: nowrap !important;
    overflow: hidden !important; text-overflow: ellipsis !important;
    max-width: 100% !important;
  }
  .card-stars { display: none !important; }

  /* Footer meta: compacto */
  .card-footer-meta {
    margin-top: 3px !important; padding-top: 0 !important;
    border-top: none !important; font-size: 9px !important; gap: 3px !important;
  }
  .card-views { font-size: 9px !important; padding: 1px 4px !important; }
  .card-time  { font-size: 9px !important; }

  /* Ocultar seller info y inmueble badges en card pequeña */
  .product-card [onclick*="seller.html"],
  .card-inmueble-badges { display: none !important; }

  /* Quick filters */
  .quick-filters { flex-direction: column !important; gap: 8px !important; }
  .condition-pills {
    display: flex !important; gap: 6px !important;
    overflow-x: auto !important; -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important; flex-wrap: nowrap !important;
  }
  .condition-pills::-webkit-scrollbar { display: none !important; }
  .pill { white-space: nowrap !important; flex-shrink: 0 !important; font-size: 12px !important; padding: 5px 12px !important; }
  .sort-control { display: flex !important; gap: 8px !important; }
  .sort-select  { flex: 1 !important; font-size: 13px !important; min-height: 38px !important; }

  /* Products header */
  .products-header { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; }
  .products-header h2 { font-size: 16px !important; }
  .products-count { font-size: 12px !important; }

  /* Featured */
  .featured-item-card { min-width: 146px !important; max-width: 146px !important; }
  .featured-item-img  { height: 108px !important; }
  .featured-item-title { font-size: 12px !important; }
  .featured-item-price { font-size: 13px !important; }

  /* Formularios */
  .form-page  { padding: 20px 14px !important; }
  .form-card  { padding: 20px 16px !important; }
  .form-grid  { grid-template-columns: 1fr !important; }
  .form-control { min-height: 48px !important; font-size: 16px !important; }
  select.form-control { font-size: 16px !important; }
  textarea.form-control { min-height: 100px !important; font-size: 16px !important; }
  .btn    { min-height: 48px !important; font-size: 14px !important; }
  .btn-sm { min-height: 40px !important; font-size: 13px !important; }
  .btn-block { width: 100% !important; }

  /* Dashboard */
  .dashboard-layout { grid-template-columns: 1fr !important; display: block !important; padding: 0 !important; }
  .dash-menu  { display: none !important; }
  .dash-content { padding: 12px !important; }
  .dash-panel   { padding: 16px !important; }

  /* Detail page */
  .detail-grid { grid-template-columns: 1fr !important; }

  /* Modales */
  .modal-content { width: 96vw !important; padding: 20px 16px !important; max-height: 88vh !important; overflow-y: auto !important; }

  /* Toasts sobre bottom nav */
  .toast-container { bottom: 68px !important; right: 12px !important; left: 12px !important; }
  .toast { width: 100% !important; max-width: 100% !important; }

  /* Paginación */
  .pagination { flex-wrap: wrap !important; justify-content: center !important; gap: 4px !important; }
  .page-btn   { min-width: 36px !important; height: 36px !important; font-size: 13px !important; }

  /* Admin */
  .hide-mobile { display: none !important; }

  /* Body space para bottom nav */
  body { padding-bottom: 62px !important; }

  /* Chat mobile: lista arriba, mensajes abajo */
  /* CRÍTICO 2 FIX: El chat-layout NO puede ser 100dvh porque la navbar sticky (58px)
     y el bottom nav fijo (60px) no forman parte de ese 100dvh pero sí ocupan espacio.
     La solución correcta es usar height: 100dvh y compensar con padding-top
     calculado por JS, o usar un layout flex en body. La forma más segura y sin JS:
     usar calc con las alturas fijas del mobile. */
  .chat-layout {
    display: flex !important; flex-direction: column !important;
    /* Navbar mobile: 58px, secondary: 40px, ticker: 64px = 162px arriba
       Bottom nav: 60px + padding-bottom body: 62px
       Usamos min-height: 0 y flex en el body para que el chat respete el espacio */
    height: calc(100dvh - 162px - 60px) !important;
    min-height: 300px !important;
    overflow: hidden !important;
  }
  /* En pages sin ticker ni secondary (como chat.html específicamente):
     el chat-layout puede usar position relative al flujo normal.
     La página chat.html tiene solo navbar (58px) + secondary (40px) = 98px */
  body.chat-page .chat-layout {
    height: calc(100dvh - 98px - 60px) !important;
  }
  .chat-sidebar {
    display: flex !important; flex: none !important; width: 100% !important;
    border-right: none !important; border-bottom: 1px solid var(--borde) !important;
    /* FIX: reducir max-height a 38vh para dar más espacio al área de mensajes */
    max-height: 38vh !important; overflow-y: auto !important;
    flex-direction: column !important;
  }
  /* CRÍTICO 1 FIX: Ocultar sidebar cuando una conversación está abierta */
  .chat-sidebar.conv-open {
    display: none !important;
  }
  .chat-main {
    flex: 1 !important; min-height: 0 !important;
    display: flex !important; flex-direction: column !important;
    height: auto !important;
  }
  /* CRÍTICO 1 FIX: Botón de volver al listado de conversaciones */
  .chat-back-btn {
    display: flex !important; align-items: center !important; gap: 8px !important;
    padding: 10px 14px !important; background: white !important;
    border-bottom: 1px solid var(--borde) !important; cursor: pointer !important;
    font-size: 13px !important; font-weight: 600 !important; color: var(--azul) !important;
    flex-shrink: 0 !important; -webkit-tap-highlight-color: transparent !important;
  }
  .chat-messages {
    flex: 1 !important; overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    /* Prevenir que el teclado virtual corte el scroll */
    overscroll-behavior: contain !important;
  }
  .chat-input-area {
    padding: 10px 12px !important;
    /* CRÍTICO 3 FIX: safe-area para notch en iPhone */
    padding-bottom: max(env(safe-area-inset-bottom, 10px), 10px) !important;
    flex-shrink: 0 !important;
    /* Asegurar que siempre esté visible sobre el teclado virtual */
    position: relative !important; z-index: 2 !important;
  }
  /* CRÍTICO 3 FIX: 16px evita zoom en iOS, y atributos adicionales en HTML */
  .chat-input { font-size: 16px !important; }
  .msg-bubble { max-width: 78% !important; }
}

/* ══════════════════════════════════════════════════════════
   COMPONENTES MOBILE (hamburger, stats, banner, bottom nav, drawer)
   Solo visibles en < 640px
   ══════════════════════════════════════════════════════════ */

/* Hamburger */
.mob-ham {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 38px; height: 38px; min-width: 38px;
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 10px; cursor: pointer; padding: 9px 8px; flex-shrink: 0;
  position: relative; z-index: 10; -webkit-tap-highlight-color: transparent;
}
.mob-ham span { display: block; height: 2px; background: #fff; border-radius: 2px; }
@media (max-width: 640px) { .mob-ham { display: flex; } }

/* Stats strip */
.mob-stats {
  display: none; background: linear-gradient(180deg,#002b78 0%,#003893 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07); padding: 9px 0;
}
.mob-stats-row { display: flex; align-items: center; justify-content: center; max-width: 320px; margin: 0 auto; }
.mob-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mob-stat-n { font-size: 19px; font-weight: 800; color: #FFD700; font-family: var(--font-titulo); line-height: 1; }
.mob-stat-l { font-size: 9px; color: rgba(255,255,255,0.58); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }
.mob-stat-d { width: 1px; height: 28px; background: rgba(255,255,255,0.14); flex-shrink: 0; margin: 0 4px; }
@media (max-width: 640px) { .mob-stats { display: block; } }

/* Banner strip */
.mob-banner {
  display: none; align-items: center; gap: 10px; padding: 9px 16px;
  background: linear-gradient(135deg,#001c52,#002b78);
  border-bottom: 1px solid rgba(255,215,0,0.17);
}
.mob-banner .mb-em { font-size: 18px; flex-shrink: 0; }
.mob-banner .mb-tx { flex: 1; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.91); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-banner .mb-lk { flex-shrink: 0; font-size: 11px; font-weight: 700; color: #FFD700; border: 1px solid rgba(255,215,0,0.44); border-radius: 50px; padding: 3px 10px; text-decoration: none; }
@media (max-width: 640px) { .mob-banner { display: flex; } }

/* Bottom nav */
.mob-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; height: 60px;
  background: #fff; border-top: 1px solid #e4e9f5;
  box-shadow: 0 -2px 14px rgba(0,0,0,0.09); z-index: 800;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mob-nav-inner { display: flex; align-items: stretch; height: 100%; width: 100%; }
.mob-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; color: #8898b8; font-size: 10px; font-weight: 600;
  text-decoration: none; border: none; background: none; cursor: pointer;
  padding: 0; position: relative; min-width: 0; -webkit-tap-highlight-color: transparent;
}
.mob-tab .ti { font-size: 20px; line-height: 1; }
.mob-tab .tl { line-height: 1; white-space: nowrap; }
.mob-tab.on  { color: var(--azul); }
.mob-tab.pub { flex: 1.1; }
.pub-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg,#003893,#1565C0);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; box-shadow: 0 4px 14px rgba(0,56,147,0.38);
}
.mob-badge {
  position: absolute; top: 4px; left: 50%; transform: translateX(4px);
  background: #CC0001; color: #fff; font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: none; align-items: center; justify-content: center;
  padding: 0 3px; border: 1.5px solid #fff;
}
.mob-badge.on { display: flex; }
@media (max-width: 640px) { .mob-nav { display: flex; } }

/* Drawer overlay */
.mob-veil {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.54); z-index: 900; opacity: 0; transition: opacity 0.24s ease;
}
.mob-veil.open { opacity: 1; }

/* Drawer panel */
.mob-drawer {
  position: fixed; top: 0; right: -100%; width: min(298px,87vw); height: 100%;
  background: #fff; z-index: 901; transition: right 0.27s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; overflow-y: auto;
  box-shadow: -4px 0 28px rgba(0,0,0,0.15);
}
.mob-drawer.open { right: 0; }
.mob-dr-head { background: linear-gradient(135deg,#003893,#1565C0); padding: 46px 20px 20px; flex-shrink: 0; }
.mob-dr-logo { font-family: var(--font-titulo); font-size: 21px; font-weight: 900; color: #fff; margin-bottom: 14px; }
.mob-dr-logo span { color: #FFD700; }
.mob-dr-user { display: flex; align-items: center; gap: 12px; }
.mob-dr-av   { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.38); object-fit: cover; flex-shrink: 0; }
.mob-dr-av-i { width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; color: #fff; flex-shrink: 0; }
.mob-dr-nm   { font-size: 14px; font-weight: 700; color: #fff; }
.mob-dr-em   { font-size: 11px; color: rgba(255,255,255,0.67); margin-top: 2px; }
.mob-dr-guest { font-size: 13px; color: rgba(255,255,255,0.77); }
.mob-dr-body { flex: 1; padding: 6px 0; }
.mob-dr-lk {
  display: flex; align-items: center; gap: 14px; padding: 15px 20px;
  font-size: 14px; font-weight: 500; color: #1a1a2e;
  text-decoration: none; border-bottom: 1px solid #f0f3fb;
  -webkit-tap-highlight-color: transparent; min-height: 52px;
}
.mob-dr-lk .di { font-size: 19px; width: 24px; text-align: center; flex-shrink: 0; }
.mob-dr-lk.red { color: #CC0001; }
.mob-dr-lk.cta { background: var(--azul); color: #fff; margin: 10px 16px; border-radius: 12px; border: none; justify-content: center; font-weight: 700; border-bottom: none; }

/* Dashboard tabs en mobile */
.mob-dash-tabs {
  display: none; background: #fff; border-bottom: 2px solid var(--borde);
  padding: 0 12px; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mob-dash-tabs::-webkit-scrollbar { display: none; }
.mob-dash-tab {
  display: flex; align-items: center; gap: 6px; padding: 12px 14px;
  font-size: 13px; font-weight: 600; color: var(--gris-medio);
  border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent; margin-bottom: -2px;
}
.mob-dash-tab.active { color: var(--azul); border-bottom-color: var(--azul); }
@media (max-width: 640px) { .mob-dash-tabs { display: flex; } }

/* Dashboard cards de productos en mobile */
.mp-cards { display: flex; flex-direction: column; gap: 12px; }
.mp-card { background: #fff; border-radius: 14px; border: 1px solid var(--borde); box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.mp-card-top { display: flex; gap: 12px; padding: 14px; align-items: flex-start; }
.mp-card-img { width: 70px; height: 70px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.mp-card-nopic { width: 70px; height: 70px; border-radius: 10px; background: var(--gris-claro); display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.mp-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mp-card-title { font-size: 14px; font-weight: 700; color: var(--gris-oscuro); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mp-card-cat   { font-size: 11px; color: var(--gris-medio); }
.mp-card-price { font-size: 16px; font-weight: 800; color: var(--azul); font-family: var(--font-titulo); }
.mp-card-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.mp-card-sub   { font-size: 11px; color: var(--gris-medio); }
.mp-card-actions { display: flex; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--borde); flex-wrap: wrap; }
.mp-card-actions .btn { flex: 1; min-width: 0; font-size: 12px !important; min-height: 38px !important; padding: 8px 8px !important; white-space: nowrap; }
@media (min-width: 641px) { .mp-cards { display: none; } }

