html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* ===== Fondo de huellitas y estilo del refugio ===== */
body {
    background-color: #fff4e6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23ecd2b3' transform='rotate(-20 60 60)'%3E%3Cellipse cx='60' cy='74' rx='16' ry='13'/%3E%3Cellipse cx='40' cy='54' rx='6' ry='8'/%3E%3Cellipse cx='54' cy='43' rx='6' ry='8'/%3E%3Cellipse cx='68' cy='43' rx='6' ry='8'/%3E%3Cellipse cx='82' cy='54' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E");
}

main[role="main"] {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.hero-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: bold;
    color: #b8651b !important;
}
/* ===== Tarjetas del catálogo ===== */
.perro-card {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .perro-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18) !important;
    }

.perro-foto-contenedor {
    position: relative;
    height: 240px;
    background: #f3e3cf;
}

.perro-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.perro-foto-adoptado {
    filter: grayscale(60%);
}

.perro-sin-foto {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.perro-insignia {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.85rem;
}
/* ===== Contadores de la portada ===== */
.stat-card {
    background: #fff4e6;
    border: 2px dashed #ecd2b3;
    border-radius: 16px;
    padding: 1.2rem 1rem;
}

.stat-numero {
    font-size: 2.8rem;
    font-weight: bold;
    color: #b8651b;
    line-height: 1;
}

.stat-texto {
    margin-top: 0.4rem;
    color: #6c5b4a;
}
/* ===== Chat ===== */
.chat-mensajes {
    height: 380px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ecd2b3;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-fila {
    display: flex;
}

.chat-mio {
    justify-content: flex-end;
}

.chat-otro {
    justify-content: flex-start;
}

.chat-burbuja {
    max-width: 75%;
    padding: 0.5rem 0.8rem;
    border-radius: 14px;
    word-wrap: break-word;
}

.chat-mio .chat-burbuja {
    background: #b8651b;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-otro .chat-burbuja {
    background: #f3e3cf;
    color: #333;
    border-bottom-left-radius: 4px;
}

.chat-texto {
    white-space: pre-wrap;
}

.chat-hora {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: right;
}

.chat-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}