@charset "UTF-8";

/* Estilos para Tasador de juguetes antiguos y nostalgia española */

:root {
  --toy-primary: #ec4899;
  --toy-hover: #db2777;
  --toy-glow: rgba(236, 72, 153, 0.25);
  --toy-border: rgba(236, 72, 153, 0.35);

  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --bg-surface: #1e293b;
  --bg-input: #020617;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-card: rgba(255, 255, 255, 0.14);

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

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

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

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
}

[data-theme="light"] {
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-input: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-card: rgba(0, 0, 0, 0.12);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --toy-glow: rgba(219, 39, 119, 0.15);
}

body {
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main, #0b0f19);
  color: var(--text-main);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
}

.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 card */
.toy-hero-card {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--toy-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.toy-hero-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

/* Tabs */
.tabs-navigation {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.75rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-btn {
  flex: 1;
  min-width: 140px;
  min-height: 44px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem;
}

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

.tab-btn.active {
  background: var(--toy-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--toy-glow);
}

.tab-panel {
  display: none;
}

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

/* Panel card */
.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

.panel-card-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
}

/* Form controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

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

.form-select, .form-input {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  background: var(--bg-input);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  box-sizing: border-box;
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--toy-primary);
  box-shadow: 0 0 0 3px var(--toy-glow);
}

/* Grid de generaciones */
.toys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.toy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s, border-color 0.2s;
}

.toy-card:hover {
  transform: translateY(-2px);
  border-color: var(--toy-primary);
}

.toy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toy-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: rgba(236, 72, 153, 0.15);
  color: var(--toy-primary);
  border: 1px solid var(--toy-border);
}

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

.toy-desc {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

/* Tasador interactivo */
.toy-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 850px) {
  .toy-calc-grid {
    grid-template-columns: 1fr;
  }
}

.toy-val-box {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--toy-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.toy-price-display {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--toy-primary);
  margin: 0.4rem 0;
}

/* Alerta de butirato */
.butyrate-box {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.butyrate-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--danger);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.butyrate-desc {
  font-size: 0.885rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* SEO y FAQ */
.seo-section {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-top: 2rem;
}

.seo-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 1rem 0;
  color: var(--text-main);
}

.seo-p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

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

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

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

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

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

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

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

@media (max-width: 992px) {
  .tool-with-sidebar {
    flex-direction: column;
  }
}
