/* ==========================================================================
   Fijate Tools - Calculadora Sous Vide y Pasteurización (Douglas Baldwin)
   Hoja de estilos canónica, responsiva y adaptada a tema claro / oscuro
   ========================================================================== */

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

  /* Colores tema claro */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  /* Acentos y semáforo culinario */
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;

  --accent-warm: #ea580c; /* Naranja fuego / sellado */
  --accent-gold: #d97706; /* Ámbar punto de cocción */
  --safe-green: #16a34a;  /* Pasteurizado seguro */
  --safe-green-bg: #ecfdf5;
  --safe-green-border: #a7f3d0;
  
  --warning-amber: #b45309;
  --warning-amber-bg: #fffbeb;
  --warning-amber-border: #fde68a;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

[data-theme="dark"] {
  --bg-page: #0b0f17;
  --bg-card: #151d2c;
  --bg-card-subtle: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --border-focus: #60a5fa;

  --primary-color: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: #1e293b;

  --safe-green: #34d399;
  --safe-green-bg: #064e3b33;
  --safe-green-border: #065f46;

  --warning-amber: #fbbf24;
  --warning-amber-bg: #78350f33;
  --warning-amber-border: #92400e;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  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,
.tool-intro-title,
.panel-section-title {
  font-family: var(--font-heading);
}

.mono,
.mono-num-input,
.time-primary-val,
.timer-clock-display,
.baldwin-data-table td,
.baldwin-data-table th,
code {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.25rem; }
.mt-5 { margin-top: 2rem; }

/* Layout general */
.tool-layout {
  max-width: 1240px;
  margin: 1.5rem auto 3.5rem;
  padding: 0 1rem;
  width: 100%;
}

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

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

.card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

/* Intro de la herramienta */
.tool-intro-box {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.tool-intro-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.tool-intro-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.tool-intro-desc strong {
  color: var(--text-main);
  font-weight: 600;
}

/* Cuadrícula de configuración (2 columnas en desktop) */
.sv-config-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .sv-config-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.panel-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

/* 1. Selector de alimentos (tabs) */
.food-tabs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

@media (min-width: 600px) {
  .food-tabs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.food-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  background: var(--bg-card-subtle);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  min-height: 48px;
  width: 100%;
}

.food-tab-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-color);
  transform: translateY(-1px);
}

.food-tab-btn.active {
  background: var(--primary-light);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

.food-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.food-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.food-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* 2. Puntos de cocción (chips) */
.doneness-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.doneness-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  min-height: 40px;
}

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

.doneness-chip-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff;
  font-weight: 600;
}

.chip-temp-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
}

.doneness-chip-btn.active .chip-temp-badge {
  background: rgba(255, 255, 255, 0.22);
}

/* Labels y wrappers de inputs */
.form-group-block {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.label-with-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.val-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0 0.5rem;
  height: 38px;
}

.val-input-wrapper:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.mono-num-input {
  width: 65px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 700;
  text-align: right;
  padding: 0.2rem;
  outline: none;
}

.unit-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
  font-weight: 600;
}

.form-range {
  width: 100%;
  accent-color: var(--primary-color);
  height: 6px;
  border-radius: 3px;
  cursor: pointer;
  margin: 0.5rem 0;
}

.range-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Selector de forma geométrica */
.shape-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.shape-option-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 54px;
}

.shape-option-card:hover {
  border-color: var(--primary-hover);
  background: var(--bg-card);
}

.shape-option-card.active {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.shape-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
}

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

.shape-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
}

.shape-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.25;
}

/* Visualizador de grosor de carne */
.thickness-visualizer {
  margin-top: 0.85rem;
  padding: 1rem;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.thickness-meat-sample {
  position: relative;
  background: linear-gradient(135deg, #e11d48, #be123c);
  border-radius: var(--radius-sm);
  width: 100%;
  min-height: 12px;
  max-height: 90px;
  transition: height 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.meat-core-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #fde047;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.meat-core-label {
  background: rgba(0, 0, 0, 0.75);
  color: #fde047;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.thickness-ruler {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  font-family: var(--font-mono);
}

/* Selector de estado inicial (nevera / congelador) */
.state-toggle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.state-option-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 50px;
}

.state-option-card:hover {
  border-color: var(--primary-hover);
  background: var(--bg-card);
}

.state-option-card.active {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.state-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.state-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-main);
}

.state-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Columna Derecha: Tarjeta de Resultados, Semáforo y Temporizador
   ========================================================================== */
.sv-results-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.results-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Tarjeta Principal de Tiempo */
.cook-time-card {
  background: var(--bg-card);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cook-time-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-warm));
}

.time-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--safe-green-bg);
  color: var(--safe-green);
  border: 1px solid var(--safe-green-border);
  margin-bottom: 0.85rem;
}

.time-card-badge.badge-unpasteurized {
  background: var(--warning-amber-bg);
  color: var(--warning-amber);
  border-color: var(--warning-amber-border);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.main-time-display {
  margin-bottom: 1.25rem;
}

.time-primary-val {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.time-primary-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Desglose de tiempos */
.time-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

.breakdown-label {
  color: var(--text-muted);
}

.breakdown-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-main);
}

/* Semáforo de seguridad microbiológica */
.safety-alert-box {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border-left: 4px solid;
}

.safety-alert-box.alert-safe {
  background: var(--safe-green-bg);
  border-color: var(--safe-green);
  color: var(--text-main);
}

.safety-alert-box.alert-warning {
  background: var(--warning-amber-bg);
  border-color: var(--warning-amber);
  color: var(--text-main);
}

.alert-icon-wrap {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.alert-safe .alert-icon-wrap {
  color: var(--safe-green);
}

.alert-warning .alert-icon-wrap {
  color: var(--warning-amber);
}

.alert-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.alert-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Consejos de chef */
.chef-finishing-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
}

.chef-card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.chef-card-title svg {
  color: var(--accent-warm);
}

.chef-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chef-steps-list li {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
}

.chef-steps-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-warm);
  font-weight: bold;
}

.chef-steps-list strong {
  color: var(--text-main);
}

/* Temporizador interactivo integrado */
.timer-interactive-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.timer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.timer-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timer-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
}

.timer-status-badge.running {
  background: var(--safe-green-bg);
  color: var(--safe-green);
  animation: pulse-badge 1.8s infinite;
}

@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.timer-clock-display {
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  padding: 0.6rem 0;
  letter-spacing: 0.03em;
  background: var(--bg-card-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-color);
}

.timer-actions-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.5rem;
}

.btn-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  min-height: 40px;
}

.btn-timer-primary {
  background: var(--primary-color);
  color: #ffffff;
}

.btn-timer-primary:hover {
  background: var(--primary-hover);
}

.btn-timer-secondary {
  background: var(--bg-card-subtle);
  border-color: var(--border-color);
  color: var(--text-main);
}

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

.btn-timer-copy {
  background: var(--bg-card-subtle);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-timer-copy:hover {
  background: var(--border-color);
}

/* ==========================================================================
   Tabla de Referencia Rápida de Douglas Baldwin
   ========================================================================== */
.baldwin-table-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.section-title-wrap {
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.table-responsive-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.baldwin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 0.82rem;
}

.baldwin-data-table th,
.baldwin-data-table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.baldwin-data-table th {
  background: var(--bg-card-subtle);
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.baldwin-data-table td:first-child,
.baldwin-data-table th:first-child {
  font-weight: 700;
  text-align: left;
  background: var(--bg-card-subtle);
}

.baldwin-data-table tr:hover td {
  background: rgba(59, 130, 246, 0.05);
}

.baldwin-data-table td.highlighted-cell {
  background: var(--primary-light) !important;
  color: var(--primary-color) !important;
  font-weight: 700;
  box-shadow: inset 0 0 0 2px var(--primary-color);
}

/* ==========================================================================
   Acordeón FAQ y Guía SEO
   ========================================================================== */
.guide-accordion-section {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  background: var(--bg-card);
  border-color: var(--primary-color);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  user-select: none;
  list-style: none;
}

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

.faq-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-answer {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Modal Accesible Corporativo
   ========================================================================== */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

.app-modal-overlay.active {
  display: flex;
}

.app-modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modal-scale 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-scale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.app-modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.app-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}

.app-modal-body {
  padding: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.app-modal-footer {
  padding: 0.9rem 1.25rem;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}

.btn-modal-action {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 40px;
}

.btn-modal-action:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   Controles Móviles Táctiles y Viewport Estrecho
   ========================================================================== */
@media (max-width: 768px) {
  .card-main {
    padding: 1.15rem;
  }

  .shape-toggle-grid,
  .state-toggle-grid {
    grid-template-columns: 1fr;
  }

  .timer-actions-grid {
    grid-template-columns: 1fr;
  }

  .time-primary-val {
    font-size: 2.2rem;
  }

  .timer-clock-display {
    font-size: 1.9rem;
  }

  .val-input-wrapper {
    height: 42px;
  }

  .mono-num-input {
    font-size: 1.1rem;
  }
}
