/* ===========================================================================
   Estilos mobile-first para la app de placas QR.
   La página pública se abre casi siempre desde el celular al escanear el QR.
   =========================================================================== */

:root {
    /* Paleta de marca: índigo + cian (moderno y confiable) */
    --azul: #4f46e5;
    --azul-osc: #4338ca;
    --cian: #06b6d4;
    --rojo: #dc2626;
    --rojo-osc: #b91c1c;
    --verde: #16a34a;
    --gris: #6b7280;
    --gris-claro: #f3f4f6;
    --texto: #1f2937;
    --borde: #e5e7eb;
    --radio: 14px;
    /* Sombras suaves reutilizables */
    --sombra: 0 1px 3px rgba(17, 24, 39, 0.06), 0 4px 12px rgba(17, 24, 39, 0.05);
    --sombra-fuerte: 0 8px 24px rgba(79, 70, 229, 0.18);
    /* Tipografía: Poppins (títulos, sans geométrica bold) + Inter (cuerpo). */
    --font-titulo: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-cuerpo: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-cuerpo);
    color: var(--texto);
    /* Fondo gris claro + patrón sutil de huellas 🐾 (SVG embebido, ~1KB). */
    background-color: var(--gris-claro);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27140%27%20height%3D%27140%27%20viewBox%3D%270%200%20140%20140%27%3E%3Cg%20fill%3D%27%234f46e5%27%20fill-opacity%3D%270.05%27%3E%3Cellipse%20cx%3D%2735%27%20cy%3D%2748%27%20rx%3D%2713%27%20ry%3D%2710%27%2F%3E%3Ccircle%20cx%3D%2719%27%20cy%3D%2728%27%20r%3D%275%27%2F%3E%3Ccircle%20cx%3D%2731%27%20cy%3D%2720%27%20r%3D%275%27%2F%3E%3Ccircle%20cx%3D%2744%27%20cy%3D%2722%27%20r%3D%275%27%2F%3E%3Ccircle%20cx%3D%2753%27%20cy%3D%2733%27%20r%3D%275%27%2F%3E%3Cellipse%20cx%3D%27105%27%20cy%3D%27112%27%20rx%3D%2713%27%20ry%3D%2710%27%2F%3E%3Ccircle%20cx%3D%2789%27%20cy%3D%2792%27%20r%3D%275%27%2F%3E%3Ccircle%20cx%3D%27101%27%20cy%3D%2784%27%20r%3D%275%27%2F%3E%3Ccircle%20cx%3D%27114%27%20cy%3D%2786%27%20r%3D%275%27%2F%3E%3Ccircle%20cx%3D%27123%27%20cy%3D%2797%27%20r%3D%275%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand { font-family: var(--font-titulo); }

/* Íconos Heroicons (tag {% icon %}). Tamaño relativo al texto donde se insertan,
   heredan el color con currentColor. .hi-lg para usos destacados. */
.hi {
    width: 1.15em; height: 1.15em; display: inline-block;
    vertical-align: -0.18em; flex: none;
}
.hi-lg { width: 1.8em; height: 1.8em; vertical-align: middle; }

/* --- Barra superior --- */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--borde);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
/* --- Marca ENEDE (lockup logo + nombre) --- */
.brand {
    display: flex; align-items: center; gap: 0.55rem;
    text-decoration: none; color: var(--texto); font-size: 1.1rem;
}
.brand-logo {
    width: 38px; height: 38px;
    object-fit: contain; display: block;
    filter: drop-shadow(0 2px 4px rgba(17, 24, 39, 0.18));
}
.brand-name { font-weight: 800; line-height: 1; }
.brand-name .brand-sub { font-weight: 600; color: var(--gris); }

/* Marca centrada y grande (login / registro) */
.brand-hero { text-align: center; margin: 0.5rem 0 1.25rem; }
.brand-hero-logo {
    width: 78px; height: 78px;
    object-fit: contain; display: inline-block;
    filter: drop-shadow(0 6px 14px rgba(79, 70, 229, 0.28));
}
.brand-hero-name {
    font-family: var(--font-titulo); font-weight: 800;
    font-size: 1.4rem; margin-top: 0.6rem;
}
.brand-hero-name .brand-sub { color: var(--gris); font-weight: 600; }

/* Marca chica y discreta (encabezado de páginas públicas) */
.brand-tag {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    margin-bottom: 1rem; color: var(--gris); font-size: 0.95rem;
}
.brand-tag img {
    width: 28px; height: 28px;
    object-fit: contain; display: block;
}
.brand-tag strong { color: var(--texto); font-weight: 700; }

/* Enlace a Instagram al pie de las páginas públicas */
.public-ig-wrap { text-align: center; margin-top: 1.25rem; }
.public-ig {
    display: inline-flex; align-items: center; gap: 0.45rem;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    color: #fff; padding: 0.6rem 1rem; border-radius: 999px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: var(--sombra);
}
.public-ig svg { display: block; }
.topbar nav { display: flex; align-items: center; gap: 1rem; }
.topbar nav a,
.topbar nav .link-btn {
    text-decoration: none; color: var(--azul); font-weight: 500;
    white-space: nowrap;  /* que "Mis mascotas" no se parta en dos líneas */
}

/* En celulares angostos: la marca queda arriba y el menú pasa a una fila
   propia, a lo ancho, para que los links no se apilen ni se corten. */
@media (max-width: 560px) {
    .topbar { flex-wrap: wrap; gap: 0.5rem 0.75rem; padding: 0.6rem 0.9rem; }
    .topbar nav { width: 100%; justify-content: space-between; gap: 0.75rem; }
    .topbar nav a,
    .topbar nav .link-btn { font-size: 0.95rem; }
}

/* --- Contenedor principal --- */
.container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 1rem;
    flex: 1;
}
/* La landing pide un contenedor más ancho para aprovechar el desktop. */
.container.container--wide { max-width: 1080px; }

.footer {
    text-align: center;
    color: #4b5563;              /* más oscuro que --gris para mejor contraste */
    font-size: 0.85rem;
    padding: 1.5rem 1rem;
}

/* Aviso en las piezas impresas cuando el QR todavía apunta a la máquina local. */
.qr-aviso {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radio);
    padding: 0.75rem 1rem;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.qr-aviso code {
    background: rgba(0, 0, 0, 0.06);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    word-break: break-all;
}

/* Contacto de ENEDE en el pie. No aparece en las páginas públicas del escaneo
   (ver el bloque footer_contacto en base.html). */
.footer-contacto {
    margin-top: 0.35rem;
}

.footer-contacto a {
    color: var(--azul);
    font-weight: 600;
    text-decoration: none;
}

.footer-contacto a:hover {
    text-decoration: underline;
}

/* --- Tipografía --- */
h1 { font-size: 1.75rem; letter-spacing: -0.01em; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }
p { margin: 0.5rem 0; }

/* --- Tarjetas --- */
.card {
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--sombra);
}

/* Encabezado del panel: título + botón "Nueva mascota" a la derecha */
.dash-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.dash-header h1 { margin: 0; }
.dash-header__cta { width: auto; margin: 0; }

/* Tarjeta de mascota: se siente "tocable" con una leve elevación al pasar,
   y aparece con una animación sutil al cargar el panel. */
.pet-card {
    transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    animation: card-in 0.35s ease both;
}
.pet-card:hover { transform: translateY(-2px); box-shadow: var(--sombra-fuerte); border-color: #c7cbf5; }
@keyframes card-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .pet-card { animation: none; }
    .pet-card:hover { transform: none; }
}

/* --- Botones --- */
.btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1.15rem;
    border: none;
    border-radius: var(--radio);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    text-decoration: none;
    margin: 0.35rem 0;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
    transition: transform 0.09s ease, box-shadow 0.18s ease, background 0.18s ease, filter 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(17, 24, 39, 0.12); }
.btn:focus-visible { outline: 3px solid rgba(79, 70, 229, 0.35); outline-offset: 2px; }

/* Sólidos: degradé sutil + sombra al color del botón */
.btn-primary {
    background: linear-gradient(135deg, var(--azul), #6366f1);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 8px 20px rgba(79, 70, 229, 0.36); }

.btn-success {
    background: linear-gradient(135deg, var(--verde), #22c55e);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.28);
}
.btn-success:hover { filter: brightness(1.05); box-shadow: 0 8px 20px rgba(22, 163, 74, 0.36); }

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #1da851);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.30);
}
.btn-whatsapp:hover { filter: brightness(1.05); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); }

/* Con borde: limpios, se rellenan al pasar el mouse */
.btn-outline {
    background: #fff;
    color: var(--azul);
    border: 2px solid var(--azul);
    box-shadow: none;
}
.btn-outline:hover { background: var(--azul); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, 0.22); }

/* Acciones destructivas (borrar, marcar perdida): rojo, se rellena al hover */
.btn-danger {
    background: #fff;
    color: var(--rojo);
    border: 2px solid var(--rojo);
    box-shadow: none;
}
.btn-danger:hover { background: var(--rojo); color: #fff; box-shadow: 0 6px 16px rgba(220, 38, 38, 0.22); }

/* Suaves: para listas de acciones secundarias. Relleno tenue en vez de borde,
   así no arman un "muro de recuadros". El ícono aporta el color. */
.btn-soft {
    background: #eef1fe; color: var(--azul);
    border: none; box-shadow: none;
}
.btn-soft:hover { background: #dfe4fd; box-shadow: none; filter: none; }
.btn-soft--danger { background: #fee2e2; color: var(--rojo-osc); }
.btn-soft--danger:hover { background: #fbcaca; }

/* Grupos de acciones con mini-título (Placa / Gestión / Compartir) */
.action-group { margin-top: 1.1rem; }
.action-group:first-child { margin-top: 0; }
.action-group__label {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--gris);
    margin: 0 0 0.45rem; display: flex; align-items: center; gap: 0.4rem;
}
.action-group__label .tag-code { color: var(--texto); letter-spacing: 1px; }
.action-group .actions-row { margin-top: 0; }
.action-group .actions-row + .actions-row { margin-top: 0.5rem; }

.scan-delete { margin-top: 0.5rem; }

/* Mapa del rastro de escaneos (MapLibre GL). Necesita alto fijo. */
.scan-map {
    height: 340px; border-radius: var(--radio); overflow: hidden;
    border: 1px solid var(--borde);
}
/* Marcador numerado: globo índigo con el número del escaneo. */
.scan-pin { cursor: pointer; }
.scan-pin span {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--azul); color: #fff;
    font-family: var(--font-titulo); font-weight: 700; font-size: 0.85rem;
    border: 2px solid #fff; box-shadow: 0 2px 6px rgba(17, 24, 39, 0.35);
}
/* El más reciente (n=1) resaltado en rojo: es la pista más caliente. */
.scan-pin--latest span { background: var(--rojo); }
/* Link dentro del popup del mapa */
.maplibregl-popup-content a { color: var(--azul); font-weight: 600; }
.btn:disabled,
.btn:disabled:hover {
    opacity: 0.55; cursor: default;
    transform: none; filter: none;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.08);
}

.link-btn {
    background: none; border: none; color: var(--azul);
    cursor: pointer; font: inherit; padding: 0;
}
.inline-form { display: inline; margin: 0; }

/* Aviso de suscripción (vencida / por vencer) */
.sub-banner {
    border-radius: var(--radio); padding: 0.85rem 1rem; margin-bottom: 1rem;
    font-weight: 600; font-size: 0.95rem;
}
.sub-banner__note { display: block; font-weight: 400; font-size: 0.85rem; margin-top: 0.25rem; }
.sub-banner--expired { background: #fee2e2; color: var(--rojo-osc); border: 1px solid #fecaca; }
.sub-banner--warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* --- Formularios --- */
form p { margin: 0.75rem 0; }
label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="file"], textarea, select {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--borde);
    border-radius: var(--radio);
    font-size: 1rem;
    font-family: inherit;
}
.helptext { color: var(--gris); font-size: 0.85rem; display: block; margin-top: 0.2rem; }
.errorlist { color: var(--rojo); list-style: none; padding: 0; margin: 0.25rem 0; font-size: 0.9rem; }

/* Campo con maquetado propio (parcial _form_fields.html) */
.field { margin: 0 0 1rem; }
.field > label { font-weight: 600; margin-bottom: 0.35rem; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none; border-color: var(--azul);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
/* Contraseña con botón "ojo" para mostrar/ocultar */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle {
    position: absolute; top: 0; right: 0; height: 100%; width: 3rem;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer; color: var(--gris);
    border-radius: 0 var(--radio) var(--radio) 0;
}
.pw-toggle:hover { color: var(--azul); }
.pw-toggle:focus-visible { outline: 3px solid rgba(79, 70, 229, 0.35); outline-offset: -3px; }

/* --- Mensajes flash --- */
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.msg { padding: 0.75rem 1rem; border-radius: var(--radio); margin-bottom: 0.5rem; font-weight: 500; }
.msg-success { background: #dcfce7; color: #166534; }
.msg-error { background: #fee2e2; color: #991b1b; }
.msg-warning { background: #fef3c7; color: #92400e; }
.msg-info { background: #dbeafe; color: #1e40af; }

/* --- Lista de mascotas (dashboard) --- */
.pet-row { display: flex; gap: 1rem; align-items: center; }
.pet-thumb {
    width: 64px; height: 64px; border-radius: 50%;
    object-fit: cover; background: var(--gris-claro); flex-shrink: 0;
}
.pet-thumb-placeholder {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--gris-claro); display: flex; align-items: center;
    justify-content: center; font-size: 1.8rem; flex-shrink: 0;
}
.badge {
    display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
}
.badge-lost { background: #fee2e2; color: var(--rojo-osc); }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-free { background: var(--gris-claro); color: var(--gris); }
.tag-code { font-family: monospace; font-weight: 700; letter-spacing: 1px; }

.actions-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.actions-row .btn { width: auto; flex: 1 1 auto; }

/* Menú desplegable de acciones por mascota (mantiene la lista compacta) */
.pet-actions { margin-top: 0.9rem; }
.pet-actions > summary {
    list-style: none;              /* saca el marcador por defecto */
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
    background: #eef1fe;
    color: var(--azul);
    border: none;
    border-radius: var(--radio);
    padding: 0.75rem 1rem;
    font-weight: 600;
    user-select: none;
    transition: background 0.15s ease;
}
.pet-actions > summary:hover { background: #dfe4fd; }
.pet-actions > summary::-webkit-details-marker { display: none; }
.pet-actions > summary .chev { transition: transform 0.2s ease; }
.pet-actions[open] > summary { margin-bottom: 0.75rem; }
.pet-actions[open] > summary .chev { transform: rotate(180deg); }
.pet-actions-body { border-top: 1px solid var(--borde); padding-top: 0.75rem; }
.pet-actions-section {
    margin-top: 0.75rem; padding-top: 0.75rem;
    border-top: 1px solid var(--borde);
}

/* ===========================================================================
   PÁGINA PÚBLICA
   =========================================================================== */
.public-pet {
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.25rem;
    box-shadow: var(--sombra);
}
.public-pet h1 { font-size: 1.8rem; }
.public-photo {
    width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover;
    border-radius: 20px; margin: 0 auto 1rem; display: block;
    box-shadow: var(--sombra-fuerte);
    border: 4px solid #fff;
}
.public-photo-big {
    width: 100%; max-width: 380px; aspect-ratio: 1; object-fit: cover;
    border-radius: 20px; margin: 0 auto 1rem; display: block;
    border: 5px solid var(--rojo);
    box-shadow: 0 8px 28px rgba(220, 38, 38, 0.3);
}

/* Alerta de mascota perdida */
.lost-alert {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff; border-radius: var(--radio);
    padding: 1.1rem; margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}
.lost-alert h1 { color: #fff; font-size: 2rem; margin: 0.25rem 0; }
.lost-banner {
    font-size: 1.6rem; font-weight: 800; letter-spacing: 1px;
    animation: latido 1.4s ease-in-out infinite;
}
/* Latido sutil para llamar la atención sin marear. */
@keyframes latido {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.08); }
    30% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .lost-banner { animation: none; }
}

/* Botones grandes y destacados en la página pública */
.public-pet .btn {
    font-size: 1.08rem;
    padding: 1rem 1rem;
    box-shadow: var(--sombra);
}
.public-pet .btn-whatsapp { box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35); }
.public-pet .btn-primary { box-shadow: var(--sombra-fuerte); }

/* Llamado a la acción y botón primario destacado (quien encuentra la mascota) */
.found-cta { font-weight: 700; font-size: 1.05rem; margin: 1.4rem 0 0.6rem; }
.public-pet .btn-found { font-size: 1.2rem; padding: 1.15rem 1rem; font-weight: 700; }

/* Contacto directo por WhatsApp: opción secundaria SIEMPRE visible.
   Separador legible (buen contraste) para que nadie se pierda esta salida. */
.found-alt { margin-top: 1.2rem; }
.found-or {
    display: flex; align-items: center; gap: 0.75rem;
    color: #374151; font-weight: 700; font-size: 1rem;
    text-align: center; justify-content: center;
    margin: 0 0 0.6rem;
}
.found-or::before, .found-or::after {
    content: ""; flex: 1 1 auto; height: 1px; background: var(--borde);
}

.reward-box {
    background: #fef3c7; color: #92400e; border: 2px dashed #d97706;
    border-radius: var(--radio); padding: 0.7rem 1rem; margin: 1rem 0;
    font-weight: 700; font-size: 1.1rem; text-align: center;
}
.lost-message {
    font-weight: 700; font-size: 1.05rem; margin: 0.75rem 0;
}
.emergency-box {
    background: #fffbeb; border: 2px solid #f59e0b; border-left-width: 6px;
    border-radius: var(--radio); padding: 0.9rem 1.1rem; margin: 1.25rem 0;
    text-align: left;
}
.emergency-title {
    margin: 0 0 0.5rem; font-weight: 800; color: #92400e;
    display: flex; align-items: center; gap: 6px;
}
.emergency-box p { margin: 0.35rem 0; color: #7c2d12; }
/* Fieldset de "info de emergencia" en el formulario de la mascota. */
.form-emergency {
    border: 1px solid var(--borde); border-radius: var(--radio);
    padding: 1rem 1.1rem; margin: 1.25rem 0;
}
.form-emergency legend {
    font-weight: 700; padding: 0 0.4rem; display: flex; align-items: center; gap: 6px;
}
.contact-box {
    background: var(--gris-claro); border-radius: var(--radio);
    padding: 1.1rem; margin: 1.25rem 0;
}
.contact-box p { margin: 0.4rem 0; }
.owners-list { margin: 0.2rem 0 0; padding-left: 1.2rem; }
.owners-list li { margin: 0.25rem 0; }
.public-pet .btn-whatsapp { margin-bottom: 0.6rem; }
.wa-buttons { margin-top: 0.4rem; }
/* Cuando el botón de WhatsApp ya lleva la ubicación adjunta, lo resaltamos
   con un latido suave para invitar a tocarlo. */
.btn-whatsapp--ready { animation: wa-pulse 1.4s ease-in-out 2; }
@keyframes wa-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}
.muted { color: var(--gris); font-size: 0.9rem; }
.center { text-align: center; }

/* Estado vacío (panel sin mascotas): más cálido con una huella grande. */
.empty-state { padding: 2.5rem 1.25rem; }
.empty-state__art {
    font-size: 4.5rem; line-height: 1; margin-bottom: 0.5rem;
    filter: drop-shadow(0 6px 12px rgba(79, 70, 229, 0.18));
}
.empty-state h2 { margin: 0.25rem 0 0.35rem; }

/* Campo de foto en el formulario de mascota */
.form-photo { margin: 0 0 1rem; }
.form-photo > label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.current-photo {
    display: flex; align-items: center; gap: 0.9rem;
    background: var(--gris-claro); border-radius: var(--radio);
    padding: 0.75rem; margin-bottom: 0.5rem;
}
.current-photo .pet-thumb { margin: 0; }
.checkbox-line {
    display: flex; align-items: center; gap: 0.5rem;
    cursor: pointer; font-size: 0.95rem;
}
.checkbox-line input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }

/* Recuadro de estado al compartir la ubicación (página pública).
   Empieza oculto y se muestra con una de las variantes según el resultado. */
.share-status {
    display: none;
    border-radius: var(--radio);
    padding: 0.85rem 1rem;
    margin: 0.5rem 0;
    font-weight: 600;
    text-align: center;
}
.share-status.is-visible { display: block; }
.share-status--loading { background: #dbeafe; color: #1e40af; }
.share-status--success { background: #dcfce7; color: #166534; }
.share-status--error { background: #fee2e2; color: #991b1b; }
