/* ====================================================================
 * neo — sitio público
 * Estilos plano, sin build. Paleta consistente con cloud pero pensada
 * para audiencia final (más cálida, tarjetas grandes, tipografía amplia).
 * ==================================================================== */

:root {
  --bg:          #f6f7fb;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --primary:     #7b0097;
  --primary-h:   #6a0080;
  --accent:      #F59E0B;   /* destacadas */
  --success:     #22c55e;
  --danger:      #ef4444;
  --text:        #0f172a;
  --muted:       #64748b;
  --radius:      12px;
  --shadow:      0 1px 4px rgba(0,0,0,.06);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.12);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-h); }
img { max-width: 100%; display: block; }

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

/* ---------- Topbar ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky; top: 0; z-index: 40;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.35rem; color: var(--primary);
  letter-spacing: .02em;
}
.brand .logo { font-size: 1.7rem; }
.brand .tagline { font-size: .75rem; color: var(--muted); font-weight: 500; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a {
  padding: 8px 14px; border-radius: 20px;
  font-size: .9rem; font-weight: 500; color: var(--muted);
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(123,0,151,.08); color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #7b0097 0%, #A855F7 100%);
  color: #fff; padding: 60px 0 90px; text-align: center;
}
.hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.hero p  { font-size: 1.05rem; opacity: .9; max-width: 640px; margin: 0 auto 28px; }

.hero-search {
  display: flex; gap: 8px; max-width: 640px; margin: 0 auto;
  background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1; padding: 12px 20px; border: none; outline: none;
  font-size: 1rem; color: var(--text); border-radius: 999px;
  background: transparent;
}
.hero-search .btn { border-radius: 999px; padding: 12px 28px; }

.hero-chips { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.hero-chips a {
  background: rgba(255,255,255,.18); color: #fff;
  padding: 8px 18px; border-radius: 999px;
  font-size: .85rem; font-weight: 500;
  transition: background .2s;
}
.hero-chips a:hover { background: rgba(255,255,255,.3); }

/* ---------- Section common ---------- */
.section { padding: 60px 0; }
.section-title {
  display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px;
}
.section-title h2 { font-size: 1.55rem; font-weight: 700; }
.section-title a  { font-size: .9rem; font-weight: 500; }

/* ---------- Filtro barra (listado) ---------- */
.filters {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
}
.filters form { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; flex: 1; }
.filters .field { display: flex; flex-direction: column; gap: 4px; }
.filters label { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.filters input, .filters select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: .9rem; color: var(--text); background: #fff;
  outline: none; transition: border-color .15s;
}
.filters input:focus, .filters select:focus { border-color: var(--primary); }
.filters .btn { padding: 8px 18px; }

/* ---------- Card grid ---------- */
.grid-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
  display: flex; flex-direction: column;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img {
  aspect-ratio: 4/3; background: #eef1f6; overflow: hidden; position: relative;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }

.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.card-tipo {
  position: absolute; top: 12px; right: 12px;
  background: rgba(15,23,42,.7); color: #fff;
  padding: 3px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 600;
}

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-titulo { font-size: 1rem; font-weight: 600; color: var(--text); line-height: 1.35;
               display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-loc    { font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card-precio { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-top: auto; padding-top: 8px; }
.card-precio .op { font-size: .7rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-left: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  border: none; transition: all .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); }
.btn-ghost   { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

/* ---------- Detalle de aviso ---------- */
.detalle-hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 0;
  box-shadow: var(--shadow);
}
.detalle-hero-img { aspect-ratio: 4/3; overflow: hidden; background: #eef1f6; }
.detalle-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.detalle-info { padding: 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.detalle-info h1 { font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
.detalle-precio-big { font-size: 2rem; font-weight: 800; color: var(--primary); }
.detalle-precio-big .op { font-size: .85rem; color: var(--muted); font-weight: 500; margin-left: 8px; text-transform: uppercase; }
.detalle-loc { font-size: .95rem; color: var(--muted); }
.detalle-contacto {
  border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-top: 10px;
  background: var(--bg);
}
.detalle-contacto div { font-size: .9rem; margin: 4px 0; }
.detalle-contacto strong { color: var(--text); }

.detalle-body {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 24px;
}
.card-info {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.card-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.card-info p  { color: var(--muted); line-height: 1.6; white-space: pre-wrap; }

.attr-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.attr {
  background: var(--bg); border-radius: 8px; padding: 10px 14px;
}
.attr .label { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.attr .value { font-size: .95rem; font-weight: 600; color: var(--text); margin-top: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a; color: #cbd5e1;
  padding: 40px 0 24px; margin-top: 60px;
  text-align: center;
}
.site-footer strong { color: #fff; }

/* ---------- Empty / loading ---------- */
.empty {
  padding: 60px 20px; text-align: center; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}

/* ---------- Paginación ---------- */
.paginacion { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.paginacion a, .paginacion span {
  padding: 8px 14px; border-radius: 8px; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
}
.paginacion a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.paginacion .actual { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 40px 0 60px; }
  .detalle-hero { grid-template-columns: 1fr; }
  .detalle-body { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
