/* Recetas Ronin — MVP tarjeta canónica (estilo Sumiller/Vida) */

.recetas-screen {
  min-height: 100%;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0f1119 0%, #12141f 40%, #0b0d17 100%);
  color: #e8eaf0;
}

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

.rec-header-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rec-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  cursor: pointer;
  padding: 0;
}

.rec-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.rec-subtitle {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: rgba(232, 234, 240, 0.62);
}

.rec-search-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.rec-search-input {
  flex: 1;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 0 14px;
  font-size: 15px;
}

.rec-search-btn {
  flex-shrink: 0;
  min-width: 88px;
}

.rec-btn-primary,
.rec-btn-ghost {
  min-height: 44px;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.rec-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a1207;
}

.rec-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rec-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.rec-loading,
.rec-error {
  margin: 0 0 12px;
  font-size: 14px;
}

.rec-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(253, 230, 138, 0.9);
}

.rec-spin {
  display: inline-block;
  animation: rec-spin 1s linear infinite;
}

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

.rec-error {
  color: #fca5a5;
}

.rec-section-label {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(232, 234, 240, 0.5);
}

.rec-catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rec-catalog-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  color: inherit;
}

.rec-catalog-img {
  display: block;
  height: 96px;
  background-size: cover;
  background-position: center;
}

.rec-catalog-body {
  padding: 10px 12px 12px;
}

.rec-catalog-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.rec-catalog-body small {
  color: rgba(232, 234, 240, 0.55);
  font-size: 11.5px;
}

.rec-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(18, 20, 31, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.rec-card-hero {
  position: relative;
  min-height: 180px;
}

.rec-card-hero img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.rec-card-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
}

.rec-card-hero h2 {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.rec-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 0;
}

.rec-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.rec-dif-facil { color: #86efac; border-color: rgba(134, 239, 172, 0.25); }
.rec-dif-media { color: #fde68a; border-color: rgba(253, 230, 138, 0.25); }
.rec-dif-dificil { color: #fca5a5; border-color: rgba(252, 165, 165, 0.25); }

.rec-section {
  padding: 16px;
}

.rec-section h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.rec-ing-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rec-ing-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.rec-ing-item input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #f59e0b;
}

.rec-ing-done span {
  text-decoration: line-through;
  opacity: 0.55;
}

.rec-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  line-height: 1.45;
}

.rec-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 18px;
}

.rec-cook-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 6, 12, 0.88);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.rec-cook-card {
  width: min(480px, 100%);
  border-radius: 20px;
  background: #151823;
  border: 1px solid rgba(251, 191, 36, 0.2);
  padding: 18px;
}

.rec-cook-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: #fde68a;
  font-weight: 700;
}

.rec-cook-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}

.rec-cook-text {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.rec-cook-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.rec-cook-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.rec-cook-dot.active {
  background: #f59e0b;
  transform: scale(1.15);
}

.rec-cook-nav {
  display: flex;
  gap: 10px;
}

.rec-cook-nav .rec-btn-ghost,
.rec-cook-nav .rec-btn-primary {
  flex: 1;
}

.hidden {
  display: none !important;
}

body.recetas-view .topbar,
body.recetas-view .ronin-voice-float {
  display: none !important;
}

body.recetas-view .main.recetas-active {
  padding: 0;
}

@media (min-width: 720px) {
  .rec-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
