:root {
  --bg: radial-gradient(circle at 20% 20%, #f7f0ff, transparent 30%),
    radial-gradient(circle at 80% 0%, #e5f4ff, transparent 25%),
    radial-gradient(circle at 50% 100%, #fff5e6, transparent 35%),
    #f8fafc;
  --panel: #ffffff;
  --ink: #231f1d;
  --muted: #6a5f58;
  --primary: #ff7043;
  --primary-strong: #f55c2c;
  --border: #f2e6dc;
  --accent: #ffd166;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Baskerville", "Hoefler Text", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  padding: 24px;
}

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--ink);
}

.hero {
  max-width: 1100px;
  margin: 0 auto 20px;
  text-align: left;
  position: relative;
}

.auth-actions {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 10px;
}

.hero-actions {
  margin-top: 12px;
}

.search-bar {
  max-width: 1100px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff8f2;
  font: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.sort-select {
  width: 100%;
  padding: 12px 14px;
  padding-right: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff8f2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238c6f62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
  background-size: 14px;
  font: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus,
.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 112, 67, 0.15);
  background: #fff;
}

#toggle-filters {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff8f2;
  font: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#toggle-filters:hover {
  background: #fff1e7;
}

#toggle-filters:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 112, 67, 0.15);
  background: #fff;
}

.filters-panel {
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.filters-group {
  display: grid;
  gap: 10px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.filters-actions {
  display: flex;
  justify-content: flex-end;
}

.auth-user {
  align-self: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: #fff3ec;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 112, 67, 0.1);
  color: var(--primary-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lead {
  margin-top: 10px;
  font-size: 1.05rem;
  color: var(--muted);
}

.layout {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.panel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
}

.field input,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff8f2;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 112, 67, 0.15);
  background: #fff;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

small {
  font-weight: 400;
}

button,
.file-label {
  font: inherit;
  cursor: pointer;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  width: fit-content;
  border-radius: 999px;
  padding-inline: 20px;
  box-shadow: 0 10px 30px rgba(255, 112, 67, 0.25);
}

.primary:active {
  transform: translateY(1px);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

.ghost:hover {
  background: #fff7f1;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
  text-decoration: none;
}

.back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  border-color: #cbd5e1;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview {
  background: #fff9f3;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 140px;
  display: grid;
  place-content: center;
  text-align: center;
}

.preview img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.recetas-list {
  display: grid;
  gap: 14px;
}

.receta {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fffdf9;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 200px;
  grid-template-areas:
    "head media"
    "body media"
    "meta meta";
  gap: 12px;
}

.receta-header {
  grid-area: head;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.receta-title {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.receta-summary {
  color: var(--muted);
  margin-top: 4px;
  margin-bottom: 8px;
}

.receta-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}

.receta-media {
  grid-area: media;
}

.receta-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.receta-body {
  grid-area: body;
  margin-top: 0;
}

.receta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.category-badge {
  background: #eef0ff;
  color: #3e3a7a;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.receta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  background: #f2f7f5;
  color: #2f4f4f;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid #e0ece6;
  font-size: 12px;
  font-weight: 600;
}

.star-btn {
  min-width: 44px;
  background: #fff7e6;
  border: 1px solid #f5d7a7;
  color: #b26b00;
  font-size: 18px;
}

.star-btn.starred {
  background: #ffedc2;
  border-color: #f0c36a;
  color: #b26b00;
}

.edit-btn {
  background: #eef5ff;
  border: 1px solid #cddcfa;
  color: #1d4ed8;
  font-weight: 500;
}

.edit-btn:hover {
  background: #ddebff;
}

.danger {
  color: #b42318;
  border: 1px solid #f3c8c2;
  background: #fff3f0;
}

.danger:hover {
  background: #ffe8e3;
}

.pill {
  display: inline-block;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  margin: 10px 0 6px;
}

.receta-list {
  margin: 0 0 8px 16px;
  color: var(--ink);
  padding-left: 18px;
}

.receta-list li + li {
  margin-top: 4px;
}

.receta-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 31, 29, 0.38);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 20;
}

.login-overlay[hidden] {
  display: none !important;
}

.login-card {
  width: min(480px, 100%);
  background: var(--panel);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}

.login-card h2 {
  margin: 8px 0 6px;
}

.login-card .muted {
  margin-bottom: 8px;
}

.login-error {
  margin: 0;
  color: #b42318;
  background: #fff3f0;
  border: 1px solid #f3c8c2;
  padding: 10px 12px;
  border-radius: 10px;
}

.close-login {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
}

.hidden {
  display: none !important;
}

.empty {
  text-align: center;
  padding: 32px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  background: #fffaf4;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: grid;
  place-items: center;
  z-index: 40;
  padding: 20px;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.image-lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 10px;
}

.tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff9f3;
}

.tag-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.category-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff9f3;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.user-menu-wrap {
  position: relative;
  display: none;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.user-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  padding: 6px;
  min-width: 200px;
  display: none;
  z-index: 10;
  animation: fadeDown 180ms ease;
}

.user-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
}

.user-menu button:hover {
  background: #f3f4f6;
}

.user-menu .danger:hover {
  background: #fee2e2;
}

.auth-user-name {
  font-weight: 600;
}

#login-toggle {
  visibility: hidden;
}

.author-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.author-link:hover {
  text-decoration: underline;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(2px);
}

.confirm-modal {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
  max-width: 360px;
  width: 90%;
  text-align: center;
  display: grid;
  gap: 14px;
  animation: fadeDown 180ms ease;
}

.confirm-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#confirm-accept {
  background: #fef2f2;
  border-color: #fca5a5;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
}

.auth-shell {
  width: min(1080px, 100%);
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.auth-hero {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.auth-hero h1 {
  font-size: 28px;
  margin: 0;
}

.auth-hero p {
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

.auth-card {
  border-radius: 16px;
  box-shadow: 0 14px 45px rgba(15, 23, 42, 0.12);
  padding: 28px;
  background: white;
}

.auth-card h1 {
  margin: 6px 0 16px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #6b7280;
  font-size: 14px;
  margin: 12px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #e5e7eb;
}

.social-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-weight: 600;
  cursor: pointer;
}

.social-btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.auth-status {
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef2ff;
  color: #312e81;
  font-weight: 600;
}

.auth-status.error {
  background: #fef2f2;
  color: #991b1b;
}

.auth-status.success {
  background: #ecfdf3;
  color: #065f46;
}

.auth-actions {
  text-align: center;
}

.linklike {
  padding: 0;
  color: #2563eb;
}

.auth-actions-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.auth-actions-row button {
  flex: 1 1 auto;
}

.signup-link {
  margin-top: 16px;
}

.results-shell {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}

.results-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 16px;
}

.back-row {
  display: flex;
  justify-content: flex-start;
}

.results-list {
  display: grid;
  gap: 10px;
}

.result-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.result-card a {
  text-decoration: none;
  color: inherit;
}

.page-search .muted {
  color: #6b7280;
}

.page-recipe-view {
  background: radial-gradient(circle at 20% 20%, #fff0e6, transparent 30%),
    radial-gradient(circle at 80% 0%, #e5f4ff, transparent 25%),
    radial-gradient(circle at 50% 100%, #fff5e6, transparent 35%),
    #f8fafc;
}

.page-recipe-view .recipe-view-shell {
  max-width: 960px;
  margin: 32px auto;
  padding: 0 16px;
}

.page-recipe-view .recipe-view-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
  display: grid;
  gap: 18px;
}

.page-recipe-view .recipe-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-auto-rows: auto;
  gap: 8px 12px;
  align-items: start;
}

.page-recipe-view .meta {
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  grid-column: 2;
  grid-row: 1 / span 3;
  justify-self: end;
}

.page-recipe-view .author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  text-decoration: none;
  color: inherit;
}

.page-recipe-view .author-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.page-recipe-view .recipe-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  display: block;
}

.page-recipe-view .section {
  display: grid;
  gap: 8px;
  align-items: flex-start;
}

.page-recipe-view .section .pill {
  width: fit-content;
}

.page-recipe-view .content-box {
  background: #fffdf9;
  border: 1px solid #f2e6dc;
  border-radius: 12px;
  padding: 12px 14px;
  display: inline-block;
  max-width: 100%;
}

.page-recipe-view .badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-recipe-view .chip {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f7f9fc;
  font-weight: 600;
  color: #374151;
}

.page-recipe-view .list {
  margin: 0;
  padding-left: 18px;
  color: #374151;
}

.page-recipe-view .list li + li {
  margin-top: 6px;
}

.page-profile .profile-shell {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
  display: flex;
  justify-content: center;
}

.page-profile .profile-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  width: 100%;
}

.page-profile .profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.page-profile .profile-header h1 {
  margin: 0;
}

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

.page-profile .profile-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.page-profile .avatar-box {
  border: 1px dashed #d1d5db;
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
  background: #f9fafb;
}

.page-profile .avatar-preview {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  background: #fff;
}

.page-profile .hidden-file {
  display: none;
}

.page-profile .drop-area {
  width: 100%;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 6px;
  justify-items: center;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.page-profile .drop-area.dragover {
  border-color: #2563eb;
  background: #eff6ff;
}

.page-profile .status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef2ff;
  color: #312e81;
  font-weight: 600;
}

.page-profile .status.error {
  background: #fef2f2;
  color: #991b1b;
}

.page-profile .status.success {
  background: #ecfdf3;
  color: #065f46;
}

.page-profile-view .profile-shell {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}

.page-profile-view .profile-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 16px;
}

.page-profile-view .profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
}

.page-profile-view .profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  background: #fff;
}

.page-profile-view .muted {
  color: #6b7280;
}

.page-profile-view .recipes-list {
  display: grid;
  gap: 10px;
}

.page-profile-view .recipe-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 6px;
}

.page-profile-view .recipe-card a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 820px) {
  body {
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .receta {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "media"
      "body"
      "meta";
  }

  .receta-media {
    order: 2;
  }

  .receta-body {
    order: 3;
  }

  .receta-actions {
    position: static;
    margin-top: 8px;
    justify-content: flex-start;
  }

  .auth-actions {
    position: static;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }

  .hero {
    padding-top: 8px;
  }

  .receta {
    padding: 14px;
  }

  .receta-actions button {
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .auth-actions {
    gap: 6px;
  }
}
