* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }

.calc-maternidad {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 5px 5px 25px rgba(0,0,0,0.15);
  overflow: hidden;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  padding: 20px 30px;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 10px;
}

.progress-step::before {
  content: '';
  position: absolute;
  top: 20px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.progress-step:first-child::before {
  display: none;
}

.progress-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.progress-step.active .progress-number {
  background: #8b5cf6;
  color: white;
  transform: scale(1.1);
}

.progress-step.completed .progress-number {
  background: #10b981;
  color: white;
}

    .progress-step.completed::before {
      background: #10b981;
    }

.progress-label {
  font-size: 12px;
  color: #666;
  font-weight: 500;
}

.progress-step.active .progress-label {
  color: #8b5cf6;
  font-weight: 600;
}

.calc-body {
  padding: 40px;
  background: linear-gradient(135deg, #f3e8ff 0%, #fce7f3 100%);
}

    .step-content {
      display: none;
      animation: fadeIn 0.4s ease;
    }

    .step-content.active {
      display: block;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

.step-title {
  font-size: 22px;
  color: #2c3e50;
  margin-bottom: 10px;
  font-weight: 600;
}

.step-subtitle {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 14px;
}

.option-title {
  font-size: 18px;
  color: #111827;
  font-weight: 600;
}

.form-group {
  margin-bottom: 25px;
}

    label {
      display: block;
      margin-bottom: 8px;
      font-weight: 600;
      color: #2c3e50;
      font-size: 14px;
    }

.info-badge {
  display: inline-block;
  background: #8b5cf6;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
}

    input[type="number"],
    input[type="date"],
    select {
      width: 100%;
      padding: 12px 16px;
      border: 2px solid #e0e6ed;
      border-radius: 10px;
      font-size: 15px;
      transition: all 0.3s;
      background: white;
    }

input:focus,
select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

    .radio-group {
      display: grid;
      gap: 12px;
      margin-top: 15px;
    }

    .radio-option {
      position: relative;
      border: 2px solid #e0e6ed;
      border-radius: 12px;
      padding: 20px;
      cursor: pointer;
      transition: all 0.3s;
      background: white;
    }

.radio-option:hover {
  border-color: #8b5cf6;
  background: #f8f9ff;
}

    .radio-option input[type="radio"] {
      position: absolute;
      opacity: 0;
    }

    .radio-option input[type="radio"]:checked + .radio-content {
      color: #8b5cf6;
    }

    .radio-option input[type="radio"]:checked ~ .radio-checkmark {
      background: #8b5cf6;
      border-color: #8b5cf6;
    }

    .radio-option input[type="radio"]:checked ~ .radio-checkmark::after {
      opacity: 1;
      transform: scale(1);
    }

    .radio-content {
      display: flex;
      align-items: center;
      gap: 15px;
      transition: color 0.3s;
    }

.radio-icon {
  font-size: 32px;
}

.radio-text-tit {
  font-size: 18px;
  margin-bottom: 4px;
  color: #111827;
}

    .radio-text-par {
      font-size: 13px;
      color: #7f8c8d;
    }

    .radio-checkmark {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 24px;
      height: 24px;
      border: 2px solid #e0e6ed;
      border-radius: 50%;
      transition: all 0.3s;
    }

    .radio-checkmark::after {
      content: '✓';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0);
      color: white;
      font-weight: 600;
      opacity: 0;
      transition: all 0.3s;
    }

    .checkbox-card {
      border: 2px solid #e0e6ed;
      border-radius: 12px;
      padding: 16px;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 12px;
      cursor: pointer;
      transition: all 0.3s;
      background: white;
    }

.checkbox-card:hover {
  border-color: #8b5cf6;
  background: #f8f9ff;
}

.checkbox-card input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #8b5cf6;
}

    .checkbox-card label {
      margin: 0;
      cursor: pointer;
      flex: 1;
      font-weight: 500;
    }

.conditional-input {
      margin-left: 34px;
      margin-top: 15px;
      margin-bottom: 15px;
      padding: 15px;
      background: #f8f9ff;
      border-left: 3px solid #8b5cf6;
      border-radius: 8px;
      display: none;
      animation: slideDown 0.3s ease;
}

    .conditional-input.show {
      display: block;
    }

    .oculto {
      display: none;
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        max-height: 0;
      }
      to {
        opacity: 1;
        max-height: 500px;
      }
    }

    .info-box {
      background: #e8f4f8;
      border-left: 4px solid #17a2b8;
      padding: 15px;
      border-radius: 8px;
      margin: 20px 0;
      font-size: 14px;
      line-height: 1.6;
    }

    .info-box strong {
      color: #0c5460;
    }

    .warning-box {
      background: #fff3cd;
      border-left: 4px solid #ffc107;
      padding: 15px;
      border-radius: 8px;
      margin: 20px 0;
      font-size: 14px;
      line-height: 1.6;
      color: #856404;
    }

    .buttons-group {
      display: flex;
      gap: 15px;
      margin-top: 30px;
      padding-top: 30px;
      border-top: 1px solid #e0e0e0;
    }

.btn {
      flex: 1;
      padding: 14px 24px;
      border: none;
      border-radius: 200px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
}

.btn-primary {
  background: #ec4899;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-secondary {
  background: none;
  color: #8b5cf6;
  border: solid 2px #8b5cf6;
}

.btn-secondary:hover {
  background: #8b5cf6;
  color: #fff;
}

.resultado-final {
      display: none;
      background: white;
      border-radius: 16px;
      padding: 30px;
      margin-top: 30px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

    .resultado-final.show {
      display: block;
      animation: fadeIn 0.5s ease;
    }

    .resultado-header {
      text-align: center;
      padding: 20px;
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: white;
      border-radius: 12px;
      margin-bottom: 30px;
    }

    .resultado-header.no-derecho {
      background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    }

    .resultado-header h3 {
      font-size: 24px;
      margin-bottom: 8px;
    }

    .resultado-section {
      margin-bottom: 25px;
      padding: 20px;
      background: #f8f9fa;
      border-radius: 12px;
    }

    .resultado-section h4 {
      color: #8b5cf6;
      margin-bottom: 15px;
      font-size: 18px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .resultado-item {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid #e0e0e0;
    }

    .resultado-item:last-child {
      border-bottom: none;
    }

    .resultado-label {
      color: #555;
      font-weight: 500;
    }

    .resultado-valor {
      font-weight: 600;
      color: #2c3e50;
    }

    .resultado-destacado {
      background: white;
      padding: 20px;
      border-radius: 12px;
      margin-top: 15px;
      border: 2px solid #8b5cf6;
    }

    .resultado-total {
      font-size: 28px;
      color: #8b5cf6;
      font-weight: 700;
      text-align: center;
      margin: 20px 0;
    }

    .aviso-legal {
      margin-top: 30px;
      padding: 20px;
      background: #fff3cd;
      border-radius: 12px;
      font-size: 13px;
      line-height: 1.6;
      color: #856404;
    }

    .btn-reset {
      width: 100%;
      margin-top: 20px;
      background: #ec4899;
      color: white;
    }

    .btn-reset:hover {
      background: #5a6268;
    }

    @media (max-width: 768px) {
      .calc-body {
        padding: 25px;
      }

      .progress-bar {
        padding: 15px;
      }

      .progress-label {
        font-size: 10px;
      }

      .progress-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
      }

      .buttons-group {
        flex-direction: column;
      }

      .resultado-item {
        flex-direction: column;
        gap: 5px;
      }
    }