/* Páginas de la app (login, registro, mis mascotas, perfil). Misma paleta que el asistente. */

:root {
	--texto: #404040;
	--suave: #999;
	--gris: #e9e9e9;
	--verde: #9ab531;
	--verde-hover: #8aa32c;
	--macho: #48b8b6;
	--hembra: #d34599;
	--error: #c0392b;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: #fff;
	color: var(--texto);
	font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
	line-height: 1.4;
}

a { color: var(--texto); }

/* ---------- Barra superior ---------- */

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: 1em 1.5em;
	border-bottom: 1px solid var(--gris);
}
.topbar-logo { font-weight: 900; letter-spacing: -0.03em; font-size: 1.2em; text-decoration: none; }
.topbar nav { display: flex; align-items: center; gap: 1em; font-size: .9em; }
.topbar nav a { color: var(--suave); }
.topbar-hola { color: var(--suave); }
.topbar { position: relative; z-index: 50; }

/* ---------- Campana de notificaciones ---------- */

.notif { position: relative; }
.campana {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	transition: background .15s;
}
.campana:hover, .campana[aria-expanded="true"] { background: #f2f2f2; }
.campana svg { width: 24px; height: 24px; fill: var(--texto); }
.badge {
	position: absolute;
	top: 1px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	border: 2px solid #fff;
	background: #e0245e;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 14px;
	text-align: center;
}
.notif-panel {
	position: absolute;
	top: calc(100% + 8px);
	right: -8px;
	width: 360px;
	max-width: calc(100vw - 24px);
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--gris);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
	padding: .5em 0;
	font-size: 14px;
}
.notif-panel h3, .notif-pagina h3 {
	font-size: .75em;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--suave);
	margin: .8em 1.2em .3em;
}
.notif-lista { list-style: none; margin: 0; padding: 0; }
.notif-lista a, .topbar .notif-lista a {
	display: flex;
	align-items: center;
	gap: .75em;
	padding: .6em 1.2em;
	text-decoration: none;
	color: var(--texto);
}
.notif-lista a:hover { background: #f7f7f7; }
.notif-lista .nueva a { background: #fdf2f6; }
.notif-lista .nueva a:hover { background: #fae6ee; }
.notif-icono {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #f2f2f2;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}
.notif-icono.corazon svg { width: 18px; height: 18px; fill: #e0245e; }
.vencido .notif-icono { background: #fde8e8; }
.notif-texto { flex: 1; min-width: 0; line-height: 1.35; }
.notif-texto small { display: block; color: var(--suave); font-size: .85em; }
.vencido .notif-texto small { color: var(--error); }
.notif-mini { flex: none; width: 44px; height: 44px; object-fit: cover; border-radius: 6px; }
.notif-vacio { color: var(--suave); text-align: center; padding: 1.5em 1em; margin: 0; }
.notif-todas { text-align: center; margin: .4em 0 .2em; font-size: .9em; }
.notif-todas a { color: var(--suave); }
.notif-pagina { max-width: 560px; margin: 0 auto; }
.notif-pagina .notif-lista a { border-radius: 8px; }

.contenido { max-width: 960px; margin: 0 auto; padding: 2em 16px 4em; }

.titulo, .caja-form h1, .vacio h1, .perfil h1 {
	font-weight: 100;
	font-size: 2.5em;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: .5em 0 .5em;
}

/* ---------- Botones y formularios ---------- */

.button {
	display: inline-block;
	border: 0;
	border-radius: 5px;
	padding: .9em 2em;
	background: var(--verde);
	color: #fff;
	font: inherit;
	font-size: 1.05em;
	cursor: pointer;
	text-decoration: none;
}
.button:hover { background: var(--verde-hover); }
.button.secundario { background: var(--gris); color: var(--texto); }
.button.secundario:hover { background: #ccc; }

.caja-form { max-width: 380px; margin: 2em auto; text-align: center; }
.bajada { color: var(--suave); margin-top: 0; }
.form { display: flex; flex-direction: column; gap: 1em; text-align: left; margin-top: 1.5em; }
.form label { display: flex; flex-direction: column; gap: .3em; font-size: .9em; color: var(--suave); }
.form input {
	font: inherit;
	font-size: 1.05em;
	color: var(--texto);
	padding: .7em .8em;
	border: 1px solid #ccc;
	border-radius: 5px;
}
.form input:focus { outline: 2px solid var(--verde); outline-offset: -1px; border-color: transparent; }
.form .button { margin-top: .5em; }
.alterno { color: var(--suave); font-size: .9em; margin-top: 1.5em; }

.error { color: var(--error); margin: .3em 0; }
.aviso {
	background: #f3f7e6;
	border-left: 4px solid var(--verde);
	padding: .8em 1em;
	border-radius: 0 5px 5px 0;
}

.vacio { text-align: center; padding: 3em 0; color: var(--suave); }
.vacio p { margin-bottom: 1.5em; }

/* ---------- Avatares ---------- */

.avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 120px;
	margin: 0 auto .6em;
	border-radius: 50%;
	border: 5px solid var(--macho);
	background: var(--gris);
	overflow: hidden;
}
.hembra .avatar { border-color: var(--hembra); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .inicial { font-size: 3em; font-weight: 900; color: #fff; }
.macho .avatar .inicial { color: var(--macho); }
.hembra .avatar .inicial { color: var(--hembra); }

/* ---------- Grilla de mascotas ---------- */

.grilla {
	list-style: none;
	margin: 1.5em 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 1.5em;
}
.tarjeta a {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.2em .8em;
	border-radius: 10px;
	text-decoration: none;
	text-align: center;
	transition: background .15s;
}
.tarjeta a:hover { background: #f7f7f7; }
.tarjeta strong { font-size: 1.2em; }
.tarjeta .detalle { color: var(--suave); font-size: .85em; }
.tarjeta.memoria .avatar { filter: grayscale(1); border-color: var(--suave); }
.tarjeta.agregar .avatar { border: 3px dashed #ccc; background: none; }
.tarjeta.agregar .inicial { color: #ccc; font-weight: 300; }
.tarjeta.agregar strong { color: var(--suave); font-weight: 400; font-size: 1em; }

/* ---------- Perfil ---------- */

.perfil { text-align: center; }
.avatar.grande { width: 200px; height: 200px; }
.avatar.grande .inicial { font-size: 5em; }
.perfil h1 { margin-bottom: .2em; }
.lema { font-style: italic; color: var(--suave); margin-top: 0; }
.datos {
	display: grid;
	grid-template-columns: auto auto;
	justify-content: center;
	gap: .5em 1.5em;
	margin: 2em auto;
	text-align: left;
}
.datos dt { color: var(--suave); }
.datos dd { margin: 0; font-weight: 600; }

[hidden] { display: none !important; }

.contenido.ancho { max-width: 1240px; }

/* ---------- Me gusta (js/me_gusta.js) ---------- */

[data-post] a.ampliar {
	position: relative;
	display: block;
	touch-action: manipulation;       /* sin zoom por doble toque en el celular */
	-webkit-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.corazon-pop {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26%;
	max-width: 140px;
	fill: #fff;
	filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35));
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
	pointer-events: none;
}
.corazon-pop.animar { animation: corazon-pop .9s ease-out; }
@keyframes corazon-pop {
	0%   { transform: translate(-50%, -50%) scale(0);    opacity: 0; fill: #fff; }
	15%  { transform: translate(-50%, -50%) scale(1.2);  opacity: 1; fill: #e0245e; }
	30%  { transform: translate(-50%, -50%) scale(.95);  opacity: 1; fill: #e0245e; }
	45%  { transform: translate(-50%, -50%) scale(1);    opacity: 1; fill: #e0245e; }
	80%  { transform: translate(-50%, -50%) scale(1);    opacity: 1; fill: #e0245e; }
	100% { transform: translate(-50%, -60%) scale(.8);   opacity: 0; fill: #e0245e; }
}
.post-pie { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .5em .8em; }
.megusta { display: inline-flex; align-items: center; gap: .35em; color: var(--suave); font-size: .9em; cursor: default; }
.megusta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.megusta.activo { color: #e0245e; }
.megusta.activo svg { fill: #e0245e; stroke: #e0245e; transform: scale(1.1); }
.posts-grilla .post-pie { padding: .4em .2em 0; }

/* Compartir (js/compartir.js) */
.compartir { display: inline-flex; align-items: center; gap: .3em; margin-left: auto; margin-right: .3em; }
.compartir-wa {
	display: inline-flex;
	align-items: center;
	gap: .3em;
	padding: .3em .75em .3em .5em;
	border-radius: 999px;
	background: #25d366;
	color: #fff;
	font-size: .8em;
	font-weight: 600;
	text-decoration: none;
}
.compartir-wa:hover { background: #1ebe5b; }
.compartir-wa svg { width: 16px; height: 16px; fill: currentColor; }
.compartir-copiar {
	width: 30px;
	height: 30px;
	border: 1px solid var(--gris);
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	font-size: .85em;
}
.compartir-copiar:hover { border-color: #ccc; }
.compartir-copiar.copiado { border-color: var(--verde); color: var(--verde); font-weight: 700; }
.posts-grilla .compartir-wa span { display: none; }       /* en la galería de la ficha, solo el ícono */
.posts-grilla .compartir-wa { padding: .35em; }
.posts-grilla time { margin-top: 0; }

/* ---------- Recordatorios (ficha de la mascota) ---------- */

.recordatorios { margin-top: 3em; border-top: 1px solid var(--gris); padding-top: 1em; }
.recordatorios h2 { font-weight: 300; font-size: 1.6em; letter-spacing: -0.02em; }
.rec-vacio { color: var(--suave); }
.rec-lista { list-style: none; margin: 0 0 1em; padding: 0; }
.rec-lista li {
	display: flex;
	align-items: center;
	gap: .9em;
	padding: .8em 1em;
	border: 1px solid var(--gris);
	border-left: 4px solid var(--gris);
	border-radius: 8px;
	margin-bottom: .6em;
}
.rec-lista li.pronto { border-left-color: #ff8c00; }
.rec-lista li.vencido { border-left-color: var(--error); background: #fffafa; }
.rec-icono { font-size: 1.6em; flex: none; }
.rec-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rec-texto small { color: var(--suave); }
.pronto .rec-cuando { color: #d97700; font-weight: 600; }
.vencido .rec-cuando { color: var(--error); font-weight: 600; }
.rec-nota { font-style: italic; }
.rec-lista li { flex-wrap: wrap; }
.rec-acciones { display: flex; align-items: center; gap: .4em; flex: none; }
.rec-acciones form { margin: 0; }
.rec-hecho[aria-expanded="true"] { border-color: #ccc; color: var(--suave); }
.rec-hecho[aria-expanded="true"]:hover { background: var(--gris); color: var(--texto); }

/* Formulario "Hecho": ocupa toda la fila bajo el recordatorio */
.rec-hecho-form {
	flex-basis: 100%;
	display: grid;
	grid-template-columns: 170px 1fr;
	gap: .8em 1em;
	margin-top: .6em;
	padding-top: .9em;
	border-top: 1px dashed #ddd;
}
.rec-hecho-form label { display: flex; flex-direction: column; gap: .3em; font-size: .85em; color: var(--suave); }
.rec-hecho-form label small { color: #bbb; }
.rec-hecho-form input[type="date"], .rec-hecho-form input[type="text"] {
	font: inherit;
	font-size: 1.05em;
	color: var(--texto);
	padding: .5em .6em;
	border: 1px solid #ccc;
	border-radius: 5px;
}
.rec-hecho-form input[type="file"] { font: inherit; font-size: 1em; color: var(--texto); }
.rec-nota-hecho, .rec-hecho-botones { grid-column: 1 / -1; }
.rec-hecho-botones { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.rec-hecho-botones small { color: var(--suave); }
.aviso-error {
	background: #fdeeee;
	border-left: 4px solid var(--error);
	padding: .7em 1em;
	border-radius: 0 5px 5px 0;
}

/* ---------- Bitácora (línea de tiempo) ---------- */

.bitacora { margin-top: 2.5em; }
.bitacora h2 { font-weight: 300; font-size: 1.6em; letter-spacing: -0.02em; }
.bit-lista { list-style: none; margin: 0; padding: 0 0 0 22px; position: relative; }
.bit-lista::before {                       /* línea vertical */
	content: "";
	position: absolute;
	left: 21px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: var(--gris);
}
.bit-lista li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1em;
	padding: .7em 0 .7em 30px;
}
.bit-icono {
	position: absolute;
	left: -22px;
	top: .75em;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--gris);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3em;
}
.bit-texto { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bit-texto time { font-size: .8em; font-weight: 700; color: var(--verde); letter-spacing: .02em; }
.bit-texto small { color: var(--suave); }
.bit-foto { flex: none; display: block; cursor: zoom-in; }
.bit-foto img {
	display: block;
	width: 76px;
	height: 76px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--gris);
	transition: transform .15s;
}
.bit-foto:hover img { transform: scale(1.05); }
.bit-acciones { display: flex; flex-direction: column; align-items: flex-end; gap: .2em; flex: none; }
.bit-acciones form { margin: 0; }
.bit-subir-btn {
	display: inline-block;
	font-size: .8em;
	padding: .35em .8em;
	border-radius: 999px;
	border: 1px dashed #bbb;
	color: var(--suave);
	cursor: pointer;
	white-space: nowrap;
}
.bit-subir-btn:hover { border-color: var(--verde); color: var(--verde); }
.bit-subir-btn:focus-within { outline: 2px solid var(--verde); outline-offset: 2px; }
.bit-subir-btn.subiendo { border-style: solid; border-color: var(--verde); color: var(--verde); }
.bit-subir-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rec-hecho {
	font: inherit;
	font-size: .85em;
	padding: .45em 1em;
	border-radius: 999px;
	border: 2px solid var(--verde);
	background: #fff;
	color: var(--verde);
	font-weight: 600;
	cursor: pointer;
}
.rec-hecho:hover { background: var(--verde); color: #fff; }
.rec-borrar {
	font-size: 1.3em;
	line-height: 1;
	width: 32px;
	border: 0;
	background: none;
	color: #bbb;
	cursor: pointer;
	border-radius: 50%;
}
.rec-borrar:hover { color: var(--error); background: #fdeeee; }

.rec-nuevo { border: 1px dashed #ccc; border-radius: 8px; padding: .8em 1em; }
.rec-nuevo summary { cursor: pointer; font-weight: 600; color: var(--verde); }
.rec-form { display: flex; flex-direction: column; gap: .9em; margin-top: 1em; }
.rec-form label { display: flex; flex-direction: column; gap: .3em; font-size: .9em; color: var(--suave); }
.rec-form input[type="text"], .rec-form input[type="date"], .rec-form select {
	font: inherit;
	font-size: 1.05em;
	color: var(--texto);
	padding: .55em .7em;
	border: 1px solid #ccc;
	border-radius: 5px;
	background: #fff;
}
.rec-fila { display: grid; grid-template-columns: 1fr 1fr; gap: .9em; }
.rec-tipos { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5em; }
.rec-tipos legend { font-size: .9em; color: var(--suave); margin-bottom: .3em; padding: 0; }
.rec-tipos label { flex-direction: row; cursor: pointer; }
.rec-tipos input { position: absolute; opacity: 0; pointer-events: none; }
.rec-tipos span {
	padding: .45em .9em;
	border-radius: 999px;
	background: var(--gris);
	color: var(--texto);
	font-size: 1.05em;
}
.rec-tipos input:checked + span { background: var(--verde); color: #fff; }
.rec-tipos input:focus-visible + span { outline: 2px solid var(--texto); outline-offset: 2px; }
.rec-form .button { align-self: flex-start; }

/* ---------- Imagen ampliada (js/lightbox.js) ---------- */

a.ampliar { cursor: zoom-in; }
.lightbox {
	padding: 0;
	border: 0;
	background: none;
	max-width: 100vw;
	max-height: 100vh;
	overflow: visible;
	cursor: zoom-out;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.lightbox img {
	display: block;
	max-width: 94vw;
	max-height: 90vh;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
.lightbox-cerrar {
	position: fixed;
	top: 12px;
	right: 16px;
	border: 0;
	background: none;
	color: #fff;
	font-size: 2.4em;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
}
.lightbox-cerrar:hover { opacity: 1; }
.lightbox-cerrar:focus:not(:focus-visible) { outline: none; }

.avatar.mini { width: 44px; height: 44px; border-width: 3px; margin: 0; flex: none; }
.avatar.mini .inicial { font-size: 1.2em; }

.perfil-meta { color: var(--suave); font-size: .9em; margin: 0 0 .5em; }

/* ---------- Botón Seguir ---------- */

.form-seguir { margin: 0; }
.seguir {
	font: inherit;
	font-size: .95em;
	font-weight: 600;
	padding: .55em 1.4em;
	border-radius: 999px;
	border: 2px solid var(--verde);
	background: var(--verde);
	color: #fff;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.seguir:hover { background: var(--verde-hover); border-color: var(--verde-hover); }
.seguir.siguiendo { background: #fff; color: var(--verde); }
.seguir.siguiendo:hover { border-color: #c0392b; color: #c0392b; background: #fff; }
.seguir.siguiendo:hover::after { content: " · dejar"; }
.form-seguir.grande .seguir { font-size: 1.05em; padding: .8em 2.4em; }
.form-seguir.compacto .seguir { font-size: .8em; padding: .35em .9em; }

/* ---------- Menú "⋯": bloquear / reportar ---------- */

.menu-mas { position: relative; }
.menu-mas > summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 1.4em;
	line-height: 1;
	color: var(--suave);
	cursor: pointer;
	user-select: none;
}
.menu-mas > summary::-webkit-details-marker { display: none; }
.menu-mas > summary:hover, .menu-mas[open] > summary { background: #f2f2f2; color: var(--texto); }
.menu-mas-panel {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 60;
	width: 300px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border: 1px solid var(--gris);
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
	padding: .4em 0;
	text-align: left;
	font-size: .95rem;
}
.menu-mas-panel form { margin: 0; }
.menu-item {
	display: block;
	width: 100%;
	font: inherit;
	text-align: left;
	padding: .65em 1.1em;
	border: 0;
	background: none;
	color: var(--texto);
	cursor: pointer;
	list-style: none;
}
.menu-item::-webkit-details-marker { display: none; }
.menu-item:hover { background: #f7f7f7; }
.menu-item.menu-peligro { color: var(--error); }
.menu-item.menu-peligro:hover { background: #fdf3f3; }
.menu-mas-panel.menu-corto { width: 200px; }
.reportar[open] > .menu-item { font-weight: 600; background: #fff6f6; }
.form-reporte { display: flex; flex-direction: column; gap: .7em; padding: .6em 1.1em .9em; }
.form-reporte label { display: flex; flex-direction: column; gap: .3em; font-size: .85em; color: var(--suave); }
.form-reporte label small { color: #bbb; }
.form-reporte select, .form-reporte textarea {
	font: inherit;
	font-size: 1.05em;
	color: var(--texto);
	padding: .45em .6em;
	border: 1px solid #ccc;
	border-radius: 5px;
	resize: vertical;
}
.form-reporte label.check { flex-direction: row; align-items: center; gap: .5em; color: var(--texto); }
.form-reporte .button { background: var(--error); align-self: flex-start; padding: .6em 1.4em; font-size: .95em; }
.form-reporte .button:hover { background: #a93226; }
.form-reporte blockquote {
	margin: 0;
	padding: .5em .8em;
	border-left: 3px solid var(--error);
	background: #fdf6f6;
	font-size: .85em;
	font-style: italic;
	color: var(--texto);
}
.estado-bloqueo { color: var(--error); font-weight: 600; }
.reporte-mini { display: block; width: 100%; max-height: 140px; object-fit: cover; border-radius: 6px; border: 1px solid var(--gris); }

/* Hora + menú ⋯ en la cabecera/pie de cada post */
.post-meta { display: inline-flex; align-items: center; gap: .2em; }
.post-meta .menu-mas > summary { width: 32px; height: 32px; font-size: 1.2em; }
.aviso.flash { margin-top: 0; }

/* ---------- Ficha: editar foto y lema (dueño) ---------- */

.editar-perfil { max-width: 420px; margin: .5em auto 0; text-align: left; }
.editar-perfil summary {
	text-align: center;
	cursor: pointer;
	color: var(--suave);
	font-size: .9em;
	list-style: none;
}
.editar-perfil summary::-webkit-details-marker { display: none; }
.editar-perfil summary:hover { color: var(--texto); }
.editar-perfil[open] summary { color: var(--texto); font-weight: 600; margin-bottom: .6em; }
.form-editar {
	display: flex;
	flex-direction: column;
	gap: 1em;
	padding: 1.1em;
	border: 1px dashed #ccc;
	border-radius: 10px;
}
.editar-foto { display: flex; align-items: center; gap: 1em; }
.avatar.editar-vista { width: 84px; height: 84px; margin: 0; flex: none; }
.avatar.editar-vista .inicial { font-size: 2.2em; }
.editar-foto .button { position: relative; font-size: .9em; padding: .6em 1.2em; }
.editar-foto input[type="file"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.editar-foto .button:focus-within { outline: 2px solid var(--verde); outline-offset: 2px; }
.form-editar > label { display: flex; flex-direction: column; gap: .3em; font-size: .85em; color: var(--suave); }
.form-editar > label small { color: #bbb; }
.form-editar input[type="text"] {
	font: inherit;
	font-size: 1.1em;
	color: var(--texto);
	padding: .55em .7em;
	border: 1px solid #ccc;
	border-radius: 5px;
}
.form-editar > .button { align-self: flex-start; }

/* Ficha: Seguir + Enviar mensaje (visitante) o Crear post + Buzón (dueño) */
.perfil-acciones { display: flex; justify-content: center; align-items: center; gap: .6em; flex-wrap: wrap; margin: 1em 0; }
.boton-mensaje {
	display: inline-block;
	font-weight: 600;
	font-size: 1.05em;
	padding: .75em 1.8em;
	border-radius: 999px;
	border: 2px solid #ccc;
	color: var(--texto);
	text-decoration: none;
}
.boton-mensaje:hover { border-color: var(--texto); }
/* ---------- Posts ---------- */

.posts { margin-top: 3em; border-top: 1px solid var(--gris); padding-top: 1em; }
.posts h2 { font-weight: 300; font-size: 1.6em; letter-spacing: -0.02em; }
.posts .vacio { padding: 1.5em 0; }
.posts-grilla {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.2em;
	align-items: start;
}
.posts-grilla img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}
.posts-grilla time { display: block; color: var(--suave); font-size: .8em; margin-top: .4em; }
.volver { text-align: center; margin-top: 2em; }

@media (max-width: 480px) {
	.topbar-hola { display: none; }
	.grilla { grid-template-columns: repeat(2, 1fr); gap: .5em; }
	.avatar { width: 96px; height: 96px; }
	.rec-fila { grid-template-columns: 1fr; }
	.rec-hecho-form { grid-template-columns: 1fr; }
	.bit-lista li { flex-wrap: wrap; }
	.bit-acciones { flex-direction: row; align-items: center; }
	.notif-panel { position: fixed; top: 60px; right: 12px; left: 12px; width: auto; }
}
