/**
 * Estilos canónicos para el Generador de cenas familiares complementarias al menú del colegio
 * Fijate Tools
 */

:root {
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Paleta cromática corporativa (modo claro) */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-color: #0284c7;
  --accent-hover: #0369a1;
  --accent-light: #e0f2fe;

  --color-success: #16a34a;
  --color-success-bg: #dcfce7;
  --color-warning: #d97706;
  --color-warning-bg: #fef3c7;
  --color-danger: #dc2626;
  --color-danger-bg: #fee2e2;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

[data-theme="dark"] {
  --bg-page: #0b0f17;
  --bg-card: #131b26;
  --bg-subtle: #1c2635;
  --border-color: #263345;
  --border-hover: #37475f;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-color: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-light: rgba(56, 189, 248, 0.15);

  --color-success: #4ade80;
  --color-success-bg: rgba(74, 222, 128, 0.15);
  --color-warning: #fbbf24;
  --color-warning-bg: rgba(251, 191, 36, 0.15);
  --color-danger: #f87171;
  --color-danger-bg: rgba(248, 113, 113, 0.15);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
}

/* Reset y estructura básica */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6,
.brand-title,
.section-title,
.hero-title,
.faq-section-title {
  font-family: var(--font-heading);
}

.mono, code {
  font-family: var(--font-mono);
}

/* Contención canónica */
.tool-layout {
  max-width: 1200px;
  margin: 1.5rem auto 3rem;
  padding: 0 1rem;
  box-sizing: border-box;
  flex: 1 0 auto;
  width: 100%;
}

.tool-with-sidebar {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 100%;
}

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  width: 100%;
}

/* Hero y cabecera de la herramienta */
.tool-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.tool-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-light);
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.tool-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.tool-hero-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 850px;
}

/* Presets rápidos de comedores escolares */
.presets-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-label-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
}

.preset-card-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  min-height: 60px;
}

.preset-card-btn:hover {
  border-color: var(--accent-color);
  background: var(--bg-card);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.preset-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.preset-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.preset-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.25;
}

.preset-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Tarjeta del formulario de selección del menú */
.lunch-selector-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.menu-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.menu-option-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.group-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.button-options-column {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 42px;
  text-align: left;
  width: 100%;
}

.choice-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.choice-btn.is-selected {
  background: var(--accent-light);
  border-color: var(--accent-color);
  color: var(--accent-color);
  font-weight: 700;
}

.choice-btn .choice-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* Filtros y controles (tiempo, comensales, preferencias) */
.controls-toolbar {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.time-filter-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.time-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.time-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
}

.time-pill-btn:hover {
  border-color: var(--accent-color);
  color: var(--text-primary);
}

.time-pill-btn.is-selected {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #ffffff;
}

/* Contadores de comensales */
.diners-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.counter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.counter-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.counter-controls {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.counter-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.counter-btn:hover {
  background: var(--bg-subtle);
}

.counter-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
}

/* Chips de intolerancias y equipamiento */
.dietary-chips-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

.diet-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.diet-chip:hover {
  border-color: var(--border-hover);
}

.diet-chip input[type="checkbox"] {
  accent-color: var(--accent-color);
  cursor: pointer;
}

/* Tarjeta de diagnóstico nutricional */
.nutrition-diagnosis-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.diagnosis-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.diagnosis-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: none;
}

.diners-count-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
}

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

.diagnosis-item {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.diagnosis-item.is-avoid {
  background: var(--color-danger-bg);
  border-left: 3px solid var(--color-danger);
}

.diagnosis-item.is-dessert {
  background: var(--color-success-bg);
  border-left: 3px solid var(--color-success);
}

.diagnosis-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.diagnosis-item.is-avoid .diagnosis-label {
  color: var(--color-danger);
}

.diagnosis-item.is-dessert .diagnosis-label {
  color: var(--color-success);
}

.diagnosis-text {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Barra de acciones principales (shuffle y lista combinada) */
.results-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.results-heading-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.results-subheading {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.actions-buttons-cluster {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 42px;
}

.btn-primary {
  background: var(--accent-color);
  color: #ffffff;
  border: 1px solid var(--accent-color);
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
}

/* Grid de las 3 tarjetas de recetas */
.dinner-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.dinner-recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dinner-recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.recipe-card-header {
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.recipe-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.slot-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: none;
  color: var(--accent-color);
  background: var(--accent-light);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.recipe-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.recipe-slot-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Caja de justificación nutricional */
.recipe-rationale-box {
  background: var(--bg-subtle);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.rationale-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.2rem;
}

.rationale-text {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Sección de ingredientes */
.recipe-ingredients-section {
  padding: 1.1rem 1.25rem;
  flex: 1 0 auto;
}

.ingredients-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.ingredients-header h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.servings-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
}

.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ingredient-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.ingredient-check-item .ing-checkbox {
  accent-color: var(--accent-color);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.ing-amount {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  min-width: 65px;
}

.ing-name {
  color: var(--text-secondary);
}

.ingredient-check-item input:checked ~ .ing-name,
.ingredient-check-item input:checked ~ .ing-amount {
  text-decoration: line-through;
  opacity: 0.55;
}

/* Sección de preparación paso a paso */
.recipe-steps-section {
  padding: 1rem 1.25rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
}

.recipe-steps-section h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.steps-list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Truco para niños y postre */
.recipe-kid-tip {
  padding: 0.85rem 1.25rem;
  background: rgba(2, 132, 199, 0.05);
  border-top: 1px solid var(--border-color);
}

.kid-tip-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.2rem;
}

.kid-tip-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.recipe-dessert-tip {
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dessert-label {
  font-weight: 700;
  color: var(--text-muted);
}

.dessert-name {
  color: var(--text-primary);
  font-weight: 500;
}

/* Pie de tarjeta con botón de WhatsApp */
.recipe-card-footer {
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.btn-share-whatsapp {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 40px;
}

.btn-share-whatsapp:hover {
  background: #1eb956;
}

/* Guía educativa y acordeón FAQ SEO */
.educational-guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.guide-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.guide-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.guide-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.guide-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.guide-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Acordeón FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent-color);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-content {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  border-top: 1px solid var(--bg-subtle);
  padding-top: 0.85rem;
}

/* Modal accesible */
.custom-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.custom-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.custom-modal-overlay.is-active .custom-modal-dialog {
  transform: scale(1);
}

.custom-modal-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-icon-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}

.custom-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.custom-modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast de notificación temporal */
.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  color: var(--bg-card);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 10001;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Estado vacío */
.empty-state-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
}

.empty-state-card svg {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.empty-state-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-card p {
  max-width: 480px;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

/* Adaptación responsive */
@media (max-width: 768px) {
  .tool-layout {
    margin: 1rem auto 2rem;
    padding: 0 0.75rem;
  }

  .tool-hero-card {
    padding: 1.25rem;
  }

  .tool-hero-title {
    font-size: 1.35rem;
  }

  .presets-section, .lunch-selector-card {
    padding: 1rem;
  }

  .dinner-cards-grid {
    grid-template-columns: 1fr;
  }

  .toolbar-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .results-actions-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .actions-buttons-cluster {
    width: 100%;
  }

  .actions-buttons-cluster button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .app-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
  }
}
