/* =================================================================
   RECIPES — Listado y Detalle (estilo Oishii Dark)
   ================================================================= */

:root {
  --primary: #ff6b6b;
  --primary-hover: #ff5252;
  --bg: #1a1a1a;
  --bg-alt: #212121;
  --surface: #2a2a2a;
  --surface-light: #333333;
  --surface-border: #3d3d3d;
  --text: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #6b6b6b;
  --success: #4cd964;
  --warning: #ffd60a;
  --error: #ff453a;
  --info: #33b8cc;
}

/* ─── Layout base ──────────────────────────────────────── */
.recipes-page {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 72px;
}

.recipes-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Hero del listado ─────────────────────────────────── */
.recipes-hero {
  padding: 64px 24px 40px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 107, 0.15) 0%, transparent 70%);
}

.recipes-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 9999px;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.recipes-hero__title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.1;
}

.recipes-hero__title-accent {
  color: var(--primary);
}

.recipes-hero__subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ─── Buscador ─────────────────────────────────────────── */
.recipes-toolbar {
  display: flex;
  justify-content: center;
  padding: 24px 0 32px;
}

.recipes-search {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.recipes-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.recipes-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
}

.recipes-search input::placeholder {
  color: var(--text-muted);
}

.recipes-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 20px;
  pointer-events: none;
}

/* ─── Grid de recetas ──────────────────────────────────── */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding-bottom: 80px;
}

@media (max-width: 600px) {
  .recipes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ─── Recipe card (estilo Oishii app) ─────────────────── */
.recipe-card {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.recipe-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-light);
}

.recipe-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
}

.recipe-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.25) 75%,
    rgba(0, 0, 0, 0.85) 100%
  );
}

.recipe-card__top {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.recipe-card__badge-new {
  background: var(--primary);
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.recipe-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.recipe-card__rating .material-symbols-rounded {
  font-size: 13px;
  color: var(--warning);
}

.recipe-card__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
}

.recipe-card__title {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recipe-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recipe-card__author {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.recipe-card__avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.recipe-card__avatar .material-symbols-rounded {
  font-size: 14px;
  color: var(--text-muted);
}

.recipe-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-card__author-name {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipe-card__time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  flex-shrink: 0;
}

.recipe-card__time .material-symbols-rounded {
  font-size: 13px;
}

/* ─── Skeletons ────────────────────────────────────────── */
.recipe-skeleton {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Empty state ──────────────────────────────────────── */
.recipes-empty {
  grid-column: 1 / -1;
  padding: 80px 24px;
  text-align: center;
  color: var(--text-secondary);
}

.recipes-empty .material-symbols-rounded {
  font-size: 56px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.recipes-empty h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}

.recipes-empty p {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
}

/* ─── Pagination / infinite scroll ────────────────────── */
.recipes-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.recipes-loadmore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 16px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
}

.recipes-loadmore__spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--surface-light);
  border-top-color: var(--primary);
  animation: recipesSpin 0.8s linear infinite;
}

@keyframes recipesSpin {
  to { transform: rotate(360deg); }
}

.recipes-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 16px 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.recipes-end .material-symbols-rounded {
  font-size: 28px;
  color: var(--primary);
  opacity: 0.6;
}

.recipes-end p {
  margin: 0;
}

/* ─── Ad card en el grid (mismo tamaño que recipe-card) ─── */
.recipe-card--ad {
  background: var(--surface);
  border-radius: 16px;
  overflow: visible;
  display: block;
  border: 1px dashed var(--surface-border);
  min-height: 250px;
}

.recipe-card--ad .adsbygoogle {
  display: block;
  width: 100%;
  min-height: 250px;
}

/* ─── Banners AdSense en el detalle de receta ──────────── */
.recipe-ad-banner {
  margin: 20px 0;
  border-radius: 12px;
  overflow: visible;
  background: transparent;
  min-height: 90px;
}

.recipe-ad-banner__ins {
  display: block;
  width: 100%;
}

/* ─── Modo Cocina ──────────────────────────────────────── */
.recipe-cooking-mode {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  margin: 24px 0;
  background: linear-gradient(135deg, #ff6b6b 0%, #e05555 100%);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.35);
}

.recipe-cooking-mode:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 107, 107, 0.45);
}

.recipe-cooking-mode:active {
  transform: translateY(0);
}

.recipe-cooking-mode__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.recipe-cooking-mode__icon .material-symbols-rounded {
  font-size: 28px;
  color: #fff;
}

.recipe-cooking-mode__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.recipe-cooking-mode__title {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.recipe-cooking-mode__sub {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
}

.recipe-cooking-mode__arrow {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

/* =================================================================
   DETALLE DE RECETA
   ================================================================= */

/* ─── Hero image ───────────────────────────────────────── */
.recipe-detail {
  padding-top: 0;
  background: var(--bg);
  min-height: 100vh;
}

.recipe-hero {
  position: relative;
  width: 100%;
  height: 56vh;
  min-height: 320px;
  max-height: 560px;
  background: var(--surface);
  overflow: hidden;
}

.recipe-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 30%,
    transparent 60%,
    rgba(26, 26, 26, 0.6) 85%,
    var(--bg) 100%
  );
}

.recipe-hero__back {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  text-decoration: none;
  z-index: 2;
}

.recipe-hero__back:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* ─── Contenido ────────────────────────────────────────── */
.recipe-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 120px;
  margin-top: -40px;
  position: relative;
  z-index: 1;
}

.recipe-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 16px;
}

.recipe-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.recipe-author__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface-border);
  overflow: hidden;
}

.recipe-author__avatar .material-symbols-rounded {
  font-size: 24px;
  color: var(--text-muted);
}

.recipe-author__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-author__name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.recipe-author__label {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.recipe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.recipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid;
}

.recipe-badge .material-symbols-rounded {
  font-size: 13px;
}

.recipe-badge--difficulty-easy { color: var(--success); border-color: rgba(76, 217, 100, 0.4); background: rgba(76, 217, 100, 0.15); }
.recipe-badge--difficulty-medium { color: var(--warning); border-color: rgba(255, 214, 10, 0.4); background: rgba(255, 214, 10, 0.15); }
.recipe-badge--difficulty-hard { color: #ff9500; border-color: rgba(255, 149, 0, 0.4); background: rgba(255, 149, 0, 0.15); }
.recipe-badge--difficulty-expert { color: var(--error); border-color: rgba(255, 69, 58, 0.4); background: rgba(255, 69, 58, 0.15); }
.recipe-badge--published { color: var(--success); border-color: rgba(76, 217, 100, 0.4); background: rgba(76, 217, 100, 0.15); }

.recipe-description {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* ─── Métricas ─────────────────────────────────────────── */
.recipe-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 32px;
}

@media (max-width: 500px) {
  .recipe-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.recipe-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
}

.recipe-metric .material-symbols-rounded {
  font-size: 24px;
  color: var(--primary);
  margin-bottom: 6px;
}

.recipe-metric__value {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.recipe-metric__label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Tabs ─────────────────────────────────────────────── */
.recipe-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--surface-border);
  margin-bottom: 24px;
}

.recipe-tab {
  flex: 1;
  padding: 14px 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.recipe-tab:hover {
  color: var(--text);
}

.recipe-tab--active {
  color: var(--text);
  border-bottom-color: var(--primary);
}

.recipe-tab .material-symbols-rounded {
  font-size: 18px;
}

.recipe-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.recipe-tab-content--active {
  display: block;
}

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

/* ─── Ingredientes ─────────────────────────────────────── */
.recipe-section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 16px 0 12px;
}

.recipe-ingredient {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recipe-ingredient:last-child {
  border-bottom: none;
}

.recipe-ingredient__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.recipe-ingredient__info {
  flex: 1;
  min-width: 0;
}

.recipe-ingredient__name {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  text-transform: capitalize;
}

.recipe-ingredient__qty {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.recipe-ingredient__optional {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  margin-left: 6px;
}

/* ─── Pasos ────────────────────────────────────────────── */
.recipe-step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recipe-step:last-child {
  border-bottom: none;
}

.recipe-step__number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.recipe-step__body {
  flex: 1;
}

.recipe-step__description {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.recipe-step__timer {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 107, 107, 0.15);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}

.recipe-step__image {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 100%;
}

.recipe-step__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Nutrición ────────────────────────────────────────── */
.recipe-nutrition {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.recipe-nutrition__title {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-nutrition__title .material-symbols-rounded {
  color: var(--primary);
}

.recipe-nutrition__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.recipe-nutrition__item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.recipe-nutrition__value {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.recipe-nutrition__label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ─── Notas ────────────────────────────────────────────── */
.recipe-notes {
  margin-top: 36px;
  padding: 20px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 16px;
}

.recipe-notes__title {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recipe-notes__text {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ─── CTA Descarga app ─────────────────────────────────── */
.recipe-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #fff;
  padding: 14px 22px;
  border: none;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recipe-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 107, 107, 0.55);
  color: #fff;
}

.recipe-cta .material-symbols-rounded {
  font-size: 20px;
}

@media (max-width: 500px) {
  .recipe-cta {
    right: 16px;
    bottom: 16px;
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* ─── Modal descarga ───────────────────────────────────── */
.download-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.download-modal.show {
  display: flex;
}

.download-modal__content {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  border: 1px solid var(--surface-border);
}

.download-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 4px 10px;
}

.download-modal__close:hover {
  color: var(--text);
}

.download-modal__logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}

.download-modal__title {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.download-modal__subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.download-modal__stores {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.download-modal__stores a {
  display: block;
  transition: transform 0.2s ease;
}

.download-modal__stores a:hover {
  transform: translateY(-2px);
}

.download-modal__android-btn {
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.download-modal__android-btn:hover {
  transform: translateY(-2px);
}

.download-modal__stores img {
  height: 52px;
  width: auto;
}

/* ─── Error / Loading ──────────────────────────────────── */
.recipe-loading,
.recipe-error {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 20px;
}

.recipe-loading__spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--surface);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin-bottom: 18px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.recipe-error .material-symbols-rounded {
  font-size: 52px;
  color: var(--error);
  margin-bottom: 14px;
}

.recipe-error h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 8px;
}

.recipe-error p {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  margin-bottom: 24px;
}

.recipe-error__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
}

/* ─── CTA card dentro del grid ─────────────────────────── */
.recipe-card--cta {
  border: none;
  padding: 0;
  background: var(--surface);
}

.recipe-card--cta__gradient {
  background: rgb(0 0 0 / 50%);
}

.recipe-card--cta__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  text-align: center;
  z-index: 1;
  gap: 5px;
}

.recipe-card--cta__icon {
  font-size: 36px !important;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2px;
  display: block;
}

.recipe-card--cta__title {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  margin: 0;
  line-height: 1.2;
}

.recipe-card--cta__features {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}

.recipe-card--cta__features > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 3px 10px;
}

.recipe-card--cta__features span .material-symbols-rounded {
  font-size: 14px !important;
  color: var(--primary);
}

.recipe-card--cta__sub {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.recipe-card--cta__btn {
  display: inline-block;
  margin-top: 6px;
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 9999px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 107, 107, 0.5);
}

.recipe-card--cta:hover .recipe-card--cta__btn {
  background: var(--primary-hover);
}

.recipe-error__btn:hover {
  background: var(--primary-hover);
  color: #fff;
}
