.irpf-container {
    max-width: 1100px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .irpf-main-card {
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 450px;
  }

  .theme-dark .irpf-main-card {
    background: #1e293b;
    border-color: #334155;
  }

  .form-section {
    padding: 3rem;
    border-right: 1px solid #e2e8f0;
  }

  .theme-dark .form-section {
    border-right-color: #334155;
  }

  .results-section {
    padding: 3rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .theme-dark .results-section {
    background: #0f172a;
  }

  .section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #f43f5e;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
  }

  .results-title {
    margin-bottom: 1rem;
  }

  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .full-width {
    grid-column: 1 / -1;
  }

  .input-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .input-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
  }

  .theme-dark .input-label {
    color: #f8fafc;
  }

  .irpf-input,
  .irpf-select {
    width: 100%;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
    outline: none;
    transition: all 0.2s;
  }

  .theme-dark .irpf-input,
  .theme-dark .irpf-select {
    background: #0f172a;
    border-color: #334155;
  }

  .irpf-input:focus,
  .irpf-select:focus {
    border-color: #f43f5e;
  }

  .irpf-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23f43f5e' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
  }

  .protagonist-card {
    background: white;
    border-radius: 1.3rem;
    padding: 2.2rem 2rem;
    border: 3px solid #f43f5e;
    text-align: center;
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.1);
    margin: 1.2rem 0;
  }

  .theme-dark .protagonist-card {
    background: #1e293b;
  }

  .protagonista-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #f43f5e;
    text-transform: uppercase;
  }

  .protagonista-value {
    font-size: 4.5rem;
    font-weight: 950;
    color: #f43f5e;
    line-height: 1;
    white-space: nowrap;
  }

  .protagonista-sub {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f43f5e;
    opacity: 0.8;
  }

  .breakdown-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

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

  .theme-dark .breakdown-item {
    border-bottom-color: #334155;
  }

  .breakdown-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
  }

  .breakdown-value {
    font-size: 1rem;
    font-weight: 800;
  }

  .net-highlight {
    border-top: 1px solid #e2e8f0;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .net-label {
    font-weight: 800;
    color: #10b981;
  }

  .net-value {
    color: #10b981;
    font-size: 1.25rem;
  }

  .monthly-highlight {
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
  }

  .monthly-value {
    font-size: 1.5rem;
    font-weight: 950;
    color: #1e293b;
  }

  .theme-dark .monthly-value {
    color: #f8fafc;
  }

  .marginal-highlight {
    border: none;
  }

  .marginal-label-red {
    font-weight: 800;
    color: #ef4444;
  }

  .negative {
    color: #f43f5e;
  }

  .positive {
    color: #10b981;
  }

  .info-alert {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .theme-dark .info-alert {
    background: #1e3a8a30;
    border-color: #1e40af50;
  }

  .info-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    color: #3b82f6;
  }

  .info-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: #1e40af;
    line-height: 1.5;
  }

  .theme-dark .info-text {
    color: #bfdbfe;
  }

  @media (max-width: 1024px) {
    .irpf-main-card {
      grid-template-columns: 1fr;
    }
    .form-section {
      border-right: none;
      border-bottom: 1px solid #e2e8f0;
    }
  }

  @media (max-width: 640px) {
    .form-section,
    .results-section {
      padding: 1.5rem;
    }
    .form-grid {
      grid-template-columns: 1fr;
    }
    .protagonista-value {
      font-size: 2.5rem;
    }
    .protagonista-sub {
      font-size: 1.25rem;
    }
    .section-title {
      margin-bottom: 1.5rem;
    }
  }