/**
 * Fijate Tools - Probador de colorimetría personal y estación cromática
 * Estilos canónicos corporativos, diseño responsive mobile-first y temas claro/oscuro
 */

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

  /* Colores base para tema oscuro (por defecto) */
  --bg-page: #0b0f17;
  --bg-card: #131926;
  --bg-card-subtle: #1a2234;
  --bg-input: #101623;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;

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

  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-accent: #ec4899;
  --color-accent-hover: #db2777;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.45);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

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

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

  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-accent: #db2777;
  --color-accent-hover: #be185d;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Contención canónica de la página */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  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;
}

/* Layout canónico */
.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%;
}

/* Tipografía de títulos */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0;
}

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

/* Tarjetas y secciones */
.tool-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
}

.tool-header-hero {
  margin-bottom: 1.5rem;
  text-align: center;
}

.tool-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 9999px;
  background-color: rgba(236, 72, 153, 0.12);
  color: var(--color-accent);
  border: 1px solid rgba(236, 72, 153, 0.25);
  margin-bottom: 0.75rem;
}

.tool-title {
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .tool-title {
    font-size: 2.25rem;
  }
}

.tool-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 750px;
  margin: 0 auto;
}

/* Barra de acciones de origen de imagen */
.source-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  background-color: var(--bg-card-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.source-buttons-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

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

.sample-face-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.sample-face-pill img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.sample-face-pill:hover {
  border-color: var(--color-primary);
  color: var(--text-main);
}

.sample-face-pill.active {
  border-color: var(--color-primary);
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--color-primary);
  font-weight: 600;
}

/* Contenedor de la cámara web */
.webcam-live-box {
  display: none;
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--color-primary);
  background-color: #000000;
}

.webcam-live-box video {
  width: 100%;
  height: auto;
  display: block;
  transform: scaleX(-1);
}

/* Visualizador de drapeado principal */
.simulator-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .simulator-layout {
    grid-template-columns: 460px 1fr;
    align-items: start;
  }
}

/* Contenedor del Canvas */
.canvas-wrapper {
  position: relative;
  width: 100%;
  background-color: #0d121d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.canvas-wrapper canvas {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.canvas-floating-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.canvas-floating-controls > * {
  pointer-events: auto;
}

.floating-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background-color: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.floating-pill-btn:hover {
  background-color: rgba(11, 15, 23, 0.95);
  border-color: #ffffff;
}

.floating-pill-btn.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* Barra de modos de drapeado */
.drape-mode-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.mode-btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.mode-btn:hover {
  color: var(--text-main);
  border-color: var(--color-primary);
}

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

/* Controles secundarios (sliders, comparativas) */
.secondary-controls-box {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.control-slider-group {
  margin-bottom: 0.75rem;
}

.control-slider-group:last-child {
  margin-bottom: 0;
}

.control-slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.range-input {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background-color: var(--bg-input);
  outline: none;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* Píldoras de colores individuales */
.single-swatches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.single-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.single-swatch-btn:hover {
  transform: scale(1.15);
}

.single-swatch-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--color-primary);
  transform: scale(1.15);
}

/* Resultado de pipeta */
.eyedropper-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.eyedropper-color-chip {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 2px solid #ffffff;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.eyedropper-info {
  font-size: 0.85rem;
}

.eyedropper-title {
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.eyedropper-details {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Columna derecha: selector de estaciones y detalles */
.season-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Filtro por familia de estación */
.family-tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  overflow-x: auto;
}

.family-tab-btn {
  background: none;
  border: none;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
  min-height: 40px;
}

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

.family-tab-btn.active {
  color: var(--color-primary);
  background-color: rgba(59, 130, 246, 0.12);
}

/* Grid de las 12 tarjetas de estaciones */
.seasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.season-selector-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.6rem 0.75rem;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.season-selector-card:hover {
  border-color: var(--color-primary);
  background-color: rgba(59, 130, 246, 0.05);
}

.season-selector-card.active {
  border-color: var(--color-primary);
  background-color: rgba(59, 130, 246, 0.12);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.season-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.season-card-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #ffffff;
}

.season-card-family {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.season-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.season-card-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Ficha técnica detallada de la estación activa */
.season-details-card {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.season-details-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.season-details-title {
  font-size: 1.35rem;
  margin: 0;
}

.season-details-badge {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--color-primary);
}

.season-details-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Muestrario de paleta de colores estrella */
.palette-swatches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .palette-swatches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.palette-swatch-item {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  text-align: center;
}

.swatch-color {
  width: 100%;
  height: 38px;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

.swatch-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.swatch-hex {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Colores a evitar y metales */
.season-attributes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 600px) {
  .season-attributes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.attr-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.attr-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.attr-title.danger {
  color: var(--color-danger);
}

.attr-title.warning {
  color: var(--color-warning);
}

.avoid-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.avoid-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.avoid-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}

.avoid-text small {
  display: block;
  color: var(--text-dim);
  font-size: 0.72rem;
}

/* Botones principales de acción */
.main-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 42px;
  text-decoration: none;
}

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

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

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

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

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

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

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
  min-height: 48px;
}

/* Desplegables <select> responsivos conforme a estándares */
select.form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  padding: 0.65rem 2.5rem 0.65rem 0.85rem;
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  min-height: 42px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
}

select.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
}

/* Modales accesibles */
.modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.modal-dialog {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-dialog.modal-xl {
  max-width: 850px;
}

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

.modal-title {
  font-size: 1.25rem;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

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

.modal-body {
  padding: 1.5rem;
  flex: 1 1 auto;
}

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

/* Cuestionario de subtono */
.quiz-progress-bar-wrapper {
  width: 100%;
  height: 6px;
  background-color: var(--bg-input);
  border-radius: 3px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--color-accent);
  width: 0%;
  transition: width 0.3s ease;
}

.quiz-q-title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.quiz-q-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.quiz-opt-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.quiz-opt-btn:hover {
  border-color: var(--color-primary);
  background-color: rgba(59, 130, 246, 0.08);
}

.quiz-opt-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Veredicto del cuestionario */
.quiz-verdict-card {
  text-align: center;
  padding: 1rem 0;
}

.quiz-verdict-badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--color-primary);
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.quiz-verdict-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.quiz-verdict-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.quiz-verdict-colors {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.quiz-color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: var(--shadow-sm);
}

/* Vista previa de la Chuleta de compras */
.cheatsheet-preview-canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

/* Guía SEO y acordeón de preguntas frecuentes */
.seo-section {
  margin-top: 3rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

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

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

.faq-question {
  width: 100%;
  text-align: left;
  background-color: var(--bg-card-subtle);
  border: none;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-answer {
  display: none;
  padding: 1rem 1.25rem;
  background-color: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

/* Notificación flotante Toast */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #0b0f17;
  color: #ffffff;
  border: 1px solid var(--color-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
}

/* Utilidades */
.mt-2 { margin-top: 0.75rem; }
.mt-3 { margin-top: 1rem; }

/* =============================================
   RESPONSIVE MOBILE
   ============================================= */

/* Barra de origen de imagen: apilar verticalmente en móvil */
@media (max-width: 767px) {
  .source-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .source-buttons-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .source-buttons-group .btn {
    width: 100%;
    justify-content: center;
  }

  .samples-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .samples-label {
    width: 100%;
    text-align: center;
    margin-bottom: 0.15rem;
  }

  /* Panel de estaciones en columna */
  .season-panel {
    gap: 1rem;
  }

  .season-panel > div:first-child {
    flex-direction: column;
    gap: 0.5rem;
  }

  .season-panel > div:first-child .btn {
    width: 100%;
    justify-content: center;
  }

  /* Pestañas de familia: scroll horizontal suave */
  .family-tabs {
    gap: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .family-tabs::-webkit-scrollbar {
    display: none;
  }

  .family-tab-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem;
    min-height: 36px;
  }

  /* Tarjetas de estaciones 2 columnas en móvil */
  .seasons-grid {
    grid-template-columns: repeat(2, 1fr);
    max-height: 200px;
  }

  /* Botones flotantes del canvas: compactos */
  .canvas-floating-controls {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .floating-pill-btn {
    font-size: 0.72rem;
    padding: 0.3rem 0.55rem;
    min-height: 30px;
  }

  /* Selector de modos compacto */
  .drape-mode-selector {
    gap: 0.3rem;
  }

  .mode-btn {
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
    min-height: 36px;
  }

  /* Modal footer vertical */
  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  /* Sección SEO */
  .seo-section {
    padding: 1.25rem;
    margin-top: 2rem;
  }

  .seo-section h2 {
    font-size: 1.25rem;
  }

  /* Héroe */
  .tool-header-hero {
    padding: 0 0.25rem;
  }
}

@media (max-width: 400px) {
  .seasons-grid {
    grid-template-columns: 1fr;
    max-height: 180px;
  }

  .drape-mode-selector {
    flex-direction: column;
  }

  .mode-btn {
    width: 100%;
  }
}
