:root {
  --bg: #fffdf5;
  --card: #ffffff;
  --ink: #14120f;
  --muted: #6b6558;
  --border: #000000;
  --ring-fill: #e8e6e0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 6px 6px 0 0 rgba(0, 0, 0, 1);
  --shadow-sm: 3px 3px 0 0 rgba(0, 0, 0, 1);

  --blue: #2563eb;
  --blue-tint: #d6e8ff;
  --yellow: #fde047;
  --comida: #b7dc98;
  --pink: #f9a8d4;
  --paseo: #fdab6e;
  --ok-bg: #bbf7d0;
  --err-bg: #fecaca;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px 48px;
}

::selection { background: var(--yellow); color: var(--ink); }

h1, .app-name, .dog-name-big, .dog-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: 420px;
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  text-align: center;
}

.subtitle {
  color: var(--muted);
  text-align: center;
  margin: 0 0 28px;
  font-size: 0.95rem;
}

.card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="email"],
input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  box-shadow: var(--shadow-sm);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.btn-primary {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--border);
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-primary:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow);
}

.btn-primary:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.btn-primary:disabled {
  opacity: 0.6;
}

.btn-secondary {
  width: 100%;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--border);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn-secondary:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow);
}

.btn-secondary:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.btn-link {
  background: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  padding: 8px;
}

.msg {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  display: none;
}

.msg.show { display: block; }
.msg.ok { background: var(--ok-bg); color: var(--ink); }
.msg.err { background: var(--err-bg); color: var(--ink); }

.dog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 2px dashed var(--border);
}

.dog-item:last-child { border-bottom: none; }

.dog-body {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
  cursor: pointer;
}

.dog-name {
  font-size: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}

.avatar {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 2rem;
}

.avatar-lg {
  width: 96px;
  height: 96px;
  margin: 0 auto 12px;
  border-width: 3px;
}

.avatar-clickable {
  cursor: pointer;
}

.avatar-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0);
  z-index: 300;
  transition: background 0.3s ease;
}

.avatar-zoom-overlay.open {
  background: rgba(20, 18, 15, 0.6);
}

.avatar-zoom-img {
  position: fixed;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  transition: top 0.3s ease, left 0.3s ease, width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
}

.avatar-lg .avatar-placeholder {
  font-size: 2.6rem;
}

.cropper-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.cropper-box {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  width: 100%;
  max-width: 340px;
}

.cropper-title {
  font-weight: 700;
  margin: 0 0 14px;
  text-align: center;
}

.cropper-viewport {
  width: 280px;
  height: 280px;
  max-width: 100%;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  touch-action: none;
  position: relative;
  background: #000;
  cursor: grab;
}

.cropper-viewport img {
  position: absolute;
  top: 0;
  left: 0;
  user-select: none;
  -webkit-user-drag: none;
}

#cropper-zoom {
  width: 100%;
  margin-bottom: 14px;
}

.cropper-actions {
  display: flex;
  gap: 10px;
}

.cropper-actions button {
  flex: 1;
  margin-top: 0;
}

.icon-btn {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.icon-btn:hover {
  background: var(--pink);
  box-shadow: var(--shadow-sm);
  transform: translate(-1px, -1px);
}

.icon-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.icon-btn:disabled:hover {
  background: var(--bg);
  box-shadow: none;
  transform: none;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 20px 0;
  font-size: 0.9rem;
}

.topbar {
  width: 100%;
  max-width: 420px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Sticky y opaca en el borde superior: en iOS 26 (app en la pantalla de inicio) WebKit no pinta su
     desenfoque Liquid Glass sobre la cabecera si la cubre algo así (segundo intento en Atlas OS, igual que
     la franja .status-strip). Sube hasta el borde de la pantalla compensando el padding del body. */
  position: sticky;
  top: 0;
  z-index: 29;
  margin-top: calc(-1 * max(24px, env(safe-area-inset-top)));
  padding: max(24px, env(safe-area-inset-top)) 0 12px;
  margin-bottom: 8px;
}

/* fondo opaco de la cabecera a todo el ancho de la pantalla */
.topbar::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100vmax;
  right: -100vmax;
  background: var(--bg);
  z-index: -1;
}

html, body {
  overflow-x: clip;
}

.topbar .app-name {
  cursor: pointer;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.menu-wrap {
  position: relative;
}

.menu-btn {
  background: rgba(20, 18, 15, 0.08);
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}

.menu-btn svg {
  display: block;
  stroke-width: 2.5;
}

.menu-btn:hover {
  background: var(--yellow);
}

.topbar .menu-btn {
  width: 52px;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}

.menu-dropdown[hidden] {
  display: none;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 8px;
  text-align: left;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.menu-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.menu-icon svg {
  display: block;
  margin: 0 auto;
}

.menu-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item:hover {
  background: var(--yellow);
}

.menu-item:disabled {
  opacity: 0.45;
  cursor: default;
}

.menu-item:disabled:hover {
  background: none;
}

.dog-header {
  text-align: center;
  margin-bottom: 24px;
}

.dog-name-big {
  font-size: 1.9rem;
  margin: 0;
}

.summary-time {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.summary-time-empty {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-btn {
  flex: 1;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.tab-btn.active {
  background: var(--yellow);
  box-shadow: var(--shadow-sm);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
}

.pagination-info {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.action-btn {
  border: 3px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 28px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  color: var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.action-btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.action-btn .emoji {
  font-size: 2.8rem;
  line-height: 1;
}

.action-btn.pipi { background: var(--blue-tint); }
.action-btn.caca { background: var(--yellow); }
.action-btn.comida { background: var(--comida); }
.action-btn.paseo { background: var(--paseo); }

.action-btn.comida .emoji,
.ring-btn.comida .emoji {
  transform: scaleX(-1);
}

/* Diseño 2 (Pencil "opción 2"): 3 botones en fila, cada uno con su tarjeta de hora debajo */
.action-buttons.design2 {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.action-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-col .action-btn {
  padding: 20px 6px;
  flex: 1;
}

.action-col .emoji {
  font-size: 2.2rem;
}

.action-col .time-card,
.action-col .summary-time {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 6px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-size: 0.9rem;
}

/* Diseño 6 (Pencil "opción 6"): anillo con el avatar en el centro y 3 botones redondos en el borde */
.ring-card {
  text-align: center;
  margin-bottom: 28px;
}

.ring-cluster {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 28px;
}

.ring-outline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--ring-fill);
  box-shadow: var(--shadow-sm);
}

.ring-cluster .avatar-lg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border-color: #b3afa4;
}

.ring-btn {
  position: absolute;
  width: 80px;
  height: 80px;
  margin-top: -40px;
  margin-left: -40px;
  border-radius: 50%;
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.ring-btn:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.ring-btn .emoji {
  font-size: 2.1rem;
  line-height: 1;
}

.ring-btn.pipi { background: var(--blue-tint); }
.ring-btn.caca { background: var(--yellow); }
.ring-btn.comida { background: var(--comida); }
.ring-btn.paseo { background: var(--paseo); }

.ring-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 8px;
  margin-top: 12px;
}

.legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.legend-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.legend-item .summary-time {
  font-size: 0.95rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: inline-block;
}

.legend-dot.pipi { background: var(--blue-tint); }
.legend-dot.caca { background: var(--yellow); }
.legend-dot.comida { background: var(--comida); }
.legend-dot.paseo { background: var(--paseo); }

.log-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px 4px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-header .log-title {
  margin: 0;
}

.toggle-add-btn {
  background: var(--blue);
  border: none;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.toggle-add-btn:hover {
  transform: scale(1.05);
}

.log-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 2px dashed var(--border);
}

.log-item:last-child { border-bottom: none; }

.log-emoji {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 999px;
}

.log-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.log-menu-btn {
  background: none;
  border: none;
  padding: 6px;
  flex-shrink: 0;
  color: var(--muted);
  border-radius: 999px;
}

.note-btn {
  background: none;
  border: none;
  padding: 6px;
  flex-shrink: 0;
  color: var(--blue);
}

.note-btn svg {
  display: block;
}

.log-menu .menu-item[data-action="note"] .menu-icon {
  color: var(--blue);
}

.log-menu-btn svg {
  display: block;
}

.log-menu {
  min-width: 180px;
}

.log-type {
  font-weight: 700;
  font-size: 0.95rem;
}

.log-time {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}

.log-actor {
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.8;
}

.loading, .center-msg {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

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

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  max-width: 320px;
  text-align: center;
}

.modal-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.modal-text {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.modal-actions button {
  flex: 1;
  margin-top: 0;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 2px solid var(--border);
}

.member-row:last-child { border-bottom: none; }

.member-name { flex: 1; font-weight: 700; }

.member-role-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.member-remove-btn {
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg);
}

/* iOS 26, app en la pantalla de inicio: el sistema pinta un desenfoque Liquid Glass sobre el borde superior
   (tapa el logo y el menú). WebKit lo omite cuando un bloque fijo de color opaco cubre ese borde; esta franja
   ocupa justo la zona de la barra de estado. En el navegador la zona segura mide 0 y no existe.
   Misma solución que en Atlas OS. */
.status-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: env(safe-area-inset-top);
  background: var(--bg);
  z-index: 28;
  pointer-events: none;
}

/* Login: el logo hace de cabecera sticky y opaca, igual que en el resto de páginas */
.topbar-center {
  justify-content: center;
}

.topbar-center h1 {
  margin: 0;
}

/* Borrado de cuenta */
.menu-item-danger,
.menu-item-danger .menu-icon {
  color: #b91c1c;
}

.delete-summary {
  text-align: left;
  font-size: 0.88rem;
  margin: 12px 0;
}

.delete-summary p {
  margin: 0 0 8px;
}

.delete-label {
  display: block;
  text-align: left;
  font-size: 0.8rem;
  margin: 10px 0 6px;
}

.btn-danger {
  background: #dc2626;
}

/* Plan gratuito / Premium */
.plan-banner {
  background: var(--yellow);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 16px;
  box-shadow: var(--shadow-sm);
}

.plan-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin: 14px 0 0;
}

.plan-cta {
  display: inline-block;
  width: auto;
  padding: 11px 22px;
  text-decoration: none;
  color: var(--ink);
}

.is-read-only {
  opacity: 0.45;
}

.locked-card {
  text-align: center;
  padding: 8px 4px;
}

.locked-emoji {
  font-size: 2rem;
  margin: 0 0 6px;
}

.premium-box {
  max-width: 340px;
}

.premium-status {
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0 0 12px;
}

.premium-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: left;
  margin-bottom: 12px;
}

.premium-compare > div {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.premium-compare > div:last-child {
  background: var(--yellow);
}

.premium-col-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 0 6px;
}

.premium-compare ul {
  margin: 0;
  padding-left: 16px;
  font-size: 0.8rem;
}

.premium-compare li + li {
  margin-top: 4px;
}

/* Estadísticas */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-card {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-emoji { font-size: 1.3rem; }
.stat-big { font-size: 1.5rem; font-weight: 800; }
.stat-small { font-size: 0.7rem; color: var(--muted); }

.stats-h {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  margin: 20px 0 8px;
}

.stats-svg {
  width: 100%;
  height: auto;
  display: block;
}

.stats-legend {
  display: flex;
  gap: 14px;
  justify-content: center;
  font-size: 0.78rem;
  margin-top: 6px;
}

.stats-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stats-hour + .stats-hour {
  margin-top: 10px;
}

.stats-hour-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.stats-muted {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 2px dashed var(--border);
  font-size: 0.88rem;
}

.stat-row:last-child { border-bottom: none; }

/* Paseo: botones que se adaptan al número de acciones activas */
.action-buttons.design2.n-1 { grid-template-columns: 1fr; }
.action-buttons.design2.n-2 { grid-template-columns: repeat(2, 1fr); }
.action-buttons.design2.n-3 { grid-template-columns: repeat(3, 1fr); }
.action-buttons.design2.n-4 { grid-template-columns: repeat(2, 1fr); }
.action-buttons.design2.n-4 .action-col .action-btn { padding: 22px 6px; }
.action-buttons.design2.n-4 .action-col .emoji { font-size: 2.4rem; }

.ring-legend.n-1 { grid-template-columns: 1fr; }
.ring-legend.n-2 { grid-template-columns: repeat(2, 1fr); }
.ring-legend.n-4 { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }

/* Modal de duración del paseo */
.duration-box { width: 100%; max-width: 320px; }
.duration-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}
.duration-opt {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 12px 4px;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.duration-opt.selected { background: var(--paseo); }
.duration-opt:active { transform: translate(2px, 2px); box-shadow: none; }
.duration-custom { text-align: left; margin-top: 14px; }
.duration-custom label { display: block; font-size: 0.8rem; margin-bottom: 6px; }
.duration-skip {
  width: 100%;
  background: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 10px;
  padding: 8px;
  text-decoration: underline;
}


/* Página de perfil */
.profile-card { margin-bottom: 18px; }
.profile-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.profile-hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 12px; }
.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 2px solid var(--border);
}
.setting-row:last-of-type { border-bottom: none; }
.setting-row.is-disabled { opacity: 0.4; }
.setting-emoji { font-size: 1.5rem; width: 32px; text-align: center; }
.setting-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.setting-label { font-weight: 700; }
.setting-sub { font-size: 0.8rem; color: var(--muted); }
.switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: none;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--ring-fill);
  padding: 0;
  transition: background 0.12s ease;
}
.switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-sizing: border-box;
  background: var(--card);
  border: 2px solid var(--border);
  transition: transform 0.12s ease;
}
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.switch:disabled { cursor: not-allowed; }
.account-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 2px solid var(--border);
  font-size: 0.95rem;
}
.account-row strong { text-align: right; word-break: break-all; }
.account-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.account-actions .btn-secondary, .account-actions .btn-primary { margin-top: 0; }
.back-link { display: inline-block; margin: 0 0 12px 4px; font-weight: 700; text-decoration: none; }

/* Selector de diseño en el perfil */
.design-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lang-picker { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lang-picker .design-opt { padding: 14px 6px; }
.design-opt {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.design-opt.selected { background: var(--blue-tint); box-shadow: none; transform: translate(2px, 2px); }
.design-label { font-weight: 700; font-size: 0.95rem; }
.design-preview { width: 100%; height: 96px; display: flex; align-items: center; justify-content: center; }
.mini-grid { display: grid; gap: 6px; width: 100%; }
.mini-btn { height: 34px; border: 2px solid var(--border); border-radius: 8px; display: block; }
.mini-ring { position: relative; width: 96px; height: 96px; }
.mini-ring-core { position: absolute; inset: 22px; border-radius: 50%; background: var(--ring-fill); border: 2px solid var(--border); }
.mini-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid var(--border); }
.mini-btn.comida, .mini-dot.comida { background: var(--comida); }
.mini-btn.pipi, .mini-dot.pipi { background: var(--blue-tint); }
.mini-btn.caca, .mini-dot.caca { background: var(--yellow); }
.mini-btn.paseo, .mini-dot.paseo { background: var(--paseo); }

/* El emoji de comida se muestra invertido en toda la app (como en el botón de registrar) */
.flip { display: inline-block; transform: scaleX(-1); }

#premium-note { white-space: pre-line; }

.trial-notice {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 14px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
.trial-notice[hidden] { display: none; }

/* Iconos propios de las acciones (icons/acciones/): miden 1em, así heredan el tamaño que tenía el emoji */
.ico {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.14em;
  pointer-events: none;
  user-select: none;
}

/* Portada (index.html): página de destino de redes, anuncios y carteles */
.download-headline {
  font-family: 'Syne', sans-serif;
  font-size: 1.7rem;
  line-height: 1.15;
  text-align: center;
  margin: 4px 0 16px;
}
.download-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  text-align: center;
  color: var(--ink);
  font-size: 1rem;
}
.download-mock { margin-bottom: 24px; pointer-events: none; }
.download-mock .action-btn { padding: 20px 10px; }
.download-trial {
  background: var(--yellow);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 12px 14px;
  text-align: center;
  font-weight: 700;
  margin: 0 0 20px;
}
.download-cta {
  display: block;
  text-align: center;
  text-decoration: none;
}
.download-note {
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  margin: 8px 0 24px;
}
.download-install h3 { margin: 0 0 10px; font-size: 1.05rem; }
.download-install p { margin: 0 0 8px; font-size: 0.95rem; }
.download-install p:last-child { margin-bottom: 0; }
