/* ============================================================
   Hogar Colitas MID – Public CSS
   ============================================================ */

:root {
  --orange:      #f97316;
  --orange-dark: #ea580c;
  --card-radius: 16px;
  --shadow:      0 4px 20px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #fff; }

/* ---- NAVBAR ---- */
.pub-navbar {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: .6rem 0;
}
.navbar-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.navbar-paw  { font-size: 1.5rem; }
.navbar-brand { font-weight: 800; color: #1e293b !important; font-size: 1.1rem; }
.nav-link { font-weight: 500; color: #374151 !important; border-radius: 8px; padding: .4rem .85rem !important; }
.nav-link:hover, .nav-link.active { color: var(--orange) !important; background: #fff7ed; }
.btn-adopt {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff !important; border-radius: 50px !important;
  font-weight: 600; font-size: .85rem;
  padding: .45rem 1.1rem !important;
  border: none; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: opacity .2s, transform .15s;
}
.btn-adopt:hover { opacity: .9; color: #fff !important; transform: translateY(-1px); }

/* ---- PERFIL HERO ---- */
.perfil-hero { margin-bottom: 0; }
.portada-wrap { position: relative; height: 300px; overflow: hidden; background: linear-gradient(135deg, #fef3c7, #fed7aa); }
.portada-img  { width: 100%; height: 100%; object-fit: cover; }
.portada-default { height: 100%; display: flex; align-items: center; justify-content: center; }
.portada-default-inner { font-size: 4rem; letter-spacing: 1rem; opacity: .3; }

.perfil-card {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 1.5rem;
  background: #fff; border-radius: var(--card-radius);
  box-shadow: var(--shadow); padding: 1.5rem 2rem;
  margin-top: -60px; margin-bottom: 0;
  position: relative; z-index: 10;
}
.perfil-avatar-wrap { flex-shrink: 0; }
.perfil-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  border: 4px solid #fff; object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.perfil-avatar-placeholder {
  width: 110px; height: 110px; border-radius: 50%;
  border: 4px solid #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.perfil-info { flex: 1; min-width: 200px; }
.perfil-nombre { font-size: 1.6rem; font-weight: 800; margin: 0 0 .25rem; }
.perfil-ubicacion { color: #6b7280; font-size: .9rem; margin: 0 0 .5rem; }
.perfil-desc { color: #4b5563; font-size: .92rem; margin: 0; max-width: 480px; }
.perfil-stats { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.pstat { text-align: center; }
.pstat-val   { display: block; font-size: 1.8rem; font-weight: 800; color: var(--orange); line-height: 1; }
.pstat-label { font-size: .78rem; color: #6b7280; white-space: nowrap; }

/* ---- LINKS SECTION ---- */
.links-section { background: #f8fafc; }
.links-grid {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
}
.link-btn {
  display: inline-flex; align-items: center;
  padding: .65rem 1.4rem;
  border-radius: 50px;
  color: #fff !important; text-decoration: none !important;
  font-weight: 600; font-size: .9rem;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.link-btn:hover { opacity: .9; transform: translateY(-2px); color: #fff !important; }

/* ---- SECTIONS ---- */
.section-title { font-size: 1.8rem; font-weight: 800; color: #1e293b; }
.section-header { }

/* ---- MASCOTA PUB CARDS ---- */
.mascota-pub-card {
  background: #fff; border-radius: var(--card-radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
  display: flex; flex-direction: column;
  position: relative;
}
.mascota-pub-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.mascota-pub-link { text-decoration: none; color: inherit; flex: 1; }
.mascota-pub-img { position: relative; height: 200px; overflow: hidden; background: #f8fafc; }
.mascota-pub-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mascota-pub-card:hover .mascota-pub-img img { transform: scale(1.04); }
.mascota-no-foto.pub {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; background: #fef3c7;
}
.mascota-pub-tipo {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 600;
}
.mascota-pub-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; font-weight: 700;
}
.mascota-pub-body { padding: .9rem; }
.mascota-pub-name { font-size: 1.05rem; font-weight: 700; margin: 0 0 .2rem; }
.mascota-pub-meta { font-size: .8rem; color: #6b7280; margin: 0 0 .35rem; }
.mascota-pub-desc { font-size: .8rem; color: #9ca3af; margin: 0; }
.mascota-pub-footer { padding: .75rem; padding-top: 0; }

/* ---- SELECCIÓN ADOPCIÓN ---- */
.seleccionable { cursor: pointer; }
.seleccion-overlay {
  position: absolute; inset: 0;
  background: rgba(249,115,22,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--orange);
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.mascota-pub-card.seleccionada .seleccion-overlay { opacity: 1; }
.mascota-pub-card.seleccionada { box-shadow: 0 0 0 3px var(--orange), var(--shadow); }
.btn-seleccionar {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.9); border: none;
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--orange);
  transition: background .15s, transform .15s;
  z-index: 5;
}
.btn-seleccionar:hover { background: var(--orange); color: #fff; transform: scale(1.1); }

/* ---- CARRITO FLOTANTE ---- */
.carrito-bar {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #fff;
  border-radius: 50px;
  padding: .75rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  z-index: 500;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
}
.carrito-info { font-size: .85rem; }

/* ---- MASCOTA GALERIA ---- */
.mascota-thumb {
  width: 70px; height: 70px; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  border: 3px solid transparent; transition: border-color .15s;
}
.mascota-thumb.active { border-color: var(--orange); }
.mascota-thumb:hover  { border-color: #fbbf24; }

/* ---- NECESIDADES ---- */
.necesidades-card {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border-radius: var(--card-radius);
  padding: 2rem;
  border: 2px solid #fed7aa;
}
.necesidades-list { list-style: none; padding: 0; margin: 0; }
.necesidades-list li { padding: .35rem 0; font-size: .95rem; }

/* ---- AYUDA CARDS ---- */
.ayuda-card {
  background: #fff; border-radius: var(--card-radius);
  box-shadow: var(--shadow); padding: 2rem; text-align: center;
}
.ayuda-card-icon { font-size: 3rem; margin-bottom: 1rem; }
.ayuda-card h3 { font-weight: 700; margin-bottom: .5rem; }

/* ---- CUENTA BANCARIA ---- */
.cuenta-card {
  background: #f8fafc; border-radius: 10px;
  padding: .75rem 1rem;
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  border: 1px solid #e2e8f0;
}
.cuenta-banco  { font-weight: 700; font-size: .85rem; }
.cuenta-numero { font-family: monospace; font-size: 1.05rem; flex: 1; }

/* ---- CONTACTO CARDS ---- */
.contacto-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--card-radius);
  box-shadow: var(--shadow); padding: 2rem; text-align: center;
  transition: transform .2s, box-shadow .2s; height: 100%;
}
.contacto-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,.12); color: inherit; }
.contacto-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 1rem;
}

/* ---- MODAL ---- */
.bg-gradient-orange { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); }

/* ---- FOOTER ---- */
.pub-footer { background: #1e293b; padding: 3rem 0 2rem; margin-top: 4rem; }
.footer-title { color: #f1f5f9; font-weight: 700; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35rem; }
.footer-links a { 
    color: #94a3b8 !important; 
    text-decoration: none !important; 
    font-size: .9rem;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.footer-links a:hover { color: var(--orange) !important; background: none !important; }

/* ---- FOOTER CONTACTO ---- */
.footer-contact-item { color: #94a3b8; font-size: .9rem; margin-bottom: .5rem; }
.footer-contact-link {
    color: #94a3b8 !important;
    text-decoration: none !important;
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: .9rem;
}
.footer-contact-link:hover { color: var(--orange) !important; }

/* ---- WHATSAPP FAB ---- */
.whatsapp-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff !important;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 400; transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.1); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .perfil-card { padding: 1rem; margin-top: -40px; }
  .perfil-avatar, .perfil-avatar-placeholder { width: 80px; height: 80px; }
  .portada-wrap { height: 180px; }
  .carrito-bar { font-size: .8rem; padding: .6rem 1rem; }
  .section-title { font-size: 1.4rem; }
}