/* ============================================
   DIRECTORIO PET FRIENDLY — main.css
   ============================================ */

:root {
  --c-primary:   #1a3c5e;
  --c-accent:    #e91e8c;
  --c-bg:        #f7f9fc;
  --c-surface:   #ffffff;
  --c-text:      #1a1a2e;
  --c-muted:     #6b7280;
  --c-border:    #e5e9f0;
  --radius:      12px;
  --shadow:      0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --font:        'Plus Jakarta Sans', system-ui, sans-serif;
  --transition:  .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--c-bg); color: var(--c-text); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── CONTAINER ───────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ── NAV ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.nav__inner {
  display: flex; align-items: center; gap: 1rem;
  height: 64px;
}
.nav__logo {
  font-weight: 800; font-size: 1.15rem; color: var(--c-primary);
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap;
}
.nav__links {
  display: flex; align-items: center; gap: 1.25rem;
  margin-left: auto; font-size: .9rem; font-weight: 500;
}
.nav__links a { color: var(--c-muted); transition: color var(--transition); }
.nav__links a:hover { color: var(--c-primary); }
.btn-nav {
  background: var(--c-primary); color: #fff !important;
  padding: .5rem 1.1rem; border-radius: 8px;
  font-weight: 700; transition: background var(--transition);
}
.btn-nav:hover { background: #154a77 !important; }
.nav__burger { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; margin-left: auto; }

/* ── HERO ────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, #0f2740 100%);
  color: #fff; padding: 5rem 0 4rem;
  text-align: center;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 1rem;
}
.hero__title em { color: #7dd3fc; font-style: normal; }
.hero__sub { font-size: 1.1rem; opacity: .85; margin-bottom: 2.5rem; }

/* ── SEARCH BAR ──────────────────────────── */
.search-bar {
  display: flex; gap: .75rem; flex-wrap: wrap;
  background: #fff; border-radius: 50px;
  padding: .5rem .5rem .5rem 1rem;
  max-width: 700px; margin: 0 auto 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
.search-bar__field {
  display: flex; align-items: center; gap: .5rem;
  flex: 1; min-width: 160px;
}
.search-bar__field span { font-size: 1rem; }
.search-bar__field input,
.search-bar__field select {
  border: none; outline: none; font-family: var(--font);
  font-size: .95rem; color: var(--c-text);
  width: 100%; background: transparent;
}

/* ── CATEGORY CHIPS ──────────────────────── */
.cat-chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  justify-content: center; margin-top: 1rem;
}
.chip {
  background: rgba(255,255,255,.15); color: #fff;
  padding: .4rem .9rem; border-radius: 50px;
  font-size: .82rem; font-weight: 600;
  transition: background var(--transition);
  border: 1px solid rgba(255,255,255,.25);
}
.chip:hover { background: rgba(255,255,255,.3); }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-block; padding: .7rem 1.5rem;
  border-radius: 8px; font-weight: 700; font-size: .95rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition);
}
.btn--primary { background: var(--c-accent); color: #fff; border-color: var(--c-accent); }
.btn--primary:hover { background: #c2177a; border-color: #c2177a; }
.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--sm { padding: .45rem 1rem; font-size: .85rem; }

/* ── SECTION ─────────────────────────────── */
.section { padding: 4rem 0; }
.section--map { padding: 2rem 0; }
.section--plans { background: #f0f6ff; }
.section__title {
  font-size: 1.75rem; font-weight: 800; color: var(--c-primary);
  margin-bottom: .5rem;
}
.section__sub { color: var(--c-muted); margin-bottom: 2rem; }

/* ── GRID LISTADOS ───────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ── CARD LISTING ────────────────────────── */
.card-listing {
  background: var(--c-surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.card-listing:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-listing__img {
  height: 180px; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-listing__img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: .6rem; right: .6rem;
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: .25rem .65rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .04em;
}
.card-listing__body { padding: 1rem 1.1rem; flex: 1; }
.card-listing__cat { font-size: .8rem; font-weight: 600; margin-bottom: .3rem; }
.card-listing__body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.card-listing__loc { font-size: .82rem; color: var(--c-muted); }
.card-listing__rating { font-size: .85rem; margin-top: .4rem; }
.stars { color: #f59e0b; letter-spacing: .05em; }

/* ── BANNER ROTATIVO ─────────────────────── */
.banner-strip { padding: 1.5rem 0; }
.banner-rotativo {
  display: flex; gap: 1rem; overflow: hidden;
  border-radius: var(--radius);
}
.banner-item { flex: 1; min-width: 0; border-radius: 8px; overflow: hidden; }
.banner-item img { width: 100%; height: 100px; object-fit: cover; }
.banner-placeholder {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff; height: 100px; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; text-align: center;
  padding: 1rem;
}

/* ── PLANES ──────────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.plan-card {
  background: var(--c-surface); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; border: 2px solid var(--c-border);
  text-align: center; transition: all var(--transition);
}
.plan-card--featured {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(26,60,94,.1);
  transform: scale(1.02);
}
.plan-card__badge {
  display: inline-block; color: #fff; font-size: .75rem;
  font-weight: 700; padding: .3rem .8rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 1rem;
}
.plan-card__price {
  font-size: 2rem; font-weight: 800; color: var(--c-primary);
  margin-bottom: .25rem;
}
.plan-card__price small { font-size: .9rem; font-weight: 500; color: var(--c-muted); }
.plan-card__annual { font-size: .8rem; color: var(--c-muted); margin-bottom: 1rem; }
.plan-card__features {
  list-style: none; text-align: left; margin-bottom: 1.5rem;
  font-size: .85rem; color: var(--c-muted);
}
.plan-card__features li { padding: .3rem 0; border-bottom: 1px solid var(--c-border); }

/* ── LISTADOS PAGE ───────────────────────── */
.filters-bar {
  background: var(--c-surface); padding: 1.25rem;
  border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
}
.filters-bar select, .filters-bar input {
  padding: .55rem .85rem; border: 1.5px solid var(--c-border);
  border-radius: 8px; font-family: var(--font); font-size: .9rem;
}
.results-count { color: var(--c-muted); font-size: .9rem; margin-bottom: 1rem; }

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--c-primary); color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer__inner {
  display: flex; gap: 2rem; flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 2rem; margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.footer__brand span { font-weight: 800; color: #fff; font-size: 1.1rem; display: block; margin-bottom: .5rem; }
.footer__brand p { font-size: .85rem; max-width: 280px; }
.footer__links { display: flex; flex-direction: column; gap: .5rem; font-size: .9rem; }
.footer__links a:hover { color: #fff; }
.footer__copy { font-size: .8rem; text-align: center; }

/* ── ADMIN ───────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; background: var(--c-primary); color: #fff;
  padding: 1.5rem 0; flex-shrink: 0;
}
.sidebar__logo { padding: 0 1.5rem 1.5rem; font-weight: 800; font-size: 1.1rem; }
.sidebar__nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1.5rem; color: rgba(255,255,255,.75);
  font-size: .9rem; transition: all var(--transition);
}
.sidebar__nav a:hover, .sidebar__nav a.active {
  background: rgba(255,255,255,.1); color: #fff;
}
.admin-main { flex: 1; padding: 2rem; background: var(--c-bg); }
.admin-main h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--c-primary); }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--c-surface); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.stat-card__val { font-size: 2rem; font-weight: 800; color: var(--c-primary); }
.stat-card__label { font-size: .85rem; color: var(--c-muted); margin-top: .25rem; }
.table-wrap { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--c-border); }
th { background: var(--c-bg); font-weight: 700; color: var(--c-muted); font-size: .8rem; text-transform: uppercase; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9fbfd; }
.tag {
  display: inline-block; padding: .2rem .6rem; border-radius: 50px;
  font-size: .75rem; font-weight: 700;
}
.tag--green { background: #d1fae5; color: #065f46; }
.tag--yellow { background: #fef3c7; color: #92400e; }
.tag--red { background: #fee2e2; color: #991b1b; }
.tag--gray { background: #f3f4f6; color: #374151; }

/* ── FORMS ───────────────────────────────── */
.form-card {
  background: var(--c-surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2rem; max-width: 680px;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .4rem; color: #444; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--c-border); border-radius: 8px;
  font-family: var(--font); font-size: .95rem;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--c-primary);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group .hint { font-size: .78rem; color: var(--c-muted); margin-top: .3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert {
  padding: 1rem 1.25rem; border-radius: 8px;
  font-size: .9rem; margin-bottom: 1.25rem;
}
.alert--err { background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; }
.alert--ok  { background: #f0fdf4; border-left: 4px solid #22c55e; color: #166534; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--c-surface); padding: 1rem; border-top: 1px solid var(--c-border); box-shadow: var(--shadow-lg); }
  .nav.open .nav__links { display: flex; }
  .nav__burger { display: block; }
  .hero { padding: 3rem 0 2.5rem; }
  .search-bar { border-radius: var(--radius); flex-direction: column; }
  .search-bar__field { min-width: unset; }
  .grid-2 { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .banner-rotativo { flex-direction: column; }
}
@media (max-width: 480px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card--featured { transform: none; }
}
