/**
 * Estilos visuales corporativos y diseño responsive
 * Herramienta: Calculadora del banco de leche materna y tomas diferidas (Fijate Tools)
 */

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

  /* Colores tema oscuro (Midnight Slate) */
  --bg-page: #0b0f17;
  --bg-card: #151c28;
  --bg-card-subtle: #1c2536;
  --bg-input: #111722;
  --border-color: #263347;
  --border-focus: #3b82f6;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #ec4899; /* Tono rosa suave/maternidad */
  --primary-hover: #db2777;
  --primary-light: rgba(236, 72, 153, 0.15);

  --accent-cyan: #06b6d4;
  --accent-cyan-bg: rgba(6, 182, 212, 0.12);

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.14);
  --color-warning: #f59e0b;
  --color-warning-bg: rgba(245, 158, 11, 0.15);
  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.15);

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
}

[data-theme="light"] {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-focus: #ec4899;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --primary: #db2777;
  --primary-hover: #be185d;
  --primary-light: rgba(219, 39, 119, 0.10);

  --accent-cyan: #0891b2;
  --accent-cyan-bg: rgba(8, 145, 178, 0.10);

  --color-success: #059669;
  --color-success-bg: rgba(5, 150, 105, 0.12);
  --color-warning: #d97706;
  --color-warning-bg: rgba(217, 119, 6, 0.12);
  --color-danger: #dc2626;
  --color-danger-bg: rgba(220, 38, 38, 0.12);

  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Resets y tipografías */
body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  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);
  letter-spacing: -0.02em;
}

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

/* Contenedor principal y Sidebar publicitario */
.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%;
}

/* Tarjeta principal */
.tool-hero-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

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

.hero-title {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.6rem 0;
  color: var(--text-main);
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 820px;
}

/* Barra de pestañas */
.tool-tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.tool-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: 6px 6px 0 0;
}

.tool-tab-btn:hover {
  color: var(--text-main);
  background: var(--bg-card-subtle);
}

.tool-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
}

.tool-tab-panel {
  display: none;
}

.tool-tab-panel.active {
  display: block;
}

/* Formularios y grupos de campos */
.card-panel {
  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-card);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-sublabel {
  font-size: 0.76rem;
  color: var(--text-dim);
}

.form-input,
.form-select {
  width: 100%;
  height: 44px;
  padding: 0 0.85rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.92rem;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-main);
}

/* Tarjetas de resultados y KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card-highlight {
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border-color: rgba(236, 72, 153, 0.35);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.kpi-card-highlight .kpi-value {
  color: var(--primary);
}

.kpi-subtext {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* Desglose visual de tomas */
.bottles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.bottle-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: transform 0.15s ease;
}

.bottle-card:hover {
  transform: translateY(-2px);
}

.bottle-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.bottle-reserve .bottle-icon {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.bottle-info {
  flex: 1;
  min-width: 0;
}

.bottle-name {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
}

.bottle-role {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bottle-amount {
  text-align: right;
  flex-shrink: 0;
}

.bottle-ml {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.bottle-unit {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Botones y acciones */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-action-use,
.btn-action-delete,
.btn-action-restore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 42px;
  padding: 0 1.25rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}

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

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

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

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

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

.btn-sm {
  height: 34px;
  padding: 0 0.85rem;
  font-size: 0.82rem;
}

/* Tabla de inventario FIFO */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.inventory-table th {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.inventory-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

.inventory-table tr:last-child td {
  border-bottom: none;
}

.tr-fifo-next {
  background: rgba(16, 185, 129, 0.08);
}

.td-date-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.td-date {
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.td-time {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.badge-fifo-first {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.18);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-top: 0.2rem;
  width: fit-content;
}

.td-subtext {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.td-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.btn-action-use {
  height: 32px;
  padding: 0 0.65rem;
  font-size: 0.78rem;
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-action-use:hover {
  background: var(--color-success);
  color: #ffffff;
}

.btn-action-delete {
  height: 32px;
  width: 32px;
  padding: 0;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-color);
}

.btn-action-delete:hover {
  background: var(--color-danger-bg);
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-action-restore {
  height: 32px;
  padding: 0 0.65rem;
  font-size: 0.78rem;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.tr-used-divider td {
  background: var(--bg-card-subtle);
  padding: 0.5rem 1rem;
}

.used-divider-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}

.tr-used-item {
  opacity: 0.65;
}

.empty-inventory {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

/* Badges de estado */
.badge-status {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.badge-fresh {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-priority {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-urgent {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.badge-expired {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.badge-used {
  background: var(--bg-card-subtle);
  color: var(--text-dim);
}

/* Tarjeta rápida de caducidad */
.expiry-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card-subtle);
  margin-top: 1rem;
}

.card-safe {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, var(--bg-card-subtle) 100%);
}

.card-caution {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card-subtle) 100%);
}

.card-warning {
  border-color: rgba(249, 115, 22, 0.4);
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.08) 0%, var(--bg-card-subtle) 100%);
}

.card-prohibited {
  border-color: rgba(239, 68, 68, 0.4);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.08) 0%, var(--bg-card-subtle) 100%);
}

.expiry-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.expiry-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.expiry-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.expiry-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.expiry-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.expiry-stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.expiry-stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.expiry-card-advice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
}

.advice-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.advice-text {
  font-size: 0.84rem;
  color: var(--text-main);
  margin: 0;
  line-height: 1.5;
}

/* Tabla completa de conservación AEP */
.conservation-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin-top: 1rem;
}

.conservation-matrix-table th,
.conservation-matrix-table td {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border-color);
  text-align: left;
}

.conservation-matrix-table th {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.76rem;
}

/* Generador de etiquetas adhesivas */
.labels-grid-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card-subtle);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}

.label-sticker {
  background: #ffffff;
  color: #0f172a;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.sticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}

.sticker-baby-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: #0f172a;
}

.sticker-tag {
  font-size: 0.7rem;
  font-weight: 700;
  background: #ec4899;
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.sticker-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.sticker-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sticker-lbl {
  color: #64748b;
  font-size: 0.74rem;
}

.sticker-val {
  font-weight: 600;
  color: #1e293b;
}

.sticker-val-ml {
  font-size: 1.15rem;
  font-weight: 800;
  color: #db2777;
}

.sticker-dest {
  font-weight: 600;
  color: #0891b2;
  font-size: 0.75rem;
}

.sticker-expiry {
  font-weight: 700;
  color: #b91c1c;
}

.sticker-footer {
  margin-top: 0.6rem;
  padding-top: 0.4rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
}

/* Modales accesibles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

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

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

.modal-body {
  padding: 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-main);
}

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

/* Toast de notificación */
.app-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.88rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

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

.toast-success {
  border-left: 4px solid var(--color-success);
}

.toast-warning {
  border-left: 4px solid var(--color-warning);
}

.toast-info {
  border-left: 4px solid var(--primary);
}

/* Guía SEO y Preguntas frecuentes */
.seo-guide-section {
  margin-top: 2.5rem;
}

.guide-article {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.guide-article h2 {
  font-size: 1.45rem;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 1rem;
}

.guide-article h3 {
  font-size: 1.18rem;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.guide-article p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.guide-article ul,
.guide-article ol {
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.guide-article li {
  margin-bottom: 0.5rem;
}

/* Acordeón FAQ */
.faq-accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-accordion-toggle {
  width: 100%;
  padding: 1.15rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  transition: background 0.2s;
}

.faq-accordion-toggle:hover {
  background: var(--bg-card-subtle);
}

.faq-icon-chevron {
  transition: transform 0.2s ease;
  color: var(--text-dim);
}

.faq-accordion-toggle[aria-expanded="true"] .faq-icon-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-accordion-panel {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

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

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

  .hero-title {
    font-size: 1.45rem;
  }

  .card-panel {
    padding: 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .bottles-grid {
    grid-template-columns: 1fr;
  }

  .labels-grid-preview {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }

  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

/* =========================================================
   ESTILOS DE IMPRESIÓN LIMPIOS (@media print)
   Imprime exclusivamente la hoja de etiquetas adhesivas
   ========================================================= */
@media print {
  /* Ocultar elementos institucionales, anuncios, cabeceras y paneles no imprimibles */
  .app-header,
  .fijate-footer,
  .tools-ad-banner-section,
  .tool-ad-sidebar,
  .tool-hero-header,
  .tool-tabs-nav,
  #tab-calc,
  #tab-fifo,
  #tab-conservation,
  .panel-header,
  .labels-controls-box,
  .seo-guide-section,
  .affiliate-showcase-section,
  .app-toast,
  .modal-overlay {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .tool-layout,
  .tool-with-sidebar,
  .tool-main-content,
  #tab-labels,
  .card-panel {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  #tab-labels {
    display: block !important;
  }

  .labels-grid-preview {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12mm !important;
    padding: 10mm !important;
    background: transparent !important;
    border: none !important;
  }

  .label-sticker {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 1px dashed #64748b !important;
    box-shadow: none !important;
    padding: 8mm !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .sticker-val-ml {
    color: #000000 !important;
  }

  .sticker-tag {
    background: #000000 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
