/**
 * Hoja de estilos canónica - Calculadora de usufructo y nuda propiedad
 * fijate.com/tools/calculadora-usufructo-nuda-propiedad/
 */

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

  /* Midnight Slate (Tema oscuro corporativo) */
  --bg-page: #0b0f17;
  --bg-card: #131b2a;
  --bg-card-hover: #192337;
  --bg-input: #1a2538;
  --bg-input-focus: #212f47;
  --border-color: #24324a;
  --border-focus: #3b82f6;

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

  --accent-blue: #3b82f6;
  --accent-blue-hover: #2563eb;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;

  /* Colores de roles patrimoniales */
  --usufruct-color: #f59e0b;
  --usufruct-bg: rgba(245, 158, 11, 0.12);
  --usufruct-border: rgba(245, 158, 11, 0.35);

  --nuda-color: #10b981;
  --nuda-bg: rgba(16, 185, 129, 0.12);
  --nuda-border: rgba(16, 185, 129, 0.35);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 25px -5px 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-hover: #f1f5f9;
  --bg-input: #ffffff;
  --bg-input-focus: #f8fafc;
  --border-color: #e2e8f0;
  --border-focus: #2563eb;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --usufruct-color: #d97706;
  --usufruct-bg: rgba(217, 119, 6, 0.1);
  --usufruct-border: rgba(217, 119, 6, 0.3);

  --nuda-color: #059669;
  --nuda-bg: rgba(5, 150, 105, 0.1);
  --nuda-border: rgba(5, 150, 105, 0.3);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

*, *::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,
.hero-title,
.faq-section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

.text-mono,
.mono,
.kpi-value,
.code-inline {
  font-family: var(--font-mono);
}

/* Layout canónico */
.tool-layout {
  max-width: 1200px;
  width: 100%;
  margin: 1.25rem auto 3rem;
  padding: 0 1rem;
  flex: 1 0 auto;
}

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

.tool-main-content {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hero introductorio */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--usufruct-color), var(--accent-blue), var(--nuda-color));
}

.hero-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.hero-badge-legal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 900px;
  line-height: 1.55;
}

/* Modos de cálculo: Selector de tipo */
.calculator-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tab-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  background: var(--bg-input);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

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

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* Grid de formulario */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .form-grid-2cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* Inputs y Selects */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

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

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

.input-suffix {
  position: absolute;
  right: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
  pointer-events: none;
  font-size: 0.9rem;
}

.has-suffix {
  padding-right: 2.2rem;
}

/* Select canónico obligatorio */
.form-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  min-height: 44px;
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 2.5rem 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: var(--font-main);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%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;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

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

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

/* Botones de valores rápidos */
.quick-values-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.btn-quick-val {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-quick-val:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--text-dim);
}

.btn-quick-val.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Slider de edad sincronizado */
.slider-sync-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.form-range {
  flex: 1 1 0%;
  width: 0;
  min-width: 0;
  height: 6px;
  background: var(--bg-input);
  border-radius: 4px;
  outline: none;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.range-number-input {
  width: 80px;
  flex-shrink: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Checkbox con caja de opciones */
.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease;
}

.checkbox-card:hover {
  border-color: var(--border-focus);
}

.checkbox-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.checkbox-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

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

/* Contenedor condicional cónyuge */
.conditional-spouse-box {
  background: var(--bg-input);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.2s ease-in-out;
}

.conditional-spouse-box.is-visible {
  display: flex;
}

/* =========================================
   PANEL DE RESULTADOS VISUALES
   ========================================= */
.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.results-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-action-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  min-height: 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-tool:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Barra de reparto visual 100% */
.patrimonial-bar-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.patrimonial-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.patrimonial-bar-track {
  width: 100%;
  height: 28px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  border: 1px solid var(--border-color);
}

.bar-segment {
  height: 100%;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.bar-segment-usufruct {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.bar-segment-nuda {
  background: linear-gradient(90deg, #059669, #10b981);
}

/* Tarjetas comparativas de Roles (Usufructo vs Nuda Propiedad) */
.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .roles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.role-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.role-card-usufruct {
  background: var(--usufruct-bg);
  border-color: var(--usufruct-border);
}

.role-card-nuda {
  background: var(--nuda-bg);
  border-color: var(--nuda-border);
}

.role-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.role-badge-usufruct {
  background: rgba(245, 158, 11, 0.2);
  color: var(--usufruct-color);
}

.role-badge-nuda {
  background: rgba(16, 185, 129, 0.2);
  color: var(--nuda-color);
}

.role-pct {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
}

.role-amount {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
}

.role-card-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Caja de desglose legal / explicativo */
.formula-callout {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.formula-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.formula-highlight {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  color: var(--text-main);
  font-weight: 600;
}

/* Caja de dictamen fiscal e impuestos */
.tax-assessment-box {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

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

.tax-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tax-exempt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tax-exempt-badge.is-exempt {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.tax-exempt-badge.not-exempt {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.tax-body {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tax-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.tax-metric-item {
  background: var(--bg-input);
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tax-metric-label {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.tax-metric-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

/* =========================================
   TABLA COMPARATIVA DE EVOLUCIÓN
   ========================================= */
.evolution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.table-responsive-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.evolution-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
  white-space: nowrap;
}

.evolution-table th {
  background: var(--bg-input);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.evolution-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.evolution-table tbody tr:hover {
  background: var(--bg-card-hover);
}

.evolution-table tr.highlight-current {
  background: rgba(59, 130, 246, 0.12);
  font-weight: 600;
}

.evolution-table tr.highlight-current td:first-child {
  border-left: 3px solid var(--accent-blue);
}

/* =========================================
   SECCIÓN SEO Y ACORDEONES FAQ
   ========================================= */
.seo-guide-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.seo-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.guide-prose {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.guide-prose p {
  margin: 0;
}

.guide-prose ul {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.guide-prose strong {
  color: var(--text-main);
}

/* Acordeón canónico */
.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

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

.faq-item[open] {
  border-color: var(--border-focus);
}

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

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

.faq-summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}

.faq-item[open] .faq-summary::after {
  transform: rotate(-135deg);
  border-color: var(--accent-blue);
}

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

/* Modales accesibles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

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

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

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* =========================================
   ESTILOS DE IMPRESIÓN (@media print)
   ========================================= */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .app-header,
  .tools-ad-banner-section,
  .tool-ad-sidebar,
  .fijate-footer,
  .results-actions,
  .quick-values-row,
  .tab-nav,
  .btn-action-tool,
  #btn-theme-toggle {
    display: none !important;
  }

  .tool-layout {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .calculator-card,
  .results-card,
  .evolution-card,
  .hero-card {
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    page-break-inside: avoid;
    margin-bottom: 1.5rem;
  }

  .role-card-usufruct,
  .role-card-nuda {
    background: #f9f9f9 !important;
    border: 1px solid #999 !important;
  }

  .role-amount,
  .role-pct,
  .hero-title,
  .results-title {
    color: #000000 !important;
  }
}
