/* assets/css/main.css */

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
}

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

/* ---- UTILIDADES ---- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 3rem 0; }
.section-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #999; margin-bottom: 1rem; font-weight: 500; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.5px; }
.section-link { font-size: 13px; color: var(--color-brand); }

.btn-solid {
  display: inline-block; padding: 9px 20px;
  background: var(--color-brand); color: #fff;
  border: none; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); transition: opacity .15s;
}
.btn-solid:hover { opacity: .88; }

.btn-ghost {
  display: inline-block; padding: 9px 20px;
  background: transparent; color: var(--color-text);
  border: 1px solid #ddd; border-radius: 8px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  font-family: var(--font-body); transition: border-color .15s;
}
.btn-ghost:hover { border-color: #aaa; }

.badge-pro   { display:inline-block; font-size:10px; font-weight:500; padding:2px 9px; border-radius:999px; background:#FDF5E6; color:#A0660A; border:1px solid #E8C87A; }
.badge-gratis{ display:inline-block; font-size:10px; font-weight:500; padding:2px 9px; border-radius:999px; background:#f5f5f5; color:#777; border:1px solid #e0e0e0; }

/* ---- NAV ---- */
.nav { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #eee; }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; height: 58px; display: flex; align-items: center; gap: 2rem; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-txt { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.5px; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; flex: 1; }
.nav-links a { font-size: 14px; color: #555; transition: color .15s; }
.nav-links a:hover { color: var(--color-brand); }
.nav-right { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-burger { display: none; background: none; border: none; font-size: 20px; cursor: pointer; }

/* ---- HERO ---- */
.hero { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: #111; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%); }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 3rem 1.5rem 4rem; width: 100%; max-width: 660px; margin: 0 auto; }
.hero-eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: #F07060; margin-bottom: .8rem; font-weight: 500; }
.hero-title { font-family: var(--font-display); font-size: 44px; line-height: 1.1; letter-spacing: -1px; color: #fff; margin-bottom: 1rem; }
.hero-sub { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 2rem; }
.hero-search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.hero-search-box { flex: 1; display: flex; align-items: center; height: 46px; background: rgba(255,255,255,.97); border-radius: 8px; padding: 0 14px; gap: 8px; }
.hero-search-box input { border: none; outline: none; flex: 1; font-size: 14px; background: transparent; font-family: var(--font-body); }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; margin-top: 1.5rem; }
.hero-stat-num { font-size: 22px; font-weight: 500; color: #fff; }
.hero-stat-lbl { font-size: 11px; color: rgba(255,255,255,.55); }

/* ---- CATEGORÍAS PILLS ---- */
.cat-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill { display: flex; align-items: center; gap: 8px; padding: 7px 16px; border: 1px solid #e0e0e0; border-radius: 999px; white-space: nowrap; font-size: 13px; cursor: pointer; background: #fff; transition: border-color .15s; text-decoration: none; color: inherit; }
.cat-pill:hover, .cat-pill.active { border-color: var(--color-brand); color: var(--color-brand); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---- GRID ANUNCIOS ---- */
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.biz-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.biz-card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; background: #fff; }
.biz-card:hover { border-color: #ccc; transform: translateY(-2px); }
.biz-card.featured { grid-column: span 2; }
.biz-card-img { width: 100%; height: 170px; object-fit: cover; background: #f5f5f5; }
.biz-card.featured .biz-card-img { height: 230px; }
.biz-card-body { padding: 14px; }
.biz-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.biz-card-name { font-size: 14px; font-weight: 500; }
.biz-card.featured .biz-card-name { font-size: 16px; }
.biz-card-cat { font-size: 12px; color: #777; margin-bottom: 10px; }
.biz-card-footer { display: flex; align-items: center; justify-content: space-between; }
.biz-rating { font-size: 12px; color: #777; display: flex; align-items: center; gap: 3px; }
.star { color: var(--color-brand); }
.biz-zone { font-size: 11px; color: #aaa; }

/* ---- BLOG GRID ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.post-card { border: 1px solid #eee; border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color .15s; background: #fff; }
.post-card:hover { border-color: #ccc; }
.post-card-img { width: 100%; height: 150px; object-fit: cover; background: #f5f5f5; }
.post-card-body { padding: 14px; }
.post-tag { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-brand); font-weight: 500; margin-bottom: 6px; }
.post-title { font-family: var(--font-display); font-size: 16px; line-height: 1.35; margin-bottom: 8px; }
.post-meta { font-size: 11px; color: #aaa; }

/* ---- CTA BANNER ---- */
.cta-banner { border-radius: 12px; border: 1px solid #E8C87A; background: #FDF8EE; padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cta-eyebrow { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #A0660A; font-weight: 500; margin-bottom: 6px; }
.cta-title { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.5px; color: #5A3A00; }
.cta-sub { font-size: 13px; color: #A0660A; margin-top: 4px; }
.cta-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---- FOOTER ---- */
.footer { border-top: 1px solid #eee; padding: 3rem 0 0; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-family: var(--font-display); font-size: 18px; display: block; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: #777; margin-bottom: 12px; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { font-size: 12px; color: #777; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col strong { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #aaa; font-weight: 500; }
.footer-col a { font-size: 13px; color: #555; }
.footer-col a:hover { color: var(--color-brand); }
.footer-bottom { border-top: 1px solid #eee; text-align: center; padding: 1rem; font-size: 12px; color: #aaa; }

/* ---- LISTADO DE ANUNCIOS ---- */
.page-hero { background: #f8f8f8; border-bottom: 1px solid #eee; padding: 2rem 0; }
.page-hero h1 { font-family: var(--font-display); font-size: 32px; margin-bottom: 4px; }
.page-hero p { color: #777; font-size: 14px; }

.filters-bar { padding: 1rem 0; border-bottom: 1px solid #eee; }
.filters-inner { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.filter-select { padding: 7px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; background: #fff; font-family: var(--font-body); }

.anuncios-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0; }
.sidebar { position: sticky; top: 74px; align-self: start; }
.sidebar-block { border: 1px solid #eee; border-radius: 12px; padding: 1.25rem; margin-bottom: 1rem; }
.sidebar-block h3 { font-size: 13px; font-weight: 500; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; color: #aaa; }
.sidebar-link { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 6px 0; border-bottom: 1px solid #f5f5f5; color: #333; }
.sidebar-link:last-child { border: none; }
.sidebar-link:hover { color: var(--color-brand); }
.sidebar-count { font-size: 11px; color: #aaa; }

/* ---- DETALLE DE ANUNCIO ---- */
.detalle-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; padding: 2rem 0; }
.galeria-main img { width: 100%; height: 380px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.galeria-thumbs { display: flex; gap: 8px; }
.galeria-thumbs img { width: 80px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.galeria-thumbs img.active { border-color: var(--color-brand); }
.detalle-title { font-family: var(--font-display); font-size: 30px; margin: 1.5rem 0 .5rem; }
.detalle-meta { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.detalle-desc { font-size: 15px; line-height: 1.7; color: #444; margin-bottom: 1.5rem; }
.detalle-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.5rem; }
.detalle-info-item { background: #f8f8f8; border-radius: 8px; padding: 12px; }
.detalle-info-item span { font-size: 11px; color: #aaa; display: block; }
.detalle-info-item strong { font-size: 13px; }
.detalle-redes { display: flex; gap: 10px; flex-wrap: wrap; }
.detalle-redes a { font-size: 12px; padding: 6px 14px; border: 1px solid #ddd; border-radius: 999px; color: #555; }
.detalle-redes a:hover { border-color: var(--color-brand); color: var(--color-brand); }

.sidebar-card { border: 1px solid #eee; border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; }
.sidebar-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 1rem; }
.form-group { margin-bottom: 12px; }
.form-group label { font-size: 12px; color: #777; display: block; margin-bottom: 4px; }
.form-group input,
.form-group textarea,
.form-group select { width: 100%; padding: 9px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; font-family: var(--font-body); outline: none; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--color-brand); }
.form-group textarea { resize: vertical; min-height: 90px; }

/* ---- DETALLE BLOG ---- */
.blog-detalle { max-width: 780px; margin: 0 auto; padding: 2rem 1.5rem; }
.blog-detalle-img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; margin-bottom: 2rem; }
.blog-detalle h1 { font-family: var(--font-display); font-size: 36px; line-height: 1.2; margin-bottom: 1rem; }
.blog-detalle-meta { font-size: 13px; color: #aaa; margin-bottom: 2rem; }
.blog-detalle-content { font-size: 16px; line-height: 1.8; color: #333; }
.blog-detalle-content h2 { font-family: var(--font-display); font-size: 22px; margin: 2rem 0 1rem; }
.blog-detalle-content p { margin-bottom: 1.2rem; }

/* ---- FORMULARIOS (app/abm) ---- */
.page-wrap { max-width: 520px; margin: 4rem auto; padding: 0 1.5rem; }
.form-card { border: 1px solid #eee; border-radius: 16px; padding: 2rem; background: #fff; }
.form-card h1 { font-family: var(--font-display); font-size: 26px; margin-bottom: .5rem; }
.form-card p { font-size: 14px; color: #777; margin-bottom: 1.5rem; }
.form-footer { margin-top: 1rem; font-size: 13px; color: #777; text-align: center; }
.form-footer a { color: var(--color-brand); }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 1rem; }
.alert-error { background: #FFF0F0; border: 1px solid #FFCCCC; color: #CC0000; }
.alert-success { background: #F0FFF4; border: 1px solid #AAFFCC; color: #006622; }

/* ---- PLAN PRO ---- */
.plan-card { border: 1px solid #eee; border-radius: 16px; padding: 2rem; max-width: 400px; margin: 0 auto; text-align: center; }
.plan-card.pro { border-color: #E8C87A; background: #FDFAF2; }
.plan-price { font-family: var(--font-display); font-size: 42px; margin: 1rem 0; }
.plan-price span { font-size: 16px; font-weight: 400; color: #777; }
.plan-features { list-style: none; text-align: left; margin: 1.5rem 0; display: flex; flex-direction: column; gap: 8px; }
.plan-features li { font-size: 14px; display: flex; gap: 8px; align-items: flex-start; }
.plan-features li::before { content: '✓'; color: var(--color-brand); font-weight: 700; flex-shrink: 0; }

/* ---- PAGINACIÓN ---- */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 2rem 0; }
.pagination a, .pagination span { padding: 7px 13px; border: 1px solid #eee; border-radius: 8px; font-size: 13px; }
.pagination a:hover { border-color: var(--color-brand); color: var(--color-brand); }
.pagination .current { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .biz-card.featured { grid-column: span 2; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .anuncios-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .detalle-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 58px; left: 0; right: 0; background: #fff; padding: 1rem 1.5rem; border-bottom: 1px solid #eee; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav-right { display: none; }
  .hero-title { font-size: 30px; }
  .hero-stats { gap: 1.5rem; }
  .biz-grid, .biz-grid-4 { grid-template-columns: 1fr; }
  .biz-card.featured { grid-column: span 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; }
  .detalle-info-grid { grid-template-columns: 1fr; }
}
.nav-mobile-btns { display: none; }
@media (max-width: 600px) { .nav-mobile-btns { display: block; padding-top: 8px; } }